/* ===========================================================
   INVERTEA · Punta Cana
   Identidad real: verde menta #62e2b1 + verde bosque #1f4738
   =========================================================== */

:root {
  --ink:      #0c2a1d;   /* verde muy oscuro (secciones / footer / titulares) */
  --forest:   #1f4738;   /* verde bosque corporativo (botones, marca) */
  --forest-d: #143027;
  --mint:     #62e2b1;   /* verde menta — acento de marca (punto del logo) */
  --mint-soft:#9feccb;
  --mint-txt: #1f8f63;   /* verde menta legible sobre fondo claro */
  --paper:    #fbfcfb;   /* casi blanco */
  --sand:     #eef3ef;   /* tinte verde claro para secciones */
  --line:     #dfe7e1;   /* hairlines */
  --muted:    #586a60;   /* texto secundario */
  --white:    #ffffff;

  --shadow-sm: 0 2px 12px rgba(12,42,29,.06);
  --shadow-md: 0 18px 50px rgba(12,42,29,.16);
  --radius: 14px;
  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --ff-display: "Fraunces", Georgia, serif;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.12; color: var(--ink); }
.eyebrow { font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mint-txt); font-weight: 600; margin-bottom: 14px; }
.eyebrow-light { color: var(--mint); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.01em; }
.section-lead { color: var(--muted); max-width: 640px; margin-top: 16px; font-size: 1.05rem; }
.section-note { color: var(--muted); font-size: .85rem; font-style: italic; margin-top: 28px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-body); font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-d); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; transform: translateY(-2px); }

.link-arrow { font-weight: 600; color: var(--mint-txt); text-decoration: none; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-family: var(--ff-body); }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ===================== HEADER ===================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease); padding: 16px 0; }
.site-header.scrolled { background: var(--ink); box-shadow: 0 6px 24px rgba(12,42,29,.25); padding: 8px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 38px; width: auto; }
.site-header.scrolled .brand-logo { height: 32px; }

.nav { display: flex; gap: 26px; flex-wrap: nowrap; align-items: center; }
.nav a { color: #fff; text-decoration: none; font-size: .92rem; font-weight: 500; position: relative; opacity: .92; transition: opacity .2s; white-space: nowrap; }
.nav-cta-mobile { display: none; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0; background: var(--mint); transition: width .25s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s var(--ease); }

/* ===================== HERO ===================== */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 140px 0 40px; color: #fff; }
.hero-media { position: absolute; inset: 0; background-color: var(--ink); background-size: cover; background-position: center; transform: scale(1.05); }
.hero-overlay { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(12,42,29,.6) 0%, rgba(12,42,29,.32) 40%, rgba(12,42,29,.82) 100%),
  linear-gradient(90deg, rgba(12,42,29,.55), transparent 60%); }
.hero-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.6rem); color: #fff; letter-spacing: -.015em; max-width: 15ch; margin-bottom: 22px; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 580px; color: rgba(255,255,255,.92); }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* Buscador */
.search-bar { position: relative; z-index: 2; margin-top: 48px; background: rgba(251,252,251,.97); backdrop-filter: blur(10px); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 16px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 8px; align-items: end; }
.search-field { display: flex; flex-direction: column; gap: 6px; padding: 6px 12px; border-right: 1px solid var(--line); }
.search-field:nth-child(4) { border-right: 0; }
.search-field label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.search-field select { border: 0; background: transparent; font-family: var(--ff-body); font-size: .95rem; font-weight: 500; color: var(--ink); cursor: pointer; padding: 2px 0; }
.search-field select:focus { outline: none; }
.search-submit { height: 100%; min-height: 52px; }

/* ===================== STATS ===================== */
.stats { background: var(--ink); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; border-right: 1px solid rgba(255,255,255,.12); padding: 0 14px; }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--ff-display); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--mint); font-weight: 600; line-height: 1; }
.stat-label { display: block; margin-top: 10px; font-size: .9rem; color: rgba(255,255,255,.8); }

/* ===================== SECTIONS ===================== */
.section { padding: 96px 0; }
.section-tint { background: var(--sand); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-dark .section-lead, .section-dark p { color: rgba(255,255,255,.84); }
.section-head { max-width: 720px; margin-bottom: 52px; }

/* ---------- Toolbar catálogo ---------- */
.villa-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.result-count { color: var(--muted); font-size: .92rem; font-weight: 500; }
.result-count strong { color: var(--ink); }
.villa-more { text-align: center; margin-top: 44px; }

/* ---------- Fichas ---------- */
.villa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.villa-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; }
.villa-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.villa-media { position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--forest), var(--ink)); background-size: cover; background-position: center; }
.villa-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.villa-badge { background: rgba(12,42,29,.82); color: #fff; backdrop-filter: blur(4px); font-size: .72rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.villa-badge-mint { background: var(--mint); color: var(--ink); }
.villa-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.villa-loc { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mint-txt); font-weight: 600; }
.villa-name { font-size: 1.35rem; margin: 6px 0 14px; }
.villa-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .9rem; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.villa-specs li { position: relative; }
.villa-specs li + li::before { content: ""; position: absolute; left: -9px; top: 50%; width: 3px; height: 3px; background: var(--line); border-radius: 50%; }
.villa-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 18px; gap: 12px; }
.villa-price { display: block; font-family: var(--ff-display); font-size: 1.28rem; font-weight: 600; color: var(--ink); }
.villa-roi { display: block; font-size: .82rem; color: var(--mint-txt); font-weight: 600; }
.villa-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 50px 0; }

/* ---------- Valor ---------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-card { background: var(--white); padding: 38px 34px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.value-num { font-family: var(--ff-display); font-size: 1.1rem; color: var(--mint-txt); font-weight: 600; }
.value-card h3 { font-size: 1.35rem; margin: 12px 0; }
.value-card p { color: var(--muted); }

/* ---------- Comunidades ---------- */
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.community-grid-3 { grid-template-columns: repeat(3, 1fr); }
.community { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--forest), var(--ink)); background-size: cover; background-position: center; display: flex; align-items: flex-end; text-decoration: none; transition: transform .4s var(--ease); }
.community-grid-3 .community { aspect-ratio: 4/3; }
.community:hover { transform: translateY(-5px); }
.community-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(12,42,29,.88)); }
.community-text { position: relative; z-index: 2; padding: 24px; color: #fff; }
.community-text h3 { color: #fff; font-size: 1.4rem; }
.community-text p { font-size: .85rem; color: rgba(255,255,255,.85); margin-top: 4px; }

/* ---------- Proceso ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.process-step { position: relative; padding-top: 18px; border-top: 2px solid var(--mint); }
.process-num { font-family: var(--ff-display); font-size: 2.4rem; font-weight: 600; color: var(--mint); display: block; line-height: 1; margin-bottom: 12px; }
.process-step h3 { font-size: 1.25rem; margin-bottom: 10px; }

/* ---------- Club ---------- */
.club { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--white); }
.club-media { background: linear-gradient(135deg, var(--forest), var(--ink)); background-size: cover; background-position: center; min-height: 380px; }
.club-body { padding: 56px 50px; }
.club-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 18px; }
.club-body p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--forest), var(--ink)); background-size: cover; background-position: center; }
.post-body { padding: 24px; }
.post-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mint-txt); font-weight: 600; }
.post-body h3 { font-size: 1.16rem; margin: 10px 0 16px; line-height: 1.3; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--ff-display); font-size: 1.15rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--mint-txt); font-size: 1.5rem; transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 24px; max-width: 70ch; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-intro p { margin-top: 16px; }
.contact-list { list-style: none; margin-top: 32px; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-list li span:first-child { width: 80px; color: var(--mint); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-list a, .contact-list li span:last-child { color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--mint); }
.contact-form { background: var(--white); padding: 38px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font-family: var(--ff-body); font-size: .95rem; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transition: border .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31,143,99,.16); }
.field textarea { resize: vertical; }
.form-status { margin-top: 14px; font-size: .9rem; color: var(--mint); font-weight: 600; }

/* ===================== FOOTER ===================== */
.site-footer { background: #071a12; color: rgba(255,255,255,.72); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; font-size: .92rem; }
.footer-col h4 { color: #fff; font-family: var(--ff-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.72); text-decoration: none; padding: 5px 0; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; font-size: .82rem; flex-wrap: wrap; }
.footer-legal { color: rgba(255,255,255,.5); }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: var(--ink); flex-direction: column; justify-content: center; align-items: flex-start; padding: 100px 40px 40px; gap: 4px; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,.35); overflow-y: auto; }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.15rem; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a::after { display: none; }
  .nav .nav-cta-mobile { display: inline-flex; align-items: center; justify-content: center; margin-top: 22px; width: 100%; background: var(--mint); color: var(--ink); border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 600; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .villa-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid, .community-grid-3, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .stat:nth-child(2) { border-right: 0; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-field { border-right: 0; }
  .club { grid-template-columns: 1fr; }
  .club-media { min-height: 240px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 620px) {
  .section { padding: 70px 0; }
  .villa-grid, .blog-grid, .value-grid, .community-grid, .community-grid-3, .process-grid { grid-template-columns: 1fr; }
  .search-bar { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-media { transform: none; }
}

/* ===========================================================
   PÁGINA DE DETALLE DE PROPIEDAD
   =========================================================== */
.detail-page { padding-top: 90px; }
.detail-top { background: var(--ink); color: #fff; padding: 40px 0 36px; }
.back-link { color: var(--mint); text-decoration: none; font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; margin-bottom: 22px; }
.back-link:hover { color: #fff; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.detail-loc { color: var(--mint); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin-bottom: 8px; }
.detail-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.detail-badges { display: flex; gap: 8px; margin-top: 14px; }
.detail-badges .villa-badge { position: static; }
.detail-price-box { text-align: right; }
.detail-price { display: block; font-family: var(--ff-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; font-weight: 600; margin-bottom: 14px; }

/* galería */
.gallery { padding: 28px 0 0; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--sand); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .72; transition: opacity .2s, transform .2s; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; transform: translateY(-2px); }
.gallery-more { display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; border-radius: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; aspect-ratio: 4/3; }

/* cuerpo */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 50px; padding: 50px 24px 96px; align-items: start; }
.specs-row { display: flex; flex-wrap: wrap; gap: 14px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.spec-chip { background: var(--sand); border-radius: 12px; padding: 14px 18px; min-width: 110px; }
.spec-chip span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.spec-chip strong { font-family: var(--ff-display); font-size: 1.25rem; color: var(--ink); font-weight: 600; }
.detail-main h2 { font-size: 1.6rem; margin: 8px 0 18px; }
.prose { color: var(--muted); font-size: 1.02rem; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 20px; }
.prose li { margin-bottom: 6px; }
.amenities { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.amenities li { background: var(--sand); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 500; }
.amenities li::before { content: "✓ "; color: var(--mint-txt); font-weight: 700; }
.detail-aside { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 30px; }
.detail-aside h3 { font-size: 1.3rem; margin-bottom: 6px; }
.detail-aside .aside-sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(7,26,18,.95); z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; transition: background .2s; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--mint); color: var(--ink); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; opacity: .85; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-aside { position: static; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 620px) {
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .detail-head { flex-direction: column; align-items: flex-start; }
  .detail-price-box { text-align: left; }
}

/* ---- Enlaces de tarjeta de propiedad ---- */
.villa-card a { text-decoration: none; color: inherit; }
.villa-name a:hover { color: var(--mint-txt); }
.villa-media-wrap { display: block; }

/* ---- Estado del formulario legible en claro y oscuro ---- */
.form-status { color: var(--mint-txt); }
.section-dark .form-status { color: var(--mint); }

/* ---- Lista de contacto dentro del aside claro ---- */
.detail-aside .contact-list { margin-top: 24px; }
.detail-aside .contact-list li { border-top: 1px solid var(--line); }
.detail-aside .contact-list li span:first-child { color: var(--mint-txt); width: 80px; }
.detail-aside .contact-list a { color: var(--ink); }
.detail-aside .contact-list a:hover { color: var(--mint-txt); }
.contact-form-aside .field { margin-bottom: 14px; }

/* ===========================================================
   SELECTOR DE IDIOMA
   =========================================================== */
.lang-switch { display: flex; gap: 1px; background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px; }
.lang-switch button { background: none; border: 0; color: #fff; font: 600 .76rem var(--ff-body); letter-spacing: .03em; padding: 5px 9px; border-radius: 999px; cursor: pointer; opacity: .72; transition: opacity .2s, background .2s, color .2s; }
.lang-switch button:hover { opacity: 1; }
.lang-switch button.active { background: var(--mint); color: var(--ink); opacity: 1; }

/* ===========================================================
   SECCIÓN CONSULTORÍA (QUÉ HACEMOS)
   =========================================================== */
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .section-lead { margin-left: auto; margin-right: auto; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 8px; }
.service-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 32px 26px; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.service-card:hover { transform: translateY(-5px); border-color: var(--mint); }
.service-ico { font-size: 1.9rem; color: var(--mint); display: block; line-height: 1; margin-bottom: 16px; }
.service-card h3 { color: #fff; font-size: 1.22rem; margin-bottom: 10px; }
.service-card p { color: rgba(255,255,255,.82); font-size: .95rem; }
.zones-band { display: flex; align-items: center; justify-content: center; gap: 16px 22px; flex-wrap: wrap; margin-top: 44px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.12); }
.zones-label { color: rgba(255,255,255,.72); font-weight: 600; font-size: .95rem; }
.zones { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.zone-chip { background: var(--mint); color: var(--ink); font-weight: 700; padding: 9px 20px; border-radius: 999px; font-size: .92rem; letter-spacing: .01em; }
.services-cta { text-align: center; margin-top: 40px; }
.services-cta p { color: #fff; font-family: var(--ff-display); font-size: clamp(1.2rem, 2.4vw, 1.5rem); max-width: 660px; margin: 0 auto 24px; line-height: 1.4; }

@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .lang-switch button { padding: 5px 6px; font-size: .7rem; }
  .header-actions > .btn-primary { display: none; }   /* el CTA vive en el menú móvil */
  .header-inner { gap: 12px; }
  .zones-band { flex-direction: column; }
}

/* ===========================================================
   MODAL DE CONFIRMACIÓN DEL FORMULARIO (maquetado)
   =========================================================== */
.cta-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(7,26,18,.72); backdrop-filter: blur(5px); }
.cta-modal.open { display: flex; }
.cta-modal-card { background: #fff; border-radius: 18px; width: 100%; max-width: 430px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: modalIn .4s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
.cta-modal-head { background: linear-gradient(135deg, var(--forest), var(--ink)); padding: 34px 30px 46px; text-align: center; position: relative; }
.cta-modal-logo { height: 34px; width: auto; display: inline-block; }
.cta-modal-check { position: absolute; left: 50%; bottom: -32px; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; background: var(--mint); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(98,226,177,.5); }
.cta-modal-body { padding: 50px 34px 34px; text-align: center; }
.cta-modal-body .eyebrow { margin-bottom: 10px; }
.cta-modal-body h3 { font-size: 1.5rem; margin: 0 0 12px; }
.cta-modal-body > p { color: var(--muted); margin-bottom: 26px; }
.cta-modal-body .btn { min-width: 160px; }

/* ===========================================================
   RESPONSIVE A PRUEBA DE BALAS (logos y menús sin deformar)
   =========================================================== */
.header-inner { flex-wrap: nowrap; }
.brand, .header-actions { flex-shrink: 0; }
/* logos: alto fijo + ancho automático = nunca se deforman */
.brand-logo, .footer-logo, .cta-modal-logo { width: auto; max-width: 100%; object-fit: contain; }
.nav { min-width: 0; }

/* pantallas medianas: tablet */
@media (max-width: 1100px) and (min-width: 621px) {
  .header-actions > .btn-primary { display: inline-flex; }
}
/* móviles muy estrechos */
@media (max-width: 400px) {
  .brand-logo { height: 30px; }
  .lang-switch { gap: 0; padding: 2px; }
  .lang-switch button { padding: 4px 6px; font-size: .66rem; }
  .header-inner { gap: 8px; }
  .container { padding: 0 18px; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
}
@media (max-width: 340px) {
  .brand-logo { height: 26px; }
  .lang-switch button { padding: 3px 4px; font-size: .6rem; }
}
/* pantallas muy grandes: que no se estire en exceso */
@media (min-width: 1700px) {
  :root { --container: 1320px; }
}

/* ===========================================================
   BLOG
   =========================================================== */
.blog-head { padding: 140px 0 64px; }
.post-excerpt { color: var(--muted); font-size: .92rem; margin: 8px 0 14px; line-height: 1.5; }
.section-dark .post-excerpt { color: rgba(255,255,255,.8); }

.blog-article { }
.article-hero { position: relative; min-height: 58vh; display: flex; align-items: flex-end; background: linear-gradient(135deg,var(--forest),var(--ink)); background-size: cover; background-position: center; color: #fff; padding: 130px 0 50px; }
.article-hero-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,42,29,.35) 0%, rgba(12,42,29,.55) 50%, rgba(12,42,29,.9) 100%); }
.article-hero-in { position: relative; z-index: 2; }
.article-hero .back-link { color: var(--mint); margin-bottom: 18px; }
.article-tag { display: inline-block; background: var(--mint); color: var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.article-title { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; max-width: 20ch; margin: 0 0 14px; }
.article-meta { color: rgba(255,255,255,.82); font-size: .9rem; }

.article-body { max-width: 760px; padding-top: 56px; padding-bottom: 16px; }
.article-body.prose h2 { font-family: var(--ff-display); font-size: 1.7rem; margin: 36px 0 14px; color: var(--ink); line-height: 1.2; }
.article-body.prose h3 { font-family: var(--ff-display); font-size: 1.32rem; margin: 26px 0 10px; color: var(--ink); }
.article-body.prose p { margin-bottom: 18px; font-size: 1.06rem; color: #3c4a43; }
.article-body.prose ul { margin: 0 0 18px 22px; }
.article-body.prose li { margin-bottom: 8px; color: #3c4a43; }
.article-body.prose strong { color: var(--ink); font-weight: 600; }

.article-cta { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 46px 40px; text-align: center; max-width: 760px; margin: 36px auto 90px; }
.article-cta h2 { font-size: 1.6rem; margin-bottom: 10px; }
.article-cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 24px; }

@media (max-width: 620px) {
  .blog-head { padding: 120px 0 48px; }
  .article-hero { min-height: 50vh; padding: 110px 0 40px; }
  .article-cta { padding: 34px 24px; }
}

/* crédito de imagen libre (atribución CC) */
.article-credit { max-width: 760px; margin: 10px auto 0; color: var(--muted); font-size: .78rem; font-style: italic; }
.article-credit a { color: var(--mint-txt); text-decoration: none; }
.article-credit a:hover { text-decoration: underline; }
