: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;
  }
}
