@charset "UTF-8";
/* 
Theme Name: Eco Habitat
*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
  background-color: #fff;
  color: #000;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}
blockquote::before, blockquote::after,
q::before,
q::after {
  content: "";
}

/* Feedback inline (Home + Modal) */
[data-form-msg] {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.3;
}

[data-form-msg].is-loading {
  opacity: 0.85;
}

[data-form-msg].is-success {
  color: #0f7b2c;
}

[data-form-msg].is-error {
  color: #b42318;
}

form.is-sending button[type="submit"],
form.is-sending input[type="submit"] {
  cursor: not-allowed;
  opacity: 0.75;
}

/* ===== Feedback inline (Home + Modal) ===== */
[data-form-msg] {
  /* se oculta cuando está vacío (cuando tu JS hace msgEl.textContent = '') */
  display: flex;
  align-items: flex-start;
  gap: 10px;

  width: 100%;
  margin-top: 12px;

  padding: 12px 14px;
  border-radius: 14px;

  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.03);

  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

[data-form-msg]:empty {
  display: none;
}

/* Animación sutil al aparecer */
@keyframes ecoMsgPop {
  from {
    transform: translateY(6px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

[data-form-msg].is-success,
[data-form-msg].is-error {
  animation: ecoMsgPop 220ms ease-out;
}

/* SUCCESS (usa tu verde como referencia) */
[data-form-msg].is-success {
  border-color: #B5D439;
  background: rgba(181, 212, 57, 0.18);
  color: #2F3B0F;
}

[data-form-msg].is-success::before {
  content: "✓";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: rgba(181, 212, 57, 0.28);
}

/* ERROR */
[data-form-msg].is-error {
  border-color: #E04F5F;
  background: rgba(224, 79, 95, 0.14);
  color: #7A0F1B;
}

[data-form-msg].is-error::before {
  content: "!";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: rgba(224, 79, 95, 0.18);
}

.container-eco {
  max-width: 113rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.just-validate-error-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.2;
}

.just-validate-error-field {
  outline: 2px solid rgba(220, 38, 38, 0.35);
  outline-offset: 2px;
}

.container-sm {
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.hero {
  height: 100vh;
  width: 100%;
  position: relative;
}
.hero__banner {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  -o-object-fit: cover;
     object-fit: cover;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  height: 100%;
  padding-block: 8rem;
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.hero__logos {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.hero__logo {
  width: 90px;
}
.hero h1 {
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -1px;
  color: #fff;
}
.hero .subheading {
  font-weight: 500;
  /* 2rem en móvil → 4.5rem en desktop */
  font-size: clamp(2rem, 1.2rem + 2.6vw, 4.5rem);
}
.hero .heading {
  font-weight: 800;
  text-transform: uppercase;
  text-wrap: balance;
  /* 3rem en móvil → 6rem en desktop */
  font-size: clamp(3rem, 1rem + 5vw, 6rem);
}

.projects__text {
  text-align: left;
  margin: 0 auto;
}
.projects__text-line {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  line-height: 1.2;
}
.projects__text-strong {
  font-weight: 700;
  color: #111;
  font-size: 1.5rem;
}
@media (min-width: 768px) {
  .projects__text-strong {
    font-size: 2rem;
  }
}
.projects__text-highlight {
  font-weight: 800;
  color: #b9d84b;
  font-size: 2rem;
}
@media (min-width: 768px) {
  .projects__text-highlight {
    font-size: 3rem;
  }
}

.projects {
  padding-block: 8rem;
}
.projects__content {
  display: flex;
  justify-content: center;
}
.projects__filters {
  display: inline-flex;
  border-radius: 9999rem;
  overflow: hidden;
  background: #fff;
  font-size: 1rem;
}
.projects__filters-btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  color: #111;
  border: 0;
  padding: 0.625rem 2rem;
  cursor: pointer;
  white-space: nowrap;
}
.projects__filters-btn + .projects__filters-btn {
  border-left: 0.1rem solid rgba(185, 216, 75, 0.5);
}
.projects__filters-btn:hover {
  background: rgba(185, 216, 75, 0.12);
}
.projects__filters-btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 0.2rem rgba(185, 216, 75, 0.6);
}
.projects__filters-btn--active {
  background: #b9d84b;
  color: #fff;
  font-weight: 700;
}
@media (max-width: 40rem) {
  .projects__filters {
    display: flex;
    width: 100%;
  }
  .projects__filters-btn {
    flex: 1 1 0;
    text-align: center;
  }
}
.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-block: 4rem;
}

@media screen and (max-width: 1024px) {
  .projects__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (max-width: 640px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }
}
.project-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
  border: 0.0625rem solid #e9e9e9;
  overflow: hidden;
  max-width: 26.5rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.4;
  /* Cinta superior izquierda */
  /* Logo arriba derecha */
  /* Chip centrado inferior */
  /* línea negra como en el diseño */
  /* Responsive */
}
.project-card__media {
  position: relative;
  background: #f2f2f2;
}
.project-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  /* similar proporción a la imagen */
  -o-object-fit: cover;
     object-fit: cover;
}
.project-card__status {
  position: absolute;
  top: 2rem;
  left: 0;
  background: #b9d84b;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-top-right-radius: 2rem;
  border-bottom-right-radius: 2rem;
  font-size: 0.875rem;
}
.project-card__logo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 4rem;
  height: auto;
  display: block;
}
.project-card__chip {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  background: #b9d84b;
  color: #1a1a1a;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  box-shadow: 0 0.15rem 0.4rem rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}
.project-card__content {
  text-align: center;
  padding: 1rem 1.25rem 0.75rem;
}
.project-card__price {
  margin: 0 0 0.375rem;
  color: #333;
}
.project-card__price strong {
  font-size: 1.5rem;
  color: #000;
  font-weight: 800;
}
.project-card__address {
  margin: 0;
  color: #444;
}
.project-card__address strong {
  font-weight: 800;
  color: #000;
}
.project-card__divider {
  border: 0;
  border-top: 0.0625rem solid #000;
  width: calc(100% - 2rem);
  margin: 0.75rem auto 0;
}
.project-card__specs {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem 1rem;
  background: #fff;
  flex-wrap: wrap;
  /* para responsive */
}
.project-card__spec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  /* 15px aprox */
  color: #111;
  white-space: nowrap;
}
.project-card__spec-icon {
  width: 1.25rem;
  height: 1.25rem;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}
@media (max-width: 40rem) {
  .project-card {
    /* ~640px */
    max-width: 100%;
  }
  .project-card__specs {
    justify-content: space-around;
    row-gap: 0.75rem;
  }
  .project-card__chip {
    font-size: 0.8125rem;
    padding: 0.45rem 1rem;
  }
  .project-card__status {
    font-size: 0.8125rem;
    padding: 0.45rem 0.9rem;
  }
}

.contact {
  background: #eef6da;
  padding: 3rem 1rem;
  /* Texto */
  /* Formulario */
  /* Política */
  /* Botón */
  /* Imagen derecha */
  /* Responsive */
}
.contact .container-sm {
  /* usa tu contenedor; no se sobreescribe tamaño */
}
.contact__wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.contact__left {
  padding: 1rem 0;
}
.contact__title {
  margin: 0 0 0.25rem;
  font-size: 2rem;
  line-height: 1.15;
  color: #1a1a1a;
}
.contact__title-em {
  display: block;
  margin-top: 0.25rem;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #b9d84b;
}
.contact__subtitle {
  margin: 0 0 1.25rem;
  color: #47524a;
  font-size: 1rem;
}
.contact__form {
  width: 100%;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}
.contact__field {
  position: relative;
}
.contact__field--full {
  grid-column: 1/-1;
}
.contact__field--select .contact__icon {
  pointer-events: none;
}
.contact__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  color: #2b2b2b;
  font-weight: 600;
}
.contact__icon {
  position: absolute;
  left: 1rem;
  top: 2.45rem;
  /* alineado al centro del input debajo del label */
  width: 1.125rem;
  height: 1.125rem;
  color: #b9d84b;
  /* para textarea más alto */
}
.contact__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}
.contact__icon--top {
  top: 3.15rem;
}
.contact__input, .contact__select, .contact__textarea {
  width: 100%;
  border: 0.1rem solid #b9d84b;
  background: #fff;
  color: #111;
  border-radius: 2rem;
  padding: 0.75rem 1rem 0.75rem 1rem;
  font: 500 1rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.contact__input::-moz-placeholder, .contact__select::-moz-placeholder, .contact__textarea::-moz-placeholder {
  color: #8a8f8a;
}
.contact__input::placeholder, .contact__select::placeholder, .contact__textarea::placeholder {
  color: #8a8f8a;
}
.contact__input:focus, .contact__select:focus, .contact__textarea:focus {
  box-shadow: 0 0 0 0.2rem rgba(185, 216, 75, 0.35);
}
.contact__select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6a7a60 50%), linear-gradient(135deg, #6a7a60 50%, transparent 50%);
  background-position: right 1rem center, right 0.8rem center;
  background-size: 0.5rem 0.5rem, 0.5rem 0.5rem;
  background-repeat: no-repeat;
}
.contact__textarea {
  border-radius: 1rem;
  padding: 1rem 1rem 1rem 1rem;
  min-height: 7rem;
  resize: vertical;
}
.contact__policy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.95rem;
  color: #2b2b2b;
}
.contact__policy a {
  color: #2b2b2b;
  text-decoration: underline;
}
.contact__checkbox {
  width: 1.1rem;
  height: 1.1rem;
  border: 0.1rem solid #b9d84b;
  border-radius: 0.2rem;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: #fff;
  display: inline-block;
  position: relative;
  cursor: pointer;
}
.contact__checkbox:checked {
  background: #b9d84b;
  border-color: #b9d84b;
}
.contact__checkbox:checked::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.05rem;
  width: 0.35rem;
  height: 0.7rem;
  border: 0.15rem solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}
.contact__btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #b9d84b;
  color: #fff;
  border: 0;
  border-radius: 2rem;
  padding: 0.95rem 1.25rem;
  font: 700 1rem/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.contact__btn:hover {
  filter: brightness(0.95);
}
.contact__btn:active {
  filter: brightness(0.9);
}
.contact__right {
  padding: 1rem 0;
}
.contact__photo {
  margin: 0;
  background: #e8ecd9;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.12);
}
.contact__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (max-width: 64rem) {
  .contact {
    /* reajuste en móviles */
  }
  .contact__wrap {
    grid-template-columns: 1fr;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .contact__title {
    font-size: 1.8rem;
  }
  .contact__title-em {
    font-size: 2.2rem;
  }
  .contact__icon {
    top: 2.45rem;
  }
  .contact__icon--top {
    top: 3.15rem;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  background: #25d366;
  /* por si la imagen no carga */
  overflow: hidden;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CAJA TIPO CHAT ===== */
.whatsapp-chat {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-width: 90vw;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  z-index: 9998;
  display: none;
  /* se muestra con JS */
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.whatsapp-chat__header {
  background: #075E54;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-chat__title {
  font-size: 14px;
  font-weight: 600;
}

.whatsapp-chat__close {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.whatsapp-chat__body {
  padding: 14px;
  font-size: 14px;
}

.whatsapp-chat__body p {
  margin-top: 0;
  margin-bottom: 10px;
}

.whatsapp-chat__form-group {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.whatsapp-chat__label {
  font-size: 13px;
  color: #555;
}

.whatsapp-chat__input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.whatsapp-chat__input:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.15);
}

.whatsapp-chat__btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #25d366;
  color: #fff;
  margin-top: 4px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.whatsapp-chat__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

.whatsapp-chat__btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.whatsapp-chat__success {
  text-align: left;
  font-size: 14px;
  margin-bottom: 12px;
}

.whatsapp-chat__success strong {
  display: block;
  margin-bottom: 6px;
}

.whatsapp-chat__link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #25d366;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.cta-btn {
  align-self: flex-start;
  /* lo que pediste */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  background-color:  #0f7b53;
  backdrop-filter: blur(4px);

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;

  color: #fff;
  /* verde oscuro elegante */
  cursor: pointer;

  position: relative;
  overflow: hidden;

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);

  transition:
    background-color 0.22s ease-out,
    color 0.22s ease-out,
    border-color 0.22s ease-out,
    box-shadow 0.22s ease-out,
    transform 0.16s ease-out;

  /* efecto sutil para llamar la atención */
  animation: cta-glow 4s ease-in-out infinite;
}

/* Flecha sutil al final del texto */
.cta-btn::after {
  content: "→";
  margin-left: 0.5rem;
  font-size: 0.95rem;
  transform: translateX(0);
  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
  opacity: 0.85;
}

/* Hover: se rellena y se vuelve el CTA principal */
.cta-btn:hover {
  background-color: #b9d84b;
  color: #000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.cta-btn:hover::after {
  transform: translateX(4px);
  opacity: 1;
}

/* Active: sensación de clic */
.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

/* Accesible en teclado */
.cta-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(15, 123, 83, 0.7);
}

/* Animación MUY sutil de brillo/sombra */
@keyframes cta-glow {

  0%,
  100% {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    border-color: rgba(16, 68, 52, 0.35);
  }

  50% {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.20);
    border-color: rgba(16, 68, 52, 0.55);
  }
}

.whatsapp-chat__link-btn:hover {
  filter: brightness(1.05);
}

@media (max-width: 480px) {
  .whatsapp-chat {
    right: 10px;
    left: 10px;
    width: auto;
  }

  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
  }
}
.projects__grid--single {
  display: flex;
  justify-content: center;
}
.footer {
  background: #0a0a0a;
  color: #fff;
  padding: 2rem 0;
  border-top: 0.0625rem solid #1f1f1f;
  /* Marca */
  /* Bloques */
  /* Social */
  /* Partners */
  /* Responsive */
}
.footer__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr ;
  gap: 2rem;
  align-items: center;
}
.footer__brand {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}
.footer__logo {
  display: block;
  width: auto;
  height: 3rem;
}
.footer__tag {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.8;
}
.footer__block {
  align-self: start;
}
.footer__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.footer__phone {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  opacity: 0.9;
}
.footer__social {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}
.footer__social-link {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #151515;
  border-radius: 50%;
  transition: opacity 0.15s ease;
}
.footer__social-link svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}
.footer__social-link:hover {
  opacity: 0.8;
}
.footer__partners {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-self: end;
}
.footer__partner {
  display: block;
  height: 2.5rem;
  /* mantiene proporción */
  width: auto;
  filter: brightness(1) contrast(1.1);
}
@media (max-width: 64rem) {
  .footer__wrap {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }
  .footer__partners {
    grid-column: 1/-1;
    justify-self: start;
  }
}
@media (max-width: 40rem) {
  .footer {
    padding: 1.5rem 0;
  }
  .footer__wrap {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .footer__brand, .footer__block, .footer__partners {
    justify-self: center;
    text-align: center;
  }
  .footer__partners {
    flex-wrap: wrap;
  }
  .footer__logo {
    height: 2.5rem;
  }
}

.leaf {
  position: fixed;
  font-size: 2.5rem;
  pointer-events: none;
  width: 70px;
  height: auto;
}
.leaf img {
  width: 100%;
  height: 100%;
}

/* =========================
   MODAL LAYER / CONTENEDOR
   ========================= */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  /* donde se inyecta el HTML del endpoint */
}
.project-modal.is-hidden {
  display: none;
}
.project-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.project-modal__mount {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  place-items: center;
}
.project-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(1200px, 96vw);
  height: min(84vh, 900px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.project-modal__dialog.project-modal--no-media {
  width: min(680px, 95vw);
  /* height: auto; */
  max-height: 88vh;
}
.project-modal__grid {
  display: grid;
  /* CLAVE: minmax(0, …) para que ninguna columna colapse a la otra */
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  height: 100%;
}
.project-modal__grid.is-single {
  grid-template-columns: 1fr;
}
.project-modal__media {
  height: 100%;
  min-width: 0;
  /* evita overflow que empuja la otra columna */
  overflow: hidden;
  background: #000;
  /* opcional, ayuda a percibir el área del slider */
}
.project-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: none;
  font-size: 26px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.project-modal__close:hover {
  filter: brightness(1.08);
}

/* ================
   SWIPER (LEFT)
   ================ */
.project-swiper {
  width: 100%;
  height: 100%;
}

.project-swiper .swiper-wrapper {
  height: 100%;
}

.project-swiper .swiper-slide {
  height: 100%;
}

.project-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

/* Ocultar UI si hay 1 sola imagen */
.project-swiper.is-single .swiper-button-next,
.project-swiper.is-single .swiper-button-prev,
.project-swiper.is-single .swiper-pagination {
  display: none !important;
}

/* Flechas circulares */
.swiper-button-next,
.swiper-button-prev {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px;
  font-weight: 800;
}

.swiper-button-next {
  right: 18px;
  background: #B5D33D;
  color: #1b1b1b;
  aspect-ratio: 1/1;
  width: 42px !important;
  height: 42px !important;
  transform: rotate(180deg);
}

.swiper-button-prev {
  left: 18px;
  aspect-ratio: 1/1;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.95);
  width: 42px !important;
  height: 42px !important;
}

.swiper-pagination-bullets .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.85);
  opacity: 0.8;
  width: 8px;
  height: 8px;
}

/* =========================
   PANEL DERECHO (GREEN)
   ========================= */
.project-modal__dialog.project-modal--no-media .project-panel {
  border-radius: 22px;
}

.project-panel {
  position: relative;
  background: #CFE25A;
  padding: 26px 28px 24px;
  color: #24310D;
  overflow: auto;
  min-width: 0;
  /* importantísimo en grid */
}
.project-panel__logo {
  width: 64px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}
.project-panel__desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 4px 14px 2px;
}
.project-panel__badges {
  display: flex;
  gap: 26px;
  align-items: center;
  margin: 8px 0 16px;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.project-panel__badges li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-panel .badge-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.project-panel__form-title {
  margin: 6px 0 14px;
  font-size: 16px;
  font-weight: 700;
}

/* =========================
   FORMULARIO
   ========================= */
.project-modal__form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.project-modal__form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-modal__form .field--full {
  grid-column: 1/-1;
}
.project-modal__form .field label {
  font-size: 12px;
  font-weight: 600;
  color: #2b3b10;
}
.project-modal__form input[type=text],
.project-modal__form input[type=email],
.project-modal__form input[type=tel],
.project-modal__form select,
.project-modal__form textarea {
  background: rgba(255, 255, 255, 0.28);
  border: 2px solid #9DBE3A;
  border-radius: 14px;
  padding: 10px 14px;
  outline: none;
  color: #111;
  font-size: 14px;
}
.project-modal__form input[type=text]:focus,
.project-modal__form input[type=email]:focus,
.project-modal__form input[type=tel]:focus,
.project-modal__form select:focus,
.project-modal__form textarea:focus {
  border-color: #7BA624;
  box-shadow: 0 0 0 3px rgba(123, 166, 36, 0.18);
}
.project-modal__form textarea {
  resize: vertical;
}
.project-modal__form .policy {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.project-modal__form .policy a {
  color: #0b0b0b;
  text-decoration: underline;
}

/* Botón */
.btn-black {
  width: 160px;
  justify-self: center;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.btn-black:hover {
  filter: brightness(1.08);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px) {
  .project-modal__dialog {
    height: 92vh;
  }
  .form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem;
  }
  .project-modal__grid {
    grid-template-columns: 1fr;
  }
  .project-modal__dialog.project-modal--no-media {
    width: min(760px, 95vw);
  }
  .project-modal__form .form-grid {
    grid-template-columns: 1fr;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 46px !important;
    height: 46px !important;
  }
  .hero__logo {
    width: 60px;
  }
  .footer__partners {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .footer__brand {
    justify-content: center;
    align-items: center;
  }
  .hero__banner {
    filter: brightness(0.5);
  }
}
@media screen and (max-width: 480px) {
  .projects__filters {
    flex-direction: column;
  }
}
/* Contenedor del filtro (centrado) */
.projects__filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Select estilizado */
.projects__select {
  /* reset nativo */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  min-width: 240px;
  height: 42px;
  padding: 0 42px 0 16px;
  /* espacio para la flecha a la derecha */
  border: 2px solid #9dbe3a;
  border-radius: 999px;
  background-color: #ffffff;
  color: #1b1b1b;
  font-size: 14px;
  line-height: 42px;
  /* alinea el texto verticalmente */
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  /* flecha personalizada (chevron) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231b1b1b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  /* Firefox – evita que el contenido empuje el ancho */
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  /* IE/Edge antiguos */
  /* Opciones (menú desplegable) */
}
.projects__select:hover {
  background-color: #f7fbec;
}
.projects__select:focus {
  outline: none;
  border-color: #7ba624;
  box-shadow: 0 0 0 4px rgba(123, 166, 36, 0.18);
}
.projects__select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.projects__select::-ms-expand {
  display: none;
}
.projects__select option {
  color: #1b1b1b;
  background: #ffffff;
}

/* Variante compacta (opcional) */
.projects__select--sm {
  min-width: 200px;
  height: 36px;
  line-height: 36px;
  font-size: 13px;
  padding: 0 38px 0 14px;
  background-position: right 12px center;
  background-size: 12px;
}

/* Accesibilidad: utilidad para labels invisibles */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .projects__select {
    min-width: 200px;
  }
}/*# sourceMappingURL=style.css.map */