/* =====================================================================
   JEM ENGINEERS — Rediseño Home
   Sistema de proporciones: diseño base 1920px con márgenes de 260px.
   --px = 1px a 1920px y escala proporcionalmente con el ancho de pantalla.
   ===================================================================== */

/* ---------- Fuentes (auto-alojadas, sin dependencias externas) ---------- */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #00205D;
  --navy-deep: #001744;
  --blue: #0C5FF7;
  --blue-hover: #0049D1;
  --blue-soft: #5C93FF;
  --slate: #6A7B76;
  /* Acento de marca para la barra superior y el pie (antes gris verdoso) */
  --accent-grad: linear-gradient(100deg, #0C5FF7 0%, #1F6FFF 55%, #3D86FF 100%);
  --ink: #0D0D0D;
  --ink-soft: #3A4250;
  --bg-soft: #F9FAFB;
  --line: #C1C1C1;
  --input-line: #DFE3EA;
  --white: #FFFFFF;

  /* Escala proporcional: el diseño del PDF (1920px) se muestra al 88%
     para que cada sección respire dentro de una pantalla real (≈900px de alto). */
  --px: clamp(0.5px, calc(100vw / 2180), 0.88px);

  /* Márgenes laterales (260px @1920 = 13.5417vw) */
  --gutter: 13.5417vw;
  /* Top bar y header (160px @1920 = 8.333vw) */
  --gutter-top: 8.3333vw;
  /* Sección de contacto (184px @1920 = 9.583vw) */
  --gutter-wide: 9.5833vw;

  --container: 1400px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-lg: calc(30 * var(--px));
  --shadow-card: drop-shadow(0 calc(4 * var(--px)) calc(5 * var(--px)) rgba(0, 0, 0, .16));
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font);
  font-size: max(15px, calc(17 * var(--px)));
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
svg.lucide { flex-shrink: 0; }
i[data-lucide] { display: inline-block; flex-shrink: 0; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--wide { width: min(1552px, 100% - 2 * var(--gutter-wide)); }

.section-title {
  font-size: max(28px, calc(48 * var(--px)));
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-title--center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: max(42px, calc(49 * var(--px)));
  padding: 0 max(18px, calc(24 * var(--px)));
  border-radius: max(8px, calc(10 * var(--px)));
  font-size: max(15px, calc(19 * var(--px)));
  font-weight: 600; line-height: 1.1; white-space: nowrap;
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), color .25s;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(12, 95, 247, .3); }
.btn--ghost { color: var(--white); border: 1.5px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn--lg { min-height: max(50px, calc(64 * var(--px))); padding: 0 max(26px, calc(40 * var(--px))); border-radius: max(10px, calc(12 * var(--px))); font-size: max(16px, calc(20 * var(--px))); }
.btn--block { width: 100%; }

/* ---------- Iconos circulares ---------- */
.icon-circle {
  width: max(56px, calc(80 * var(--px))); height: max(56px, calc(80 * var(--px)));
  border-radius: 50%; background: var(--blue); color: var(--white);
  display: grid; place-items: center; flex-shrink: 0;
}
.icon-circle svg { width: 55%; height: 55%; stroke-width: 1.9; }

/* ---------- Redes sociales (configurables en js/main.js) ---------- */
.social { display: flex; align-items: center; gap: max(8px, calc(9.5 * var(--px))); }
.social a {
  width: max(32px, calc(36 * var(--px))); height: max(32px, calc(36 * var(--px)));
  display: grid; place-items: center; border-radius: 50%;
  background: #E2E6E5; color: var(--navy);
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.social a svg { width: 52%; height: 52%; }
.social a:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }

/* =====================================================================
   TOP BAR
   ===================================================================== */
.topbar { background: var(--navy); color: var(--white); overflow: hidden; position: relative; z-index: 2; }
.topbar__inner {
  width: min(1600px, 100% - 2 * var(--gutter-top)); margin-inline: auto;
  min-height: max(46px, calc(76 * var(--px)));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.topbar__info { display: flex; align-items: center; gap: max(20px, calc(40 * var(--px))); font-size: max(13px, calc(18 * var(--px))); min-width: 0; }
.topbar__info li, .topbar__info a { display: inline-flex; align-items: center; gap: max(8px, calc(14 * var(--px))); white-space: nowrap; }
.topbar__info a:hover { color: #BFD3FF; }
.topbar__info svg { width: max(17px, calc(23 * var(--px))); height: max(17px, calc(23 * var(--px))); stroke-width: 1.7; }
.topbar__social { position: relative; align-self: stretch; display: flex; align-items: center; padding-left: max(40px, calc(142 * var(--px))); }
.topbar__social::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: -50vw;
  background: var(--accent-grad);
  transform: skewX(-22deg); transform-origin: bottom left;
  border-radius: max(12px, calc(22 * var(--px))) 0 0 max(12px, calc(22 * var(--px)));
}
.topbar__social .social { position: relative; }
.topbar .social a { background: var(--white); color: var(--navy); box-shadow: 0 2px 6px rgba(0, 23, 68, .18); }
.topbar .social a:hover { background: var(--navy); color: var(--white); }

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  transition: box-shadow .3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 32, 93, .08); }
.header__inner {
  width: min(1600px, 100% - 2 * var(--gutter-top)); margin-inline: auto;
  min-height: max(72px, calc(140 * var(--px)));
  display: flex; align-items: center; gap: max(24px, calc(48 * var(--px)));
  transition: min-height .3s var(--ease);
}
.header.is-scrolled .header__inner { min-height: max(68px, calc(104 * var(--px))); }
.header__logo { flex-shrink: 0; }
.header__logo img { width: max(150px, calc(258 * var(--px))); transition: width .3s var(--ease); }
.header.is-scrolled .header__logo img { width: max(140px, calc(210 * var(--px))); }
.header__cta { flex-shrink: 0; }

.nav { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.nav__head, .nav__cta, .nav__social { display: none; }
.nav__list { display: flex; align-items: center; justify-content: center; gap: max(12px, calc(26 * var(--px))); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  font-size: max(14px, calc(17 * var(--px))); font-weight: 400; line-height: 1.15;
  color: var(--ink); padding: 8px 0; text-align: center; white-space: nowrap;
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"], .dropdown.is-open > .nav__link { color: var(--blue); }
.nav__link:hover::after, .dropdown.is-open > .nav__link::after { transform: scaleX(1); }
/* Las etiquetas largas se reparten en dos líneas para conservar todos los textos del menú */
.nav__link--wrap { width: min-content; white-space: normal; }
.nav__link.nav__link--long { width: 10.8em; }
@media (max-width: 1699px) { .nav__link--wrap-md { width: min-content; white-space: normal; } }
.dropdown__btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.dropdown.is-open .dropdown__btn svg { transform: rotate(180deg); }

.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  min-width: 240px; padding: 10px;
  background: var(--white); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 32, 93, .14); border: 1px solid #EEF1F6;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dropdown__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1536px) {
  .dropdown:hover .dropdown__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .dropdown:hover > .nav__link { color: var(--blue); }
  .dropdown:hover .dropdown__btn svg { transform: rotate(180deg); }
}
.dropdown__menu a {
  display: block; padding: 11px 14px; border-radius: 9px;
  font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.dropdown__menu a:hover { background: #EEF4FF; color: var(--blue); }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; place-items: center; color: var(--navy); background: #EEF3FC; margin-left: auto; }
.menu-toggle svg { width: 26px; height: 26px; }
.nav-overlay { position: fixed; inset: 0; background: rgba(0, 23, 68, .45); z-index: 99; opacity: 0; transition: opacity .3s; }
.nav-overlay.is-visible { opacity: 1; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding-top: max(36px, calc(64 * var(--px))); }
.hero__title {
  font-size: clamp(34px, calc(80 * var(--px)), 72px);
  line-height: 1.08; font-weight: 700; letter-spacing: -0.015em;
  color: var(--navy);
}
.hero__line { display: block; }
.hero__l2 { color: var(--blue); }
.hero__intro {
  margin-top: max(28px, calc(48 * var(--px)));
  display: grid; grid-template-columns: minmax(0, 770fr) minmax(0, 561fr);
  column-gap: calc(39 * var(--px)); align-items: center;
}
.badges { display: flex; flex-wrap: wrap; gap: max(10px, calc(12 * var(--px))); }
.badge {
  display: inline-flex; align-items: center;
  min-height: max(40px, calc(54 * var(--px)));
  padding: 0 max(16px, calc(24 * var(--px)));
  border: 1.5px solid var(--blue); border-radius: 999px;
  font-size: max(14px, calc(20 * var(--px))); line-height: 1.2; color: var(--ink);
  background: var(--white);
  transition: background-color .25s, color .25s;
}
.badge:hover { background: var(--blue); color: var(--white); }
.hero__text {
  border-left: 2px solid var(--ink);
  padding: max(4px, calc(8 * var(--px))) 0 max(4px, calc(8 * var(--px))) max(20px, calc(40 * var(--px)));
  font-size: max(15px, calc(19 * var(--px))); line-height: 1.58;
}
.hero__band { position: relative; margin-top: max(32px, calc(48 * var(--px))); padding-bottom: calc(84 * var(--px)); }
.hero__band::before { content: ""; position: absolute; left: 0; right: 0; top: calc(214 * var(--px)); bottom: 0; background: var(--navy); }
.hero__media { position: relative; display: grid; grid-template-columns: minmax(0, 940fr) minmax(0, 420fr); gap: calc(40 * var(--px)); }
.hero__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 940 / 400; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.metrics {
  background: var(--blue); color: var(--white);
  border-radius: var(--radius-lg);
  padding: calc(36 * var(--px)) calc(32 * var(--px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
.metrics__item { display: flex; flex-direction: column; gap: calc(6 * var(--px)); }
.metrics__item strong { font-size: max(26px, calc(36 * var(--px))); line-height: 1.05; font-weight: 700; }
.metrics__item span { font-size: max(15px, calc(24 * var(--px))); line-height: 1.25; }

/* =====================================================================
   SOBRE NOSOTROS
   ===================================================================== */
.about { padding: calc(76 * var(--px)) 0 calc(80 * var(--px)); }
.about__grid { display: grid; grid-template-columns: minmax(0, 600fr) minmax(0, 700fr); gap: calc(96 * var(--px)); align-items: center; }
.about .section-title { font-size: max(28px, calc(46 * var(--px))); }
.about__text { margin-top: max(18px, calc(30 * var(--px))); line-height: 1.76; }
.icon-list { margin-top: max(28px, calc(44 * var(--px))); display: grid; gap: max(24px, calc(40 * var(--px))); }
.icon-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: max(14px, calc(16 * var(--px))); align-items: start; }
.icon-item h3 { font-size: max(19px, calc(23 * var(--px))); line-height: 1.3; font-weight: 700; color: var(--ink); margin: calc(4 * var(--px)) 0 calc(6 * var(--px)); }
.icon-item p { line-height: 1.42; }
.mosaic { width: min(100%, 600px); justify-self: end; aspect-ratio: 823 / 906; filter: drop-shadow(0 calc(3 * var(--px)) calc(4 * var(--px)) rgba(0, 0, 0, .28)); }
.mosaic__frame { width: 100%; height: 100%; overflow: hidden; -webkit-clip-path: url(#clip-mosaic); clip-path: url(#clip-mosaic); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }

/* =====================================================================
   TARJETAS (Servicios + Blog)
   ===================================================================== */
.services { background: var(--bg-soft); padding: calc(86 * var(--px)) 0 calc(80 * var(--px)); }
.services .section-title { margin-bottom: max(32px, calc(52 * var(--px))); }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(40 * var(--px)); }
.card {
  position: relative; display: flex; flex-direction: column;
  filter: var(--shadow-card);
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
a.card:hover, .card--blog:hover { transform: translateY(-8px); filter: drop-shadow(0 calc(16 * var(--px)) calc(18 * var(--px)) rgba(0, 32, 93, .16)); }
.card__media { position: relative; }
.card__frame { aspect-ratio: 440 / 240; overflow: hidden; -webkit-clip-path: url(#clip-card); clip-path: url(#clip-card); }
.card__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
a.card:hover .card__frame img, .card--blog:hover .card__frame img { transform: scale(1.07); }
.card__icon { transition: transform .5s var(--ease); }
a.card:hover .card__icon, .card--blog:hover .card__icon { transform: translateY(50%) rotate(-8deg) scale(1.06); }
.card--blog:hover .card__tag .card__icon { transform: rotate(-8deg) scale(1.06); }
.card__icon {
  position: absolute; z-index: 2; left: calc(32 * var(--px)); bottom: 0; transform: translateY(50%);
  width: max(84px, calc(116 * var(--px))); height: max(84px, calc(116 * var(--px)));
  border-radius: 50%; background: var(--blue); color: var(--white);
  border: max(6px, calc(8 * var(--px))) solid var(--white);
  display: grid; place-items: center;
}
.card__icon svg { width: 52%; height: 52%; stroke-width: 1.8; }
.card__icon--navy { background: var(--navy); }
.card__body {
  flex: 1; display: flex; flex-direction: column;
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: max(56px, calc(74 * var(--px))) max(22px, calc(32 * var(--px))) max(26px, calc(34 * var(--px)));
}
.card__title { font-size: max(21px, calc(28 * var(--px))); line-height: 1.32; font-weight: 700; color: var(--ink); text-wrap: balance; }
.card__text { margin-top: max(12px, calc(16 * var(--px))); line-height: 1.6; }

/* Blog */
.card__tag { position: absolute; z-index: 2; left: calc(32 * var(--px)); bottom: 0; transform: translateY(50%); display: flex; align-items: center; }
.card__tag .card__icon { position: relative; left: 0; transform: none; }
.card__pill {
  margin-left: max(-26px, calc(-20 * var(--px)));
  padding: max(5px, calc(6 * var(--px))) max(16px, calc(18 * var(--px))) max(5px, calc(6 * var(--px))) max(22px, calc(30 * var(--px)));
  background: var(--navy); color: var(--white);
  border: max(3px, calc(4 * var(--px))) solid var(--white); border-left: 0;
  border-radius: 0 999px 999px 0;
  font-size: max(14px, calc(18 * var(--px))); font-weight: 500; line-height: 1.5;
}
.card--blog .card__body { padding-top: max(58px, calc(82 * var(--px))); }
.card__date { display: flex; align-items: center; gap: 10px; font-size: max(14px, calc(17 * var(--px))); color: var(--ink); margin-bottom: max(14px, calc(18 * var(--px))); }
.card__date svg { width: max(18px, calc(23 * var(--px))); height: max(18px, calc(23 * var(--px))); color: var(--navy); stroke-width: 1.8; }
.card--blog .card__title { font-size: max(22px, calc(30 * var(--px))); line-height: 1.27; }
.card__link {
  margin-top: auto; padding-top: max(20px, calc(28 * var(--px)));
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  font-size: max(15px, calc(18 * var(--px))); font-weight: 500; color: var(--navy);
  transition: color .2s, gap .25s var(--ease);
}
.card__link svg { width: 18px; height: 18px; }
.card__link:hover { color: var(--blue); gap: 18px; }

/* =====================================================================
   POR QUÉ ELEGIRNOS
   ===================================================================== */
.why { padding: calc(80 * var(--px)) 0 calc(122 * var(--px)); }
.why__grid { display: grid; grid-template-columns: minmax(0, 680fr) minmax(0, 600fr); gap: calc(96 * var(--px)); align-items: center; }
.why__media { position: relative; }
.why__frame { aspect-ratio: 770 / 640; overflow: hidden; -webkit-clip-path: url(#clip-why); clip-path: url(#clip-why); }
.why__img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 45%; }
.why__badge {
  position: absolute; left: calc(60 * var(--px)); bottom: calc(-40 * var(--px));
  width: max(220px, calc(297 * var(--px)));
  padding: max(20px, calc(28 * var(--px))) 16px max(22px, calc(30 * var(--px)));
  background: var(--navy); color: var(--white);
  border-radius: max(18px, calc(24 * var(--px)));
  display: flex; flex-direction: column; align-items: center; gap: max(12px, calc(18 * var(--px)));
  text-align: center;
  box-shadow: 0 calc(4 * var(--px)) calc(8 * var(--px)) rgba(0, 0, 0, .25);
}
.why__badge strong { font-size: max(26px, calc(34 * var(--px))); line-height: 1; font-weight: 700; }
.why__badge span { font-size: max(15px, calc(19 * var(--px))); line-height: 1.3; }
.avatars { display: flex; }
.avatars img {
  width: max(60px, calc(82 * var(--px))); height: max(60px, calc(82 * var(--px)));
  border-radius: 50%; object-fit: cover; border: 3px solid var(--white);
  margin-left: max(-12px, calc(-14 * var(--px)));
}
.avatars img:first-child { margin-left: 0; }
.why .section-title { margin-bottom: max(20px, calc(32 * var(--px))); }
.why__list { border-top: 1px solid var(--line); }
.why__list .icon-item { padding: max(18px, calc(24 * var(--px))) 0; border-bottom: 1px solid var(--line); }
.why__list .icon-item:last-child { border-bottom: 0; }
.why__list .icon-item h3 { margin-top: 0; }

/* =====================================================================
   TESTIMONIO
   ===================================================================== */
.quote { position: relative; height: calc(500 * var(--px)); min-height: 330px; }
.quote__bg { position: absolute; inset: 0; overflow: hidden; }
.quote__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.quote__inner { position: relative; height: 100%; }
.quote__card {
  --notch-w: calc(52 * var(--px)); --notch-h: calc(53 * var(--px)); --r: max(16px, calc(24 * var(--px))); --f: max(12px, calc(20 * var(--px)));
  position: absolute; right: 0; top: calc(161 * var(--px));
  width: max(360px, calc(426 * var(--px)));
  padding: max(36px, calc(84 * var(--px))) max(26px, calc(40 * var(--px))) max(40px, calc(48 * var(--px)));
  color: var(--white);
  isolation: isolate;
  /* filete cóncavo del recorte inferior derecho */
  background: radial-gradient(circle at 100% 100%, transparent calc(var(--f) - .5px), var(--navy) var(--f)) no-repeat;
  background-size: var(--f) var(--f);
  background-position: right calc(var(--notch-w) - var(--f)) bottom calc(var(--notch-h) - var(--f));
  filter: drop-shadow(0 calc(4 * var(--px)) calc(5 * var(--px)) rgba(0, 0, 0, .25));
}
.quote__card::before, .quote__card::after { content: ""; position: absolute; z-index: -1; background: var(--navy); border-radius: var(--r); }
.quote__card::before { inset: 0 var(--notch-w) 0 0; }
.quote__card::after { top: 0; right: 0; bottom: var(--notch-h); width: calc(var(--notch-w) + var(--r) * 2); }
.quote__card blockquote p { font-size: max(15px, calc(18 * var(--px))); line-height: 1.67; }
.quote__author { display: flex; align-items: center; gap: max(14px, calc(16 * var(--px))); margin-top: max(24px, calc(38 * var(--px))); }
.quote__author img { width: max(56px, calc(70 * var(--px))); height: max(56px, calc(70 * var(--px))); border-radius: 50%; border: 3px solid var(--white); object-fit: cover; }
.quote__author strong { display: block; font-size: max(17px, calc(20 * var(--px))); font-weight: 600; line-height: 1.3; }
.quote__author small { display: block; font-size: max(12px, calc(14 * var(--px))); text-transform: uppercase; letter-spacing: .01em; opacity: .95; }

/* =====================================================================
   MARCAS
   ===================================================================== */
.brands { padding: max(80px, calc(130 * var(--px))) 0 calc(80 * var(--px)); }
.brands__title { max-width: 11.5em; margin: 0 auto max(32px, calc(52 * var(--px))); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee + .marquee { margin-top: max(12px, calc(32 * var(--px))); }
.marquee__track { display: flex; width: max-content; gap: max(12px, calc(16 * var(--px))); animation: marquee 45s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - max(6px, calc(8 * var(--px))))); } }
.brand-box {
  width: max(170px, calc(270 * var(--px))); height: max(84px, calc(130 * var(--px)));
  flex-shrink: 0; border-radius: max(8px, calc(10 * var(--px)));
  background: #F1F3F6; border: 1px solid #E4E8EE;
  display: grid; place-items: center; padding: max(14px, calc(22 * var(--px)));
  transition: background-color .3s, box-shadow .3s;
}
.brand-box img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.brand-box:hover { background: var(--white); box-shadow: 0 8px 22px rgba(0, 32, 93, .1); }
.brand-box:hover img { filter: none; opacity: 1; }
.brand-box__name { font-weight: 600; color: var(--navy); text-align: center; font-size: max(14px, calc(18 * var(--px))); line-height: 1.2; }

/* =====================================================================
   CONTACTO
   ===================================================================== */
.contact { background: var(--bg-soft); padding: calc(100 * var(--px)) 0 calc(84 * var(--px)); scroll-margin-top: 90px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 912fr); gap: calc(80 * var(--px)); align-items: center; }
.contact__card {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg);
  padding: max(32px, calc(48 * var(--px))) max(22px, calc(32 * var(--px)));
  display: grid; gap: max(28px, calc(40 * var(--px)));
  box-shadow: 0 calc(4 * var(--px)) calc(6 * var(--px)) rgba(0, 0, 0, .25);
}
.contact__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: max(16px, calc(24 * var(--px))); align-items: start; }
.contact__row .icon-circle { width: max(56px, calc(72 * var(--px))); height: max(56px, calc(72 * var(--px))); }
.contact__row h3 { font-size: max(20px, calc(25 * var(--px))); font-weight: 600; line-height: 1.25; margin: calc(4 * var(--px)) 0 calc(8 * var(--px)); }
.contact__row p, .contact__row li { line-height: 1.42; overflow-wrap: anywhere; }
.contact__row li { position: relative; padding-left: max(20px, calc(26 * var(--px))); }
.contact__row li::before { content: "•"; position: absolute; left: max(6px, calc(10 * var(--px))); }
.contact__row a:hover { color: #BFD3FF; }
.form { display: grid; gap: max(18px, calc(26 * var(--px))); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: max(18px, calc(36 * var(--px))); }
.field { display: grid; gap: max(6px, calc(8 * var(--px))); }
.field label { font-size: max(15px, calc(17 * var(--px))); font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; min-height: max(46px, calc(46 * var(--px)));
  padding: 10px max(14px, calc(16 * var(--px)));
  border: 1px solid var(--input-line); border-radius: 8px;
  background: var(--white); color: var(--ink);
  font-size: max(15px, calc(17 * var(--px)));
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: max(120px, calc(140 * var(--px))); min-height: 100px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6B6F76; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(12, 95, 247, .14); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #D93025; }
.form .btn { min-height: max(50px, calc(57 * var(--px))); border-radius: 8px; font-size: max(16px, calc(20 * var(--px))); font-weight: 600; margin-top: max(4px, calc(6 * var(--px))); }

/* =====================================================================
   BLOG
   ===================================================================== */
.blog { padding: calc(84 * var(--px)) 0 max(110px, calc(136 * var(--px))); scroll-margin-top: 90px; }
.blog__header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: max(32px, calc(50 * var(--px))); }
.blog__header .section-title { font-size: max(28px, calc(46 * var(--px))); }
.blog__header .btn { font-weight: 400; font-size: max(15px, calc(18 * var(--px))); min-height: max(48px, calc(62 * var(--px))); }

/* =====================================================================
   CTA
   ===================================================================== */
.cta { position: relative; color: var(--white); }
.cta__bg { position: absolute; inset: 0; overflow: hidden; background: #2B3536; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 10, 30, .45), rgba(0, 10, 30, .1) 70%); }
.cta__inner { position: relative; min-height: max(300px, calc(363 * var(--px))); display: flex; align-items: center; }
.cta__content { position: relative; z-index: 2; padding: max(40px, calc(40 * var(--px))) 0; max-width: calc(1000 * var(--px)); }
.cta h2 { font-size: max(24px, calc(34 * var(--px))); line-height: 1.25; font-weight: 600; }
.cta p { font-size: max(24px, calc(34 * var(--px))); line-height: 1.3; font-weight: 600; color: var(--blue); margin-top: max(6px, calc(12 * var(--px))); text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.cta__buttons { display: flex; flex-wrap: wrap; gap: max(12px, calc(16 * var(--px))); margin-top: max(24px, calc(30 * var(--px))); }
.cta__person {
  position: absolute; z-index: 1; bottom: 0; right: calc(20 * var(--px));
  height: calc(100% + 56 * var(--px)); width: auto; max-width: none;
  pointer-events: none; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--navy); color: #D5DEEE; font-size: max(15px, calc(16 * var(--px))); }
.footer__top { padding: max(56px, calc(88 * var(--px))) 0 max(44px, calc(64 * var(--px))); }
.footer__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.45fr; gap: max(32px, calc(64 * var(--px))); }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: max(22px, calc(28 * var(--px))); }
.footer__logo img { width: max(170px, calc(232 * var(--px))); }
.footer .social a { background: rgba(255, 255, 255, .12); color: var(--white); }
.footer .social a:hover { background: var(--blue); }
.footer__title { font-size: max(17px, calc(20 * var(--px))); font-weight: 600; color: var(--white); margin-bottom: max(14px, calc(20 * var(--px))); position: relative; padding-bottom: 12px; }
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--blue); }
.footer__title--spaced { margin-top: max(24px, calc(32 * var(--px))); }
.footer__col ul { display: grid; gap: max(10px, calc(12 * var(--px))); }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__contact li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; line-height: 1.5; overflow-wrap: anywhere; }
.footer__contact svg { width: 19px; height: 19px; color: var(--blue-soft); margin-top: 3px; }
.footer__bottom { position: relative; overflow: hidden; background: var(--navy-deep); }
.footer__bottom-inner { min-height: max(56px, calc(76 * var(--px))); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: max(14px, calc(16 * var(--px))); }
.footer__claims { position: relative; display: inline-flex; align-items: center; gap: 10px; padding-left: max(40px, calc(110 * var(--px))); color: var(--white); align-self: stretch; font-weight: 500; }
.footer__claims::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: -50vw;
  background: var(--accent-grad); transform: skewX(-22deg); transform-origin: bottom left;
  border-radius: max(12px, calc(22 * var(--px))) 0 0 max(12px, calc(22 * var(--px)));
}
.footer__claims svg { width: 20px; height: 20px; }
.footer__claims:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom-inner { position: relative; z-index: 0; }

/* =====================================================================
   ANIMACIONES
   - Entrada del hero al cargar (secuencia escalonada)
   - Revelado al hacer scroll con variantes: data-reveal="left|right|mosaic|rise"
   - Escalonado de hijos: [data-stagger]
   Se usan @keyframes con fill "backwards" para no bloquear los hovers.
   ===================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); }

@keyframes a-up      { from { opacity: 0; transform: translate3d(0, 34px, 0); } }
@keyframes a-left    { from { opacity: 0; transform: translate3d(-56px, 0, 0); } }
@keyframes a-right   { from { opacity: 0; transform: translate3d(56px, 0, 0); } }
@keyframes a-fade    { from { opacity: 0; } }
@keyframes a-blur-up { from { opacity: 0; transform: translate3d(0, 44px, 0); filter: blur(10px); } }
@keyframes a-pop     { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes a-zoom-out{ from { transform: scale(1.18); } }
@keyframes a-wipe    { from { clip-path: inset(100% 0 0 0 round var(--radius-lg)); } to { clip-path: inset(0 0 0 0 round var(--radius-lg)); } }
@keyframes a-band    { from { transform: scaleX(0); } }
@keyframes a-rise    { from { opacity: 0; transform: translate3d(0, 80px, 0); } }
@keyframes a-down    { from { opacity: 0; transform: translate3d(0, -18px, 0); } }

/* ---- Entrada inicial ---- */
.js .topbar__inner, .js .header__inner { animation: a-down .9s var(--ease-out) backwards; }
.js .header__inner { animation-delay: .08s; }
.js [data-hero] { opacity: 0; }
.js.is-loaded [data-hero] { opacity: 1; }
.js.is-loaded .hero__l1 { animation: a-blur-up 1.1s var(--ease-out) .15s backwards; }
.js.is-loaded .hero__l2 { animation: a-blur-up 1.1s var(--ease-out) .3s backwards; }
.js.is-loaded .badges { opacity: 1; }
.js.is-loaded .badges > li { animation: a-up .8s var(--ease-out) backwards; animation-delay: calc(.55s + var(--i, 0) * 70ms); }
.js.is-loaded .hero__text { animation: a-left 1s var(--ease-out) .7s backwards; }
.js.is-loaded .hero__img { animation: a-wipe 1.3s var(--ease-io) .75s backwards; }
.js.is-loaded .hero__img img { animation: a-zoom-out 2.2s var(--ease-out) .75s backwards; }
.js.is-loaded .metrics { animation: a-right 1.1s var(--ease-out) 1s backwards; }
.js.is-loaded .metrics__item { animation: a-up .8s var(--ease-out) backwards; animation-delay: calc(1.2s + var(--i, 0) * 110ms); }
.js .hero__band::before { transform-origin: left center; }
.js.is-loaded .hero__band::before { animation: a-band 1.4s var(--ease-io) .55s backwards; }

/* ---- Revelado al hacer scroll ---- */
.js .reveal:not(.is-visible) { opacity: 0; }
.js .reveal.is-visible { animation: a-up .95s var(--ease-out) backwards; }
.js .reveal.is-visible[data-reveal="left"]  { animation-name: a-left; }
.js .reveal.is-visible[data-reveal="right"] { animation-name: a-right; }
.js .reveal.is-visible[data-reveal="rise"]  { animation: a-rise 1.2s var(--ease-out) .15s backwards; }
.js .reveal.is-visible[data-reveal="mosaic"] { animation: a-fade 1s var(--ease-out) backwards; }
.js .reveal.is-visible[data-reveal="mosaic"] img,
.js .reveal.is-visible .why__img { animation: a-zoom-out 2s var(--ease-out) backwards; }
.js .reveal.is-visible .why__badge { animation: a-up 1s var(--ease-out) .35s backwards; }
.js .reveal.is-visible .quote__author { animation: a-up .9s var(--ease-out) .3s backwards; }

/* ---- Escalonado ---- */
.js [data-stagger]:not(.is-visible) > * { opacity: 0; }
.js [data-stagger].is-visible > * { animation: a-up .9s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 110ms + var(--stagger-base, 0ms)); }
.js .contact__card[data-stagger] { --stagger-base: 250ms; }
.js [data-stagger].is-visible .icon-circle { animation: a-pop .7s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 110ms + 200ms); }
.js .contact__card[data-stagger].is-visible .icon-circle { animation-delay: calc(var(--i, 0) * 110ms + 450ms); }

/* ---- Micro-interacciones ---- */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn--primary:hover::after { transform: translateX(120%); }
.icon-item .icon-circle, .contact__row .icon-circle { transition: transform .45s var(--ease-out), box-shadow .45s; }
.icon-item:hover .icon-circle, .contact__row:hover .icon-circle { transform: translateY(-3px) rotate(-6deg); box-shadow: 0 10px 22px rgba(12, 95, 247, .35); }
.metrics__item strong { font-variant-numeric: tabular-nums; }
.hero__img img { transition: transform 1.2s var(--ease-out); }
.hero__img:hover img { transform: scale(1.04); }
.why__frame img, .mosaic__frame img { transition: transform 1.4s var(--ease-out); }
.why__media:hover .why__frame img, .mosaic:hover .mosaic__frame img { transform: scale(1.05); }
.avatars img { transition: transform .35s var(--ease-out); }
.avatars img:hover { transform: translateY(-6px); position: relative; z-index: 1; }
.social a svg { transition: transform .35s var(--ease-out); }
.social a:hover svg { transform: scale(1.12); }

/* ---- Parallax (fondos del testimonio y CTA) ---- */
.quote__bg img, .cta__bg img { will-change: transform; }
/* La imagen es un 24% más alta que su marco y se centra con top (no margin, que se calcula sobre el ancho) */
.has-parallax .quote__bg img, .has-parallax .cta__bg img { position: absolute; left: 0; top: -12%; height: 124%; }

/* ---- Barra de progreso de lectura ---- */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  transform: scaleX(var(--progress, 0)); transform-origin: left; pointer-events: none;
}

/* ---- Botón volver arriba ---- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 32, 93, .3);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .35s, transform .45s var(--ease-out), visibility .35s, background-color .25s;
}
.to-top svg { width: 22px; height: 22px; transition: transform .3s var(--ease-out); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }
.to-top:hover svg { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-hero], .js .reveal, .js [data-stagger] > * { opacity: 1 !important; }
  .has-parallax .quote__bg img, .has-parallax .cta__bg img { top: 0; height: 100%; transform: none !important; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* ---- Laptop: menú en panel lateral (9 enlaces no caben en una línea) ---- */
@media (max-width: 1535px) {
  .header__inner { width: min(var(--container), 100% - 2 * var(--gutter)); }
  .menu-toggle { display: grid; }
  .header__cta { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
  .nav {
    position: fixed; z-index: 150; top: 0; right: 0; bottom: 0;
    width: min(400px, 88vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    background: var(--white); padding: 20px 22px 28px;
    overflow-y: auto; overscroll-behavior: contain;
    box-shadow: -20px 0 50px rgba(0, 23, 68, .18);
    transform: translateX(105%); visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; margin-bottom: 10px; border-bottom: 1px solid #E8ECF2; }
  .nav__head img { width: 150px; }
  .nav__close { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #EEF3FC; color: var(--navy); }
  .nav__close svg { width: 22px; height: 22px; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link, .nav__link--wrap, .nav__link--wrap-md, .nav__link.nav__link--long { width: 100%; white-space: normal; max-width: none; justify-content: space-between; text-align: left; font-size: 17px; font-weight: 500; padding: 14px 12px; border-radius: 10px; }
  .nav__link::after { display: none; }
  .nav__link:hover { background: #F2F6FD; }
  .dropdown__btn span { width: auto; }
  .dropdown__menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; display: none; background: none; }
  .dropdown__menu::before { display: none; }
  .dropdown.is-open .dropdown__menu { display: block; transform: none; }
  .dropdown__menu a { font-size: 16px; color: var(--ink-soft); border-left: 2px solid #E1E8F5; border-radius: 0 9px 9px 0; }
  .nav__cta { display: inline-flex; margin-top: 20px; min-height: 52px; font-size: 17px; }
  .nav__social { display: block; margin-top: 22px; }
  .nav__social .social { justify-content: center; }
  .nav__social .social a { width: 40px; height: 40px; background: #EEF3FC; }
  .nav__social .social a:hover { background: var(--blue); }
}

/* ---- Tablet horizontal / laptop pequeña ---- */
@media (max-width: 1279px) {
  :root { --gutter: 6vw; --gutter-top: 6vw; --gutter-wide: 6vw; --px: clamp(0.5px, calc(100vw / 1500), 1px); }
  .topbar__info .topbar__address { display: none; }
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact__row p, .contact__row li { overflow-wrap: break-word; }
}

/* ---- Tablet ---- */
@media (max-width: 1023px) {
  :root { --px: 0.8px; }
  .topbar__info li:nth-child(2) span { display: none; }
  .hero__title { font-size: clamp(36px, 6.4vw, 58px); }
  .cards-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 14px); }
  .hero__intro { grid-template-columns: 1fr; row-gap: 26px; }
  .hero__text { border-left: 0; border-top: 2px solid var(--ink); padding: 22px 0 0; }
  .hero__media { grid-template-columns: 1fr; gap: 20px; }
  .hero__band::before { top: 160px; }
  .hero__img { aspect-ratio: 16 / 9; }
  .metrics { flex-direction: row; justify-content: space-between; padding: 26px 28px; }
  .metrics__item { flex: 1; }
  .metrics__item + .metrics__item { border-left: 1px solid rgba(255, 255, 255, .28); padding-left: 22px; }

  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .mosaic { width: min(100%, 560px); margin-inline: auto; justify-self: center; }

  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

  .why__grid { grid-template-columns: 1fr; gap: 72px; }
  .why__media { width: min(100%, 620px); margin-inline: auto; }

  .quote { height: auto; min-height: 0; padding: 0; }
  .quote__bg { position: relative; aspect-ratio: 16 / 9; }
  .quote__inner { height: auto; }
  .quote__card { position: relative; top: auto; right: auto; width: min(100%, 560px); margin: -90px 0 0 auto; }

  .contact__grid { grid-template-columns: 1fr; gap: 44px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta__person { right: 0; height: calc(100% + 30px); opacity: .95; }
  .cta__content { max-width: 64%; }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
  :root { --gutter: 20px; --gutter-top: 20px; --gutter-wide: 20px; --px: 0.75px; --radius-lg: 22px; }
  body { font-size: 15.5px; }

  .topbar__inner { min-height: 44px; gap: 12px; }
  .topbar__info { gap: 14px; }
  .topbar__info li:nth-child(1) span { font-size: 13px; }
  .topbar__social { padding-left: 30px; }
  .social a { width: 30px; height: 30px; }
  .topbar .social { gap: 6px; }

  .header__inner { min-height: 68px; }
  .header__logo img { width: 140px; }
  .header__cta { display: none; }
  .menu-toggle { margin-left: auto; }

  .hero { padding-top: 32px; }
  .hero__title { font-size: clamp(31px, 8.6vw, 44px); line-height: 1.08; }
  .badges { gap: 8px; }
  .badge { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
  .hero__band { padding-bottom: 48px; }
  .hero__band::before { top: 120px; }
  .hero__img { aspect-ratio: 4 / 3; }
  .metrics { padding: 22px 18px; gap: 10px; }
  .metrics__item + .metrics__item { padding-left: 12px; }
  .metrics__item strong { font-size: 24px; }
  .metrics__item span { font-size: 13px; }

  .about { padding: 56px 0; }
  .icon-item { gap: 14px; }

  .services { padding: 60px 0; }
  .cards-grid { grid-template-columns: 1fr; gap: 26px; }
  .cards-grid > :last-child:nth-child(odd) { width: 100%; }

  .why { padding: 56px 0 72px; }
  .why__grid { gap: 64px; }
  .why__badge { left: 16px; width: 210px; }

  .quote__bg { aspect-ratio: 4 / 3; }
  .quote__card { width: calc(100% - 8px); margin-top: -70px; }
  .quote__card { --notch-w: 34px; --notch-h: 36px; }

  .brands { padding: 64px 0 56px; }
  .brands__title { max-width: 12em; }

  .contact { padding: 60px 0; }
  .contact__card { padding: 28px 18px; }
  .contact__row { gap: 14px; }
  .contact__row .icon-circle { width: 48px; height: 48px; }
  .contact__row h3 { font-size: 19px; }
  .contact__row p, .contact__row li { font-size: 14.5px; }
  .contact__row li { padding-left: 16px; }
  .contact__row li::before { left: 3px; }
  .form__row { grid-template-columns: 1fr; }

  .blog { padding: 60px 0 90px; }
  .blog__header { flex-direction: column; align-items: flex-start; }

  .cta__inner { min-height: 0; flex-direction: column; align-items: stretch; }
  .cta__content { max-width: none; padding: 48px 0 36px; }
  .cta__buttons { flex-direction: column; }
  .cta__buttons .btn { width: 100%; }
  .cta__person { position: relative; right: auto; height: 300px; align-self: center; margin-top: -10px; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 16px; }
  .footer__claims { padding: 16px 0 16px 0; margin-left: -20px; padding-left: 20px; width: calc(100% + 40px); }
  .footer__claims::before { left: 0; transform: none; border-radius: 0; }
}

@media (max-width: 380px) {
  .topbar__info li:nth-child(1) span { display: none; }
}

/* ==========================================================================
   CÓDIGO GENERAL (FUERA DE CUALQUIER MEDIA QUERY DE MÓVIL)
   ========================================================================== */

/* Header */
.header__logo img {
  max-height: 36px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Marquee / Cinta a color */
.brand-box {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #ffffff !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e2e8f0 !important;
  min-width: 165px !important;
  height: 85px !important;
  flex-shrink: 0 !important;
}

.brand-box img {
  max-width: 90% !important;
  max-height: 80% !important;
  object-fit: contain !important;
  filter: none !important;
  opacity: 1 !important;
  display: block !important;
  margin: 0 auto !important;
  transition: transform 0.3s ease !important;
}

.brand-box:hover img {
  transform: scale(1.06) !important;
}

.marquee {
  overflow: hidden !important;
  width: 100% !important;
  display: flex !important;
  padding: 10px 0 !important;
}

.marquee__track {
  display: flex !important;
  gap: 20px !important;
  width: max-content !important;
  animation: marqueeScroll 38s linear infinite !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.marquee--reverse .marquee__track {
  animation: marqueeScrollRev 38s linear infinite !important;
}

.marquee:hover .marquee__track {
  animation-play-state: paused !important;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeScrollRev {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Logo Footer */
.footer__logo-card {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  margin-bottom: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.footer__logo-card img {
  height: 38px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* Animaciones globales (PC y Móvil) */
[data-hero] {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.js [data-hero="1"] { transition-delay: 0.1s; }
.js [data-hero="2"] { transition-delay: 0.25s; }
.js [data-hero="3"] { transition-delay: 0.4s; }
.js [data-hero="4"] { transition-delay: 0.55s; }
.js [data-hero="5"] { transition-delay: 0.7s; }
.js [data-hero="6"] { transition-delay: 0.85s; }

html.js [data-hero].is-visible,
html.js [data-hero].active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal[data-reveal="left"] { transform: translateX(-60px); }
.reveal[data-reveal="right"] { transform: translateX(60px); }
.reveal[data-reveal="rise"] { transform: translateY(60px); }
.reveal[data-reveal="mosaic"] { opacity: 0; transform: scale(0.92) translateY(30px); }

.reveal.is-visible,
.reveal.active {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-stagger].is-visible > *:nth-child(1), [data-stagger].active > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
[data-stagger].is-visible > *:nth-child(2), [data-stagger].active > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
[data-stagger].is-visible > *:nth-child(3), [data-stagger].active > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
[data-stagger].is-visible > *:nth-child(4), [data-stagger].active > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }