/* =========================================================
   GARCÍA INVERSIONES INMOBILIARIAS — style.css
   Estructura:
   01. Variables globales
   02. Reset / Base
   03. Tipografía utilitaria
   04. Botones
   05. Grid utilitario
   06. Header Home (transparente)
   07. Menú mobile
   08. Hero
   09. Secciones generales
   10. About
   11. Services
   12. Markets
   13. Why / CTA Band
   14. Contact & Formularios
   15. Properties Page (listado)
   16. Filtros avanzados
   17. Newsletter
   18. Footer
   19. Reveal animation
   20. Ficha de propiedad (consolidado sin duplicados)
   21. Gallery Slider (usado por property-detail.js)
   22. Lightbox
   23. Página de gracias
   24. Header páginas internas (page-header)
   25. Overrides por data-page-type
   26. Responsive global
   27. Responsive data-page-type
   28. Performance / Accesibilidad
   ========================================================= */

/* ─────────────────────────────────────────────────────────
   01. Variables globales
   ───────────────────────────────────────────────────────── */
:root {
  --navy:       #0c2948;
  --deep:       #0a223c;
  --steel:      #325675;
  --muted:      #7793ab;
  --gold:       #cda04f;
  --ivory:      #f4f1eb;
  --white:      #ffffff;
  --text:       #18304a;
  --text-soft:  #5f7285;
  --line:       rgba(50, 86, 117, 0.18);
  --line-light: rgba(255, 255, 255, 0.16);
  --shadow:     0 20px 60px rgba(12, 41, 72, 0.14);
  --container:  1240px;
  --transition: 0.35s ease;
  --menu-width: 420px;
}

/* ─────────────────────────────────────────────────────────
   02. Reset / Base
   ───────────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button, input, textarea, select {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 72px 0;
}

/* ─────────────────────────────────────────────────────────
   03. Tipografía utilitaria
   ───────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 700;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
  color: var(--navy);
  margin-bottom: 18px;
  font-weight: 600;
}

.section-text {
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: 760px;
}

/* ─────────────────────────────────────────────────────────
   04. Botones
   ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(205, 160, 79, 0.24);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--steel);
  transform: translateY(-2px);
}

.btn-light {
  background: rgba(119, 147, 171, 0.12);
  color: var(--navy);
}
.btn-light:hover {
  transform: translateY(-2px);
  background: rgba(119, 147, 171, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ─────────────────────────────────────────────────────────
   05. Grid utilitario
   ───────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 28px;
}

/* ─────────────────────────────────────────────────────────
   06. Header — desktop: [LOGO] [NAV LINKS] [CTA · ☰]
       Mobile: [LOGO] [☰]
   Flex layout. Igual en todas las páginas.
   Home: fijo/transparente → oscurece al scroll.
   Páginas internas: sticky, siempre oscuro.
   ───────────────────────────────────────────────────────── */

/* ── Base: páginas internas (sticky, siempre sólido) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  height: 92px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(7, 22, 40, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.45s ease, box-shadow 0.45s ease;
}

/* ── Home: fijo, transparente al inicio ── */
body[data-page-type="home"] .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}
body[data-page-type="home"] .site-header.is-scrolled {
  background: rgba(7, 22, 40, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

/* ── Logo ── */
.hdr-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.hdr-brand img {
  height: 52px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
  display: block;
}

/* ── Nav — visible en desktop ── */
.hdr-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hdr-nav a {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 13px;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.hdr-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.hdr-nav a.hdr-active {
  color: var(--gold);
}

/* ── CTA pill ── */
.hdr-cta-btn {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.02em;
}
.hdr-cta-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ── Hamburguesa — oculto en desktop ── */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
  z-index: 2100;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.menu-toggle:hover { opacity: 1; }
.menu-icon {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

/* ── Ocultar nav y CTA cuando el menú está abierto ── */
body.menu-open .hdr-nav,
body.menu-open .hdr-cta-btn {
  opacity: 0;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────
   07. Menú mobile
   ───────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 22, 39, 0.54);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mobile-menu.active .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-inner {
  position: relative;
  width: min(var(--menu-width), 86vw);
  max-width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, #123659 0%, var(--navy) 100%);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.22);
  transform: translateX(-100%);
  transition: transform 0.42s ease;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
  overflow: hidden;
}
.mobile-menu.active .mobile-menu-inner {
  transform: translateX(0);
}

.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.mobile-logo {
  display: inline-block;
}
.mobile-logo img {
  width: 230px;
  height: auto;
  object-fit: contain;
}

.menu-close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: var(--transition);
  flex-shrink: 0;
}
.menu-close:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-links {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-light);
  margin-top: 4px;
}
.mobile-links a {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-light);
  transition: var(--transition);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.mobile-links a:hover {
  color: #eef5fb;
  padding-left: 8px;
}

.mobile-menu-cta {
  margin-top: 18px;
  width: 100%;
  min-height: 46px;
  justify-content: center;
  font-size: 0.95rem;
}

/* ─────────────────────────────────────────────────────────
   08. Hero
   ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}

.hero-slides,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slides {
  z-index: 0;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(12, 41, 72, 0.35) 0%, rgba(12, 41, 72, 0.62) 52%, rgba(10, 34, 60, 0.86) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding-top: 92px;
}

.hero-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100svh - 80px);
}

.hero-copy {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.1rem, 6.3vw, 5.75rem);
  line-height: 0.94;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero-line {
  display: block;
}

.accent {
  color: var(--gold);
}

.hero-text {
  max-width: 780px;
  margin: 0 auto 32px;
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ─────────────────────────────────────────────────────────
   09. Secciones generales
   ───────────────────────────────────────────────────────── */
.intro-strip {
  background: #eef1f4;
  border-top: 1px solid rgba(50, 86, 117, 0.08);
  border-bottom: 1px solid rgba(50, 86, 117, 0.08);
}
.intro-strip .container {
  padding: 28px 0;
  text-align: center;
}
.intro-strip p {
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  color: var(--navy);
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────
   10. About
   ───────────────────────────────────────────────────────── */
.about,
.contact {
  background: var(--ivory);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.about-media {
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #e8edf2, #d7e0e8);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy p {
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 1rem;
}

.stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfaf7, #f1ede6);
}
.stat strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat span {
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ─────────────────────────────────────────────────────────
   11. Services
   ───────────────────────────────────────────────────────── */
.services {
  background: linear-gradient(180deg, rgba(119, 147, 171, 0.08), rgba(119, 147, 171, 0.03)), #f7f5f0;
}

.services-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 40px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.market-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fbfaf7;
  box-shadow: 0 12px 40px rgba(12, 41, 72, 0.05);
  transition: var(--transition);
}

.service-card {
  padding: 30px;
}

.service-card:hover,
.market-card:hover,
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(12, 41, 72, 0.1);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: rgba(205, 160, 79, 0.14);
  color: var(--gold);
  font-size: 1.45rem;
  font-weight: 700;
}

.service-card h3,
.market-card h3,
.property-title,
.contact-panel h3 {
  font-family: "Cormorant Garamond", serif;
  color: var(--navy);
  font-weight: 600;
}

.service-card h3 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.service-card p,
.market-card p {
  color: var(--text-soft);
  margin-bottom: 18px;
  font-size: 0.98rem;
}

.service-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.service-card li {
  color: var(--text);
  font-size: 0.95rem;
  padding-left: 18px;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ─────────────────────────────────────────────────────────
   12. Markets
   ───────────────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.markets {
  background: linear-gradient(180deg, #edf1f5, var(--ivory));
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.market-card {
  padding: 28px;
}
.market-card h3 {
  font-size: 1.85rem;
  margin-bottom: 10px;
}

.market-chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(205, 160, 79, 0.14);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────
   13. Why / CTA Band
   ───────────────────────────────────────────────────────── */
.why {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 160, 79, 0.16), transparent 68%);
  top: -110px;
  right: -80px;
  pointer-events: none;
}

.why .section-title,
.why .section-text {
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.why-points {
  display: grid;
  gap: 18px;
}

.why-point {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.why-point h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 600;
}
.why-point p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
}

.cta-band {
  background: linear-gradient(135deg, var(--steel), var(--navy));
  color: var(--white);
  border-radius: 32px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: 0 25px 70px rgba(12, 41, 72, 0.18);
}
.cta-band h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
  margin-bottom: 10px;
  font-weight: 600;
}
.cta-band p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

/* ─────────────────────────────────────────────────────────
   14. Contact & Formularios
   ───────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.contact-right-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
}

.contact-panel {
  background: linear-gradient(180deg, #f7f5ef, #f2eee6);
  box-shadow: 0 10px 30px rgba(12, 41, 72, 0.04);
}
.contact-panel h3 {
  font-size: 2rem;
  margin-bottom: 14px;
}
.contact-panel p {
  color: var(--text-soft);
  margin-bottom: 20px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}
.contact-item strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-item span,
.contact-item a {
  color: var(--navy);
  font-weight: 700;
  word-break: break-word;
}

.contact-form {
  background: #fbfaf7;
  box-shadow: 0 14px 40px rgba(12, 41, 72, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.field input,
.field textarea,
.field select,
.property-contact input,
.newsletter-input {
  width: 100%;
  border: 1px solid rgba(50, 86, 117, 0.18);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.field input,
.field textarea,
.field select {
  border-radius: 16px;
  padding: 14px 16px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.property-contact input:focus,
.newsletter-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(205, 160, 79, 0.14);
}

/* ─────────────────────────────────────────────────────────
   15. Properties Page (listado)
   ───────────────────────────────────────────────────────── */
.hero-properties {
  background: var(--navy);
  color: var(--white);
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-properties::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(205, 160, 79, 0.14) 0%, transparent 60%);
  pointer-events: none;
}
.hero-properties h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.95;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-properties p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.02rem;
}

.properties-page {
  padding: 60px 0 90px;
  background: var(--ivory);
}

.property-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
  justify-content: center;
}

.filter-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--navy);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.property-filter-group {
  margin-bottom: 22px;
}

.filter-label {
  display: block;
  margin-bottom: 12px;
  text-align: center;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.property-filters-country {
  margin-bottom: 6px;
}

.property-filters-operation {
  margin-bottom: 34px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.properties-empty {
  grid-column: 1 / -1;
  padding: 26px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text-soft);
  text-align: center;
}

.property-card {
  border-radius: 24px;
  overflow: hidden;
  background: #fbfaf7;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(12, 41, 72, 0.05);
  transition: var(--transition);
}

.property-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-tag {
  position: absolute;
  left: 18px;
  top: 18px;
  background: rgba(12, 41, 72, 0.9);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 12px;
  border-radius: 999px;
}

.property-body {
  padding: 24px;
}

.property-location {
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 700;
}

.property-title {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
}

.property-price {
  font-size: 1rem;
  color: var(--steel);
  font-weight: 800;
  margin-bottom: 14px;
}

.property-text {
  color: var(--text-soft);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.property-meta span {
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(119, 147, 171, 0.11);
  padding: 8px 12px;
  border-radius: 999px;
}

.property-card-link {
  display: block;
  color: inherit;
}

.property-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 24px;
}

/* ─────────────────────────────────────────────────────────
   16. Filtros avanzados
   ───────────────────────────────────────────────────────── */
.advanced-property-filters {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr auto;
  gap: 14px;
  align-items: end;
  margin: 10px auto 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 34px rgba(12, 41, 72, 0.05);
}

.advanced-field {
  display: grid;
  gap: 8px;
}
.advanced-field label {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.advanced-field input,
.advanced-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 0 16px;
  outline: none;
  transition: var(--transition);
}
.advanced-field input:focus,
.advanced-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(205, 160, 79, 0.12);
}

.clear-filter-btn {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
.clear-filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.properties-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ─────────────────────────────────────────────────────────
   17. Newsletter
   ───────────────────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(180deg, #eef2f6, #e5ecf3);
  padding: 80px 20px 84px;
  text-align: center;
  border-top: 1px solid rgba(50, 86, 117, 0.10);
}

.newsletter-inner {
  max-width: 760px;
  margin: 0 auto;
}

.newsletter-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 600;
}

.newsletter-text {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-input {
  width: min(100%, 420px);
  min-height: 56px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0 18px;
}

.newsletter-btn {
  min-width: 170px;
  min-height: 56px;
  border: none;
  border-radius: 10px;
  background: var(--steel);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
.newsletter-btn:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.newsletter-success {
  display: none;
  margin: 18px auto 0;
  max-width: 620px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(205, 160, 79, 0.12);
  border: 1px solid rgba(205, 160, 79, 0.35);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}
.newsletter-success.show {
  display: block;
  animation: fadeInNewsletter 0.3s ease;
}

@keyframes fadeInNewsletter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────
  18. Footer — rediseño premium
   ───────────────────────────────────────────────────────── */
.footer-premium {
  background: linear-gradient(160deg, #0c2240 0%, #07172a 100%);
  color: var(--white);
  padding: 72px 0 0;
  border-top: 2px solid rgba(205, 160, 79, 0.38);
}

.footer-premium-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1fr;
  gap: 52px;
  align-items: start;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

/* ── Columna marca ── */


.footer-logo-link {
  display: inline-block;
  margin-bottom: 22px;
}
.footer-logo-link img {
  height: 56px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 30px;
  max-width: 290px;
}

.footer-contacts {
  display: grid;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
a.footer-contact-item:hover { color: var(--gold); }

.footer-contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

/* ── Columnas de links ── */

.footer-column-title {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
  margin-bottom: 22px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 13px;
}

.footer-links li,
.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
}
.footer-links a:hover { color: var(--white); }

/* ── Barra inferior ── */
.footer-bottom-bar {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-bar span {
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.82rem;
}
.footer-bottom-bar a {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.04em;
}
.footer-bottom-bar a:hover { color: rgba(255, 255, 255, 0.75); }

/* ─────────────────────────────────────────────────────────
   19. Reveal animation
   ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────────────────────
   20. Ficha de propiedad (CONSOLIDADO — sin duplicados)
   ───────────────────────────────────────────────────────── */
.property-detail-header {
  position: relative;
}

.property-detail-page {
  background: var(--ivory);
}

/* Hero de la ficha */
.property-detail-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 60px;
}

.property-detail-hero-inner {
  max-width: 980px;
}

.property-detail-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
  font-weight: 600;
  color: var(--white);
  max-width: 980px;
}

.property-detail-location {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

/* Clases legacy (no se usan en el JS actual, se mantienen por compatibilidad) */
.property-detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
}
.property-detail-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.property-detail-price {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 14px 22px;
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

/* Contenido de la ficha */
.property-detail-content {
  padding: 56px 0 96px;
  background: var(--ivory);
}

.property-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.property-detail-main {
  display: grid;
  gap: 22px;
}

/* Cards de info */
.property-info-card {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 12px 36px rgba(12, 41, 72, 0.05);
}
.property-info-card h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--navy);
  margin-bottom: 14px;
  font-weight: 600;
}
.property-info-card p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
}

/* Key specs grid */
.property-key-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.property-key-grid div {
  background: rgba(119, 147, 171, 0.12);
  border-radius: 16px;
  padding: 16px;
}
.property-key-grid small {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
  margin-bottom: 6px;
}
.property-key-grid strong {
  color: var(--navy);
  font-size: 0.96rem;
}

/* Amenities */
.property-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.property-amenities span {
  background: rgba(205, 160, 79, 0.14);
  color: var(--navy);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.92rem;
}

/* Video embed */
.property-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}
.property-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Links de acción */
.detail-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sidebar de contacto */
.property-contact-box {
  position: sticky;
  top: 24px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 48px rgba(12, 41, 72, 0.1);
}
.property-contact-box h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 8px;
}
.property-contact-box p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.property-contact-form {
  display: grid;
  gap: 12px;
}
.property-contact-form input,
.property-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(50, 86, 117, 0.18);
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}
.property-contact-form input:focus,
.property-contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(205, 160, 79, 0.12);
}
.property-contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.property-whatsapp-btn {
  width: 100%;
}

/* Mapa */
.property-map {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}
.property-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.property-map-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─────────────────────────────────────────────────────────
   21. Gallery Slider (clases usadas por property-detail.js)
   ───────────────────────────────────────────────────────── */
.property-gallery {
  display: grid;
  gap: 14px;
}

/* Imagen principal legacy (thumbs estáticos — no usados actualmente) */
.property-gallery-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.property-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
}
.property-gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

/* Slider dinámico (renderizado por property-detail.js) */
.gallery-slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #e8edf2;
  box-shadow: 0 18px 48px rgba(12, 41, 72, 0.12);
  user-select: none;
}

.gallery-main-image {
  width: 100%;
  height: clamp(320px, 52vw, 560px);
  object-fit: cover;
  display: block;
  transition: opacity 0.15s ease;
  -webkit-user-drag: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(12, 41, 72, 0.62);
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  line-height: 1;
}
.gallery-arrow:hover {
  background: rgba(12, 41, 72, 0.88);
  border-color: rgba(255, 255, 255, 0.7);
}

.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-counter {
  position: absolute;
  bottom: 16px;
  right: 18px;
  background: rgba(12, 41, 72, 0.75);
  color: #fff;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* ─────────────────────────────────────────────────────────
   22. Lightbox
   ───────────────────────────────────────────────────────── */
body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(5, 16, 28, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.gallery-lightbox.active {
  display: flex;
}
.gallery-lightbox img {
  max-width: min(1100px, 88vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}
.lightbox-close {
  position: absolute;
  top: 26px;
  right: 30px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 2.6rem;
  cursor: pointer;
}
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }
.lightbox-count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────
   23. Página de gracias (FIX: estilos base completos)
   ───────────────────────────────────────────────────────── */
.thank-you-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 80px);
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 60px 20px 80px;
}

.thank-you-content {
  max-width: 780px;
  margin: 0 auto;
}

.thank-you-content h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: 0.95;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--white);
}

.thank-you-content p {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.82);
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────
   24. Header páginas internas — ya unificado con .site-header
   El estado sólido/sticky de páginas internas se controla
   por defecto en la regla base de .site-header (sección 06).
   ───────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────
   25. Overrides por data-page-type
   ───────────────────────────────────────────────────────── */

/* Propiedades: ajuste tipográfico del h1 */
body[data-page-type="property_listing"] .hero-properties h1 {
  font-size: clamp(3rem, 5vw, 5rem);
}

/* Ficha: hero centrado */
body[data-page-type="property_detail"] .property-detail-hero {
  text-align: center;
  padding: 72px 0 78px;
}
body[data-page-type="property_detail"] .property-detail-hero-inner {
  width: min(calc(100% - 40px), 1320px);
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}
body[data-page-type="property_detail"] .property-detail-title {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 16px;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.98;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
}
body[data-page-type="property_detail"] .property-detail-location {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
body[data-page-type="property_detail"] .property-detail-content {
  padding: 48px 0 96px;
}
body[data-page-type="property_detail"] .property-detail-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}
body[data-page-type="property_detail"] .gallery-main-image {
  height: clamp(360px, 52vw, 560px);
}

/* Gracias: fondo azul en todo el body */
body[data-page-type="thank_you"] {
  background: var(--navy);
}

/* ─────────────────────────────────────────────────────────
   26. Responsive global (sin data-page-type)
   ───────────────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .about-grid,
  .why-grid,
  .contact-grid,
  .cta-band,
  .property-detail-layout,
  .property-detail-hero-grid {
    grid-template-columns: 1fr;
  }

  /* Footer: 2 columnas en tablet */
  .footer-premium-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .cards-4,
  .cards-3,
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-head,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .advanced-property-filters {
    grid-template-columns: 1fr 1fr;
  }

  .advanced-field-wide,
  .clear-filter-btn {
    grid-column: 1 / -1;
  }

  .property-contact-box {
    position: static;
  }

  .site-header {
    height: 80px;
    padding: 0 28px;
  }

  /* Ocultar nav; mostrar hamburguesa izquierda */
  .hdr-nav { display: none; }
  .menu-toggle { display: flex; }

  /* Logo se centra entre hamburguesa y CTA */
  .hdr-brand {
    flex: 1;
    justify-content: center;
  }
  .hdr-brand img {
    height: 42px;
    width: auto;
    max-width: 300px;
  }
}

@media (max-width: 760px) {
  .section    { padding: 78px 0; }
  .section-sm { padding: 58px 0; }
  .hero       { min-height: 96svh; }

  .hero-title { font-size: clamp(2.8rem, 12vw, 4.5rem); line-height: 0.95; }
  .hero-text  { max-width: 100%; font-size: 1rem; }

  .cards-4,
  .cards-3,
  .stats,
  .form-grid,
  .properties-grid,
  .detail-spec-grid,
  .advanced-property-filters,
  .property-key-grid {
    grid-template-columns: 1fr;
  }

  .about-media { min-height: 420px; }
  .cta-band    { padding: 32px 24px; grid-template-columns: 1fr; }
  .contact-panel,
  .contact-form { padding: 26px; }

  .intro-strip .container { padding: 24px 0; }

  /* ── Mobile header ── */
  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .hdr-brand img {
    height: 36px;
    width: auto;
    max-width: 52vw;
  }
  .hdr-cta-btn   { font-size: 0.76rem; padding: 0 12px; height: 34px; }
  .menu-icon     { font-size: 1.4rem; }

  .mobile-menu-inner { width: 100%; padding: 24px 20px; }
  .mobile-logo img   { width: 130px; }
  .mobile-links a    { font-size: 1rem; padding: 13px 0; }

  .hero-properties  { padding: 84px 0 54px; }
  .properties-page  { padding: 44px 0 72px; }
  .property-card-actions { padding: 0 20px 22px; }
  .property-detail-hero  { padding: 70px 0 52px; }
  .property-detail-content { padding: 36px 0 70px; }

  .gallery-main-image { height: 300px; }
  .gallery-arrow      { width: 42px; height: 42px; font-size: 1.8rem; }
  .gallery-prev       { left: 10px; }
  .gallery-next       { right: 10px; }

  .newsletter-section   { padding: 54px 20px 58px; }
  .newsletter-form      { flex-direction: column; align-items: center; }
  .newsletter-input,
  .newsletter-btn       { width: 100%; max-width: 100%; }

  .footer-premium       { padding: 52px 0 0; }
  .footer-premium-grid  { grid-template-columns: 1fr; gap: 36px; padding-bottom: 44px; }
  .footer-logo-link img { height: 44px; }
  .footer-tagline       { max-width: 100%; }
  .footer-bottom-bar    { flex-direction: column; align-items: flex-start; gap: 8px; }

  .thank-you-hero { min-height: calc(100svh - 82px); padding: 50px 20px 64px; }
  .thank-you-content h1 { font-size: clamp(2.8rem, 10vw, 3.6rem); }
}

/* ─────────────────────────────────────────────────────────
   27. Responsive con data-page-type
   ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  body[data-page-type="property_detail"] .property-detail-layout {
    grid-template-columns: 1fr;
  }
  body[data-page-type="property_detail"] .property-contact-box {
    position: static;
  }
  body[data-page-type="property_detail"] .property-key-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  body[data-page-type="property_listing"] .hero-properties {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  body[data-page-type="property_detail"] .property-detail-hero {
    padding: 48px 0 52px;
  }
  body[data-page-type="property_detail"] .property-detail-title {
    font-size: clamp(2.5rem, 10vw, 3.6rem);
  }
  body[data-page-type="property_detail"] .gallery-main-image {
    height: 280px;
  }
  body[data-page-type="property_detail"] .property-key-grid {
    grid-template-columns: 1fr;
  }
  body[data-page-type="thank_you"] .thank-you-hero {
    min-height: calc(100svh - 62px);
    padding: 40px 20px 60px;
  }
}

/* ─────────────────────────────────────────────────────────
   28. WhatsApp flotante
   ───────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.38), 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
  display: block;
}
.whatsapp-float::before {
  content: "Escribinos por WhatsApp";
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 22, 40, 0.92);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-float:hover::before {
  opacity: 1;
}

/* ─────────────────────────────────────────────────────────
   29. Propiedades destacadas (home)
   ───────────────────────────────────────────────────────── */
.featured-properties {
  background: linear-gradient(180deg, var(--ivory), #f0ece4);
}

.featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

/* ─────────────────────────────────────────────────────────
   30. Testimonios
   ───────────────────────────────────────────────────────── */
.testimonials {
  background: var(--ivory);
}

.testimonials-head {
  text-align: center;
  margin-bottom: 52px;
}
.testimonials-head .gold-sep {
  margin: 0 auto 22px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(12, 41, 72, 0.05);
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(12, 41, 72, 0.09);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
}
.testimonial-stars span {
  color: var(--gold);
  font-size: 1rem;
}

.testimonial-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--navy);
  flex: 1;
  margin-bottom: 26px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  flex-shrink: 0;
  font-family: "Cormorant Garamond", serif;
}

.testimonial-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.94rem;
  display: block;
}
.testimonial-role {
  color: var(--text-soft);
  font-size: 0.82rem;
  display: block;
  margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────
   31. Trust badges
   ───────────────────────────────────────────────────────── */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(205, 160, 79, 0.09);
  border: 1px solid rgba(205, 160, 79, 0.28);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
}
.trust-icon {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────
   32. Separador dorado
   ───────────────────────────────────────────────────────── */
.gold-sep {
  width: 44px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 22px;
}

/* Responsive nuevas secciones */
@media (max-width: 1120px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .whatsapp-float::before { display: none; }
}

/* ─────────────────────────────────────────────────────────
   33. Performance / Accesibilidad
   ───────────────────────────────────────────────────────── */
.section,
.section-sm,
.properties-page,
.newsletter-section,
.footer-premium {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
