:root {
  --paper: #fbf8f2;
  --paper-2: #f4eee4;
  --ink: #163b5b;
  --ink-2: #102f49;
  --navy: #153b5b;
  --navy-2: #0f3554;
  --gold: #c9a05c;
  --gold-soft: #ddbd86;
  --muted: #607180;
  --line: rgba(21, 59, 91, 0.12);
  --shadow: 0 22px 54px rgba(16, 47, 73, 0.08);
  --radius: 22px;
  --header-h: 96px;
  --max: 1140px;
  --wide: 1320px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
section[id] { scroll-margin-top: calc(var(--header-h) + 18px); }
.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.wide-container { width: min(calc(100% - 48px), var(--wide)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,248,242,.97);
  border-bottom: 1px solid rgba(201,160,92,.18);
  backdrop-filter: blur(10px);
}
.header-row {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  width: 196px;
  height: auto;
}
.main-nav {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--ink);
}
.main-nav a { position: relative; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }
.header-cta {
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(201,160,92,.2);
}
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) + 18px);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-bg {
  background: url('../assets/hero-estudio-banner-v3.webp') center center / cover no-repeat;
  transform: scale(1.01);
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15,53,84,.82) 0%, rgba(15,53,84,.76) 34%, rgba(15,53,84,.5) 46%, rgba(15,53,84,.12) 66%, rgba(15,53,84,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.12) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - var(--header-h) + 18px);
  display: flex;
  align-items: center;
}
.hero-copy { max-width: 600px; color: #fff; padding: 88px 0; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero h1,
.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.03em;
}
.hero h1 { font-size: clamp(62px, 6vw, 92px); text-shadow: 0 2px 22px rgba(0,0,0,.18); }
.hero-claim {
  margin: 28px 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(29px, 2.5vw, 42px);
  line-height: 1.16;
}
.hero-subtitle {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 23px;
  line-height: 1.5;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-gold,
.button-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.button-ghost {
  background: rgba(255,255,255,.02);
  color: #fff;
  border-color: rgba(255,255,255,.72);
}
.button-ghost:hover { background: rgba(255,255,255,.08); }

.section { padding: 96px 0; }
.section-heading { margin-bottom: 34px; }
.centered { text-align: center; }
.section-heading h2,
.about-copy h2,
.contact-copy h2 { font-size: clamp(44px, 4.2vw, 66px); color: var(--ink); line-height: 1.02; }
.row-heading { display: flex; justify-content: space-between; gap: 22px; align-items: end; }
.muted-link { color: var(--muted); font-size: 14px; }

.services {
  background: linear-gradient(180deg, var(--paper) 0%, #f9f4eb 100%);
  border-top: 1px solid rgba(201,160,92,.18);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
}
.service-card {
  min-height: 188px;
  padding: 34px 26px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  transition: background .25s ease, transform .25s ease;
}
.service-card:last-child { border-right: 0; }
.service-card:hover { background: rgba(255,255,255,.95); transform: translateY(-2px); }
.service-icon {
  color: var(--gold);
  font-size: 32px;
  line-height: 1;
}
.service-card h3,
.why-item h3,
.review-card strong {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 500;
}

.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}
.about-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-image::before {
  content: '';
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(21,59,91,.03), rgba(201,160,92,.05));
  pointer-events: none;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.about-copy p:not(.eyebrow),
.why-item p,
.review-card p,
.contact-copy p:not(.eyebrow) {
  margin: 16px 0 0;
  color: #4c5c69;
  font-size: 18px;
  line-height: 1.7;
}
.why-block {
  margin-top: 82px;
  padding: 66px 56px;
  background: linear-gradient(180deg, #163b5b 0%, #113554 100%);
  color: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.why-block .section-heading h2 { color: #fff; }
.why-block .eyebrow { color: #d8b87c; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.14);
  border-left: 1px solid rgba(255,255,255,.12);
  margin-top: 32px;
}
.why-item {
  padding: 30px 24px;
  border-right: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.why-item h3 { color: #fff; font-size: 24px; }
.why-item p { color: rgba(255,255,255,.8); font-size: 16px; margin-top: 10px; }

.reviews { background: linear-gradient(180deg, #faf6ee 0%, var(--paper) 100%); }
.reviews-carousel {
  position: relative;
  padding: 0 54px;
}
.reviews-viewport { overflow: hidden; }
.reviews-track {
  display: flex;
  gap: 22px;
  transition: transform .75s cubic-bezier(.22,.61,.36,1);
}
.review-card {
  flex: 0 0 calc((100% - 44px) / 3);
  padding: 28px;
  border-radius: 18px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(16,47,73,.04);
}
.stars { color: var(--gold); letter-spacing: .1em; font-size: 18px; }
.review-card strong { display: block; margin-top: 16px; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(16,47,73,.08);
  cursor: pointer;
}
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
}
.contact-details {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row span { color: var(--gold); }
.contact-copy .button { margin-top: 6px; }
.contact-social { margin-top: 18px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(201,160,92,.36);
  color: var(--gold);
}
.social-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}
.map-card {
  justify-self: end;
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(16,47,73,.06);
}
.map-frame { aspect-ratio: 4 / 3; min-height: 240px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-info {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
}
.map-info strong, .map-info span { display: block; }
.map-info span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.map-info a { white-space: nowrap; color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }

.site-footer {
  background: var(--navy-2);
  border-top: 3px solid var(--gold);
  padding: 34px 0;
  color: #fff;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.footer-brand {
  background: var(--paper);
  padding: 10px 14px;
}
.footer-brand img { width: 210px; mix-blend-mode: multiply; }
.site-footer p { margin: 0; color: rgba(255,255,255,.74); font-size: 12px; letter-spacing: .03em; }

.mobile-wa-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 120;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  box-shadow: 0 14px 34px rgba(16,47,73,.24);
  font-size: 13px;
  font-weight: 700;
}
.fab-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.18);
  font-size: 14px;
  line-height: 1;
}
.fab-text { white-space: nowrap; }

:focus-visible { outline: 3px solid rgba(201,160,92,.35); outline-offset: 3px; }

.motion-ready .reveal {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 1.04s;
  transition-timing-function: cubic-bezier(.2,.72,.2,1);
}
.motion-ready .reveal-up { transform: translateY(22px); }
.motion-ready .reveal-left { transform: translateX(-24px); }
.motion-ready .reveal-right { transform: translateX(24px); }
.motion-ready .reveal-scale { transform: translateY(14px) scale(.985); }
.motion-ready .reveal-hero { transform: translateY(18px); transition-duration: .98s; }
.motion-ready .reveal.is-visible { opacity: 1; transform: translate(0,0) scale(1); }
.motion-ready .slow-1 { transition-delay: .08s; }
.motion-ready .slow-2 { transition-delay: .20s; }
.motion-ready .slow-3 { transition-delay: .32s; }
.motion-ready .slow-4 { transition-delay: .44s; }
.motion-ready .slow-5 { transition-delay: .56s; }

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card:nth-child(3) { border-right: 0; }
  .service-card:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 980px) {
  :root { --header-h: 82px; }
  .wide-container, .container { width: min(calc(100% - 32px), var(--wide)); }
  .brand img { width: 182px; }
  .header-row { grid-template-columns: auto auto; justify-content: space-between; }
  .menu-toggle { display: inline-block; }
  .main-nav,
  .header-cta { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: calc(var(--header-h) - 1px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(251,248,242,.99);
    border-top: 1px solid rgba(201,160,92,.18);
    border-bottom: 1px solid rgba(201,160,92,.18);
    padding: 10px 16px 18px;
  }
  .main-nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero,
  .hero-inner { min-height: 560px; }
  .hero-bg { background-position: 66% center; }
  .hero-copy { max-width: 540px; padding: 64px 0 58px; }
  .hero h1 { font-size: clamp(50px, 10vw, 74px); }
  .hero-subtitle { font-size: 18px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { border-top: 1px solid var(--line); }
  .service-card:nth-child(odd) { border-right: 1px solid var(--line); }
  .service-card:nth-child(even) { border-right: 0; }
  .about-grid,
  .contact-grid,
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: 0; }
  .review-card { flex-basis: calc((100% - 22px) / 2); }
  .map-card { justify-self: stretch; width: min(100%, 380px); }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .mobile-wa-fab { display: inline-flex; }
}
@media (max-width: 620px) {
  :root { --header-h: 78px; }
  .brand img { width: 166px; }
  .hero,
  .hero-inner { min-height: 540px; }
  .hero-bg { background-position: 70% center; }
  .hero-copy { padding: 50px 0 40px; }
  .hero h1 { font-size: clamp(40px, 13vw, 56px); }
  .hero-claim { font-size: 25px; margin-top: 22px; }
  .hero-subtitle { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .section { padding: 74px 0; }
  .section-heading h2,
  .about-copy h2,
  .contact-copy h2 { font-size: clamp(38px, 10vw, 52px); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: 0 !important; }
  .why-block { margin-top: 58px; padding: 46px 24px; }
  .reviews-carousel { padding: 0 38px; }
  .review-card { flex-basis: 100%; }
  .row-heading { flex-direction: column; align-items: flex-start; }
  .contact-row { grid-template-columns: 1fr; gap: 6px; }
  .map-info { flex-direction: column; align-items: flex-start; }
  .map-card { width: 100%; }
}
@media (max-width: 380px) {
  .fab-text { display: none; }
  .mobile-wa-fab {
    width: 48px;
    justify-content: center;
    padding: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ===== V23 refinements ===== */

/* Header: ocupar todo el ancho útil, con logo bien a la izquierda y CTA bien a la derecha */
.site-header .wide-container {
  width: calc(100% - 28px);
  max-width: none;
  margin-inline: 14px;
}
.header-row {
  min-height: 100px;
  grid-template-columns: auto 1fr auto;
}
.brand img {
  width: 238px;
}
.main-nav {
  justify-content: flex-end;
  gap: 25px;
}
.header-cta {
  margin-left: 8px;
}

/* Mantener el hero actual; sumar apenas altura total para que Servicios quede fuera de la primera vista */
.hero,
.hero-inner {
  min-height: calc(100svh - var(--header-h) + 44px);
}

/* CTA entre Servicios y Quiénes somos */
.between-cta-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 24px 34px;
  background: linear-gradient(180deg, #f9f4eb 0%, var(--paper) 100%);
}
.between-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Nueva foto de Quiénes somos */
.about-image img {
  object-position: center center;
}

/* Instagram en colores reales/aproximados */
.instagram-color-placeholder {
  border: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  background: transparent;
}
.instagram-color-placeholder img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 11px;
}

/* Animaciones más pausadas y con algo de variedad, manteniendo sobriedad */
.motion-ready .services .reveal {
  transition-duration: 1.10s;
}
.motion-ready .about-image.reveal {
  transition-duration: 1.18s;
}
.motion-ready .about-copy.reveal {
  transition-duration: 1.08s;
}
.motion-ready .why-block.reveal,
.motion-ready .reviews .reveal,
.motion-ready .contact .reveal {
  transition-duration: 1.12s;
}
.motion-ready .service-card:nth-child(odd) {
  transform-origin: center bottom;
}
.motion-ready .service-card:nth-child(even) {
  transform-origin: center center;
}

/* Mobile: logo más grande y mejor aprovechamiento del header */
@media (max-width: 980px) {
  .site-header .wide-container {
    width: calc(100% - 18px);
    margin-inline: 9px;
  }
  .header-row {
    min-height: 84px;
  }
  .brand img {
    width: 198px;
  }
  .between-cta-wrap {
    padding: 22px 18px 28px;
  }
}

@media (max-width: 620px) {
  .site-header .wide-container {
    width: calc(100% - 14px);
    margin-inline: 7px;
  }
  .header-row {
    min-height: 80px;
  }
  .brand img {
    width: 182px;
  }
  .between-cta-wrap .header-cta {
    padding: 12px 18px;
    font-size: 13px;
  }
}


/* ===== V24: header + opiniones provisorias ===== */

/* Logo realmente centrado dentro del header */
.site-header .header-row {
  align-items: center;
}
.brand {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}
.brand img {
  width: 248px;
  max-height: 66px;
  object-fit: contain;
  object-position: left center;
}

/* Opiniones provisorias */
.demo-review-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  letter-spacing: .04em;
}

.review-card p {
  min-height: 86px;
}

/* Mobile: mantener logo grande pero prolijo */
@media (max-width: 980px) {
  .brand img {
    width: 214px;
    max-height: 58px;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 196px;
    max-height: 54px;
  }
}


/* ===== V25 refinements ===== */

/* Nuevo asset de logo: recorte más ajustado para que llene bien el header */
.brand img {
  width: 258px;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
}

/* Redes sociales */
.contact-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-color-icon {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
}
.social-color-icon img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 10px;
}

/* WhatsApp flotante: no aparece en la primera pantalla.
   JS agrega .is-visible después de iniciar el scroll. */
.mobile-wa-fab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(.97);
  transition:
    opacity .36s ease,
    transform .36s cubic-bezier(.22,.7,.25,1),
    visibility .36s ease;
}
.mobile-wa-fab.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Animaciones interiores todavía un poco más respiradas */
.motion-ready .services .reveal,
.motion-ready .about .reveal,
.motion-ready .why-block.reveal,
.motion-ready .reviews .reveal,
.motion-ready .contact .reveal {
  transition-duration: 1.14s;
}

@media (max-width: 980px) {
  .brand img {
    width: 220px;
    max-height: 62px;
  }
}
@media (max-width: 620px) {
  .brand img {
    width: 202px;
    max-height: 58px;
  }
}


/* ===== V26: variante de header centrado ===== */
.site-header .wide-container {
  width: min(calc(100% - 48px), var(--wide));
  max-width: var(--wide);
  margin-inline: auto;
}

.site-header .header-row {
  min-height: 100px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  align-self: center;
  height: auto;
}

.brand img {
  width: 258px;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  justify-content: flex-end;
  gap: 25px;
}

.header-cta {
  margin-left: 8px;
}

@media (max-width: 980px) {
  .site-header .wide-container {
    width: min(calc(100% - 32px), var(--wide));
    margin-inline: auto;
  }

  .site-header .header-row {
    min-height: 84px;
  }

  .brand img {
    width: 220px;
    max-height: 62px;
  }
}

@media (max-width: 620px) {
  .site-header .wide-container {
    width: calc(100% - 24px);
    margin-inline: auto;
  }

  .site-header .header-row {
    min-height: 80px;
  }

  .brand img {
    width: 202px;
    max-height: 58px;
  }
}


/* ===== V27: Áreas de práctica + asesoría inmobiliaria + hero V16 ===== */

/* Hero: volver a la estética fotográfica de V16, de lado a lado */
.hero-bg {
  background: url('../assets/hero-estudio-v16.webp') center center / cover no-repeat !important;
  transform: none !important;
}
.hero-overlay {
  background:
    linear-gradient(90deg,
      rgba(14,30,45,.78) 0%,
      rgba(14,30,45,.62) 28%,
      rgba(14,30,45,.30) 48%,
      rgba(14,30,45,.14) 65%,
      rgba(14,30,45,.08) 100%),
    linear-gradient(180deg, rgba(10,20,32,.14) 0%, rgba(10,20,32,.24) 100%) !important;
}

/* Áreas de práctica */
.practice-areas {
  background: linear-gradient(180deg, var(--paper) 0%, #f8f3ea 100%);
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.practice-card {
  position: relative;
  min-height: 255px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  cursor: default;
  transition:
    transform .35s cubic-bezier(.22,.7,.25,1),
    box-shadow .35s ease,
    background .35s ease,
    border-color .35s ease;
}
.practice-card-inner {
  position: absolute;
  inset: 0;
  padding: 32px 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.practice-icon {
  position: absolute;
  top: 28px;
  left: 25px;
  color: var(--gold);
  font-size: 30px;
}
.practice-card h3 {
  margin: 0;
  font: 500 23px/1.15 Georgia, 'Times New Roman', serif;
  color: var(--ink);
  transition: transform .35s ease;
}
.practice-card p {
  margin: 14px 0 0;
  color: #566775;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0;
  max-height: 0;
  transform: translateY(10px);
  transition:
    opacity .3s ease,
    transform .35s ease,
    max-height .35s ease;
}
.practice-card::after {
  content: '';
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(.32);
  transform-origin: left;
  transition: transform .35s ease;
}
.practice-card:hover,
.practice-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(16,47,73,.10);
  background: #fff;
  border-color: rgba(201,160,92,.32);
}
.practice-card:hover p,
.practice-card:focus-visible p {
  opacity: 1;
  max-height: 140px;
  transform: translateY(0);
}
.practice-card:hover::after,
.practice-card:focus-visible::after {
  transform: scaleX(1);
}

/* Asesoría inmobiliaria en home */
.real-estate-home {
  background: var(--navy-2);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.04);
}
.real-estate-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 62px;
  align-items: center;
}
.real-estate-copy h2 {
  margin: 0;
  color: #fff;
  font: 500 clamp(42px, 4vw, 62px)/1.02 Georgia, 'Times New Roman', serif;
  letter-spacing: -.03em;
}
.real-estate-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.7;
}
.real-estate-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.real-estate-whatsapp {
  color: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(221,189,134,.7);
  padding-bottom: 4px;
  font-size: 14px;
}

.property-carousel {
  position: relative;
}
.property-viewport {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(0,0,0,.18);
}
.property-track {
  display: flex;
  transition: transform .72s cubic-bezier(.22,.61,.36,1);
}
.property-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
}
.property-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.property-slide figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,53,84,.78);
  backdrop-filter: blur(7px);
  color: #fff;
  font-size: 12px;
}
.property-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.property-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.property-dot.is-active {
  width: 24px;
  background: var(--gold);
}

/* Página inmobiliaria inicial */
.realestate-page-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: url('../assets/propiedad-01.webp') center center / cover no-repeat;
}
.realestate-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,53,84,.82), rgba(15,53,84,.40) 52%, rgba(15,53,84,.10));
}
.realestate-page-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 96px 0 72px;
  color: #fff;
}
.realestate-page-hero h1 {
  margin: 0;
  font: 500 clamp(52px, 6vw, 86px)/.98 Georgia, 'Times New Roman', serif;
  letter-spacing: -.04em;
}
.realestate-page-hero p:not(.eyebrow) {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
}
.realestate-intro {
  background: var(--paper);
}
.realestate-intro-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 54px;
  align-items: start;
}
.realestate-intro h2 {
  margin: 0;
  font: 500 clamp(40px, 4vw, 60px)/1.05 Georgia, 'Times New Roman', serif;
}
.realestate-intro p {
  margin: 0;
  color: #566775;
  font-size: 17px;
  line-height: 1.75;
}
.realestate-preview-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.realestate-preview-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.realestate-preview-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.realestate-preview-card div {
  padding: 18px;
}
.realestate-preview-card h3 {
  margin: 0;
  font: 500 22px/1.2 Georgia, 'Times New Roman', serif;
}
.realestate-preview-card p {
  margin-top: 8px;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .practice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-bg {
    background-position: 62% center !important;
  }
  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .practice-card p {
    opacity: 1;
    max-height: 180px;
    transform: none;
  }
  .practice-card {
    min-height: 245px;
  }
  .real-estate-grid,
  .realestate-intro-grid {
    grid-template-columns: 1fr;
  }
  .realestate-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .practice-grid {
    grid-template-columns: 1fr;
  }
  .practice-card {
    min-height: 220px;
  }
  .real-estate-home {
    padding-top: 78px;
    padding-bottom: 78px;
  }
  .real-estate-copy h2 {
    font-size: 40px;
  }
  .real-estate-actions {
    align-items: stretch;
  }
  .real-estate-actions .button {
    width: 100%;
  }
}


/* ===== V28: áreas de práctica, quinto bloque y contacto oscuro ===== */

/* Reemplaza los pictogramas rústicos por íconos vectoriales consistentes */
.practice-symbol {
  position: absolute;
  top: 24px;
  left: 25px;
  width: 50px;
  height: 50px;
  color: var(--ink);
  opacity: .88;
  transition: color .3s ease, transform .35s ease;
}
.practice-symbol svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.practice-card:hover .practice-symbol,
.practice-card:focus-visible .practice-symbol {
  color: var(--gold);
  transform: translateY(-2px);
}
.practice-toggle {
  display: none;
}

/* 8 áreas: grilla más equilibrada */
.practice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.practice-card {
  min-height: 270px;
}
.practice-card-inner {
  padding-top: 88px;
}

/* 5 bloques de Por qué elegirnos */
.why-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.why-item h3 {
  font-size: 21px;
}

/* Contacto con fondo oscuro para destacar el mapa */
.contact {
  background: #0b2b43;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.04);
}
.contact .eyebrow {
  color: var(--gold-soft);
}
.contact .contact-copy h2 {
  color: #fff;
}
.contact .contact-details {
  border-top-color: rgba(255,255,255,.16);
}
.contact .contact-row {
  border-bottom-color: rgba(255,255,255,.14);
}
.contact .contact-row span {
  color: var(--gold-soft);
}
.contact .contact-row strong,
.contact .contact-row a {
  color: rgba(255,255,255,.94);
}
.contact .contact-row strong {
  font-weight: 600;
}
.contact .map-card {
  box-shadow: 0 20px 42px rgba(0,0,0,.20);
}
.contact .social-color-icon {
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* Mobile: tarjetas cerradas y desplegables al tocar */
@media (max-width: 980px) {
  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-card {
    min-height: 150px;
    cursor: pointer;
  }

  .practice-card-inner {
    position: relative;
    inset: auto;
    min-height: 150px;
    padding: 24px 62px 24px 84px;
    justify-content: center;
  }

  .practice-symbol {
    top: 50%;
    left: 22px;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
  }

  .practice-card:hover .practice-symbol,
  .practice-card:focus-visible .practice-symbol {
    transform: translateY(-50%);
  }

  .practice-card h3 {
    font-size: 21px;
  }

  .practice-card p {
    opacity: 0 !important;
    max-height: 0 !important;
    margin-top: 0;
    overflow: hidden;
    transform: translateY(-4px) !important;
    transition:
      opacity .28s ease,
      max-height .36s ease,
      margin-top .28s ease,
      transform .32s ease;
  }

  .practice-card.is-open {
    background: #fff;
    border-color: rgba(201,160,92,.34);
    box-shadow: 0 14px 28px rgba(16,47,73,.08);
  }

  .practice-card.is-open .practice-card-inner {
    justify-content: flex-start;
  }

  .practice-card.is-open .practice-symbol {
    top: 27px;
    transform: none;
    color: var(--gold);
  }

  .practice-card.is-open p {
    opacity: 1 !important;
    max-height: 280px !important;
    margin-top: 12px;
    transform: translateY(0) !important;
  }

  .practice-toggle {
    position: absolute;
    right: 22px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border: 1px solid rgba(21,59,91,.18);
    border-radius: 999px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    transition: transform .3s ease, color .3s ease, border-color .3s ease;
  }

  .practice-card.is-open .practice-toggle {
    top: 25px;
    transform: rotate(45deg);
    color: var(--gold);
    border-color: rgba(201,160,92,.45);
  }

  .practice-card::after {
    left: 22px;
    right: 22px;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .practice-grid {
    grid-template-columns: 1fr;
  }

  .practice-card {
    min-height: 138px;
  }

  .practice-card-inner {
    min-height: 138px;
    padding: 22px 58px 22px 78px;
  }

  .practice-symbol {
    left: 20px;
    width: 40px;
    height: 40px;
  }

  .practice-toggle {
    right: 18px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    padding-top: 78px;
    padding-bottom: 78px;
  }
}


/* ===== V30: Asesoría Inmobiliaria pública ===== */
.realestate-page-hero{min-height:610px;background-image:url('../assets/propiedad-01.webp');background-position:center 44%}
.realestate-page-hero::after{background:linear-gradient(90deg,rgba(12,37,58,.84) 0%,rgba(12,37,58,.70) 36%,rgba(12,37,58,.30) 62%,rgba(12,37,58,.10) 100%),linear-gradient(180deg,rgba(0,0,0,.06),rgba(0,0,0,.14))}
.realestate-page-hero-copy{max-width:760px;padding:112px 0 82px}
.realestate-page-hero-copy>p:not(.eyebrow){max-width:650px}
.realestate-page-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:28px}

.realestate-public-intro{background:var(--paper)}
.realestate-public-intro-grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:70px;align-items:start}
.realestate-public-intro h2{margin:0;font:500 clamp(42px,4.3vw,66px)/1.03 Georgia,'Times New Roman',serif;letter-spacing:-.035em}
.realestate-public-copy p{margin:0 0 18px;color:#536572;font-size:18px;line-height:1.75}
.realestate-trust-strip{margin-top:54px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.realestate-trust-strip div{padding:24px 26px;border-right:1px solid var(--line)}
.realestate-trust-strip div:last-child{border-right:0}
.realestate-trust-strip strong,.realestate-trust-strip span{display:block}
.realestate-trust-strip strong{font:500 21px/1.2 Georgia,'Times New Roman',serif;color:var(--ink)}
.realestate-trust-strip span{margin-top:6px;color:var(--muted);font-size:14px;line-height:1.5}

.property-listings{background:linear-gradient(180deg,#f8f3ea 0%,var(--paper) 100%)}
.property-listings .section-heading{max-width:760px;margin-left:auto;margin-right:auto;margin-bottom:70px}
.property-listings-intro{margin:18px auto 0;max-width:650px;color:var(--muted);font-size:16px;line-height:1.65}
.property-showcase{display:grid;grid-template-columns:1.05fr .95fr;gap:66px;align-items:center;margin-bottom:110px}
.property-showcase:last-child{margin-bottom:0}
.property-showcase-right .property-showcase-media{order:2}
.property-showcase-right .property-showcase-copy{order:1}
.property-showcase-media{overflow:hidden;border-radius:22px;box-shadow:0 24px 56px rgba(16,47,73,.10)}
.property-showcase-media img{width:100%;aspect-ratio:16/10;object-fit:cover;transition:transform .75s cubic-bezier(.22,.61,.36,1)}
.property-showcase:hover .property-showcase-media img{transform:scale(1.025)}
.property-showcase-copy{max-width:520px}
.property-label{display:inline-block;margin-bottom:12px;color:var(--gold);font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase}
.property-showcase-copy h3{margin:0;font:500 clamp(34px,3vw,48px)/1.05 Georgia,'Times New Roman',serif;color:var(--ink);letter-spacing:-.025em}
.property-location{margin:13px 0 18px;color:var(--gold);font-size:14px;font-weight:700}
.property-showcase-copy>p:not(.property-location){margin:0;color:#566775;font-size:16px;line-height:1.7}
.property-features{display:flex;flex-wrap:wrap;gap:9px;list-style:none;padding:0;margin:24px 0 26px}
.property-features li{padding:8px 11px;border:1px solid rgba(21,59,91,.14);border-radius:999px;color:var(--ink);background:rgba(255,255,255,.65);font-size:12px}
.property-interest{display:inline-flex;align-items:center;gap:8px;padding-bottom:4px;color:var(--ink);border-bottom:1px solid var(--gold);font-weight:700;font-size:14px}

.realestate-closing-cta{padding:74px 0;background:var(--navy-2);color:#fff}
.realestate-closing-inner{display:flex;align-items:center;justify-content:space-between;gap:36px}
.realestate-closing-inner h2{margin:0;max-width:720px;font:500 clamp(38px,4vw,58px)/1.02 Georgia,'Times New Roman',serif}
.realestate-closing-inner .eyebrow{color:var(--gold-soft)}

@media(max-width:980px){
  .realestate-page-hero{min-height:560px;background-position:62% center}
  .realestate-public-intro-grid,.property-showcase{grid-template-columns:1fr}
  .property-showcase{gap:32px;margin-bottom:78px}
  .property-showcase-right .property-showcase-media,.property-showcase-right .property-showcase-copy{order:initial}
  .property-showcase-copy{max-width:none}
  .realestate-trust-strip{grid-template-columns:1fr}
  .realestate-trust-strip div{border-right:0;border-bottom:1px solid var(--line)}
  .realestate-trust-strip div:last-child{border-bottom:0}
  .realestate-closing-inner{flex-direction:column;align-items:flex-start}
}
@media(max-width:620px){
  .realestate-page-hero{min-height:520px}
  .realestate-page-hero-copy{padding:76px 0 52px}
  .realestate-page-actions{flex-direction:column}
  .realestate-page-actions .button{width:100%}
  .property-listings .section-heading{margin-bottom:52px}
  .property-showcase{margin-bottom:64px}
  .property-showcase-media{border-radius:16px}
}

/* ===== V36: consolidación visual y terminación ===== */

/* Ilustraciones de Áreas de práctica */
.practice-illustration {
  width: 82px;
  height: 82px;
  top: 20px;
  left: 24px;
  opacity: 1;
  color: initial;
}
.practice-illustration img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: none;
  transform: scale(1);
}

/* Footer definitivo */
.footer-brand {
  background: transparent !important;
  padding: 0 !important;
}
.footer-brand img {
  width: 248px;
  max-width: 100%;
  height: auto;
  mix-blend-mode: normal !important;
  object-fit: contain;
}

/* Proporciones protegidas */
.property-slide img,
.property-showcase-media img,
.about-image img {
  height: auto;
}
.property-slide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.property-showcase-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Contacto */
.contact-row > span { min-width: 0; }
.contact-row strong a { text-underline-offset: 3px; }

/* Microinteracciones coherentes */
.button,
.header-cta,
.real-estate-whatsapp,
.property-interest,
.carousel-btn {
  transition:
    transform .42s cubic-bezier(.22,.61,.36,1),
    box-shadow .42s ease,
    opacity .36s ease,
    background-color .36s ease,
    border-color .36s ease;
}
.button:hover,
.button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
}
.real-estate-whatsapp:hover,
.real-estate-whatsapp:focus-visible,
.property-interest:hover,
.property-interest:focus-visible {
  transform: translateX(2px);
}

/* El carrusel mantiene movimiento, pero con un zoom apenas perceptible */
.property-slide img {
  transform: scale(1);
  transition: transform 1.55s cubic-bezier(.22,.61,.36,1);
}
.property-slide.is-active img {
  transform: scale(1.018);
}
.property-track {
  transition: transform .88s cubic-bezier(.22,.61,.36,1);
}

/* Página inmobiliaria: ritmo y hover algo más suaves */
.property-showcase-media img {
  transition: transform 1.05s cubic-bezier(.22,.61,.36,1);
}
.property-showcase:hover .property-showcase-media img {
  transform: scale(1.018);
}
.property-showcase {
  padding-bottom: 10px;
}

/* Las apariciones generales quedan sobrias y consistentes */
.motion-ready .reveal {
  transition-duration: 1.08s;
  transition-timing-function: cubic-bezier(.2,.72,.2,1);
}

/* Desktop: áreas de práctica */
@media (min-width: 981px) {
  .practice-card {
    min-height: 285px;
    transition:
      transform .78s cubic-bezier(.22,.61,.36,1),
      box-shadow .72s ease,
      background .68s ease,
      border-color .68s ease;
  }

  .practice-card-inner {
    padding: 30px 25px 28px;
    justify-content: flex-end;
  }

  .practice-card:hover,
  .practice-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(16,47,73,.075);
  }

  .practice-illustration {
    top: 30px;
    left: 50%;
    width: 138px;
    height: 138px;
    transform: translateX(-50%);
    transition:
      top .88s cubic-bezier(.22,.61,.36,1),
      left .88s cubic-bezier(.22,.61,.36,1),
      width .88s cubic-bezier(.22,.61,.36,1),
      height .88s cubic-bezier(.22,.61,.36,1),
      transform .88s cubic-bezier(.22,.61,.36,1);
  }

  .practice-illustration img {
    transition:
      transform .82s cubic-bezier(.22,.61,.36,1),
      filter .68s ease;
  }

  .practice-card h3 {
    transition:
      transform .82s cubic-bezier(.22,.61,.36,1),
      color .62s ease;
  }

  .practice-card p {
    transition:
      opacity .64s ease .10s,
      transform .82s cubic-bezier(.22,.61,.36,1),
      max-height .82s cubic-bezier(.22,.61,.36,1),
      margin .72s ease;
  }

  /* Poco texto: imagen todavía protagonista + bloque mejor centrado */
  .practice-card.density-short {
    --practice-hover-size: 112px;
    --practice-hover-top: 27px;
    --practice-hover-left: 24px;
  }
  .practice-card.density-short:hover h3,
  .practice-card.density-short:focus-visible h3,
  .practice-card.density-short:hover p,
  .practice-card.density-short:focus-visible p {
    transform: translateY(-27px);
  }
  .practice-card.density-short:hover p,
  .practice-card.density-short:focus-visible p {
    max-height: 96px;
  }

  /* Texto medio */
  .practice-card.density-medium {
    --practice-hover-size: 96px;
    --practice-hover-top: 23px;
    --practice-hover-left: 24px;
  }
  .practice-card.density-medium:hover h3,
  .practice-card.density-medium:focus-visible h3,
  .practice-card.density-medium:hover p,
  .practice-card.density-medium:focus-visible p {
    transform: translateY(-14px);
  }
  .practice-card.density-medium:hover p,
  .practice-card.density-medium:focus-visible p {
    max-height: 122px;
  }

  /* Texto largo */
  .practice-card.density-long {
    --practice-hover-size: 82px;
    --practice-hover-top: 20px;
    --practice-hover-left: 24px;
  }
  .practice-card.density-long:hover h3,
  .practice-card.density-long:focus-visible h3,
  .practice-card.density-long:hover p,
  .practice-card.density-long:focus-visible p {
    transform: translateY(-2px);
  }
  .practice-card.density-long:hover p,
  .practice-card.density-long:focus-visible p {
    max-height: 160px;
  }

  .practice-card:hover .practice-illustration,
  .practice-card:focus-visible .practice-illustration {
    top: var(--practice-hover-top);
    left: var(--practice-hover-left);
    width: var(--practice-hover-size);
    height: var(--practice-hover-size);
    transform: translateX(0);
  }
}

/* Mobile: acordeón suave y sin cambios estructurales */
@media (max-width: 980px) {
  .practice-card { overflow: hidden; }

  .practice-illustration {
    top: 50%;
    left: 18px;
    width: 54px;
    height: 54px;
    transform: translateY(-50%);
  }

  .practice-card:hover .practice-illustration,
  .practice-card:focus-visible .practice-illustration {
    transform: translateY(-50%);
  }

  .practice-card.is-open .practice-illustration,
  .practice-card.is-open:hover .practice-illustration,
  .practice-card.is-open:focus-visible .practice-illustration {
    top: 21px;
    transform: translateY(0);
  }

  .practice-illustration img {
    transition:
      transform .54s cubic-bezier(.22,.61,.36,1),
      opacity .42s ease;
  }

  .practice-card.is-open .practice-illustration img {
    transform: scale(.94);
  }

  .practice-card h3 {
    transition:
      transform .52s cubic-bezier(.22,.61,.36,1),
      color .42s ease;
  }

  .practice-card.is-open h3 {
    transform: translateY(2px);
  }

  .practice-card p {
    opacity: 0 !important;
    max-height: 0 !important;
    margin-top: 0 !important;
    overflow: hidden;
    transform: translateY(8px) !important;
    filter: blur(1.2px);
    will-change: opacity, transform, max-height;
    transition:
      opacity .48s ease,
      max-height .58s cubic-bezier(.22,.61,.36,1),
      margin-top .46s ease,
      transform .52s cubic-bezier(.22,.61,.36,1),
      filter .42s ease !important;
  }

  .practice-card.is-open p {
    opacity: 1 !important;
    max-height: 320px !important;
    margin-top: 13px !important;
    transform: translateY(0) !important;
    filter: blur(0);
  }

  .practice-card.is-open {
    transition:
      min-height .56s cubic-bezier(.22,.61,.36,1),
      box-shadow .48s ease,
      background .48s ease,
      border-color .48s ease;
  }
}

@media (max-width: 620px) {
  .practice-illustration {
    width: 50px;
    height: 50px;
  }
  .footer-brand img { width: 224px; }
}

/* Transición moderna entre Home y Asesoría Inmobiliaria.
   Más pausada y discreta: predomina el fundido, con movimiento mínimo. */
@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: rv-header;
}

main {
  view-transition-name: rv-main;
}

::view-transition-old(rv-main) {
  animation: rv-page-out .56s cubic-bezier(.4,0,.2,1) both;
}

::view-transition-new(rv-main) {
  animation: rv-page-in .86s cubic-bezier(.22,.61,.36,1) both;
}

::view-transition-old(rv-header),
::view-transition-new(rv-header) {
  animation-duration: .62s;
  animation-timing-function: ease;
}

@keyframes rv-page-out {
  to {
    opacity: 0;
    transform: translateY(-2px) scale(.999);
  }
}

@keyframes rv-page-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(.999);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(rv-main),
  ::view-transition-new(rv-main),
  ::view-transition-old(rv-header),
  ::view-transition-new(rv-header) {
    animation: none !important;
  }
}


/* ===== V37: redes sociales y foto Quiénes somos ===== */
.social-link {
  cursor: pointer;
  text-decoration: none;
  outline: none;
  transition:
    transform .52s cubic-bezier(.22,.61,.36,1),
    filter .48s ease,
    box-shadow .48s ease,
    opacity .42s ease;
}

.social-link img {
  transition:
    transform .52s cubic-bezier(.22,.61,.36,1),
    filter .48s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-3px) scale(1.06);
  filter: saturate(1.08);
  box-shadow: 0 9px 20px rgba(16,47,73,.16);
}

.social-link:hover img,
.social-link:focus-visible img {
  transform: scale(1.035);
}

.social-link:active {
  transform: translateY(-1px) scale(.98);
  transition-duration: .12s;
}

.instagram-link:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255,255,255,.88),
    0 0 0 5px rgba(201,160,92,.72),
    0 9px 20px rgba(16,47,73,.16);
}

/* La nueva imagen mantiene su encuadre natural 4:3. */
.about-image img {
  object-position: center center;
}


/* ===== V40: contacto editorial + opiniones de staging ===== */
.contact-v40 {
  padding-block: 84px;
}
.contact-v40-grid {
  display: grid;
  grid-template-columns: minmax(250px,.92fr) minmax(320px,1fr) minmax(330px,.9fr);
  gap: clamp(34px,4vw,64px);
  align-items: start;
}
.contact-v40-intro h2 {
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(48px,5vw,70px);
  line-height: .98;
}
.contact-v40-lead {
  max-width: 470px;
  margin: 0 0 26px;
  color: rgba(255,255,255,.80);
  font-size: 16px;
  line-height: 1.75;
}
.contact-v40-email-note {
  margin: 15px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  line-height: 1.55;
}
.contact-v40-email-note a {
  color: rgba(255,255,255,.83);
  border-bottom: 1px solid rgba(201,160,92,.55);
}
.contact-v40-directory {
  border-top: 1px solid rgba(255,255,255,.18);
}
.contact-v40-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: #fff;
  text-decoration: none;
  transition: padding-left .38s ease, background-color .38s ease, opacity .38s ease;
}
.contact-v40-entry > span {
  min-width: 0;
}
.contact-v40-entry small {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.61);
  font-size: 11px;
  line-height: 1.3;
}
.contact-v40-entry strong {
  display: block;
  color: rgba(255,255,255,.96);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .005em;
}
.contact-v40-entry b {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-size: 15px;
  font-weight: 400;
}
.contact-v40-entry[href]:hover,
.contact-v40-entry[href]:focus-visible {
  padding-left: 6px;
}
.contact-v40-entry-static {
  align-items: flex-start;
}
.contact-v40-social {
  margin-top: 20px;
}
.contact-v40-map {
  width: 100%;
  max-width: 420px;
  justify-self: end;
}
.contact-v40 .map-info strong {
  font-size: 13px;
}
.review-card strong {
  font-weight: 600;
  letter-spacing: .005em;
}
@media (max-width: 1120px) {
  .contact-v40-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-v40-map {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%,520px);
    max-width: 520px;
  }
}
@media (max-width: 760px) {
  .contact-v40 {
    padding-block: 70px;
  }
  .contact-v40-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-v40-map {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }
  .contact-v40-intro h2 {
    font-size: clamp(44px,13vw,58px);
  }
}
