/* ============================================================
   style.css — Marbella Fraccionamiento
   Sections:
     1. Fonts & Reset
     2. Page Loader
     3. Promo Modal
     4. Section Wrappers
     5. Header / Nav
     6. Hero
     7. Terrenos
     8. Nosotros
     9. Aparta tu Terreno
    10. Video
    11. Así Luce
    12. Contacto
    13. FAQ
    14. Footer
    15. Media Queries
   ============================================================ */


/* ══════════════════════════════════════════════════════════
   1. FONTS & RESET
   ══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Gilroy-Bold';
  src: url('../fonts/Gilroy-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  --green:  #253A17;
  --blob:   #C7DC7B;
  --yellow: #E9EE42;
  --white:  #fff;
}

body {
  font-family: 'Gilroy-Bold', sans-serif;
  overflow-x: hidden;
}


/* ══════════════════════════════════════════════════════════
   2. PAGE LOADER
   ══════════════════════════════════════════════════════════ */

#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1A3023;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}

#page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 52px;
  height: 52px;
  border: 5px solid rgba(250, 255, 125, .25);
  border-top-color: #FAFF7D;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ══════════════════════════════════════════════════════════
   3. PROMO MODAL
   ══════════════════════════════════════════════════════════ */

.pmodal-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pmodal-overlay[hidden] {
  display: none;
}

.pmodal-overlay.show {
  opacity: 1;
}

.pmodal-box {
  position: relative;
  display: flex;
  background: #1A3023;
  border-radius: 20px;
  overflow: hidden;
  width: min(960px, 100%);
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.pmodal-overlay.show .pmodal-box {
  transform: scale(1);
}

.pmodal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: #253A17;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.pmodal-close:hover {
  background: #16a34a;
}

.pmodal-img {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  background: #1A3023;
  max-width: 50%;
}

.pmodal-img img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.pmodal-form-side {
  flex: 1 1 auto;
  min-width: 340px;
  max-width: 500px;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 52px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pmodal-title {
  font-family: 'Gilroy-Bold', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  color: #FAFF7D;
  line-height: 1.15;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.pmodal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pmodal-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pmodal-group label {
  font-family: 'Gilroy-Bold', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
}

.pmodal-group input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #FAFF7D;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.pmodal-group input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(250, 255, 125, .2);
}

.pmodal-submit {
  align-self: center;
  margin-top: 6px;
  background: #FAFF7D;
  color: #1A3023;
  border: none;
  border-radius: 10px;
  padding: 14px 36px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.pmodal-submit:hover {
  background: #f0f52e;
  transform: translateY(-2px);
}


/* ══════════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════════ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0, 0, 0, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-overlay.show {
  opacity: 1;
}

.lightbox-img {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  transform: scale(0.96);
  transition: transform .25s ease;
}

.lightbox-overlay.show .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 9600;
  background: #22c55e;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox-close:hover {
  background: #16a34a;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9600;
  background: rgba(255, 255, 255, .18);
  border: none;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, .35);
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.asi-card {
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════
   4. SECTION WRAPPERS
   ══════════════════════════════════════════════════════════ */

.sw-hero     { background: #FAFF7D; }
.sw-terrenos { background: #c4d4b0; }
.sw-nosotros { background: #1A3023; }
.sw-aparta   { background: white; }
.sw-video    { background: white; padding: 16px clamp(24px, 6vw, 80px); }
.sw-asi      { background: white; padding: 16px clamp(24px, 6vw, 80px); }
.sw-contacto { background: white; }
.sw-faq      { background: white; padding: 50px clamp(24px, 6vw, 80px); }


/* ══════════════════════════════════════════════════════════
   5. HEADER / NAV
   ══════════════════════════════════════════════════════════ */

header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 22px 20px;
}

header nav {
  display: flex;
  align-items: center;
  gap: 44px;
  background: var(--green);
  border-radius: 100px;
  padding: 14px 48px;
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: #FAFF7D;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s;
}

.nav-links a:hover {
  opacity: .7;
}

.logo-wrap {
  text-align: center;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FAFF7D;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Open state */
header nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════════════════════════
   6. HERO
   ══════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: url('../images/hero.webp') center / cover no-repeat;
  background-color: #FAFF7D;
  border-radius: 0 0 100px 100px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, .32) 0%,
    rgba(0, 0, 0, .08) 50%,
    transparent 80%
  );
}

.blob-svg {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.promo {
  position: absolute;
  z-index: 10;
  left: clamp(40px, 14vw, 200px);
  top: 50%;
  transform: translateY(-44%);
}

.promo img {
  width: clamp(320px, 44vw, 700px);
  height: auto;
  filter: drop-shadow(0 14px 44px rgba(0, 0, 0, .55));
}

.cta {
  position: absolute;
  z-index: 10;
  bottom: clamp(28px, 4vh, 52px);
  right: clamp(24px, 5vw, 62px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #FAFF7D;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .45);
  transition: background .2s, transform .15s;
}

.cta:hover {
  background: #1a2c0e;
  transform: translateY(-2px);
}


/* ══════════════════════════════════════════════════════════
   7. TERRENOS
   ══════════════════════════════════════════════════════════ */

.terrenos {
  background: #FAFF7D;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 8vw, 120px);
  color: #1A3023;
  text-align: center;
  border-radius: 0 0 100px 100px;
  overflow: hidden;
}

.terrenos-title {
  font-size: clamp(42px, 7vw, 120px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 16px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.stat {
  display: flex;
  gap: 8px;
  padding: 0 clamp(20px, 3.5vw, 52px);
}

.stat:first-child {
  padding-left: clamp(20px, 3.5vw, 52px);
}

.stat-main {
  font-size: clamp(32px, 4.8vw, 62px);
  font-weight: 900;
  line-height: 1;
}

.stat-main sup {
  font-size: .55em;
  font-weight: 900;
}

.stat-label {
  color: #1A3023;
  text-align: left;
  font-size: clamp(11px, 1.1vw, 25px);
  font-weight: 600;
  line-height: 1.3;
  opacity: .85;
}

.stat-divider {
  width: 2px;
  height: clamp(44px, 5vw, 64px);
  background: #1A3023;
  opacity: .35;
  flex-shrink: 0;
}

.terrenos-hr {
  border: none;
  border-top: 1.5px solid rgba(26, 48, 35, .25);
  margin-bottom: clamp(18px, 3vw, 32px);
}

.servicios-label {
  text-align: center;
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 500;
  opacity: .75;
  margin-bottom: clamp(20px, 3.5vw, 38px);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
  max-width: 860px;
  margin: 0 auto;
}

.servicio-card {
  display: flex;
  align-items: center;
  gap: 50px;
  border: 1px solid #1A3023;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.servicio-card img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
}


/* ══════════════════════════════════════════════════════════
   8. NOSOTROS
   ══════════════════════════════════════════════════════════ */

.nosotros {
  background: #f5f5f1;
  border-radius: 0 0 100px 100px;
  overflow: hidden;
}

.nosotros-card {
  position: relative;
  margin: 0 auto;
  border-radius: 0 0 36px 36px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 10px 34px rgba(26, 48, 35, .12);
}

.nosotros-copy {
  position: relative;
  background: #c4d4b0;
  padding: clamp(28px, 4vw, 56px);
  color: #101613;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feliz-under {
  position: absolute;
  left: calc(21% - 12.5ch - 56px);
  top: 11px;
  width: clamp(70px, 3vw, 54px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.nosotros-text {
  font-size: clamp(18px, 1.9vw, 34px);
  line-height: 1.2;
  letter-spacing: -.4px;
  max-width: 25ch;
  margin: 0 auto 20px;
  text-align: justify;
  text-justify: inter-word;
  position: relative;
  z-index: 2;
}

.nosotros-copy strong {
  font-weight: 700;
}

.nosotros-tag {
  display: inline-block;
  background: #e9ee42;
  color: #1a3023;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: clamp(17px, 1.2vw, 22px);
  line-height: 1;
  align-self: center;
  position: relative;
  z-index: 2;
}

.nosotros-media {
  position: relative;
  min-height: 340px;
}

.nosotros-media img {
  width: 120%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nosotros-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 135px;
  height: auto;
  transform: translate(-50%, -50%) rotate(-10deg);
  z-index: 3;
  pointer-events: none;
}


/* ══════════════════════════════════════════════════════════
   9. APARTA TU TERRENO
   ══════════════════════════════════════════════════════════ */

.aparta {
  background: #1A3023;
  overflow: hidden;
  border-radius: 0 0 100px 100px;
}

.aparta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}

.aparta-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.5vw, 100px);
  padding: clamp(48px, 6vw, 88px) clamp(32px, 5vw, 72px);
  text-align: center;
}

.aparta-titulo {
  width: clamp(260px, 34vw, 460px);
  height: auto;
  filter: drop-shadow(0 10px 32px rgba(0, 0, 0, .55));
}

.aparta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FAFF7D;
  color: #1A3023;
  text-decoration: none;
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 18px 15px;
  border-radius: 10px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, .35);
  transition: background .2s, transform .15s;
}

.aparta-btn:hover {
  background: #f5f832;
  transform: translateY(-2px);
}

.aparta-note {
  color: #FAFF7D;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  max-width: 40ch;
}

.aparta-note strong {
  color: #fff;
  font-weight: 700;
}

.aparta-map {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3vw, 48px);
}

.aparta-map img {
  width: 100%;
  max-width: 600px;
  height: auto;
}


/* ══════════════════════════════════════════════════════════
   10. VIDEO
   ══════════════════════════════════════════════════════════ */

.video-section {
  background: white;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 8vw, 120px);
  border-radius: 0 0 100px 100px;
  overflow: hidden;
}

.video-wrap {
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
  background: #b0b0b0;
  aspect-ratio: 16 / 9;
  line-height: 0;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* ══════════════════════════════════════════════════════════
   11. ASÍ LUCE
   ══════════════════════════════════════════════════════════ */

.asi-luce {
  background: #EEFF72;
  position: relative;
  overflow: visible;
  border-radius: 40px;
  padding: clamp(36px, 5vw, 72px) clamp(20px, 5vw, 72px) clamp(48px, 6vw, 80px);
  padding-top: clamp(16px, 3vw, 32px);
  text-align: center;
}

.asi-corner {
  position: absolute;
  width: clamp(100px, 14vw, 185px);
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.asi-corner--tl { top: 0; left: 0; transform: none; }
.asi-corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.asi-corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.asi-corner--br { bottom: 0; right: 0; transform: scale(-1); }

.asi-titulo {
  position: relative;
  z-index: 2;
  width: clamp(260px, 60vw, 700px);
  height: auto;
  margin-top: clamp(-90px, -9vw, -60px);
  margin-bottom: clamp(24px, 4vw, 48px);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .18));
}

.asi-slider-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 18px);
  margin: 0 auto;
}

.asi-track {
  display: flex;
  gap: clamp(10px, 1.8vw, 22px);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  scroll-behavior: smooth;
}

.asi-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #b8c8a0;
  box-shadow: 0 6px 28px rgba(0, 0, 0, .22);
  flex: 0 0 calc(33.3333% - clamp(10px, 1.8vw, 22px) * 2 / 3);
  min-width: 0;
}

.asi-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asi-plus {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  border: none;
  font-size: 20px;
  line-height: 30px;
  cursor: pointer;
  color: #1a3023;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  transition: background .15s;
}

.asi-plus:hover {
  background: #fff;
}

.asi-arrow {
  flex-shrink: 0;
  width: clamp(34px, 3.2vw, 46px);
  height: clamp(34px, 3.2vw, 46px);
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .72);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  cursor: pointer;
  color: #1a3023;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  transition: background .2s, transform .15s;
}

.asi-arrow:hover {
  background: #fff;
  transform: scale(1.08);
}


/* ══════════════════════════════════════════════════════════
   12. CONTACTO
   ══════════════════════════════════════════════════════════ */

.contacto {
  background: white;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 6vw, 80px);
  border-radius: 0 0 100px 100px;
  overflow: hidden;
}

.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(14px, 2.2vw, 24px);
  margin: 0 auto;
}

.contacto-card {
  background: #D95B2B;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3.5vw, 44px);
  color: #fff;
}

.contacto-heading {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 900;
  letter-spacing: .5px;
  margin-bottom: clamp(16px, 2.5vw, 28px);
  line-height: 1;
}

.contacto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacto-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(13px, 1.15vw, 20px);
  font-weight: 500;
}

.contacto-list svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  opacity: .9;
}

.contacto-horario {
  border-collapse: collapse;
  width: 100%;
  font-size: clamp(13px, 1.1vw, 20px);
}

.contacto-horario td {
  padding: 5px 0;
  vertical-align: top;
}

.contacto-horario td:first-child {
  font-weight: 700;
  padding-right: 22px;
  white-space: nowrap;
}

.contacto-logo {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex;
  justify-content: center;
}

.contacto-logo img {
  height: clamp(28px, 6vw, 38px);
  width: auto;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 18px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  opacity: .9;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #1a3023;
  font-family: inherit;
  font-size: clamp(13px, 1vw, 15px);
  outline: none;
  transition: box-shadow .2s;
}

.form-group input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .55);
}

.form-submit {
  align-self: center;
  margin-top: clamp(4px, 1vw, 10px);
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 36px;
  font-family: inherit;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.form-submit:hover {
  background: #1a2c0e;
  transform: translateY(-2px);
}


/* ══════════════════════════════════════════════════════════
   13. FAQ
   ══════════════════════════════════════════════════════════ */

.faq {
  background: #B8C8E8;
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  padding: clamp(36px, 5vw, 44px) clamp(20px, 8vw, 50px) clamp(48px, 6vw, 42px);
}

.faq-smiley {
  position: absolute;
  top: clamp(12px, 2vw, 22px);
  right: clamp(16px, 3vw, 40px);
  width: clamp(42px, 4vw, 58px);
  height: auto;
  pointer-events: none;
}

.faq-title {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 900;
  color: #1A3023;
  margin-bottom: clamp(22px, 3.5vw, 40px);
  letter-spacing: .5px;
}

.faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
}

.faq-item {
  background: #8FA9DA;
  border-radius: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 700;
  color: #1A3023;
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: #1A3023;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400;
  color: #1A3023;
  line-height: 1.65;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-open .faq-a {
  max-height: 300px;
  padding: 0 22px 18px;
}

.faq-tag {
  display: inline-block;
  margin-top: clamp(18px, 2.5vw, 28px);
  background: #E9EE42;
  color: #1A3023;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 700;
}


/* ══════════════════════════════════════════════════════════
   14. FOOTER
   ══════════════════════════════════════════════════════════ */

.footer {
  background: #C8DDB0;
  color: #1A3023;
  font-family: 'Gilroy-Bold', sans-serif;
  border-radius: 100px 100px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: clamp(36px, 5vw, 60px) clamp(28px, 6vw, 80px);
  align-items: start;
}

.footer-nav {
  max-width: 480px;
  background: transparent;
}

.footer-nav ul {
  list-style: none;
  background: transparent;
}

.footer-nav li {
  border-bottom: 1.5px solid rgba(26, 48, 35, .3);
}

.footer-nav a {
  display: block;
  padding: 14px 0;
  color: #1A3023;
  text-decoration: none;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  transition: opacity .2s;
}

.footer-nav a:hover {
  opacity: .55;
}

.footer-contact {
  padding-top: 4px;
  grid-column: 3;
}

.footer-contact-heading {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
}

.footer-contact-list svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: .85;
}

.footer-horario {
  border-collapse: collapse;
  font-size: clamp(12px, 1vw, 14px);
}

.footer-horario td {
  padding: 3px 0;
  vertical-align: top;
}

.footer-horario td:first-child {
  font-weight: 700;
  padding-right: 22px;
  white-space: nowrap;
}

.footer-bar {
  border-top: 1.5px solid rgba(26, 48, 35, .2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px clamp(28px, 6vw, 80px);
}

.footer-copy {
  font-size: clamp(9px, .8vw, 11px);
  font-weight: 500;
  opacity: .65;
  letter-spacing: .2px;
}

.footer-copy a {
  color: inherit;
  text-decoration: underline;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-credit-label {
  font-size: clamp(9px, .8vw, 11px);
  font-weight: 600;
  letter-spacing: .5px;
  opacity: .75;
}

.footer-credit-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-tv-logo {
  height: 32px;
  width: auto;
  display: block;
}

.footer-tv-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.footer-tv-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-tv-name strong {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 900;
  letter-spacing: .5px;
}

.footer-tv-name span {
  font-size: clamp(8px, .7vw, 10px);
  font-weight: 500;
  letter-spacing: 1.5px;
  opacity: .75;
}


/* ══════════════════════════════════════════════════════════
   15. MEDIA QUERIES
   ══════════════════════════════════════════════════════════ */

/* ── 900px ── */
@media (max-width: 900px) {
  .nosotros-card {
    grid-template-columns: 1fr;
  }

  .nosotros-text {
    max-width: 32ch;
  }

  .feliz-under {
    left: calc(50% - 16ch - 42px);
    top: 28px;
    width: 40px;
  }

  .nosotros-media {
    min-height: 280px;
  }

  .nosotros-burst {
    width: 66px;
    left: 50%;
    top: 50%;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }

  .footer-contact {
    grid-column: 2;
  }

  .footer-nav a {
    font-size: clamp(22px, 3.5vw, 32px);
  }
}

/* ── 860px ── */
@media (max-width: 860px) {
  .aparta-inner {
    grid-template-columns: 1fr;
  }

  .aparta-map {
    padding-top: 0;
  }
}

/* ── 700px ── */
@media (max-width: 700px) {
  /* Header */
  header {
    padding: 12px 14px;
  }

  header nav {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0;
    padding: 12px 20px;
    border-radius: 16px;
    width: calc(100vw - 28px);
  }

  .logo-wrap { order: 1; }
  .nav-toggle { display: flex; order: 2; margin-left: 12px; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    grid-column: 1 / -1;
    width: 100%;
    padding: 10px 0 4px;
    order: 3;
  }

  header nav.nav-open .nav-links { display: flex; }

  .nav-links li {
    border-top: 1px solid rgba(250, 255, 125, .15);
  }

  .nav-links a {
    display: block;
    padding: 12px 4px;
    font-size: 16px;
  }

  /* Section border-radius */
  .hero,
  .terrenos,
  .nosotros,
  .aparta,
  .video-section,
  .contacto,
  .faq {
    border-radius: 0 0 40px 40px;
  }

  .footer {
    border-radius: 40px 40px 0 0;
  }

  /* Hero */
  .hero { min-height: 500px; }

  .promo {
    left: 50%;
    transform: translate(-50%, -44%);
  }

  .promo img {
    width: clamp(280px, 88vw, 420px);
  }

  .cta {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 24px;
    font-size: 14px;
    padding: 14px 28px;
    white-space: nowrap;
  }

  /* Section wrappers */
  .sw-video,
  .sw-asi { padding: 12px; }

  .sw-faq { padding: 24px 12px; }

  /* Video */
  .video-section {
    padding: clamp(20px, 4vw, 40px) 0;
    border-radius: 0 0 40px 40px;
  }

  /* Así luce */
  .asi-luce { border-radius: 24px; }
  .asi-titulo { margin-top: clamp(-60px, -12vw, -30px); }

  /* Contacto */
  .contacto {
    padding: clamp(28px, 5vw, 48px) clamp(14px, 4vw, 32px);
  }

  .contacto-inner {
    grid-template-columns: 1fr;
  }

  /* FAQ */
  .faq { border-radius: 24px; }

  /* Aparta */
  .aparta-copy { padding: clamp(36px, 6vw, 56px) clamp(20px, 5vw, 48px); }
  .aparta-note { font-size: 13px; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px clamp(20px, 6vw, 40px);
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-nav a {
    font-size: 22px;
    padding: 10px 0;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px clamp(20px, 6vw, 40px);
  }

  .footer-credit {
    flex-wrap: wrap;
  }
}

/* ── 680px ── */
@media (max-width: 680px) {
  .asi-card {
    flex: 0 0 100%;
  }
}

/* ── 600px ── */
@media (max-width: 600px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    align-items: center;
  }

  .stat-divider { display: none; }
  .stat { padding-left: 0; }

  .footer {
    border-radius: 40px 40px 0 0;
  }
}

/* ── 580px (promo modal) ── */
@media (max-width: 580px) {
  .pmodal-overlay {
    padding: 48px 0 0;
    align-items: flex-start;
    overflow-y: auto;
  }

  .pmodal-box {
    flex-direction: column;
    width: 100%;
    max-height: none;
    border-radius: 20px 20px 0 0;
    overflow-y: visible;
    overflow-x: hidden;
  }

  .pmodal-img {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow: visible;
  }

  .pmodal-img img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: top center;
  }

  .pmodal-form-side {
    min-width: 0;
    max-width: 100%;
    padding: 32px 24px 28px;
    justify-content: flex-start;
    overflow-y: visible;
  }

  .pmodal-title { font-size: 26px; margin-bottom: 18px; }
  .pmodal-form { gap: 12px; }
  .pmodal-group input { padding: 10px 12px; }
  .pmodal-submit { width: 100%; padding: 14px; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .hero { min-height: 420px; }

  .terrenos { padding: 36px 20px; }

  .nosotros-card { min-height: 380px; }

  .contacto-inner { gap: 10px; }
}

