/* =============================================================
   SION SST — Design System
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Brand */
  --blue-950: #0d1626;
  --blue-900: #142443;
  --blue-800: #1a2f56;
  --blue: #243F70;
  --blue-600: #2d4d86;
  --blue-100: #eaeef7;
  --blue-50: #f4f6fb;
  --orange: #F7941D;
  --orange-600: #dd8110;
  --orange-100: #fef1de;
  --green: #8BC53F;
  --green-700: #6a9c2c;
  --red: #ED1B2F;
  --white: #ffffff;

  /* Neutrals */
  --ink: #10192b;
  --ink-soft: #47536b;
  --ink-faint: #7c869c;
  --border: #e3e8f2;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-deep: var(--blue-950);

  /* Type */
  --display: "Sora", "Segoe UI", sans-serif;
  --sans: "Inter", "Segoe UI", sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --container: 1240px;
  --nav-h: 76px;
  --radius: 14px;
  --radius-sm: 8px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--display); font-weight: 700; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--white); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--blue-950); color: var(--white);
  border-radius: 8px; font-weight: 600; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section-soft { background: var(--bg-soft); }
.section-glow { position: relative; overflow: hidden; }
.section-glow::before, .section-glow::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.section-glow::before { width: 420px; height: 420px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(247,148,29,.16), transparent 70%); }
.section-glow::after { width: 460px; height: 460px; bottom: -200px; right: -140px; background: radial-gradient(circle, rgba(139,197,63,.14), transparent 70%); }
.section-glow > * { position: relative; z-index: 1; }
.section-deep { background: var(--blue-950); color: var(--white); }
.section-deep .ink-faint { color: rgba(255,255,255,.62); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); display: inline-block; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: .9rem; }
.section-head p { font-size: 1.08rem; color: var(--ink-soft); }
.section-deep .section-head p { color: rgba(255,255,255,.72); }
.grid { display: grid; gap: 1.5rem; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--border); width: 100%; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-soft); }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .96rem;
  font-family: var(--display); white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, #ffab3d, var(--orange) 60%, #e8790a);
  color: var(--white); box-shadow: 0 10px 24px -10px rgba(247,148,29,.6);
  position: relative;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(247,148,29,.75); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); transform: translateY(-2px); }
.btn-ghost-dark { background: transparent; color: var(--blue-950); border: 1.5px solid var(--border); }
.btn-ghost-dark:hover { border-color: var(--blue); background: var(--blue-50); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: .7rem 1.3rem; font-size: .86rem; }

/* Nav */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000; height: var(--nav-h);
  background: rgba(13,22,38,.86); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background-color .3s var(--ease-out);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; height: 34px; }
.nav-logo img { height: 100%; width: auto; }
.nav-links { display: none; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-family: var(--display); font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.82);
  position: relative; padding-block: .3rem; transition: color .2s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--orange);
  transition: right .3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-cta { display: none; align-items: center; gap: .7rem; }
.nav-utility { display: none; align-items: center; gap: .4rem; margin-right: .5rem; }
.nav-utility a {
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.68);
  padding: .4rem .7rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
  transition: all .2s var(--ease-out);
}
.nav-utility a:hover { color: var(--white); border-color: rgba(255,255,255,.4); }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; align-items: center;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 999; background: var(--blue-950);
  padding: 1.5rem 1.25rem 2.5rem; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility 0s linear .28s;
}
.nav-mobile.is-open { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; transition: opacity .28s var(--ease-out), transform .28s var(--ease-out); }
.nav-mobile a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; font-family: var(--display); font-size: 1.1rem; font-weight: 700; color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-mobile-cta { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.5rem; }
.nav-mobile-utility { display: flex; gap: .6rem; margin-top: 1.5rem; }
.nav-mobile-utility a { flex: 1; text-align: center; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .8rem; font-size: .85rem; }

/* Mobile "Servicios" accordion */
.nav-mobile-accordion { border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-mobile-accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; font-family: var(--display); font-size: 1.1rem; font-weight: 700; color: var(--white);
}
.nav-mobile-accordion-trigger svg { width: 20px; height: 20px; transition: transform .3s var(--ease-out); flex-shrink: 0; }
.nav-mobile-accordion.is-open .nav-mobile-accordion-trigger svg { transform: rotate(180deg); }
.nav-mobile-accordion-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.nav-mobile-accordion.is-open .nav-mobile-accordion-panel { max-height: 640px; }
.nav-mobile-sub-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); padding: 1rem 0 .3rem; }
.nav-mobile-accordion-panel a.nav-mobile-sub {
  display: block; font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.75); padding: .65rem 0 .65rem .6rem;
  border-bottom: 0;
}

/* Desktop "Servicios" mega menu */
.nav-mega { position: static; }
.nav-mega-trigger {
  display: flex; align-items: center; gap: .35rem;
  font-family: var(--display); font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.82);
  padding-block: .3rem; transition: color .2s var(--ease-out);
}
.nav-mega-trigger svg { width: 15px; height: 15px; transition: transform .25s var(--ease-out); }
.nav-mega:hover .nav-mega-trigger, .nav-mega.is-open .nav-mega-trigger { color: var(--white); }
.nav-mega.is-open .nav-mega-trigger svg { transform: rotate(180deg); }

.nav-mega-panel {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 998;
  background: var(--blue-950); border-bottom: 1px solid rgba(255,255,255,.08);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s linear .25s;
}
.nav-mega:hover .nav-mega-panel, .nav-mega.is-open .nav-mega-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.nav-mega-inner { padding-block: 2.2rem 1.6rem; }
.nav-mega-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.nav-mega-feature {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem;
}
.nav-mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s var(--ease-out); }
.nav-mega-feature:hover img { transform: scale(1.06); }
.nav-mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,22,38,0) 25%, rgba(13,22,38,.92) 100%); z-index: 0; }
.nav-mega-feature > * { position: relative; z-index: 1; }
.nav-mega-feature-tag {
  align-self: flex-start; background: var(--orange); color: var(--white); font-family: var(--display);
  font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .32rem .6rem; border-radius: 999px; margin-bottom: .8rem;
}
.nav-mega-feature-title { font-family: var(--display); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.nav-mega-feature-sub { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: .3rem; }
.nav-mega-col { display: flex; flex-direction: column; }
.nav-mega-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); margin-bottom: 1rem; }
.nav-mega-col a {
  font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.78); padding-block: .55rem;
  border-bottom: 1px solid rgba(255,255,255,.08); transition: color .2s var(--ease-out), padding-left .2s var(--ease-out);
}
.nav-mega-col a:hover { color: var(--white); padding-left: .3rem; }
.nav-mega-footer { display: flex; justify-content: flex-end; padding-top: 1.5rem; margin-top: .5rem; border-top: 1px solid rgba(255,255,255,.08); }

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; position: relative; isolation: isolate;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--orange), var(--green) 55%, var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-6px); box-shadow: 0 28px 52px -20px rgba(16,25,43,.24); border-color: transparent; }

/* Course card */
.course-card { display: flex; flex-direction: column; height: 100%; }
.course-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.course-card:hover .thumb img { transform: scale(1.06); }
.course-card .thumb .tag {
  position: absolute; top: .8rem; left: .8rem; background: var(--orange); color: var(--white);
  font-family: var(--display); font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  padding: .35rem .65rem; border-radius: 999px; text-transform: uppercase;
}
.course-card .body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.course-card .cat { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue-600); }
.course-card h3 { font-size: 1.12rem; line-height: 1.25; }
.course-card p { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.course-card .meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--ink-faint); border-top: 1px solid var(--border); padding-top: .8rem; margin-top: .2rem; }
.course-card .meta span { display: flex; align-items: center; gap: .35rem; }
.course-card .cta-row { margin-top: .3rem; }
.course-card .cta-row a { font-family: var(--display); font-weight: 700; font-size: .88rem; color: var(--blue); display: inline-flex; align-items: center; gap: .4rem; }
.course-card .cta-row a svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.course-card .cta-row a:hover svg { transform: translateX(3px); }

/* Number card (soluciones) */
.num-card { padding: 2rem 1.7rem; display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.num-card .num { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--blue-100); line-height: 1; }
.num-card h3 { font-size: 1.15rem; }
.num-card p { color: var(--ink-soft); font-size: .92rem; }

/* Sector card */
.sector-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; }
.sector-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.sector-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,22,38,0) 30%, rgba(13,22,38,.94) 100%);
}
.sector-card:hover img { transform: scale(1.08); }
.sector-card .content { position: absolute; inset-inline: 0; bottom: 0; padding: 1.4rem; z-index: 2; color: var(--white); }
.sector-card .content .eyebrow { color: var(--orange); font-size: .68rem; }
.sector-card .content h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.sector-card .content p { font-size: .85rem; color: rgba(255,255,255,.78); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease-out), opacity .4s var(--ease-out); }
.sector-card:hover .content p { max-height: 120px; opacity: 1; }

/* Pillar / value icons */
.pillar { display: flex; flex-direction: column; gap: .9rem; }
.pillar .icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--blue);
}
.pillar .icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.08rem; }
.pillar p { color: var(--ink-soft); font-size: .92rem; }

/* Methodology steps */
.method-step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding-block: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); }
.method-step:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.method-step .step-num { font-family: var(--display); font-size: 1.8rem; font-weight: 800; color: var(--orange); }
.method-step h3 { font-size: 1.2rem; margin-bottom: .4rem; color: var(--white); }
.method-step p { color: rgba(255,255,255,.68); font-size: .95rem; max-width: 52ch; }

/* Flow arrow (formación -> solución) */
.flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; }
.flow .flow-item {
  font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--blue);
  background: var(--blue-50); border: 1px solid var(--blue-100); padding: .8rem 1.4rem; border-radius: 999px;
}
.flow .flow-arrow { color: var(--orange); font-size: 1.2rem; }

/* Stat counters */
.stat { text-align: center; }
.stat .val { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--white); }
.stat .val .pending { font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.5); }
.stat .label { font-size: .85rem; color: rgba(255,255,255,.62); margin-top: .4rem; }

/* Testimonial / case placeholder */
.placeholder-box {
  border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; height: 100%; background: var(--bg-soft);
}
.placeholder-box .tag-pending {
  font-family: var(--display); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); background: var(--white); border: 1px solid var(--border); padding: .3rem .6rem; border-radius: 999px;
}

/* Forms */
.form-grid { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: .85rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.form-note { font-size: .8rem; color: var(--ink-faint); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* Search / filters */
.search-bar { display: flex; gap: .7rem; background: var(--white); border: 1.5px solid var(--border); border-radius: 999px; padding: .4rem .4rem .4rem 1.3rem; align-items: center; box-shadow: 0 16px 40px -22px rgba(16,25,43,.3); }
.search-bar svg { width: 20px; height: 20px; color: var(--ink-faint); flex-shrink: 0; }
.search-bar input { flex: 1; border: 0; background: none; padding: .7rem 0; font-size: 1rem; }
.search-bar input:focus { outline: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.filter-chip {
  font-family: var(--display); font-size: .84rem; font-weight: 700; padding: .55rem 1.15rem; border-radius: 999px;
  border: 1.5px solid var(--border); color: var(--ink-soft); transition: all .25s var(--ease-out);
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.is-active { background: var(--blue-950); border-color: var(--blue-950); color: var(--white); }
.empty-state { display: none; text-align: center; padding: 3rem 1rem; color: var(--ink-faint); }
.empty-state.is-visible { display: block; }

/* Footer */
.footer { background: var(--blue-950); color: rgba(255,255,255,.7); padding-block: 4.5rem 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
.footer-brand img { height: 32px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .9rem; max-width: 34ch; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; transition: all .25s var(--ease-out); }
.footer-social a:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { font-family: var(--display); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { font-size: .9rem; transition: color .2s var(--ease-out); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer-bottom .legal-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(16,25,43,.5);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  animation: whatsappPulse 2.6s ease-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 16px 34px -8px rgba(16,25,43,.6); }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes whatsappPulse {
  0% { box-shadow: 0 12px 28px -8px rgba(16,25,43,.5), 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 12px 28px -8px rgba(16,25,43,.5), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 28px -8px rgba(16,25,43,.5), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 539px) {
  .whatsapp-float { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
  .whatsapp-float svg { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .84rem; color: var(--ink-faint); align-items: center; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { opacity: .5; }

/* Accordion (FAQ) */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 0; text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.02rem;
}
.accordion-trigger .plus { width: 22px; height: 22px; position: relative; flex-shrink: 0; }
.accordion-trigger .plus::before, .accordion-trigger .plus::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; transition: transform .3s var(--ease-out); }
.accordion-trigger .plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.accordion-trigger .plus::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.accordion-item.is-open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.accordion-panel .inner { padding-bottom: 1.4rem; color: var(--ink-soft); font-size: .95rem; max-width: 65ch; }

/* Chips (course detail meta) */
.chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; padding: .5rem .9rem; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.chip svg { width: 15px; height: 15px; }

/* =============================================================
   6. Sections
   ============================================================= */

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--white);
  overflow: hidden; padding-top: var(--nav-h);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
  margin-bottom: -1px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .5; mix-blend-mode: overlay;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,17,31,.78) 0%, rgba(10,17,31,.72) 45%, rgba(10,17,31,.95) 100%); }
.hero-inner { position: relative; z-index: 2; padding-block: 4rem 3rem; }
.hero .eyebrow { color: var(--orange); }
.hero h1 { max-width: 16ch; margin-bottom: 1.3rem; }
.hero .lede { color: rgba(255,255,255,.82); max-width: 56ch; margin-bottom: 2.1rem; font-size: clamp(1.02rem, 1.4vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-strip { display: flex; flex-wrap: wrap; gap: 2.2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.16); }
.hero-strip .item { display: flex; align-items: center; gap: .6rem; font-size: .86rem; color: rgba(255,255,255,.75); font-weight: 600; }
.hero-strip svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; display: none; }
.hero-scroll span { display: block; width: 1px; height: 34px; background: linear-gradient(180deg, rgba(255,255,255,.7), transparent); margin-inline: auto; animation: scrollLine 2.2s var(--ease-soft) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; opacity: 1; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; opacity: .6; } }

/* Intent chooser (hero adjacent) */
.intent-strip { background: var(--white); border-top: 1px solid var(--border); }
.intent-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.intent-item { background: var(--white); padding: 1.3rem 1.4rem; display: flex; align-items: center; gap: 1rem; transition: background .25s var(--ease-out); }
.intent-item:hover { background: var(--blue-50); }
.intent-item .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--orange-100); color: var(--orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.intent-item .icon svg { width: 20px; height: 20px; }
.intent-item .tx p:first-child { font-size: .78rem; color: var(--ink-faint); }
.intent-item .tx p:last-child { font-family: var(--display); font-weight: 700; font-size: .96rem; color: var(--blue-950); display: flex; align-items: center; gap: .4rem; }

/* Featured courses band */
.featured-band { position: relative; overflow: hidden; }
.featured-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.5rem; }

/* Split / editorial rows (soluciones) */
.split-row { display: grid; gap: 2.5rem; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Solutions numbered list */
.solutions-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.solution-row {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 1.3rem; align-items: center;
  padding-block: 1.6rem; border-bottom: 1px solid var(--border); cursor: default;
  transition: background-color .3s var(--ease-out), padding-left .3s var(--ease-out);
}
.solution-row:hover { background: var(--blue-50); padding-left: 1rem; }
a.solution-row { cursor: pointer; }
.solution-row .idx { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--blue-100); transition: color .3s var(--ease-out); }
.solution-row:hover .idx { color: var(--blue); }
.solution-row .tx h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.solution-row .tx p { font-size: .9rem; color: var(--ink-soft); max-width: 58ch; }
.solution-row .arrow { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all .3s var(--ease-out); flex-shrink: 0; }
.solution-row:hover .arrow { background: var(--orange); border-color: var(--orange); transform: rotate(45deg); }
.solution-row .arrow svg { width: 15px; height: 15px; }

/* Solutions radial wheel (desktop) + mobile list fallback */
.solutions-list-mobile { display: grid; gap: 0; border-top: 1px solid var(--border); }
.solutions-list-mobile .solution-row { cursor: pointer; }
.solutions-wheel { display: none; }

.solutions-wheel {
  position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; margin-inline: auto;
}
.solutions-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.solutions-lines line { stroke: var(--border); stroke-width: .4; }
.solutions-wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 27%; aspect-ratio: 1; border-radius: 50%; background: var(--white);
  display: flex; align-items: center; justify-content: center; padding: 10%;
  box-shadow: 0 20px 44px -18px rgba(16,25,43,.28); z-index: 2;
}
.solutions-wheel-center img { width: 100%; height: 100%; object-fit: contain; }
.solutions-node {
  position: absolute; transform: translate(-50%, -50%); width: 25%;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem;
  z-index: 1;
}
.solutions-node .circle {
  width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--blue-950); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -12px rgba(16,25,43,.4);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .4s var(--ease-out);
}
.solutions-node .circle svg { width: 36%; height: 36%; }
.solutions-node .label { font-size: .78rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.solutions-node:hover .circle, .solutions-node:focus-visible .circle {
  transform: scale(1.1); background: var(--orange); box-shadow: 0 16px 32px -12px rgba(247,148,29,.55);
}
.solutions-node.is-zooming { z-index: 50; }
.solutions-node.is-zooming .circle {
  transform: scale(28); background: var(--orange);
  transition: transform .6s cubic-bezier(0.6, 0, 0.9, 0.2), background-color .3s var(--ease-out);
}
.solutions-node.is-zooming .label { opacity: 0; transition: opacity .2s var(--ease-out); }
.solutions-wheel.is-navigating .solutions-node:not(.is-zooming) { opacity: 0; transition: opacity .35s var(--ease-out); }
.solutions-wheel.is-navigating .solutions-wheel-center { opacity: 0; transition: opacity .35s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .solutions-node.is-zooming .circle { transition-duration: .15s; }
}

/* Recursos band */
.resource-card { display: flex; flex-direction: column; height: 100%; }
.resource-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.resource-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.resource-card:hover .thumb img { transform: scale(1.06); }
.resource-card .body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.resource-card .cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-700); }

/* Final CTA band */
.cta-band { background: linear-gradient(135deg, var(--blue-900), var(--blue-950)); color: var(--white); border-radius: 24px; padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -60% -10% -80% -10%; background: radial-gradient(45% 40% at 50% 50%, rgba(247,148,29,.28), transparent 70%); filter: blur(60px); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* Page hero (interior pages) */
.page-hero { position: relative; padding-top: calc(var(--nav-h) + 3.5rem); padding-bottom: 3.5rem; color: var(--white); overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10,17,31,.92), rgba(20,36,67,.88)); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { color: rgba(255,255,255,.78); max-width: 58ch; margin-top: 1rem; }

/* Course detail hero */
.course-hero { position: relative; padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 2.5rem; color: var(--white); overflow: hidden; }
.course-hero-bg { position: absolute; inset: 0; z-index: 0; }
.course-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.course-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10,17,31,.90), rgba(20,36,67,.82)); }
.course-hero-inner { position: relative; z-index: 1; }
.course-hero .breadcrumb { color: rgba(255,255,255,.6); margin-bottom: 1.4rem; }
.course-hero .breadcrumb a { color: rgba(255,255,255,.75); }
.course-hero h1 { max-width: 24ch; margin-bottom: 1rem; }
.course-hero .lede { color: rgba(255,255,255,.8); max-width: 58ch; }
.course-meta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.course-meta-row .chip { background: rgba(255,255,255,.12); color: var(--white); }

.course-layout { display: grid; gap: 3rem; grid-template-columns: 1fr; padding-block: clamp(3rem, 6vw, 5rem); }
.course-main > * + * { margin-top: 2.6rem; }
.course-main h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.check-list { display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); }
.check-list svg { width: 19px; height: 19px; color: var(--green-700); flex-shrink: 0; margin-top: .15rem; }
.check-list-cards { display: grid; gap: .9rem; }
.check-list-cards .check-item {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--border);
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.check-list-cards .check-item:hover { border-color: var(--green-700); transform: translateX(4px); }
.check-list-cards .check-item .icon {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue-50); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.check-list-cards .check-item .icon svg { width: 17px; height: 17px; }
.check-list-cards .check-item span { font-weight: 600; color: var(--ink); font-size: .95rem; }
.course-sidebar { align-self: start; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.course-sidebar .panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; background: var(--bg-soft); }
.course-sidebar .panel .row { display: flex; justify-content: space-between; padding-block: .7rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.course-sidebar .panel .row:last-of-type { border-bottom: 0; }
.course-sidebar .panel .row span:first-child { color: var(--ink-faint); }
.course-sidebar .panel .row span:last-child { font-weight: 600; text-align: right; }
.course-sidebar .panel .btn { margin-top: 1.3rem; }

/* Category header (formacion catalog groups) */
.cat-group { padding-top: 1rem; }
.cat-group-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.6rem; }
.cat-group-head h2 { font-size: 1.55rem; }
.cat-group-head .count { font-size: .85rem; color: var(--ink-faint); font-weight: 600; }

/* =============================================================
   7. Effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--stagger-i, 0) * 70ms); }

.counter-run { font-variant-numeric: tabular-nums; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(root) { animation-name: fadeOutUp; }
::view-transition-new(root) { animation-name: fadeInUp; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .field-row-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero-scroll { display: block; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .course-meta-row { margin-top: 1.6rem; }
  .solutions-wheel { display: block; }
  .solutions-list-mobile { display: none; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-utility { display: flex; }
  .nav-toggle { display: none; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2-60 { grid-template-columns: 1.15fr .85fr; }
  .split-row { grid-template-columns: 1fr 1fr; }
  .split-row.reverse > *:first-child { order: 2; }
  .intent-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr .8fr .8fr .8fr; }
  .course-layout { grid-template-columns: 1fr 320px; }
  .sector-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
}

/* =============================================================
   9. Reduced-motion (intrusive effects only)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
