/* =========================================================
   Portal Compliance · estilos
   Paleta corporativa: Rojo #CC0000 · Negro · Blanco · Grises 25–85
   Mobile-first · sin dependencias
   ========================================================= */
:root {
  --red: #cc0000;          /* Würth Red */
  --red-hover: #b00000;
  --white: #ffffff;
  --black: #000000;
  --gray-25: #bfbfbf;
  --gray-40: #999999;
  --gray-55: #737373;
  --gray-70: #4d4d4d;
  --gray-85: #262626;
  --gray-05: #f2f2f2;
  --gray-10: #e6e6e6;

  --ink: var(--black);
  --ink-2: var(--gray-70);
  --ink-3: var(--gray-55);
  --line: var(--gray-10);

  --shadow-sm: 0 1px 2px rgb(0 0 0 / .06), 0 2px 6px rgb(0 0 0 / .06);
  --shadow-lg: 0 24px 48px -16px rgb(0 0 0 / .35);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1240px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.fill { fill: currentColor; stroke: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------- Botones ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: var(--h); padding: 0 1.4em; border-radius: 8px; border: 2px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--sm { --h: 40px; font-size: .86rem; padding: 0 1em; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 22px -10px rgb(204 0 0 / .8); }
.btn--red:hover { background: var(--red-hover); }
.btn--black { background: var(--black); color: #fff; }
.btn--black:hover { background: var(--gray-85); }
.btn--white { background: #fff; color: var(--black); }
.btn--white:hover { background: var(--gray-10); }
.btn--outline { color: var(--black); border-color: var(--black); background: transparent; }
.btn--outline:hover { background: var(--black); color: #fff; }
.btn--outline-light { color: #fff; border-color: rgb(255 255 255 / .45); background: transparent; }
.btn--outline-light:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.btn[aria-disabled="true"] { background: var(--gray-10); color: var(--gray-55); box-shadow: none; cursor: not-allowed; transform: none; }
.link { color: var(--red); font-weight: 700; text-decoration: none; font-size: .9rem; }
.link:hover { text-decoration: underline; }
.link--light { color: #fff; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .72rem; line-height: 1; padding: .5em .75em; border-radius: 4px; letter-spacing: .03em; color: #fff; }
.chip--red { background: var(--red); }
.chip--black { background: var(--black); }
.chip--dark { background: rgb(0 0 0 / .75); backdrop-filter: blur(4px); }
.chip--light { background: #fff; color: var(--black); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 24px; height: 3px; background: currentColor; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: var(--red); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgb(204 0 0 / .25); flex-shrink: 0; }

/* ---------- Aviso navegador ---------- */
.browser-alert { background: var(--red); color: #fff; font-size: .92rem; }
.browser-alert__inner { display: flex; align-items: center; gap: 12px; padding: 10px 0; flex-wrap: wrap; }
.browser-alert__inner > svg { font-size: 1.3rem; }
.browser-alert p { margin: 0; flex: 1 1 240px; }
.browser-alert__close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* ---------- Barra de navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--black); color: #fff; }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__logo { height: 32px; width: auto; }
.brand__sep { width: 1px; height: 28px; background: var(--gray-70); }
.brand__text { font-weight: 700; font-size: 1rem; letter-spacing: .02em; color: var(--gray-25); }
.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--gray-25); position: relative; padding: 6px 0; transition: color .2s; }
.nav__menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--red); transition: right .25s var(--ease); }
.nav__menu a:not(.btn):hover, .nav__menu a.is-active { color: #fff; }
.nav__menu a:not(.btn):hover::after, .nav__menu a.is-active::after { right: 0; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.nav__toggle span { height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav__toggle { display: flex; }
  .nav__menu { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); padding: 8px 16px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s var(--ease); }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--gray-85); }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__menu .btn { margin-top: 16px; }
}
@media (max-width: 420px) { .brand__logo { height: 26px; } .brand__sep, .brand__text { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--white); color: var(--ink); padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.hero__head { display: grid; padding-top: 4px; gap: 20px 56px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
@media (min-width: 980px) { .hero__head { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 900; margin: 0; }
.hl { color: var(--red); display: block; }
.lead { font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--ink-2); margin-bottom: 20px; }
.lead b { color: var(--ink); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 480px) { .hero__cta .btn { flex: 1 1 100%; } }

.hero__media { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1040px) { .hero__media { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); } }

/* ---------- Icono play ---------- */
.play-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 0 0 8px rgb(255 255 255 / .2); transition: transform .3s var(--ease), box-shadow .3s; }
.play-icon svg { font-size: 1.5rem; margin-left: 3px; }
.play-icon--lg { width: 84px; height: 84px; box-shadow: 0 0 0 12px rgb(255 255 255 / .18); }
.play-icon--lg svg { font-size: 2.1rem; }

/* ---------- Player de introducción ---------- */
.player { margin: 0; }
.player__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--gray-85); box-shadow: var(--shadow-lg); isolation: isolate; }
.player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.player__cover { position: absolute; inset: 0; z-index: 1; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: clamp(18px, 4%, 36px); background: linear-gradient(135deg, rgb(0 0 0 / .92) 0%, rgb(38 38 38 / .82) 55%, rgb(204 0 0 / .55) 100%); transition: opacity .4s var(--ease); pointer-events: none; }
.player__logo { width: clamp(110px, 22%, 170px); margin-bottom: auto; }
.player__title { font-size: clamp(1.3rem, 3.4vw, 2.3rem); font-weight: 500; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.player__title b { font-weight: 900; color: #fff; }
.player__line { width: 64px; height: 4px; background: var(--red); }
.player__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.player__play:hover .play-icon, .player__play:focus-visible .play-icon { transform: scale(1.08); box-shadow: 0 0 0 18px rgb(255 255 255 / .14); }
.player__time { position: absolute; right: 12px; bottom: 12px; z-index: 3; }
.player__hint { position: absolute; right: 12px; top: 12px; z-index: 3; opacity: 0; transform: translateY(-4px); transition: .25s var(--ease); }
.player__hint i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.player__error { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4; margin: 0; padding: 10px 12px; background: var(--red); color: #fff; font-size: .85rem; border-radius: 8px; }
.player__frame.is-previewing .player__cover { opacity: .15; }
.player__frame.is-previewing .player__hint { opacity: 1; transform: none; }
.player__frame.is-playing .player__cover, .player__frame.is-playing .player__play, .player__frame.is-playing .player__time, .player__frame.is-playing .player__hint { display: none; }
.player__frame.is-playing .player__video { object-fit: contain; }
.player figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; font-size: .86rem; color: var(--ink-3); }
.player figcaption > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.player figcaption strong { color: var(--ink); font-size: 1rem; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 3px; flex-shrink: 0; }
.lang__btn { border: 0; background: none; color: var(--ink-3); font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.lang__btn.is-active { background: var(--black); color: #fff; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Herramientas junto al video ---------- */
.htools { background: var(--gray-05); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.htools__title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0; }
.htools__sub { font-size: .85rem; color: var(--ink-3); margin: -6px 0 0; }
.htools__sub b { color: var(--ink); }
.htool { display: grid; grid-template-columns: 132px 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: var(--radius-sm); padding: 12px; }
.htool__preview { position: relative; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, var(--gray-70), var(--black)); aspect-ratio: 4 / 3.3; }
.htool__preview > * { position: absolute; left: 0; top: 0; width: 420px !important; transform: scale(.314); transform-origin: top left; }
.htool__preview .mock-browser { margin: 22px; }
.htool__preview .mock-desktop { height: 346px; }
.htool__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.htool__head { display: flex; align-items: center; gap: 10px; }
.htool__head h3 { font-size: 1rem; margin: 0; }
.htool__head .tag { color: var(--ink-3); }
.htool__steps { font-size: .84rem; color: var(--ink-2); }
.htool__steps summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.htool__steps summary::-webkit-details-marker { display: none; }
.htool__steps summary::before { content: "+"; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; background: var(--red); color: #fff; font-weight: 800; }
.htool__steps[open] summary::before { content: "–"; }
.htool__steps .steps { margin: 10px 0 2px; }
.htool__steps .steps li { color: var(--ink-2); font-size: .84rem; padding-left: 30px; margin-bottom: 8px; }
.htool__steps .steps li::before { background: var(--black); color: #fff; width: 20px; height: 20px; font-size: .7rem; }
.htool__steps .steps b { color: var(--ink); }
.htool .btn { margin-top: auto; }
.tool__logo { width: 38px; height: 38px; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 900; font-size: .9rem; flex-shrink: 0; }
.tool__logo--dark { background: var(--black); color: #fff; }
.tool__logo--gray { background: var(--gray-55); color: #fff; font-size: .78rem; }
.tag { font-size: .78rem; color: var(--ink-3); display: block; }
@media (max-width: 460px) { .htool { grid-template-columns: 1fr; } .htool__preview { aspect-ratio: 16 / 8; } .htool__preview > * { transform: scale(.66); } }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 36px; margin-bottom: 10px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; background: var(--black); color: #fff; font-weight: 800; font-size: .76rem; }

/* --- Ilustraciones (mockups) --- */
.mock-cursor { position: absolute; right: -14px; bottom: -16px; font-size: 22px; }
.mock-cursor svg { fill: #000; stroke: #fff; stroke-width: 1.4; }
.mock-browser { position: relative; width: 376px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px -10px rgb(0 0 0 / .6); font-size: 11px; color: var(--gray-70); }
.mock-browser__tabs { display: flex; align-items: flex-end; gap: 10px; background: var(--gray-10); padding: 8px 10px 0; }
.mock-dots { display: flex; gap: 5px; padding-bottom: 8px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-25); }
.mock-dots i:first-child { background: var(--red); }
.mock-tab { background: #fff; padding: 6px 14px; border-radius: 8px 8px 0 0; font-weight: 600; color: var(--black); }
.mock-browser__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mock-url { flex: 1; background: var(--gray-05); border-radius: 999px; padding: 5px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-ext { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; color: var(--gray-55); position: relative; font-size: 15px; }
.mock-ext--ie { background: var(--red); color: #fff; font-weight: 900; font-size: 11px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--red); animation: ring 2s infinite; }
.mock-browser__body { padding: 18px 16px 22px; }
.mock-store { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.mock-store__icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 900; font-size: 12px; flex-shrink: 0; }
.mock-store__txt { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mock-store__txt b { color: var(--black); font-size: 12px; }
.mock-store__txt i { height: 5px; border-radius: 3px; background: var(--gray-10); width: 80%; }
.mock-store__txt i + i { width: 55%; }
.mock-store__btn { background: var(--black); color: #fff; font-weight: 700; padding: 7px 10px; border-radius: 6px; white-space: nowrap; }
@keyframes ring { 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 8px rgb(204 0 0 / .35); } }
.mock-browser__body--menu { position: relative; height: 150px; }
.mock-lines { display: flex; flex-direction: column; gap: 10px; }
.mock-lines i { height: 8px; border-radius: 4px; background: var(--gray-10); width: 70%; }
.mock-lines i:nth-child(2) { width: 90%; } .mock-lines i:nth-child(3) { width: 50%; }
.mock-menu--ctx { left: 120px; top: 22px; font-size: 12px; }
.mock-menu--ctx .is-sel { background: var(--red); color: #fff; }
.mock-desktop { position: relative; font-size: 13px; }
.mock-file { position: absolute; left: 30px; top: 40px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.mock-file__icon { width: 60px; height: 72px; background: #fff; position: relative; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.mock-file__icon i { position: absolute; left: 50%; top: 8px; bottom: 14px; width: 9px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, var(--gray-85) 0 4px, var(--gray-25) 4px 8px); }
.mock-file__icon::after { content: "ZIP"; position: absolute; left: 0; right: 0; bottom: 0; background: var(--red); color: #fff; font-size: 10px; font-weight: 900; text-align: center; padding: 2px 0; }
.mock-file > span:last-child { background: rgb(204 0 0 / .85); padding: 1px 6px; border-radius: 3px; }
.mock-menu { position: absolute; left: 120px; top: 80px; display: flex; flex-direction: column; background: #fff; border-radius: 8px; padding: 5px; min-width: 150px; box-shadow: 0 14px 30px -8px rgb(0 0 0 / .6); color: var(--gray-85); }
.mock-menu > span { padding: 7px 10px; border-radius: 5px; display: flex; justify-content: space-between; align-items: center; position: relative; }
.mock-menu em { font-style: normal; }
.mock-menu .is-sel { background: var(--gray-10); font-weight: 700; color: var(--black); }
.mock-menu--sub { left: 250px; top: 125px; }
.mock-menu--sub .is-sel { background: var(--red); color: #fff; }

/* ---------- 3 pasos ---------- */
.steps-bar { background: var(--gray-05); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.quick__item { display: flex; gap: 16px; padding: 28px 24px; border-left: 1px solid var(--line); }
.quick__item:first-child { border-left: 0; padding-left: 0; }
.quick__item h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.quick__item p { font-size: .9rem; color: var(--ink-2); margin: 0 0 6px; }
.quick__n { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; background: var(--black); color: #fff; font-weight: 900; font-size: 1.15rem; }
.quick__item:first-child .quick__n { background: var(--red); }
@media (max-width: 860px) { .quick__item { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0; } .quick__item:first-child { border-top: 0; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--gray { background: var(--gray-05); }
.section__head { max-width: 680px; margin-bottom: clamp(24px, 3vw, 36px); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section__head--row > div { max-width: 680px; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; }
.section__head p { color: var(--ink-2); margin: 0; }
.subhead { font-size: 1.2rem; font-weight: 800; margin: clamp(36px, 5vw, 56px) 0 20px; display: flex; align-items: center; gap: 12px; }
.subhead::before { content: ""; width: 6px; height: 22px; background: var(--red); }

/* ---------- Catálogo ---------- */
.search { display: flex; align-items: center; gap: 10px; width: min(100%, 320px); height: 46px; padding: 0 14px; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-3); transition: border-color .2s; }
.search:focus-within { border-color: var(--black); }
.search input { flex: 1; border: 0; outline: 0; background: none; color: var(--ink); min-width: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter { border: 2px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .86rem; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.filter:hover { border-color: var(--gray-40); }
.filter.is-active { background: var(--black); border-color: var(--black); color: #fff; }
.filter small { font-size: .74rem; color: inherit; opacity: .6; }
.catalog { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.catalog__empty { color: var(--ink-3); padding: 24px 0; }
.ccard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; animation: fadeIn .4s var(--ease) both; }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ccard__media { position: relative; aspect-ratio: 16 / 10; background: var(--gray-10); overflow: hidden; }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s var(--ease); }
.ccard:hover .ccard__media img { transform: scale(1.04); }
.ccard__media .chip { position: absolute; top: 12px; left: 12px; }
.ccard__num { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--black); color: #fff; font-weight: 900; font-size: .9rem; }
.ccard__fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--gray-85), var(--black)); color: #fff; font-weight: 900; font-size: 2rem; }
.ccard__body { padding: 16px 18px 6px; flex: 1; border-top: 3px solid var(--red); }
.ccard__body h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.ccard__body p { font-size: .88rem; color: var(--ink-2); margin: 0; }
.ccard__foot { padding: 14px 18px 18px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Galería de videos ---------- */
.vgrid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.vcard { display: flex; flex-direction: column; text-align: left; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.vcard:hover, .vcard:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vcard__media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vcard__media img, .vcard__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard__media video { opacity: 0; transition: opacity .3s; }
.vcard.is-previewing .vcard__media video { opacity: 1; }
.vcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(0 0 0 / .5)); }
.vcard__media .play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.vcard:hover .play-icon { transform: translate(-50%, -50%) scale(1.1); }
.vcard__time { position: absolute; right: 12px; bottom: 12px; z-index: 2; }
.vcard__tag { position: absolute; left: 12px; top: 12px; z-index: 2; }
.vcard__body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; border-top: 3px solid var(--red); }
.vcard__body strong { font-size: 1.1rem; }
.vcard__body span { font-size: .9rem; color: var(--ink-2); }

/* ---------- Módulos ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--gray-10); overflow: hidden; border-bottom: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.25); transition: transform .5s var(--ease), filter .3s; }
.card:hover .card__media img { transform: scale(1.05); filter: none; }
.card__media .chip { position: absolute; top: 12px; left: 12px; }
.card__body { padding: 16px 18px 18px; }
.card__body h3 { font-size: 1rem; font-weight: 800; }
.card__body p { font-size: .88rem; color: var(--ink-2); margin: 0; }

/* ---------- Archivos ---------- */
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.file { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius-sm); transition: box-shadow .2s, transform .2s var(--ease); }
.file:hover { box-shadow: var(--shadow-sm); transform: translateX(2px); }
.file > div { flex: 1; min-width: 0; }
.file h3 { font-size: 1rem; margin: 0 0 2px; font-weight: 800; }
.file p { font-size: .86rem; color: var(--ink-3); margin: 0; }
.file__icon { width: 44px; height: 52px; display: grid; place-items: end center; padding-bottom: 8px; font-weight: 900; font-size: .68rem; color: #fff; background: var(--black); flex-shrink: 0; clip-path: polygon(0 0, 70% 0, 100% 22%, 100% 100%, 0 100%); }
@media (max-width: 480px) { .file { flex-wrap: wrap; } .file .btn { width: 100%; } }
.callout { display: flex; gap: 14px; align-items: flex-start; margin-top: 32px; padding: 18px 20px; background: var(--black); color: #fff; border-left: 6px solid var(--red); border-radius: var(--radius-sm); }
.callout svg { font-size: 1.4rem; color: var(--red); margin-top: 2px; }
.callout p { margin: 0; }
.callout a { color: #fff; font-weight: 700; word-break: break-all; text-decoration-color: var(--red); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--gray-40); padding: 26px 0; font-size: .86rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.footer img { height: 26px; width: auto; }
.footer p { margin: 0; flex: 1; }

/* ---------- Modal de video ---------- */
.modal { width: min(100% - 24px, 1040px); padding: 0; border: 0; border-radius: var(--radius); background: var(--black); color: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal::backdrop { background: rgb(0 0 0 / .8); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .25s var(--ease); }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 3px solid var(--red); }
.modal__head h2 { font-size: 1rem; margin: 0; }
.modal__close { width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--gray-85); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal__close:hover { background: var(--red); }
.modal__video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Ajustes de densidad (menos scroll)
   ========================================================= */
.hero { padding: clamp(24px, 3.5vw, 40px) 0 clamp(32px, 4vw, 48px); }
.hero__head { margin-bottom: clamp(20px, 2.5vw, 28px); gap: 14px 48px; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.eyebrow { margin-bottom: .6rem; }
.lead { margin-bottom: 16px; }
.hero__media { gap: 20px; }
@media (min-width: 1040px) { .hero__media { grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); } }
.player figcaption { margin-top: 10px; }

/* Herramientas más compactas */
.htools { padding: 14px; gap: 10px; }
.htools__sub { margin-top: -4px; font-size: .82rem; }
.htool { grid-template-columns: 104px 1fr; gap: 12px; padding: 10px; }
.htool__preview { aspect-ratio: auto; height: 86px; align-self: start; contain: strict; }
.htool__preview > * { transform: scale(.248); }
.htool__body { gap: 6px; }
.htool__head .tag { font-size: .74rem; line-height: 1.3; }
.htool .btn { --h: 34px; font-size: .82rem; }
.tool__logo { width: 32px; height: 32px; font-size: .8rem; }
@media (max-width: 460px) { .htool { grid-template-columns: 88px 1fr; } .htool__preview { height: 74px; } .htool__preview > * { transform: scale(.21); } }

/* Secciones y pasos */
.section { padding: clamp(36px, 4.5vw, 60px) 0; }
.section__head { margin-bottom: clamp(16px, 2vw, 24px); }
.section__head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.quick__item { padding: 18px 22px; }
.quick__n { width: 36px; height: 36px; font-size: 1rem; }
.quick__item p { margin-bottom: 2px; }
@media (max-width: 860px) { .quick__item { padding: 14px 0; } }

/* Catálogo */
.filters { margin-bottom: 16px; }
.catalog { gap: 18px; }
.ccard__media { aspect-ratio: 16 / 8; }
.ccard__body { padding: 12px 16px 4px; }
.ccard__body h3 { font-size: .98rem; }
.ccard__body p { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard__foot { padding: 10px 16px 14px; }
.ccard__foot .btn { --h: 36px; }
@media (max-width: 600px) {
  /* Tarjetas horizontales en móvil */
  .catalog { gap: 12px; }
  .ccard { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: 1fr auto; }
  .ccard__media { grid-row: 1 / 3; aspect-ratio: auto; }
  .ccard__media .chip { display: none; }
  .ccard__num { width: 26px; height: 26px; font-size: .78rem; left: 8px; top: 8px; right: auto; }
  .ccard__body { border-top: 0; border-left: 3px solid var(--red); padding: 10px 12px 2px; }
  .ccard__body p { -webkit-line-clamp: 2; }
  .ccard__foot { border-left: 3px solid var(--red); padding: 6px 12px 10px; }
  .ccard__foot .btn { --h: 34px; font-size: .78rem; padding: 0 .6em; }
  .search { width: 100%; }
}

/* Pagos: 2 videos + módulos en una fila */
.vgrid--3 { gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .vgrid--3 { grid-template-columns: 1fr 1fr; } .vgrid--3 .mods { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .vgrid--3 { grid-template-columns: 1fr 1fr 1fr; } .vgrid--3 .mods { grid-column: auto; } }
.vcard__body { padding: 12px 16px 14px; }
.vcard__body strong { font-size: 1rem; }
.vcard__body span { font-size: .84rem; }
.mods { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.mods h3 { font-size: 1rem; margin: 0 0 10px; }
.mods__list { list-style: none; counter-reset: m; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 720px) and (max-width: 1099px) { .mods__list { grid-template-columns: 1fr 1fr; } }
.mods__list li { counter-increment: m; position: relative; padding-left: 36px; display: flex; flex-direction: column; font-size: .84rem; color: var(--ink-2); line-height: 1.4; }
.mods__list li::before { content: counter(m); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--black); color: #fff; font-weight: 800; font-size: .75rem; }
.mods__list li:nth-child(odd)::before { background: var(--red); }
.mods__list b { color: var(--ink); font-size: .9rem; }

/* Recursos */
.files { gap: 10px; }
.file { padding: 10px 14px; gap: 12px; }
.file__icon { width: 34px; height: 42px; padding-bottom: 6px; font-size: .6rem; }
.file h3 { font-size: .92rem; }
.file p { font-size: .8rem; }
.callout { margin-top: 18px; padding: 12px 16px; font-size: .9rem; }
@media (max-width: 480px) { .file { flex-wrap: nowrap; } .file .btn { width: auto; } .file p { display: none; } }

/* =========================================================
   Pestañas de videos de inicio (1 Intro · 2 Manual)
   ========================================================= */
.vtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.vtab { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; background: var(--gray-05); border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; position: relative; min-width: 0; }
.vtab:hover { border-color: var(--gray-40); }
.vtab.is-active { background: #fff; border-color: var(--black); box-shadow: var(--shadow-sm); }
.vtab.is-active::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 12px; background: #fff; border-right: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: translateX(-50%) rotate(45deg); }
.vtab__n { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; background: var(--gray-25); color: #fff; font-weight: 900; font-size: .9rem; transition: background .2s; }
.vtab.is-active .vtab__n { background: var(--red); }
.vtab__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.vtab__txt b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtab__txt small { font-size: .76rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtab__done { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: #fff; font-size: .8rem; opacity: 0; transform: scale(.6); transition: .25s var(--ease); }
.vtab.is-done .vtab__done { opacity: 1; transform: none; }
@media (max-width: 480px) { .vtab__txt small { display: none; } .vtab { padding: 8px; gap: 8px; } .vtab__n { width: 26px; height: 26px; font-size: .8rem; } .vtab__txt b { font-size: .88rem; } .vtab__done { display: none; } }

.player__next { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgb(0 0 0 / .78); color: #fff; text-align: center; padding: 16px; }
.player__next p { margin: 0; font-weight: 700; font-size: clamp(1rem, 2vw, 1.2rem); }

.htools__step { width: 24px; height: 24px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: .8rem; font-weight: 900; }

/* Ruta de 4 pasos */
.quick--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.quick--4 .quick__item .quick__n { background: var(--black); }
.quick--4 .quick__item:nth-child(-n+2) .quick__n { background: var(--red); }
@media (min-width: 861px) and (max-width: 1100px) { .quick--4 { grid-template-columns: 1fr 1fr; } .quick--4 .quick__item:nth-child(3) { border-left: 0; padding-left: 0; } }

/* =========================================================
   Versión simplificada: video de inicio + cursos en línea
   ========================================================= */
.hero__split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 980px) { .hero__split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.hero__split h1 { margin-bottom: 14px; }
.mini-steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.mini-steps li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.mini-steps span { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; background: var(--black); color: #fff; font-weight: 900; font-size: .8rem; }
.mini-steps li:first-child span { background: var(--red); }
.hero__note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .86rem; color: var(--ink-3); }
.hero__note svg { color: var(--red); font-size: 1.1rem; }
.ccard.is-soon .ccard__media img { filter: grayscale(1) opacity(.6); }
.ccard.is-soon .ccard__body { border-top-color: var(--gray-25); }
@media (max-width: 600px) { .ccard.is-soon .ccard__body, .ccard.is-soon .ccard__foot { border-left-color: var(--gray-25); } }
