/* ════════════════════════════════════════════════════════
   QMSplus v4.1: tema claro, acabado profesional
   Marca cerrada (Brand Manual v1.0): Outfit unica tipografia y
   paleta de 9 colores. Blue Light solo sobre navy, Blue Pale solo
   en bloques, nunca de pagina.
════════════════════════════════════════════════════════ */

/* 0. Fuente: Outfit variable, autoalojada (OFL) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 1. Tokens */
:root {
  --navy:       #090E1A;
  --navy-2:     #0D1829;
  --blue:       #1854F0;
  --blue-light: #5B8EF4;
  --pale:       #EAF0FF;
  --white:      #FFFFFF;
  --offwhite:   #F2F4F8;
  --slate:      #5A6882;
  --border:     #E2E6EF;

  --font: 'Outfit', Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 4.4vw, 80px);
  --maxw: 1600px;
  --sec-y: clamp(88px, 10vw, 148px);
  --r-scene: 36px;
  --r-card: 28px;
  --nav-top: calc(16px + env(safe-area-inset-top, 0px));
  --nav-h: 64px;

  --e-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --e-spring: cubic-bezier(0.34, 1.3, 0.4, 1);

  --shadow-card: 0 1px 2px rgba(9, 14, 26, 0.04), 0 8px 24px rgba(9, 14, 26, 0.05), 0 24px 48px rgba(9, 14, 26, 0.04);
  --shadow-card-hover: 0 2px 4px rgba(9, 14, 26, 0.05), 0 16px 36px rgba(9, 14, 26, 0.09), 0 40px 80px rgba(9, 14, 26, 0.07);
  --shadow-nav: 0 1px 2px rgba(9, 14, 26, 0.04), 0 8px 24px rgba(9, 14, 26, 0.06);
  --shadow-photo: 0 2px 4px rgba(9, 14, 26, 0.05), 0 20px 44px rgba(9, 14, 26, 0.10), 0 48px 96px rgba(9, 14, 26, 0.10);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--white);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

html { scrollbar-color: #C3CBDA var(--offwhite); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--offwhite); }
::-webkit-scrollbar-thumb { background: #C3CBDA; border-radius: 10px; border: 2px solid var(--offwhite); }
::-webkit-scrollbar-thumb:hover { background: var(--slate); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.overline {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* 3. Botones: pildora, precisos */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 0.35s var(--e-out), color 0.35s var(--e-out),
              border-color 0.35s var(--e-out), transform 0.35s var(--e-spring),
              box-shadow 0.35s var(--e-out);
}
.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--e-spring); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(9, 14, 26, 0.12), 0 10px 24px -8px rgba(24, 84, 240, 0.55);
}
.nav-cta .btn-primary,
.mobile-panel .btn-primary,
.contact-form .btn-primary {
  background: var(--navy);
  box-shadow: 0 1px 2px rgba(9, 14, 26, 0.18), 0 10px 24px -8px rgba(9, 14, 26, 0.45);
}
@media (hover: hover) {
  .nav-cta .btn-primary:hover,
  .mobile-panel .btn-primary:hover,
  .contact-form .btn-primary:hover {
    background: var(--navy-2);
    box-shadow: 0 2px 4px rgba(9, 14, 26, 0.2), 0 16px 30px -8px rgba(9, 14, 26, 0.5);
  }
}
.btn-ghost { background: var(--white); color: var(--navy); border: 1px solid var(--border); }
.btn-sm { height: 44px; padding: 0 22px; font-size: 0.9375rem; box-shadow: none; }
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--navy-2);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(9, 14, 26, 0.12), 0 14px 28px -8px rgba(9, 14, 26, 0.35);
  }
  .btn-ghost:hover { border-color: var(--slate); transform: translateY(-1px); box-shadow: var(--shadow-card); }
  .btn:hover .arrow { transform: translateX(4px); }
}
.btn:active { transform: scale(0.97); }

/* 4. Navbar: capsula translucida */
.site-header {
  position: fixed;
  inset: var(--nav-top) 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}
.nav-capsule {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1440px;
  height: var(--nav-h);
  padding: 0 10px 0 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(9, 14, 26, 0.05),
    0 2px 4px rgba(9, 14, 26, 0.04),
    0 10px 24px -6px rgba(9, 14, 26, 0.10),
    0 24px 48px -16px rgba(9, 14, 26, 0.16);
  transition: background-color 0.3s var(--e-out), box-shadow 0.3s var(--e-out);
}
.nav-capsule.scrolled {
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(9, 14, 26, 0.06),
    0 2px 4px rgba(9, 14, 26, 0.05),
    0 14px 32px -8px rgba(9, 14, 26, 0.14),
    0 32px 64px -20px rgba(9, 14, 26, 0.20);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-capsule, .nav-capsule.scrolled { background: rgba(255, 255, 255, 0.97); }
}

.nav-logo { display: block; width: 112px; height: 39px; }
.nav-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }

.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 44px); }
.nav-links > li { display: flex; align-items: center; }
.nav-drop-trigger { cursor: default; }
.nav-links a, .nav-drop-trigger {
  position: relative;
  padding-block: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.3s var(--e-out);
}
.nav-links a::after, .nav-drop-trigger::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--e-out);
}
.nav-links a.is-active, .nav-drop-trigger.is-active { color: var(--navy); }
.nav-links a.is-active::after, .nav-drop-trigger.is-active::after { transform: scaleX(1); }
@media (hover: hover) { .nav-links a:hover, .nav-drop-trigger:hover { color: var(--navy); } }

.nav-item-drop { position: relative; }
.nav-drop-trigger::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s var(--e-out);
  opacity: 0.55;
}
.nav-item-drop:hover .nav-drop-trigger::before, .nav-item-drop:focus-within .nav-drop-trigger::before { transform: translateY(1px) rotate(225deg); }
.nav-drop {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  padding-top: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--e-out), transform 0.4s var(--e-spring), visibility 0s linear 0.3s;
}
.nav-drop-inner a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  transition: background-color 0.25s var(--e-out), color 0.25s var(--e-out);
}
.nav-item-drop:hover .nav-drop, .nav-item-drop:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--e-out), transform 0.4s var(--e-spring);
}
.nav-drop-panel, .nav-drop { z-index: 5; }
.nav-drop::before { content: none; }
.nav-drop-inner { display: grid; gap: 2px; min-width: 232px; padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--border); box-shadow: var(--shadow-card-hover); }
@media (hover: hover) { .nav-drop-inner a:hover { background: var(--pale); color: var(--blue); } }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  height: 38px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lang-opt { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; }
.lang-opt .flag { width: 20px; height: 20px; opacity: 0.5; filter: saturate(0.55); transition: opacity 0.35s var(--e-out), filter 0.35s var(--e-out), transform 0.4s var(--e-spring); }
.lang-opt.active .flag { opacity: 1; filter: none; transform: scale(1.04); }
@media (hover: hover) { .lang-opt:not(.active):hover .flag { opacity: 0.85; filter: none; } }
.lang-thumb { position: absolute; top: 3px; left: 3px; width: 34px; height: 30px; border-radius: 999px; background: var(--navy); transition: transform 0.4s var(--e-spring); }
.lang-toggle[data-lang="en"] .lang-thumb { transform: translateX(34px); }

.nav-hamburger { display: none; position: relative; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--white); }
.nav-hamburger span { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: var(--navy); transition: transform 0.35s var(--e-out), top 0.35s var(--e-out); }
.nav-hamburger span:nth-child(1) { top: 17px; }
.nav-hamburger span:nth-child(2) { top: 25px; }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-panel {
  pointer-events: auto;
  position: fixed;
  top: calc(var(--nav-top) + var(--nav-h) + 8px);
  left: 16px;
  right: 16px;
  max-width: 1440px;
  margin-inline: auto;
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.3s var(--e-out), transform 0.4s var(--e-spring);
}
.mobile-panel[hidden] { display: none; }
.mobile-panel.is-open { opacity: 1; transform: none; }
.mobile-panel ul { display: grid; }
.mobile-panel li + li { border-top: 1px solid var(--border); }
.mobile-panel ul a {
  display: block;
  padding: 16px 8px;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.mobile-panel ul a.is-active { color: var(--blue); }
.mobile-panel-foot { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding-top: 8px; }

/* 5. Escenas: bloques con esquinas generosas */
.section { position: relative; padding-block: var(--sec-y); }
.services, .about, .contact {
  margin-top: calc(var(--r-scene) * -1);
  border-radius: var(--r-scene) var(--r-scene) 0 0;
}
.services { z-index: 2; background: var(--offwhite); }
.about { z-index: 3; background: var(--white); }
.contact { z-index: 4; background: var(--offwhite); padding-bottom: calc(var(--sec-y) + var(--r-scene)); }

.section-title {
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--navy);
}

/* 6. Hero: fotografia full-bleed con velo de legibilidad */
.hero { position: relative; isolation: isolate; background: var(--white); }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--white); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
@media (min-width: 961px) {
  .hero-bg img {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    max-width: none;
    height: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0.97) 30%, rgba(255, 255, 255, 0.85) 42%, rgba(255, 255, 255, 0.4) 52%, rgba(255, 255, 255, 0.08) 60%, rgba(255, 255, 255, 0) 66%),
    linear-gradient(0deg, var(--white) 0%, rgba(255, 255, 255, 0.5) 7%, rgba(255, 255, 255, 0) 20%);
}
.hero-inner {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: clamp(560px, 86svh, 880px);
  padding-top: calc(var(--nav-top) + var(--nav-h) + clamp(32px, 5vw, 64px));
  padding-bottom: clamp(40px, 5vw, 72px);
}
.hero-copy { display: grid; justify-items: start; max-width: 1120px; }
.hero-title {
  max-width: none;
  font-size: clamp(40px, 4.6vw, 80px);
  line-height: 1.01;
  letter-spacing: -0.032em;
  color: var(--navy);
  text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; }

/* Efecto de escritura del titulo */
.hero-title { position: relative; }
html.js:not(.reveal-fallback) .hero-title[data-type]:not(.tw-on) { color: transparent; }
.tw-ghost { color: transparent; }
.tw-live { position: absolute; inset: 0; white-space: nowrap; }
.tw-caret {
  position: relative;
  display: inline-block;
  width: 0;
  height: 0.86em;
  vertical-align: -0.06em;
}
.tw-caret::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.07em;
  width: 0.06em;
  min-width: 3px;
  border-radius: 2px;
  background: var(--blue);
  animation: tw-blink 1.05s steps(1) infinite;
}
.hero-title.is-typing .tw-caret::after { animation: none; }
@keyframes tw-blink { 50% { opacity: 0; } }

/* Trust strip: marquee lento, fade en bordes, pausa en hover */
.trust { padding-bottom: calc(var(--r-scene) + 16px); }
.trust-row { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding-block: 22px; border-top: 1px solid var(--border); }
.trust-label { flex: none; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.trust-viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.trust-track { display: flex; width: max-content; animation: marquee 78s linear infinite; }
.trust-set { display: flex; }
.trust-item {
  display: flex;
  align-items: center;
  padding-left: clamp(40px, 3.4vw, 64px);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--slate);
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes svc-lift {
  0%   { transform: translateY(0) scale(1); }
  18%  { transform: translateY(1px) scale(0.992); }
  62%  { transform: translateY(-3px) scale(1.012); }
  100% { transform: none; }
}

/* 7. Servicios */
.services .section-title { margin-bottom: clamp(44px, 5.5vw, 72px); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 310px;
  padding: 38px 36px 40px;
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.45s var(--e-spring), box-shadow 0.45s var(--e-out);
}
.svc-card h3 {
  max-width: 16ch;
  font-size: clamp(1.4375rem, 1.8vw, 1.625rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
  transition: color 0.35s var(--e-out);
}
.svc-card p { max-width: 40ch; font-size: 1rem; line-height: 1.62; color: var(--slate); }
@media (hover: hover) {
  .svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
  .svc-card:hover h3 { color: var(--blue); }
}

/* 8. Nosotros */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.about-media {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--r-card);
}
.about-media::before {
  content: '';
  position: absolute;
  inset: 10% -7% -7% 12%;
  border-radius: var(--r-card);
  background: var(--pale);
}
.about-media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-photo);
}
.about-copy { display: grid; justify-items: start; gap: 26px; }
.about-copy .section-title { font-size: clamp(2.125rem, 3.6vw, 3.25rem); }
.about-lead { max-width: 58ch; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.7; color: var(--slate); }
.about-points { display: grid; gap: clamp(28px, 3vw, 40px); width: 100%; margin-top: 18px; }
.about-point { display: grid; gap: 10px; }
.about-point h3 { font-size: clamp(1.1875rem, 1.45vw, 1.375rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; color: var(--navy); text-wrap: balance; }
.about-point p { max-width: 62ch; font-size: 0.9688rem; line-height: 1.68; color: var(--slate); }
.about-more { justify-self: end; margin-top: 6px; font-size: 0.9375rem; font-weight: 500; color: var(--slate); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color 0.3s var(--e-out), text-decoration-color 0.3s var(--e-out); }
@media (hover: hover) { .about-more:hover { color: var(--navy); text-decoration-color: currentColor; } }

/* 9. Contacto: pieza clinica, luminosa y precisa */
.contact { isolation: isolate; overflow: hidden; }
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 60% at 78% 38%, rgba(234, 240, 255, 0.95), rgba(242, 244, 248, 0) 70%),
    radial-gradient(30% 40% at 12% 90%, rgba(255, 255, 255, 0.9), rgba(242, 244, 248, 0) 70%);
  pointer-events: none;
}
.contacto-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.contacto-header { display: grid; justify-items: start; gap: 24px; align-self: start; }
.contacto-title {
  max-width: 12ch;
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--navy);
  text-wrap: balance;
}
.contacto-lead { max-width: 36ch; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.65; color: var(--slate); }

/* Tarjeta del formulario: panel Pale desplazado detras (mismo sistema que Hero y Nosotros),
   borde de luz y sombra en capas que cae hacia abajo. */
.contact-card { position: relative; }
.contact-card::before {
  content: '';
  position: absolute;
  inset: 7% -4% -6% 8%;
  z-index: 0;
  border-radius: 34px;
  background: linear-gradient(160deg, var(--pale), rgba(234, 240, 255, 0.35));
}
.contact-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  padding: clamp(28px, 3.6vw, 52px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(9, 14, 26, 0.04),
    0 2px 4px rgba(9, 14, 26, 0.04),
    0 18px 36px -12px rgba(9, 14, 26, 0.10),
    0 48px 80px -32px rgba(9, 14, 26, 0.18);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-group { display: grid; gap: 9px; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color 0.3s var(--e-out);
}
.form-group:focus-within label { color: var(--blue); }
.form-group .req { margin-left: 3px; color: var(--blue); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(9, 14, 26, 0.03);
  transition: border-color 0.3s var(--e-out), box-shadow 0.35s var(--e-out), transform 0.35s var(--e-spring), background-color 0.3s var(--e-out);
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6882' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.form-group textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #8A95AA; opacity: 1; }
@media (hover: hover) {
  .form-group input:hover,
  .form-group select:hover,
  .form-group textarea:hover { border-color: #C9D1E0; }
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(24, 84, 240, 0.12), 0 8px 20px -10px rgba(24, 84, 240, 0.35);
  transform: translateY(-1px);
}
.form-group input:user-invalid,
.form-group textarea:user-invalid { border-color: var(--navy); }
.contact-form .btn { justify-self: start; margin-top: 6px; height: 56px; padding: 0 32px; }
.contact-form .btn-label { display: inline; }
/* Campo trampa contra bots: fuera de pantalla, sin foco ni lectura */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* 10. Footer: unico bloque oscuro, gradiente firma de marca */
.site-footer {
  position: relative;
  z-index: 5;
  margin-top: calc(var(--r-scene) * -1);
  padding-top: clamp(76px, 8vw, 112px);
  border-radius: var(--r-scene) var(--r-scene) 0 0;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(24, 84, 240, 0.12), rgba(9, 14, 26, 0) 65%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 60%);
  color: rgba(255, 255, 255, 0.64);
}
.site-footer :focus-visible { outline-color: var(--blue-light); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 0.8fr); gap: 40px var(--gutter); padding-bottom: 60px; }
.footer-logo { display: inline-block; width: 150px; margin-left: -9px; }
.footer-logo img { width: 100%; height: auto; }
.footer-tagline { max-width: 36ch; margin-top: 18px; font-size: 0.9375rem; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.footer-badge { padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.7); }
.footer-col h3 { margin-bottom: 18px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-light); }
.footer-col ul { display: grid; gap: 10px; font-size: 0.9375rem; }
.footer-col a { transition: color 0.3s var(--e-out); }
.footer-contact-item { display: grid; gap: 2px; margin-bottom: 14px; font-size: 0.9375rem; }
.footer-contact-item strong { font-weight: 600; color: rgba(255, 255, 255, 0.86); }
.footer-social-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.86); transition: background-color 0.3s var(--e-out), border-color 0.3s var(--e-out), color 0.3s var(--e-out), transform 0.3s var(--e-spring); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; padding-block: 26px 30px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8125rem; color: rgba(255, 255, 255, 0.46); }
.footer-legal { display: flex; gap: 22px; }
@media (hover: hover) {
  .footer-col a:hover, .footer-legal a:hover { color: var(--white); }
  .footer-social-icon:hover { background: var(--blue-light); border-color: var(--blue-light); color: var(--navy); transform: translateY(-2px); }
}

/* 11. Estados iniciales de motion: visibles por construccion
   (sin JS o con el vigilante activo, todo queda visible) */
html.js:not(.reveal-fallback) [data-reveal],
html.js:not(.reveal-fallback) [data-fade] { opacity: 0; }

/* Con Lenis activo, el scroll suave nativo se apaga: si no, ScrollTrigger mide mal las
   posiciones al recalcular (por ejemplo tras abrir el acordeon o cambiar el ancho). */
html.lenis { scroll-behavior: auto !important; }

/* Escenas como tarjetas que se deslizan una sobre otra (escritorio y movil).
   Sombra corta y limpia hacia arriba en el borde redondeado; el parallax lo hace main.js. */
@media all {
  .services, .about, .contact {
    box-shadow:
      0 -1px 0 rgba(255, 255, 255, 0.8),
      0 -6px 16px -10px rgba(9, 14, 26, 0.10),
      0 -24px 48px -28px rgba(9, 14, 26, 0.14);
  }
  .site-footer {
    box-shadow:
      0 -6px 16px -10px rgba(9, 14, 26, 0.16),
      0 -24px 48px -28px rgba(9, 14, 26, 0.20);
  }
}

/* Solo escritorio: banderas al 80% */
@media (min-width: 961px) {
  .nav-cta .lang-opt .flag { width: 16px; height: 16px; }

}

/* Desplegable "Tu empresa es": lista con el mismo lenguaje visual (Chrome/Edge recientes; el resto usa el nativo) */
@media (pointer: fine) {
  @supports (appearance: base-select) {
    .form-group select,
    .form-group select::picker(select) { appearance: base-select; }
    .form-group select { display: flex; align-items: center; cursor: pointer; }
    .form-group select::picker-icon { display: none; }
    .form-group select::picker(select) {
      margin-top: 8px;
      padding: 6px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--white);
      box-shadow: 0 2px 6px rgba(9, 14, 26, 0.06), 0 22px 44px -16px rgba(9, 14, 26, 0.22);
      opacity: 0;
      transform: translateY(-4px);
      transition: opacity 0.22s var(--e-out), transform 0.3s var(--e-out), overlay 0.3s allow-discrete, display 0.3s allow-discrete;
    }
    .form-group select:open::picker(select) { opacity: 1; transform: none; }
    @starting-style { .form-group select:open::picker(select) { opacity: 0; transform: translateY(-4px); } }
    .form-group select option {
      padding: 11px 14px;
      border-radius: 10px;
      color: var(--navy);
      font-size: 1rem;
      transition: background-color 0.2s var(--e-out), color 0.2s var(--e-out);
    }
    .form-group select option::checkmark { display: none; }
    .form-group select option:checked { background: var(--offwhite); font-weight: 600; }
    .form-group select option:hover,
    .form-group select option:focus-visible { background: var(--pale); color: var(--blue); outline: none; }
  }
}

/* Paginas legales: lectura larga, sobria y clara */
.legal-page {
  position: relative;
  z-index: 1;
  background: var(--white);
  padding-top: calc(var(--nav-top) + var(--nav-h) + clamp(48px, 7vw, 104px));
  padding-bottom: calc(clamp(72px, 9vw, 128px) + var(--r-scene));
}
.legal { max-width: 760px; }
.legal-head { display: grid; justify-items: start; gap: 18px; padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--border); }
.legal-title { font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--navy); text-wrap: balance; }
.legal-meta { font-size: 0.9375rem; color: var(--slate); }
.legal-note { max-width: 60ch; padding: 14px 18px; border-radius: 14px; background: var(--offwhite); font-size: 0.9375rem; line-height: 1.6; color: var(--slate); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.legal-toc a {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  transition: border-color 0.3s var(--e-out), background-color 0.3s var(--e-out), color 0.3s var(--e-out);
}
@media (hover: hover) { .legal-toc a:hover { border-color: var(--blue); color: var(--blue); } }
.legal-section { padding-top: clamp(40px, 5vw, 64px); scroll-margin-top: calc(var(--nav-top) + var(--nav-h) + 16px); }
.legal-section + .legal-section { margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--border); }
.legal-section h2 { font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.1; letter-spacing: -0.025em; color: var(--navy); }
.legal-section h3 { margin-top: clamp(24px, 2.6vw, 32px); font-size: 0.875rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.legal-section p,
.legal-section li { font-size: 0.9375rem; line-height: 1.65; color: var(--slate); }
.legal-section p { margin-top: 8px; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.legal-section ul { display: grid; gap: 8px; margin-top: 12px; padding-left: 1.25em; list-style: disc; }
.legal-section li::marker { color: var(--blue); }
.legal-section strong { font-weight: 600; color: var(--navy); }
.legal a:not(.legal-toc a) { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { .legal a:not(.legal-toc a):hover { color: var(--navy); } }
@media (max-width: 640px) { .legal-section p { text-align: left; } }

/* Blog: indice y articulos. Lectura larga con la misma sobriedad de las legales */
.blog-page {
  position: relative;
  z-index: 1;
  background: var(--white);
  padding-top: calc(var(--nav-top) + var(--nav-h) + clamp(32px, 4.5vw, 64px));
  padding-bottom: calc(clamp(72px, 9vw, 128px) + var(--r-scene));
}
.blog-page .wrap { max-width: 1280px; }
.blog-page ol[role="list"] { list-style: none; }
.blog-page h2[id], .blog-page section { scroll-margin-top: calc(var(--nav-top) + var(--nav-h) + 20px); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.875rem; color: var(--slate); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.crumbs li + li::before { content: '/'; color: #B4BDCE; }
.crumbs a { padding-block: 6px; transition: color 0.3s var(--e-out); }
.crumbs [aria-current] { color: var(--navy); }
@media (hover: hover) { .crumbs a:hover { color: var(--blue); } }

.post-meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.875rem; color: var(--slate); }
.post-meta span + span::before { content: '·'; margin-inline: 10px; color: #B4BDCE; }

/* Indice */
.blog-head { display: grid; justify-items: start; gap: 18px; max-width: 880px; padding-block: clamp(28px, 4vw, 52px) clamp(36px, 5vw, 64px); }
.blog-title { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.03; letter-spacing: -0.03em; }
.blog-lead { max-width: 58ch; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--slate); }
.blog-chip { justify-self: start; align-self: start; display: inline-flex; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--white); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); white-space: nowrap; }
.blog-more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.blog-more .arrow, .blog-list .arrow, .post-related .arrow { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--e-spring); }

.blog-feature {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4.4vw, 60px);
  border-radius: var(--r-card);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(24, 84, 240, 0.10), rgba(24, 84, 240, 0) 60%),
    var(--offwhite);
  transition: box-shadow 0.4s var(--e-out), transform 0.4s var(--e-out);
}
.blog-feature-copy { display: grid; gap: 18px; max-width: 820px; }
.blog-feature h2 { font-size: clamp(1.75rem, 3.4vw, 2.875rem); line-height: 1.08; letter-spacing: -0.028em; }
.blog-feature-excerpt { max-width: 62ch; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.6; color: var(--slate); }
.blog-feature-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }

.blog-list { display: grid; gap: clamp(14px, 1.6vw, 20px); margin-top: clamp(16px, 2vw, 24px); }
.blog-list a {
  display: grid;
  padding-inline: clamp(22px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(9, 14, 26, 0.04);
  transition: border-color 0.3s var(--e-out), box-shadow 0.4s var(--e-out), transform 0.4s var(--e-out);
  grid-template-columns: 190px minmax(0, 1fr) auto 18px;
  align-items: start;
  gap: 12px clamp(20px, 3vw, 44px);
  padding-block: clamp(26px, 3vw, 38px);
}
.blog-row-copy { display: grid; gap: 8px; }
.blog-list h2 { font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.18; letter-spacing: -0.02em; transition: color 0.3s var(--e-out); }
.blog-row-copy p { max-width: 64ch; font-size: 0.9375rem; line-height: 1.6; color: var(--slate); }
.blog-list .post-meta { padding-top: 6px; white-space: nowrap; }
.blog-list .arrow { margin-top: 7px; color: var(--slate); }
@media (hover: hover) {
  .blog-feature:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
  .blog-feature:hover .arrow, .blog-list a:hover .arrow, .post-related a:hover .arrow { transform: translateX(4px); }
  .blog-list a:hover { border-color: #C9D3E6; box-shadow: var(--shadow-card); transform: translateY(-2px); }
  .blog-list a:hover h2 { color: var(--blue); }
  .blog-list a:hover .arrow { color: var(--blue); }
}

/* Articulo */
.post-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 280px); justify-content: space-between; gap: clamp(40px, 6vw, 96px); padding-top: clamp(24px, 3.4vw, 44px); }
.post-head { display: grid; justify-items: start; gap: 20px; padding-bottom: clamp(28px, 3.4vw, 40px); }
.post-title { font-size: clamp(2.125rem, 4.2vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.post-lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--navy-2); }

.post-summary { padding: clamp(22px, 2.6vw, 30px); border-radius: 20px; background: var(--offwhite); }
.post-summary h2, .post-aside-label, .post-faq-tag, .post-sources h2 { font-size: 0.75rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.post-summary ul { display: grid; gap: 10px; margin-top: 14px; }
.post-summary li { position: relative; padding-left: 22px; line-height: 1.55; color: var(--navy-2); }
.post-summary li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

.post-body h2, .post-faq > h2, .post-related h2 { margin-top: clamp(44px, 5vw, 64px); font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.14; letter-spacing: -0.025em; }
.post-body h3 { margin-top: 28px; font-size: 1.1875rem; line-height: 1.3; }
.post-body p, .post-body li, .post-faq p:not(.post-faq-tag) { font-size: 1.0625rem; line-height: 1.7; color: #3F4B63; }
.post-body p { margin-top: 18px; }
.post-body ul, .post-body ol { display: grid; gap: 10px; margin-top: 18px; padding-left: 1.3em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li::marker { color: var(--blue); font-weight: 600; }
.post-body strong, .post-faq strong { font-weight: 600; color: var(--navy); }
.post-body a:not(.post-inline-cta a), .post-sources a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { .post-body a:not(.post-inline-cta a):hover, .post-sources a:hover { color: var(--navy); } }

.post-table { margin-top: 22px; overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; }
.post-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.post-table th, .post-table td { padding: 14px 18px; text-align: left; vertical-align: top; }
.post-table thead th { background: var(--offwhite); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.post-table tbody tr + tr { border-top: 1px solid var(--border); }
.post-table td { color: #3F4B63; }
.post-table td:first-child, .post-table tbody th { min-width: 168px; font-weight: 600; color: var(--navy); }

.post-body p.post-inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 30px; padding: 16px 22px; border-radius: 16px; border: 1px solid var(--border); font-size: 1rem; color: var(--navy); }
.post-inline-cta a { font-weight: 600; color: var(--blue); white-space: nowrap; }
@media (hover: hover) { .post-inline-cta a:hover { text-decoration: underline; text-underline-offset: 3px; } }

.post-faq-top { margin-top: 24px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); background: var(--pale); }
.post-faq-tag { color: var(--blue); }
.post-faq h3 { font-size: clamp(1.1875rem, 1.7vw, 1.375rem); line-height: 1.25; }
.post-faq-top h3 { margin-top: 12px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -0.025em; }
.post-faq h3 + p { margin-top: 10px; }
.post-faq-top p:not(.post-faq-tag) { color: var(--navy-2); }
.post-faq-item { padding-block: 26px; border-bottom: 1px solid var(--border); }

.post-cta {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: clamp(44px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-card);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(91, 142, 244, 0.28), rgba(91, 142, 244, 0) 60%),
    var(--navy-2);
  color: var(--white);
}
.post-cta h2 { font-size: clamp(1.625rem, 2.8vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; }
.post-cta p { max-width: 54ch; font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }
.post-cta .btn { margin-top: 8px; }
.post-cta :focus-visible { outline-color: var(--blue-light); }
@media (hover: hover) { .post-cta .btn-primary:hover { background: var(--white); color: var(--navy-2); } }
.blog-cta { margin-top: clamp(56px, 7vw, 96px); }

.post-note { margin-top: 28px; font-size: 0.875rem; line-height: 1.6; color: var(--slate); }
.post-sources { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-sources ul { display: grid; gap: 8px; margin-top: 12px; font-size: 0.875rem; line-height: 1.5; }
.post-sources a { overflow-wrap: anywhere; }

.post-related ul { display: grid; margin-top: 12px; }
.post-related li { border-bottom: 1px solid var(--border); }
.post-related a { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; gap: 4px 20px; padding-block: 20px; }
.post-related-cat { grid-column: 1; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.post-related-title { grid-column: 1; font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; transition: color 0.3s var(--e-out); }
.post-related .arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--slate); }
@media (hover: hover) { .post-related a:hover .post-related-title, .post-related a:hover .arrow { color: var(--blue); } }

.post-aside { position: sticky; top: calc(var(--nav-top) + var(--nav-h) + 28px); align-self: start; display: grid; gap: 28px; }
.post-toc ol { display: grid; gap: 2px; margin-top: 12px; border-left: 1px solid var(--border); }
.post-toc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 1px solid transparent; font-size: 0.9375rem; line-height: 1.4; color: var(--slate); transition: color 0.3s var(--e-out), border-color 0.3s var(--e-out); }
@media (hover: hover) { .post-toc a:hover { color: var(--navy); border-left-color: var(--blue); } }
.post-aside-cta { display: grid; justify-items: start; gap: 12px; padding: 22px; border-radius: 20px; background: var(--offwhite); }
.post-aside-cta p:not(.post-aside-label) { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; color: var(--navy); }

@media (max-width: 1040px) {
  .post-layout { grid-template-columns: minmax(0, 720px); justify-content: start; }
  .post-aside { display: none; }
  .blog-list a { grid-template-columns: minmax(0, 1fr) 18px; }
  .blog-list .blog-chip, .blog-list .blog-row-copy, .blog-list .post-meta { grid-column: 1; }
  .blog-list .arrow { grid-column: 2; grid-row: 2; }
  .blog-list .post-meta { padding-top: 0; }
}
@media (max-width: 640px) {
  .post-meta { display: grid; gap: 2px; }
  .post-meta span + span::before { content: none; }
  .blog-list .post-meta { display: flex; }
  .blog-list .post-meta span + span::before { content: '·'; }
  .post-body p, .post-body li, .post-faq p:not(.post-faq-tag) { font-size: 1rem; }
  .post-cta .btn { width: 100%; }
}

/* 12. Responsive */
@media (max-width: 960px) {
  :root { --nav-h: 56px; }
  .nav-capsule { grid-template-columns: 1fr auto; padding: 0 6px 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .nav-logo { width: 104px; height: 36px; }

  .hero-bg img { opacity: 0.3; }
  .hero-scrim { background: linear-gradient(0deg, var(--white) 0%, rgba(255, 255, 255, 0.55) 14%, rgba(255, 255, 255, 0.15) 40%, rgba(255, 255, 255, 0.4) 100%); }
  .hero-inner { min-height: clamp(480px, 74svh, 720px); }
  .about-media::before { inset: 10% 0 -6% 12%; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .contacto-inner { grid-template-columns: minmax(0, 1fr); }
  .contact-card::before { inset: 6% 0 -4% 6%; }
  .about-media { aspect-ratio: 16 / 11; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --r-scene: 28px; --sec-y: 76px; }

  /* Hero: una sola accion, ancho natural */
  .hero-inner { min-height: clamp(460px, 68svh, 620px); padding-bottom: 32px; }
  .hero-title { font-size: clamp(30px, 9vw, 40px); line-height: 1.05; }
  .hero-title .hb { display: none; }
  .hero-actions { margin-top: 32px; }
  .hero-actions .hero-cta-services { display: none; }
  .hero-actions .btn { height: 52px; padding: 0 26px; }

  /* Tira de normas: mas baja y fina */
  .trust { padding-bottom: calc(var(--r-scene) + 4px); }
  .trust-row { padding-block: 13px; }
  .trust-label { display: none; }
  .trust-item { padding-left: 28px; font-size: 0.6875rem; letter-spacing: 0.1em; }

  /* Ritmo de lectura */
  .services .section-title { margin-bottom: 32px; }
  .about-lead { font-size: 1.0625rem; line-height: 1.6; }
  .about-point h3 { font-size: 1.125rem; }
  .about-point p { font-size: 0.9375rem; line-height: 1.6; }
  .contacto-header { gap: 16px; }
  .contacto-lead { font-size: 1.0625rem; line-height: 1.55; }
  .contacto-inner { gap: 40px; }

  /* Servicios: acordeon (lo arma main.js; sin JS todo queda visible) */
  .svc-grid.is-accordion { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .svc-grid.is-accordion .svc-card {
    --mech: cubic-bezier(0.7, 0, 0.2, 1);
    min-height: 0;
    gap: 0;
    padding: 0;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(9, 14, 26, 0.04), 0 4px 12px -4px rgba(9, 14, 26, 0.06);
    transform: none;
    transition:
      background-color 0.6s var(--mech),
      box-shadow 0.6s var(--mech),
      margin 0.6s var(--mech);
  }
  .svc-grid.is-accordion .svc-card h3 { max-width: none; font-size: 1.125rem; line-height: 1.3; transition: color 0.5s var(--mech); }
  .svc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 20px 18px 20px 22px;
    text-align: left;
    letter-spacing: inherit;
    -webkit-tap-highlight-color: transparent;
  }
  .svc-toggle:focus-visible { outline-offset: -2px; border-radius: 20px; }
  .svc-toggle:active .svc-plus { transform: scale(0.9); }
  .svc-plus {
    position: relative;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--offwhite);
    transition: transform 0.7s var(--mech), background-color 0.5s var(--mech);
  }
  .svc-plus::before,
  .svc-plus::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transform: translate(-50%, -50%);
    transition: background-color 0.5s var(--mech);
  }
  .svc-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
  .svc-grid.is-accordion .svc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.7s var(--mech);
  }
  .svc-grid.is-accordion .svc-body > p {
    min-height: 0;
    max-width: none;
    overflow: hidden;
    padding: 0 22px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s var(--mech), transform 0.6s var(--mech), padding 0.7s var(--mech);
  }

  /* Tarjeta abierta: pieza navy que se eleva con peso.
     El margen abre espacio (no se superpone) y la sombra cae solo hacia abajo. */
  .svc-grid.is-accordion .svc-card.is-open {
    margin-block: 14px 14px;
    background: var(--navy-2);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 2px 3px rgba(9, 14, 26, 0.10),
      0 6px 14px -6px rgba(9, 14, 26, 0.30),
      0 12px 22px -12px rgba(9, 14, 26, 0.30);
    animation: svc-lift 0.9s var(--mech) both;
  }
  .svc-grid.is-accordion .svc-card.is-open h3 { color: var(--white); }
  .svc-grid.is-accordion .svc-card.is-open .svc-plus { transform: rotate(135deg); background: rgba(91, 142, 244, 0.16); }
  .svc-grid.is-accordion .svc-card.is-open .svc-plus::before,
  .svc-grid.is-accordion .svc-card.is-open .svc-plus::after { background: var(--blue-light); }
  .svc-grid.is-accordion .svc-card.is-open .svc-body { grid-template-rows: 1fr; }
  .svc-grid.is-accordion .svc-card.is-open .svc-body > p { color: rgba(234, 240, 255, 0.78); }
  .svc-grid.is-accordion .svc-card.is-open .svc-body > p { opacity: 1; transform: none; padding-bottom: 24px; transition-delay: 0.16s, 0.16s, 0s; }

  .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact-form { gap: 18px; padding: 24px 20px; border-radius: 24px; }
  .form-group input, .form-group select, .form-group textarea { padding: 13px 14px; border-radius: 12px; }
  .form-group textarea { min-height: 120px; }
  .contact-form .btn { justify-self: end; width: auto; height: 50px; padding: 0 24px; }

  /* Footer: marca arriba, Navegacion y Contacto en dos columnas, Siguenos abajo */
  .footer-top { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 36px 16px; padding-bottom: 40px; }
  .footer-top > :first-child, .footer-top > :last-child { grid-column: 1 / -1; }
  .footer-col h3 { margin-bottom: 14px; }
  .footer-contact-item { font-size: 0.875rem; overflow-wrap: anywhere; }
  .footer-col ul { font-size: 0.9375rem; }
  .footer-bottom { flex-direction: column; gap: 10px; padding-block: 22px 26px; }
}

/* 13. Movimiento reducido: sin smooth scroll, sin entradas, sin marquee */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal], html.js [data-fade] { opacity: 1; transform: none; }
  .trust-track { animation: none; }
  .tw-caret { display: none; }
  .svc-grid.is-accordion .svc-card.is-open { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
