/* ==========================================================
   VoxIntra Languages — estilos del sitio
   Paleta tomada del logo. Para cambiar colores, editar :root.
   ========================================================== */

:root {
  --navy: #003D54;          /* Primary Navy — color institucional */
  --navy-deep: #002B3C;
  --green-dark: #0C3B32;    /* Dark Green — secundario */
  --accent: #2DB882;        /* Accent Green — sólo acentos */
  --accent-ink: #1A7F57;    /* Acento oscurecido para texto sobre blanco (contraste AA) */
  --white: #FFFFFF;
  --gray-50: #F4F6F6;       /* Light Gray */
  --gray-100: #E8EDED;
  --gray-300: #C9D3D4;
  --gray-600: #5A6E74;
  --ink: #18323B;           /* Dark Text */

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0, 43, 60, .05), 0 8px 24px rgba(0, 43, 60, .06);
  --shadow-hover: 0 2px 4px rgba(0, 43, 60, .06), 0 14px 32px rgba(0, 43, 60, .10);
  --container: 1160px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2, .h2-like { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-lg { width: 40px; height: 40px; stroke-width: 1.4; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 26px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; box-shadow: 0 0 0 4px rgba(45, 184, 130, .25); }
.btn-accent { background: var(--accent); color: var(--navy-deep); }
.btn-accent:hover { background: #3fcb94; color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--gray-300); }
.btn-ghost:hover { border-color: var(--accent); color: var(--navy); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .82rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.eyebrow-light { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--ink); }
.note { font-size: .95rem; color: var(--gray-600); max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--gray-100); box-shadow: 0 4px 18px rgba(0, 43, 60, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand-name { font-family: "Lato", sans-serif; font-weight: 700; font-size: 1.22rem; color: var(--navy); letter-spacing: -.005em; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 20px; order: 2; margin-left: auto; }
.main-nav ul { display: flex; gap: 18px; }
.main-nav ul a { white-space: nowrap; }
.site-header .container { max-width: 1340px; }
.nav-cta { white-space: nowrap; }
.header-tools { order: 3; display: flex; align-items: center; gap: 8px; }
.nav-aud { display: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--gray-300); border-radius: 999px; padding: 3px; }
.lang-switch button { font: inherit; font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .06em; min-width: 40px; min-height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--gray-600); cursor: pointer; transition: background-color .2s, color .2s; }
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang-switch button:not([aria-pressed="true"]):hover { color: var(--navy); }

/* Segmentado Empresas / Profesionales */
.aud-seg { display: inline-flex; background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: 999px; padding: 3px; }
.aud-seg button { font: inherit; font-family: var(--font-head); font-weight: 700; font-size: .85rem; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--gray-600); cursor: pointer; transition: background-color .2s, color .2s; }
.aud-seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Selector flotante */
.aud-float {
  position: fixed; left: 50%; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 18px; background: rgba(255, 255, 255, .97); border: 1px solid var(--gray-100); border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 43, 60, .16); font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--navy);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .35s ease, opacity .35s ease; pointer-events: none;
}
.aud-float.is-shown { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

/* Visibilidad por perfil */
.aud-emp [data-aud="pro"], .aud-pro [data-aud="emp"] { display: none !important; }

/* Barra de progreso de lectura */
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.btn.is-sending { opacity: .7; cursor: progress; }
.main-nav ul a {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: none;
  padding: 6px 0; position: relative;
}
.main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.main-nav ul a:hover, .main-nav ul a.is-current { color: var(--navy); }
.main-nav ul a:hover::after, .main-nav ul a.is-current::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: var(--radius-sm); }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 12px; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s;
}
.nav-toggle-bar { top: 23px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -7px; }
.nav-toggle-bar::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-gray { background: var(--gray-50); }
.section-navy { background: var(--navy); color: rgba(255, 255, 255, .86); }
.section-green { background: var(--green-dark); color: rgba(255, 255, 255, .86); }
.section-navy h2, .section-navy h3, .section-green h2, .section-green h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-top { margin-bottom: clamp(64px, 8vw, 104px); }

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

.card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--gray-300); }
.card > .ico { color: var(--accent-ink); width: 30px; height: 30px; margin-bottom: 18px; }
.card h3, .card h4 { margin-bottom: .45em; }
.card p { margin: 0; color: var(--gray-600); font-size: 1rem; }
.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; box-shadow: none; }
.card-flat h4 { font-size: 1.15rem; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px solid var(--accent); display: inline-block; }

.tag-list { display: grid; gap: 12px; margin-top: 28px; }
.tag-list li { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; color: var(--navy); padding: 14px 18px; background: var(--gray-50); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.tag-list .ico { color: var(--accent-ink); width: 20px; height: 20px; }

.dot-list li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.pillars-inline { display: flex; flex-wrap: wrap; gap: 8px 0; margin-bottom: 36px; }
.pillars-inline li { font-family: var(--font-head); font-weight: 700; font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.pillars-inline li + li::before { content: "·"; color: var(--accent); margin: 0 14px; }
.hero-copy { position: relative; z-index: 1; }
.hero-deco { position: absolute; right: -8%; top: -20%; width: 34%; height: 150%; background: linear-gradient(180deg, rgba(45, 184, 130, .08), rgba(0, 61, 84, .05)); transform: skewX(-28deg); pointer-events: none; }

/* Elección de perfil */
.aud-choice-q { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.aud-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aud-card {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  padding: 18px; min-height: 84px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, transform .2s, background-color .2s;
}
.aud-card > .ico:first-child { width: 30px; height: 30px; color: var(--accent-ink); }
.aud-card strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--navy); line-height: 1.25; }
.aud-card small { display: block; font-size: .86rem; color: var(--gray-600); line-height: 1.35; margin-top: 2px; }
.aud-card .ico-go { margin-left: auto; width: 20px; height: 20px; color: var(--navy); transition: transform .2s; }
.aud-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.aud-card:hover .ico-go { transform: translateX(4px); }
.aud-card[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.aud-card[aria-pressed="true"] .ico-go { color: var(--accent-ink); }

/* Carrusel */
.carousel { position: relative; border-radius: 14px; overflow: hidden; background: var(--navy); box-shadow: 0 24px 48px rgba(0, 43, 60, .18); }
.carousel-track { position: relative; aspect-ratio: 4 / 4.2; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 43, 60, 0) 35%, rgba(0, 43, 60, .55) 60%, rgba(0, 43, 60, .94) 100%); }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 1; padding: 0 28px; color: #fff; }
.slide-kicker { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-deep); background: var(--accent); padding: 4px 10px; border-radius: 3px; margin-bottom: 12px; }
.slide-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; margin-bottom: 14px; color: #fff; max-width: 440px; }
.slide-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: var(--font-head); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.slide-link .ico { width: 18px; height: 18px; transition: transform .2s; }
.slide-link:hover { color: #fff; }
.slide-link:hover .ico { transform: translateX(4px); }
.slide.is-active .slide-caption > * { animation: capIn .7s ease both; }
.slide.is-active .slide-title { animation-delay: .08s; }
.slide.is-active .slide-link { animation-delay: .16s; }
@keyframes capIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.carousel-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 16px 28px; }
.car-dots { display: flex; gap: 8px; flex: 1; }
.car-dot { width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.car-dot span { display: block; height: 3px; background: rgba(255, 255, 255, .35); border-radius: 2px; overflow: hidden; position: relative; }
.car-dot span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.car-dot.is-active span::after { transform: scaleX(1); }
.carousel.is-timing .car-dot.is-active span::after { animation: dotFill 6.5s linear both; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.car-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 43, 60, .35); color: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
.car-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--navy-deep); }
.car-btn .ico { width: 18px; height: 18px; }

/* Entrada del hero al cargar */
.js .hero-in { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .is-loaded .hero-in { opacity: 1; transform: none; }
.js .is-loaded .hero-copy .hero-in:nth-child(2) { transition-delay: .08s; }
.js .is-loaded .hero-copy .hero-in:nth-child(3) { transition-delay: .16s; }
.js .is-loaded .hero-copy .hero-in:nth-child(4) { transition-delay: .24s; }
.js .is-loaded .carousel.hero-in { transition-delay: .2s; }

/* Cinta de habilidades */
.ticker { background: var(--navy); color: #fff; overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker span { font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; }
.ticker span::after { content: ""; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); margin-left: 22px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .14); }
.pillar { position: relative; padding: 40px 36px 8px 0; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid rgba(255, 255, 255, .14); }
.pillar-num { position: absolute; top: 40px; right: 24px; font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: rgba(255, 255, 255, .35); }
.pillar .ico { color: var(--accent); margin-bottom: 22px; }
.pillar h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); text-transform: uppercase; letter-spacing: .04em; }
.pillar p { font-size: 1.05rem; margin: 0; }

/* ---------- Niveles ---------- */
.levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; height: 280px; }
.level {
  height: calc(35% + var(--step) * 13%);
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 4px;
  text-align: left; padding: 20px; cursor: pointer;
  background: #fff; color: var(--navy); border: 1px solid var(--gray-100); border-top: 4px solid var(--gray-300); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font: inherit; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s;
}
.level:hover { border-top-color: var(--accent); }
.level-tag { font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-600); }
.level-name { font-family: var(--font-head); font-size: 1.08rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.level.is-active { background: var(--navy); color: #fff; border-color: var(--navy); border-top-color: var(--accent); }
.level.is-active .level-tag { color: var(--accent); }
.level-panel { background: #fff; border: 1px solid var(--gray-100); border-top: 0; padding: 28px 32px; margin-bottom: 20px; border-radius: 0 0 var(--radius) var(--radius); }
.level-panel-title { margin-bottom: .3em; }
.level-panel-text { margin: 0; max-width: 720px; }
.level-panel.is-changing { opacity: .2; }
.level-panel { transition: opacity .2s ease; }

.work-blocks { margin-top: 72px; }
.sub-title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 28px; }
.work-blocks .note { margin-top: 24px; }

.cta-inline {
  margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; background: var(--gray-50); border: 1px solid var(--gray-100); border-left: 4px solid var(--accent); border-radius: var(--radius);
}
.cta-inline p { margin: 0; max-width: 620px; }
.cta-inline strong { color: var(--navy); }

/* ---------- Talleres ---------- */
.workshops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.workshop {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 24px;
  border: 1px solid var(--gray-100); border-radius: var(--radius); background: #fff; overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.workshop::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.workshop .ico { color: var(--accent-ink); width: 30px; height: 30px; margin-bottom: 4px; transition: transform .25s; }
.workshop h3 { font-size: 1.08rem; margin: 0; }
.workshop p { margin: 0; font-size: .95rem; color: var(--gray-600); line-height: 1.55; }
.workshop:hover { border-color: var(--gray-300); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.workshop:hover::before { transform: scaleX(1); }
.workshop:hover .ico { transform: scale(1.08); }

.level-req { display: flex; align-items: flex-start; gap: 14px; margin: 28px 0 0; padding: 18px 22px; background: #fff; border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1rem; }
.level-req .ico { color: var(--accent-ink); margin-top: 1px; }
.level-req strong { color: var(--navy); }

/* ---------- Metodología ---------- */
.method { padding: 28px 24px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); transition: border-color .25s, background-color .25s; }
.method:hover { border-color: var(--accent); background: rgba(255, 255, 255, .03); }
.method-num { display: block; font-family: var(--font-head); font-weight: 800; color: var(--accent); margin-bottom: 18px; }
.method h3 { font-size: 1.15rem; }
.method p { margin: 0; }

/* ---------- Empresas ---------- */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.benefits li { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--gray-100); font-weight: 700; color: var(--navy); }
.benefits .ico { color: var(--accent-ink); width: 20px; height: 20px; }

.process-wrap { margin-bottom: clamp(64px, 8vw, 104px); }
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; counter-reset: tl; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--gray-100); }
.timeline li { z-index: 1; }
.timeline li { position: relative; padding-top: 68px; }
.tl-num {
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; color: #fff; background: var(--navy); border-radius: 50%;
  box-shadow: 0 0 0 6px #fff;
}
.timeline li:last-child .tl-num { background: var(--accent); color: var(--navy-deep); }
.timeline h4 { font-size: 1.02rem; }
.timeline p { font-size: .95rem; color: var(--gray-600); margin: 0; }

/* ---------- Por qué ---------- */
.why h2 { margin-bottom: 32px; }
.why-list li { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: #fff; }
.why-list li:first-child { border-top: 1px solid rgba(255, 255, 255, .14); }
.why-list .ico { color: var(--accent); }

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { position: relative; }
.about-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--accent); border-radius: var(--radius); }
.about-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.role { font-family: var(--font-head); font-weight: 700; color: var(--accent-ink); letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; margin-top: -8px; margin-bottom: 24px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.facts li { transition: transform .25s, box-shadow .25s; }
.facts li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.facts li { padding: 18px 20px; background: var(--gray-50); border-radius: var(--radius-sm); border-left: 3px solid var(--accent); }
.facts strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); line-height: 1.25; }
.facts span { font-size: .92rem; color: var(--gray-600); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--gray-300); }
.faq details:first-child { border-top: 1px solid var(--gray-300); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--accent-ink); transition: transform .25s ease; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; margin: 0; max-width: 680px; }

/* ---------- Misión ---------- */
.mission { background: var(--green-dark); color: #fff; padding: clamp(72px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.mission::after { content: ""; position: absolute; right: -6%; top: -30%; width: 26%; height: 160%; background: var(--navy); transform: skewX(-28deg); opacity: .55; }
.mission-inner { position: relative; z-index: 1; max-width: 900px; }
.mission-quote { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.4; color: rgba(255, 255, 255, .92); margin-bottom: 40px; }
.mission h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 28px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-links { display: grid; gap: 12px; margin-top: 28px; }
.contact-links a {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; min-height: 64px;
  border: 1px solid var(--gray-100); border-radius: var(--radius); text-decoration: none; color: var(--navy); font-weight: 700;
  transition: border-color .2s, background-color .2s;
  word-break: break-word;
}
.contact-links a:hover { border-color: var(--accent); background: var(--gray-50); }
.contact-links .ico { color: var(--accent-ink); width: 26px; height: 26px; }
.contact-links small { display: block; font-weight: 400; color: var(--gray-600); font-size: .82rem; }

.form { background: var(--gray-50); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--gray-100); }
.form-title { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.field label .req { color: var(--accent-ink); }
.modes .grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(45, 184, 130, .3); }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.field-error { display: block; color: #B3261E; font-size: .86rem; margin-top: 6px; }
.form-required { font-size: .85rem; color: var(--gray-600); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 14px 16px; border-radius: var(--radius-sm); background: #E4F6EE; color: var(--green-dark); }
.form-status.is-info { padding: 14px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--gray-300); }
.form-status.is-error { padding: 14px 16px; border-radius: var(--radius-sm); background: #FCECEB; color: #8C1D18; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .78); padding: 64px 0 24px; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-logo { display: inline-flex; padding: 10px 12px; background: #fff; border-radius: var(--radius-sm); margin-bottom: 14px; }
.footer-logo img { width: 48px; }
.footer-name { font-family: "Lato", sans-serif; font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: 4px; }
.footer-tag { margin: 0; }
.footer-links, .footer-contact { display: grid; gap: 10px; align-content: start; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 22px; font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* ---------- Animaciones sutiles ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .55s ease var(--d, 0ms), transform .55s ease var(--d, 0ms), box-shadow .25s, border-color .25s, background-color .25s; }
.js .stagger.is-visible > * { opacity: 1; transform: none; }
.js .stagger.is-visible > .card:hover, .js .stagger.is-visible > .workshop:hover { transform: translateY(-4px); transition-delay: 0ms; }
/* La escalera de niveles crece al aparecer */
@media (min-width: 981px) {
  .js .levels .level { transform-origin: bottom; transform: scaleY(.2); opacity: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1) calc(var(--step) * 90ms), opacity .4s ease calc(var(--step) * 90ms), background-color .25s, border-color .25s, color .25s; }
  .js .levels.is-visible .level { transform: none; opacity: 1; }
}
/* La línea del proceso se dibuja al aparecer */
.timeline::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s ease .2s; }
.timeline.is-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .stagger > *, .js .hero-in, .js .levels .level { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ticker-track, .slide.is-active .slide-caption > * { animation: none !important; }
  .slide img { transform: none !important; }
  .js .about-photo.reveal img { clip-path: none !important; }
  .deco { transform: skewX(-28deg) !important; }
  .js .about-photo.reveal::before { transform: none !important; opacity: 1 !important; }
  .js .words .w { opacity: 1 !important; transform: none !important; }
  .why-list .ico use { stroke-dashoffset: 0 !important; }
  .pulse { display: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ---------- Movimiento en el final de la página ---------- */
.why, .mission { position: relative; overflow: hidden; }
.why .container, .mission .container { position: relative; z-index: 1; }
.deco { position: absolute; display: block; pointer-events: none; transform: skewX(-28deg) translateY(var(--py, 0px)); will-change: transform; }
.deco-why-a { width: 22%; height: 140%; top: -20%; right: 6%; background: rgba(255, 255, 255, .04); }
.deco-why-b { width: 7%; height: 46%; bottom: -12%; right: 30%; background: rgba(45, 184, 130, .14); }
.deco-mi-a { width: 9%; height: 52%; top: 8%; left: 58%; background: rgba(45, 184, 130, .16); }
.deco-mi-b { width: 18%; height: 150%; top: -25%; left: -6%; background: rgba(255, 255, 255, .035); }

/* Los checks se dibujan */
.why-list .ico use { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .6s ease calc(var(--d, 0ms) + 250ms); }
.why-list.is-visible .ico use, .no-js .why-list .ico use { stroke-dashoffset: 0; }
.why-list li { transition: padding-left .25s ease, color .25s; }
.why-list li:hover { padding-left: 8px; color: var(--accent); }

/* Foto: se descubre de abajo hacia arriba y el marco se acomoda */
.js .about-photo.reveal { opacity: 1; transform: none; }
.js .about-photo.reveal img { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.2,.7,.2,1); }
.js .about-photo.reveal.is-visible img { clip-path: inset(0 0 0 0); }
.js .about-photo.reveal::before { transform: translate(-18px, -18px); opacity: 0; transition: transform .9s ease .35s, opacity .6s ease .35s; }
.js .about-photo.reveal.is-visible::before { transform: none; opacity: 1; }

/* Misión: el texto aparece palabra por palabra */
.js .words .w { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i) * 45ms + 150ms); }
.js .is-visible .words .w { opacity: 1; transform: none; }

/* Cinta inferior en sentido contrario */
.ticker-alt { background: var(--navy-deep); }
.ticker-alt .ticker-track { animation-direction: reverse; animation-duration: 46s; }

/* FAQ: apertura suave */
.faq details { overflow: hidden; }
.faq details .faq-body { overflow: hidden; transition: height .35s ease; }
.faq summary { transition: color .2s, padding-left .25s; }
.faq summary:hover { color: var(--accent-ink); padding-left: 10px; }

/* Contacto: pulso en WhatsApp e íconos que se mueven */
.contact-links a { position: relative; }
.contact-links a .ico { transition: transform .25s; }
.contact-links a:hover .ico { transform: scale(1.12) rotate(-6deg); }
.pulse { position: absolute; left: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; pointer-events: none; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: pulse 2.6s ease-out infinite; }
.pulse::after { animation-delay: 1.3s; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(2); opacity: 0; } }
.form .field label { transition: color .2s; }
.form .field:focus-within label { color: var(--accent-ink); }

/* Footer */
.footer-links a, .footer-contact a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .3s ease, color .2s; padding-bottom: 2px; }
.footer-links a:hover, .footer-contact a:hover { background-size: 100% 1px; }
.footer-logo { transition: transform .3s; }
.footer-brand:hover .footer-logo { transform: translateY(-3px) rotate(-3deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1300px) {
  .header-tools { margin-left: auto; }
  .main-nav { margin-left: 0; }
  .nav-aud { display: grid; gap: 10px; }
  .nav-aud p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--gray-600); }
  .nav-aud .aud-seg { justify-self: start; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 24px;
    background: #fff; padding: 24px 24px 40px; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--gray-100); }
  .main-nav ul a::after { display: none; }
  .nav-cta { min-height: 52px; font-size: .92rem; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .timeline::before, .timeline::after { display: none; }
  .workshops { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .carousel { max-width: 620px; }
  .levels { height: auto; gap: 8px; }
  .level { height: auto; flex-direction: row; justify-content: space-between; align-items: center; border-radius: var(--radius-sm); border-top-width: 1px; border-left: 4px solid var(--gray-300); width: calc(65% + var(--step) * 7%); min-height: 56px; padding: 14px 16px; }
  .level.is-active { border-left-color: var(--accent); }
  .levels { display: flex; flex-direction: column-reverse; align-items: flex-start; }
  .level-panel { border-top: 1px solid var(--gray-100); border-radius: var(--radius); margin-top: 12px; padding: 22px 20px; }

  .hero-grid, .split, .about, .contact { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .pillar-num { right: 0; top: 32px; }
  .about-photo { max-width: 380px; }
}

@media (max-width: 640px) {
  body { font-size: 1.03rem; }
  .container { padding: 0 16px; }
  .brand-name { font-size: 1.08rem; }
  .brand img { width: 44px; }
  .pillars-inline li { font-size: .82rem; letter-spacing: .1em; }
  .pillars-inline li + li::before { margin: 0 10px; }
  .grid-3, .grid-4, .workshops, .benefits, .form-row, .aud-cards { grid-template-columns: 1fr; }
  .facts { gap: 8px; }
  .facts li { padding: 14px 14px; }
  .facts strong { font-size: 1rem; }
  .facts span { font-size: .85rem; line-height: 1.35; display: block; margin-top: 2px; }
  .lang-switch button { min-width: 36px; }
  .workshop { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; row-gap: 4px; padding: 18px; }
  .workshop .ico { grid-row: span 2; margin: 0; }
  .carousel-track { aspect-ratio: 4 / 4.6; }
  .slide-caption { padding: 0 20px; bottom: 60px; }
  .carousel-controls { padding: 10px 14px 14px 20px; }
  .car-dot { width: 32px; }
  .aud-float { left: 16px; right: 16px; transform: translateY(140%); justify-content: space-between; padding-left: 14px; font-size: .78rem; }
  .aud-float.is-shown { transform: none; }
  .aud-float .aud-seg button { padding: 0 10px; font-size: .78rem; }
  .ticker span { font-size: .82rem; }

  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .timeline::before { display: block; left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline li { padding: 4px 0 28px 68px; }
  .cta-inline { padding: 24px 20px; }
  .cta-inline .btn { width: 100%; }
  .why-list li { font-size: 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-photo::before { inset: 12px -10px -12px 12px; }
}

/* Si la lista de beneficios queda impar, el último ocupa todo el ancho */
.benefits li:last-child:nth-child(odd) { grid-column: 1 / -1; }
