/* AutoRally Neiva — hoja de estilos principal */
:root {
  --red: #e30613;
  --red-dark: #b8040f;
  --ink: #15171c;
  --ink-2: #23262e;
  --text: #3a3d45;
  --muted: #6b6f7a;
  --line: #e6e7ea;
  --bg: #ffffff;
  --bg-alt: #f5f5f6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 23, 28, .08);
  --max: 1200px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: rgba(227,6,19,.15); touch-action: manipulation; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; height: auto; }
[hidden] { display: none !important; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--ink); color: #c9ccd3; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--red); font-size: .95rem; margin-bottom: .6rem; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--red); vertical-align: middle; margin-right: 10px; transform: skewX(-20deg); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; padding: 14px 28px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn svg { width: 20px; height: 20px; }

/* Barra superior */
.topbar { background: var(--ink); color: #b8bcc5; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 4px; padding-bottom: 4px; flex-wrap: wrap; }
.topbar a { color: #e3e5ea; }
.topbar a:hover { color: #fff; }
.topbar .info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .social { display: flex; gap: 4px; }
.topbar .social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.topbar svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; fill: currentColor; }
.topbar .social svg { margin: 0; }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo img { height: 56px; width: auto; }
.nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a, .nav button { display: flex; align-items: center; white-space: nowrap; font-family: var(--head); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); padding: 10px 14px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover, .nav a.active { color: var(--red); }
.nav .has-sub > button::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; vertical-align: 1px; }
.nav .sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); border-top: 3px solid var(--red); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { font-family: var(--body); text-transform: none; font-weight: 600; font-size: .95rem; letter-spacing: 0; padding: 9px 20px; }
.nav .cta a { background: var(--red); color: #fff; border-radius: 8px; margin-left: 8px; }
.nav .cta a:hover { background: var(--red-dark); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); min-height: 620px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -4% 0; background: linear-gradient(100deg, rgba(15,16,20,.95) 0%, rgba(15,16,20,.78) 45%, rgba(15,16,20,.25) 100%), var(--hero-img) center/cover no-repeat; z-index: -2; animation: kenburns 22s ease-in-out infinite alternate; will-change: transform; }
.hero::after { content: ""; position: absolute; right: -80px; bottom: 0; width: 46%; height: 10px; background: var(--red); transform: skewX(-30deg); transform-origin: right; animation: stripeIn 1s .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1%); } }
@keyframes stripeIn { from { transform: skewX(-30deg) scaleX(0); } to { transform: skewX(-30deg) scaleX(1); } }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes speed { 0% { transform: translateX(-120%) skewX(-30deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(260%) skewX(-30deg); opacity: 0; } }
.hero .badge-years, .hero h1, .hero p, .hero .actions { animation: heroUp .8s cubic-bezier(.2,.8,.2,1) both; }
.hero .badge-years { animation-delay: .1s; }
.hero h1 { animation-delay: .25s; }
.hero p { animation-delay: .45s; }
.hero .actions { animation-delay: .65s; }
.badge-years b { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero-lines { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-lines span { position: absolute; left: 0; height: 3px; width: 40%; background: linear-gradient(90deg, transparent, rgba(227,6,19,.9), transparent); animation: speed 3.2s linear infinite; }
.hero-lines span:nth-child(1) { top: 22%; animation-delay: 1.2s; }
.hero-lines span:nth-child(2) { top: 64%; width: 28%; animation-delay: 2.4s; animation-duration: 2.6s; }
.hero-lines span:nth-child(3) { top: 84%; width: 34%; animation-delay: 3.6s; animation-duration: 3.8s; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero::after, .hero .badge-years, .hero h1, .hero p, .hero .actions, .badge-years b { animation: none; }
  .hero-lines { display: none; }
}
.hero .container { position: relative; z-index: 1; padding-top: 70px; padding-bottom: 70px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { font-size: 1.15rem; max-width: 620px; color: #dfe1e6; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.badge-years { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: 6px 14px; border-radius: 40px; font-size: .9rem; margin-bottom: 22px; }
.badge-years b { color: var(--red); }

/* Encabezado de página interna */
.page-hero { background: var(--ink) center/cover no-repeat; position: relative; color: #fff; padding: 90px 0 70px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,16,20,.93), rgba(15,16,20,.7)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 0; }
.crumbs { font-size: .9rem; color: #aeb2bb; margin-bottom: 10px; }
.crumbs a { color: #fff; }

/* Cifras */
.stats { background: var(--red); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.22); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--head); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.stat span { font-size: .92rem; opacity: .92; }

/* Tarjetas de cursos */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; color: var(--text); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(21,23,28,.14); color: var(--text); }
.card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.06); }
.card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card .tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 6px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .more { font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--red); letter-spacing: .05em; }

/* Accesos rápidos */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick a { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border-radius: var(--radius); background: var(--ink-2); color: #fff; border: 1px solid rgba(255,255,255,.07); transition: .2s; }
.quick a:hover { background: var(--red); color: #fff; transform: translateY(-4px); }
.quick svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.8; color: var(--red); transition: .2s; }
.quick a:hover svg { color: #fff; }
.quick h3 { color: #fff; margin: 0; font-size: 1.35rem; }
.quick span { font-size: .9rem; color: #b8bcc5; }
.quick a:hover span { color: #fff; }

/* Bloques de contenido */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding: 7px 0 7px 34px; border-bottom: 1px dashed var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.panel h3 { border-left: 4px solid var(--red); padding-left: 12px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.4em; }
.pill { background: var(--ink); color: #fff; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 8px 16px; border-radius: 6px; font-size: 1rem; }
.pill.red { background: var(--red); }
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.hours .panel { margin: 0; }
.hours .num { font-family: var(--head); font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 4px; }
.note { background: var(--bg-alt); border-left: 4px solid var(--red); padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 24px 0; }
.prose { max-width: 820px; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }

/* Historia en pestañas */
.history { margin-top: 40px; }
.history-tabs { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 0 0 6px; margin-bottom: 34px; overflow-x: auto; scrollbar-width: none; }
.history-tabs::-webkit-scrollbar { display: none; }
.history-tabs::before { content: ""; position: absolute; left: 0; right: 0; bottom: 15px; height: 4px; background: var(--line); border-radius: 4px; }
.history-progress { position: absolute; left: 0; bottom: 15px; height: 4px; width: 0; background: var(--red); border-radius: 4px; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.history-tabs button { position: relative; z-index: 1; flex: 1 0 auto; min-width: 90px; display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; background: none; border: 0; cursor: pointer; font-family: var(--head); font-weight: 800; font-size: 1.6rem; color: #a3a7b0; padding: 6px 10px 0; transition: color .2s; }
.history-tabs button:hover { color: var(--ink); }
.history-tabs button[aria-selected="true"] { color: var(--red); }
.history-tabs .dot { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #cfd2d8; transition: .25s; }
.history-tabs button[aria-selected="true"] .dot, .history-tabs button.done .dot { border-color: var(--red); }
.history-tabs button[aria-selected="true"] .dot { background: var(--red); box-shadow: 0 0 0 6px rgba(227,6,19,.18); transform: scale(1.15); }
.tab-panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); animation: tabIn .45s ease; }
.tab-panel[hidden] { display: none; }
@keyframes tabIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tp-img { position: relative; min-height: 380px; }
.tp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-year { position: absolute; left: 22px; bottom: 6px; font-family: var(--head); font-weight: 800; font-size: 6rem; line-height: 1; color: #fff; text-shadow: 0 6px 24px rgba(0,0,0,.45); opacity: .95; }
.tp-text { padding: 44px 44px 36px; display: flex; flex-direction: column; justify-content: center; }
.tp-text h3 { font-size: 2rem; }
.tp-text p { color: var(--text); }
.tp-nav { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.tp-nav button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); padding-bottom: 4px; transition: .15s; }
.tp-nav button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.tp-count { font-family: var(--head); font-weight: 700; letter-spacing: .1em; color: var(--muted); }

/* Política de seguridad vial */
.pesv { position: relative; overflow: hidden; }
.pesv::before { content: ""; position: absolute; top: 0; right: -10%; width: 45%; height: 8px; background: var(--red); transform: skewX(-30deg); }
.pesv-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; margin-bottom: 40px; }
.pesv-head p { color: #b8bcc5; }
.pesv-quote { margin: 0; background: var(--red); color: #fff; border-radius: 18px; padding: 34px; position: relative; box-shadow: 0 20px 50px rgba(227,6,19,.25); }
.pesv-quote svg { width: 44px; height: 44px; fill: rgba(255,255,255,.9); margin-bottom: 12px; }
.pesv-quote p { font-family: var(--head); font-size: 1.9rem; line-height: 1.15; text-transform: uppercase; font-weight: 700; margin: 0; color: #fff; }
.pesv-quote b { color: var(--ink); background: #fff; padding: 0 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pesv-sub { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #fff; font-size: 1.15rem; margin-bottom: 20px; }
.pesv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; counter-reset: pesv; }
.pesv-card { position: relative; background: var(--ink-2); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 26px 26px 22px 92px; transition: transform .2s, border-color .2s, background .2s; }
.pesv-card:hover { transform: translateY(-3px); border-color: rgba(227,6,19,.6); background: #272a33; }
.pesv-num { position: absolute; left: 24px; top: 22px; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: rgba(227,6,19,.12); color: var(--red); font-family: var(--head); font-weight: 800; font-size: 1.5rem; transition: .2s; }
.pesv-card:hover .pesv-num { background: var(--red); color: #fff; }
.pesv-card h3 { font-size: 1.3rem; margin-bottom: .35em; }
.pesv-card p { color: #a9adb6; font-size: .93rem; margin: 0; }
.pesv-foot { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .92rem; color: #8f949e; }
.pesv-foot p { margin: 0; max-width: 900px; }
.privacy-card { display: flex; align-items: center; gap: 26px; background: var(--bg-alt); border-radius: 18px; padding: 30px 34px; border-left: 6px solid var(--red); }
.privacy-card h3 { margin-bottom: .25em; }
.privacy-card p { margin: 0; color: var(--muted); }
.privacy-card > div:nth-child(2) { flex: 1; }
.privacy-ico { flex: 0 0 64px; height: 64px; border-radius: 14px; background: var(--red); display: grid; place-items: center; }
.privacy-ico svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.8; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(8,9,12,.95); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px 80px; user-select: none; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 8px; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: lbIn .25s ease; }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb-count { color: #c9ccd3; font-family: var(--head); font-weight: 700; letter-spacing: .1em; margin-top: 14px; font-size: 1.05rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.lightbox button:hover { background: var(--red); }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; font-size: 2.6rem; line-height: 1; padding-bottom: 6px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close { top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; }
@media (max-width: 760px) {
  .lightbox { padding: 70px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; width: 50px; height: 50px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* Contacto */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { text-align: center; padding: 30px 22px; }
.contact-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid var(--bg-alt); }
.contact-card .phone { font-family: var(--head); font-size: 1.6rem; font-weight: 800; color: var(--ink); display: block; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list svg { flex: 0 0 22px; width: 22px; height: 22px; fill: var(--red); margin-top: 3px; }
.embed { width: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }

/* Sedes */
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.location { display: flex; gap: 20px; align-items: flex-start; padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.location .ico { flex: 0 0 56px; height: 56px; border-radius: 12px; background: var(--red); display: grid; place-items: center; }
.location .ico svg { width: 28px; height: 28px; fill: #fff; }
.location h3 { margin-bottom: .2em; }
.location p { margin: 0 0 .6em; }

/* Blog */
.post-card .thumb { aspect-ratio: 16/10; }
.post-card time { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.article { max-width: 780px; margin: 0 auto; }
.article img { border-radius: var(--radius); margin: 1.5em 0; }
.article h2 { font-size: 1.8rem; margin-top: 1.4em; }
.article h3 { margin-top: 1.2em; }

/* CTA */
.cta-band { background: var(--red) linear-gradient(110deg, var(--red) 55%, var(--red-dark) 55%); color: #fff; padding: 56px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; opacity: .92; }
.cta-band .btn-dark { background: #fff; color: var(--red); }
.cta-band .btn-dark:hover { background: var(--ink); color: #fff; }

/* Pie de página */
.footer { background: #0e0f12; color: #9ea2ab; padding: 64px 0 0; font-size: .95rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: 1em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #c9ccd3; }
.footer a:hover { color: var(--red); }
.footer .brand img { height: 54px; width: auto; background: #fff; padding: 8px 12px; border-radius: 8px; margin-bottom: 16px; }
.footer .social { display: flex; gap: 10px; margin-top: 16px; }
.footer .social a { width: 40px; height: 40px; border-radius: 50%; background: #1d1f25; display: grid; place-items: center; }
.footer .social a:hover { background: var(--red); }
.footer .social svg { width: 18px; height: 18px; fill: #fff; }
.footer .bottom { border-top: 1px solid #1f2127; margin-top: 50px; padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Páginas de cursos */
.course-hero { position: relative; background: var(--ink); color: #fff; padding: 70px 0 0; overflow: hidden; isolation: isolate; }
.ch-bg { position: absolute; inset: 0; z-index: -1; background: center/cover no-repeat; filter: blur(18px) brightness(.35); transform: scale(1.15); }
.course-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: #fff; z-index: -1; }
.ch-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; padding-bottom: 50px; }
.ch-text h1 { color: #fff; margin: 10px 0 14px; }
.ch-text h1 em { font-style: normal; color: var(--red); }
.ch-text p { color: #d4d7de; font-size: 1.1rem; max-width: 560px; }
.ch-text .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.ch-text, .ch-photo { animation: heroUp .8s cubic-bezier(.2,.8,.2,1) both; }
.ch-photo { animation-delay: .15s; position: relative; }
.ch-photo img { border-radius: 20px; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.ch-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--red); border-radius: 20px; z-index: -1; }
.ch-badge { display: inline-block; background: var(--red); color: #fff; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; padding: 6px 14px; border-radius: 6px; transform: skewX(-8deg); }
.course-facts { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(21,23,28,.18); overflow: hidden; animation: heroUp .8s .3s cubic-bezier(.2,.8,.2,1) both; }
.cf { padding: 22px 24px; border-right: 1px solid var(--line); position: relative; }
.cf:last-child { border-right: 0; }
.cf::before { content: ""; position: absolute; left: 24px; top: 0; width: 34px; height: 4px; background: var(--red); }
.cf span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.cf b { font-family: var(--head); font-size: 1.5rem; color: var(--ink); line-height: 1.15; display: block; margin-top: 4px; }
.course-intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.course-intro h2 { margin: 0; }
.veh-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.veh-list li { background: var(--bg-alt); border-radius: 12px; padding: 16px 18px 16px 48px; position: relative; font-weight: 600; color: var(--ink); }
.veh-list li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.curriculum { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; }
.cu-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.cu-card.dark { background: var(--ink); border-color: var(--ink); color: #c9ccd3; }
.cu-card.dark h3 { color: #fff; }
.cu-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.cu-head h3 { margin: 0; font-size: 1.7rem; }
.cu-head .eyebrow { margin-bottom: .3rem; }
.cu-hours { flex: 0 0 auto; background: var(--red); color: #fff; font-family: var(--head); font-size: 1.15rem; padding: 8px 14px; border-radius: 10px; text-align: center; max-width: 170px; line-height: 1.2; }
.cu-list { list-style: none; margin: 0; padding: 0; }
.cu-list li { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-weight: 600; color: var(--ink); }
.cu-list li:last-child { border-bottom: 0; }
.cu-list span { flex: 0 0 38px; height: 38px; border-radius: 10px; background: rgba(227,6,19,.1); color: var(--red); display: grid; place-items: center; font-family: var(--head); font-weight: 800; }
.pr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pr-item { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px; transition: background .2s, border-color .2s; }
.pr-item:hover { background: rgba(227,6,19,.15); border-color: rgba(227,6,19,.5); }
.pr-item svg { flex: 0 0 30px; width: 30px; height: 30px; color: var(--red); }
.pr-item span { color: #fff; font-weight: 600; font-size: .95rem; }
.pista-band { background: var(--bg-alt); padding: 80px 0; }
.pb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pb-img { position: relative; }
.pb-img img { border-radius: 18px; aspect-ratio: 16/11; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.pb-tag { position: absolute; right: -14px; bottom: -18px; background: var(--ink); color: #c9ccd3; border-radius: 14px; padding: 14px 20px; font-size: .85rem; box-shadow: var(--shadow); }
.pb-tag b { display: block; font-family: var(--head); font-size: 2rem; color: #fff; line-height: 1; }
.pb-chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pb-chips li { border: 2px solid var(--ink); border-radius: 40px; padding: 6px 16px; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.req-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.req-card { background: #fff; border-radius: 18px; padding: 32px; box-shadow: var(--shadow); border-top: 5px solid var(--red); }
.steps { list-style: none; margin: 20px 0 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(var(--red), rgba(227,6,19,.15)); }
.steps li { position: relative; display: flex; gap: 20px; padding: 0 0 26px; }
.st-n { position: relative; flex: 0 0 48px; height: 48px; border-radius: 50%; background: #fff; border: 3px solid var(--red); display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 1.35rem; color: var(--red); transition: .2s; }
.steps li:hover .st-n { background: var(--red); color: #fff; }
.steps h4 { font-size: 1.3rem; margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--muted); }
.course-cta { background: var(--ink) linear-gradient(110deg, var(--ink) 60%, #1d2027 60%); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.course-cta::before { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 100%; background: var(--red); }
.course-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.course-cta h2 { color: #fff; margin: 0; }
.course-cta p { margin: 6px 0 0; color: #b8bcc5; }
.cc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cc-actions .btn-outline svg { fill: #fff; }
.cc-actions .btn-outline:hover svg { fill: var(--ink); }
.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-tile { background: var(--ink); color: #b8bcc5; border-radius: 16px; padding: 28px 18px; text-align: center; transition: transform .2s, background .2s; }
.cat-tile:hover { background: var(--red); color: #fff; transform: translateY(-6px); }
.cat-tile b { display: block; font-family: var(--head); font-size: 3rem; color: #fff; line-height: 1; margin-bottom: 6px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th { background: var(--ink); color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; text-align: left; padding: 16px 18px; }
.compare td { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: #fdf2f3; }
.compare td a b { font-family: var(--head); font-size: 1.4rem; }

/* Cursos · opción B */
.cb-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fff; background: linear-gradient(0deg, rgba(15,16,20,.92) 0%, rgba(15,16,20,.55) 45%, rgba(15,16,20,.15) 100%), var(--hero-img) center/cover no-repeat; padding: 120px 0 56px; }
.cb-hero .container { width: 100%; animation: heroUp .8s cubic-bezier(.2,.8,.2,1) both; }
.cb-hero h1 { color: #fff; margin: 14px 0 10px; max-width: 780px; }
.cb-hero h1 em { font-style: normal; color: var(--red); }
.cb-hero p { max-width: 640px; font-size: 1.12rem; color: #e1e3e8; margin: 0; }
.cb-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 40px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cb-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.cb-body { padding: 0 0 80px; background: #fff; }
.cb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.cb-main { padding-top: 10px; }
.ct-tabs { position: sticky; top: 84px; z-index: 5; display: flex; gap: 4px; background: #fff; border-bottom: 2px solid var(--line); margin-bottom: 34px; overflow-x: auto; scrollbar-width: none; }
.ct-tabs::-webkit-scrollbar { display: none; }
.ct-tabs button { flex: 0 0 auto; background: none; border: 0; padding: 22px 18px 18px; font-family: var(--head); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); cursor: pointer; position: relative; transition: color .2s; }
.ct-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .25s; }
.ct-tabs button:hover { color: var(--ink); }
.ct-tabs button[aria-selected="true"] { color: var(--ink); }
.ct-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.ct-panel { animation: tabIn .4s ease; }
.ct-panel[hidden] { display: none; }
.ct-panel h2 { font-size: 2rem; }
.ct-panel h3 { font-size: 1.35rem; margin-top: 1.6em; }
.ct-panel > p { font-size: 1.05rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--bg-alt); border: 1px solid var(--line); padding: 9px 16px; border-radius: 40px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.cb-pista { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin-top: 30px; padding: 20px; background: var(--bg-alt); border-radius: 16px; }
.cb-pista img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; }
.cb-pista h3 { margin-top: 0; }
.cb-pista p { margin: 0; font-size: .95rem; }
.plan-block { border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin-bottom: 20px; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.plan-head h3 { margin: 0; }
.plan-head span { background: rgba(227,6,19,.1); color: var(--red); font-weight: 700; padding: 5px 12px; border-radius: 30px; font-size: .9rem; }
.plan-list { list-style: none; counter-reset: pl; padding: 0; margin: 0; }
.plan-list li { counter-increment: pl; display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.plan-list li:last-child { border-bottom: 0; }
.plan-list li::before { content: counter(pl, decimal-leading-zero); flex: 0 0 34px; font-family: var(--head); font-weight: 800; font-size: 1.2rem; color: var(--red); }
.plan-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.plan-icons div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 12px; border-radius: 14px; background: var(--bg-alt); transition: background .2s, transform .2s; }
.plan-icons div:hover { background: #fdecee; transform: translateY(-3px); }
.plan-icons svg { width: 34px; height: 34px; color: var(--red); }
.plan-icons span { font-weight: 600; font-size: .9rem; color: var(--ink); line-height: 1.3; }
.timeline-v { list-style: none; padding: 0; margin: 10px 0 0; counter-reset: tv; }
.timeline-v li { counter-increment: tv; position: relative; padding: 0 0 26px 64px; }
.timeline-v li::before { content: counter(tv); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 1.25rem; }
.timeline-v li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.timeline-v li:last-child::after { display: none; }
.timeline-v b { display: block; font-family: var(--head); font-size: 1.3rem; text-transform: uppercase; color: var(--ink); padding-top: 8px; }
.timeline-v p { margin: 4px 0 0; color: var(--muted); }
.eval-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.eval-list div { border-left: 4px solid var(--red); background: var(--bg-alt); border-radius: 0 12px 12px 0; padding: 18px 20px; }
.eval-list b { font-family: var(--head); font-size: 1.25rem; text-transform: uppercase; color: var(--ink); }
.eval-list p { margin: 6px 0 0; font-size: .95rem; }
.cat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 20px; }
.cat-row div { border: 2px solid var(--line); border-radius: 14px; padding: 18px 10px; text-align: center; transition: border-color .2s, transform .2s; }
.cat-row div:hover { border-color: var(--red); transform: translateY(-3px); }
.cat-row b { display: block; font-family: var(--head); font-size: 2.2rem; color: var(--red); line-height: 1; }
.cat-row span { font-size: .85rem; font-weight: 600; color: var(--ink); }
.cb-side { position: sticky; top: 104px; margin-top: -120px; z-index: 6; }
.ficha { background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(21,23,28,.18); overflow: hidden; animation: heroUp .8s .2s cubic-bezier(.2,.8,.2,1) both; }
.ficha-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ficha-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; }
.ficha-body h3 { margin: 0 0 4px; font-size: 1.4rem; }
.ficha-list { list-style: none; margin: 0 0 10px; padding: 0; }
.ficha-list li { display: flex; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ficha-list li:last-child { border-bottom: 0; }
.fi { flex: 0 0 40px; height: 40px; border-radius: 10px; background: rgba(227,6,19,.08); color: var(--red); display: grid; place-items: center; }
.fi svg { width: 21px; height: 21px; }
.ficha-list small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.ficha-list b { color: var(--ink); font-size: .98rem; }
.ficha .btn { justify-content: center; width: 100%; }
.btn-ghost { background: var(--bg-alt); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost svg { fill: currentColor; }
.ficha-pdf { display: block; padding: 10px 0 4px; text-align: center; font-size: .88rem; font-weight: 600; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; }
.cb-mobile-cta { display: none; }

/* Blog */
.blog-hero { background: var(--ink); color: #fff; padding: 70px 0 110px; position: relative; overflow: hidden; }
.blog-hero::after { content: ""; position: absolute; right: -60px; bottom: 50px; width: 40%; height: 8px; background: var(--red); transform: skewX(-30deg); }
.blog-hero .container { position: relative; animation: heroUp .8s cubic-bezier(.2,.8,.2,1) both; }
.blog-hero h1 { color: #fff; margin-bottom: .2em; }
.blog-hero h1 em { font-style: normal; color: var(--red); }
.blog-hero p { color: #c9ccd3; font-size: 1.12rem; max-width: 560px; }
.blog-search { display: flex; align-items: center; gap: 10px; max-width: 460px; margin-top: 24px; background: #fff; border-radius: 12px; padding: 0 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.blog-search svg { width: 20px; height: 20px; color: var(--muted); flex: 0 0 20px; }
.blog-search input { flex: 1; border: 0; outline: 0; font: inherit; padding: 15px 0; background: transparent; color: var(--ink); min-width: 0; }
.blog-list { padding-top: 0; }
.featured { display: grid; grid-template-columns: 1.25fr 1fr; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(21,23,28,.16); margin-top: -70px; position: relative; z-index: 2; color: var(--text); margin-bottom: 44px; }
.featured:hover { color: var(--text); }
.featured-img { position: relative; overflow: hidden; min-height: 340px; }
.featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.featured:hover .featured-img img { transform: scale(1.05); }
.featured-img .cb-badge { position: absolute; left: 20px; top: 20px; background: var(--red); border-color: var(--red); color: #fff; }
.featured-img .cb-badge::before { background: #fff; }
.featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.featured-body h2 { font-size: 2.2rem; margin: 10px 0; }
.featured-body p { color: var(--muted); }
.pmeta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.pmeta time { color: var(--red); }
.pmeta span::before { content: "•"; margin-right: 16px; opacity: .5; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcard { display: flex; flex-direction: column; color: var(--text); }
.pcard:hover { color: var(--text); }
.pcard-img { border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-alt); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard-img img { transform: scale(1.06); }
.pcard-body { padding: 18px 4px 0; }
.pcard h3 { font-size: 1.45rem; margin: 8px 0 6px; transition: color .2s; }
.pcard:hover h3 { color: var(--red); }
.pcard p { color: var(--muted); font-size: .95rem; margin-bottom: .6em; }
.pcard .more { font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--red); letter-spacing: .05em; }
.no-results { text-align: center; color: var(--muted); padding: 30px 0; }
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 70; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--red); }
.post-hero { background: linear-gradient(0deg, rgba(15,16,20,.94), rgba(15,16,20,.55)), var(--hero-img) center/cover no-repeat; color: #fff; padding: 110px 0 60px; }
.post-hero .container { max-width: 900px; animation: heroUp .8s cubic-bezier(.2,.8,.2,1) both; }
.post-hero h1 { color: #fff; margin: 14px 0 12px; font-size: clamp(2rem, 4.5vw, 3.4rem); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #c9ccd3; font-size: .95rem; }
.post-meta > * + *::before { content: "•"; margin-right: 18px; opacity: .5; }
.post-body { padding: 60px 0 80px; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.article { max-width: 740px; margin: 0; font-size: 1.08rem; line-height: 1.8; }
.article .post-lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink); font-weight: 600; border-left: 4px solid var(--red); padding-left: 20px; margin-bottom: 1.6em; }
.article h2 { font-size: 1.9rem; margin: 1.6em 0 .5em; }
.article h3 { font-size: 1.4rem; }
.article img { border-radius: 14px; margin: 1.6em 0; box-shadow: var(--shadow); }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .4em; }
.article li::marker { color: var(--red); }
.article blockquote { margin: 1.5em 0; padding: 18px 24px; background: var(--bg-alt); border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; }
.article a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; word-break: break-word; }
.share { display: flex; align-items: center; gap: 10px; margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.share span { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; color: var(--ink); }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); border: 0; cursor: pointer; color: var(--ink); transition: .2s; text-decoration: none; }
.share svg { width: 19px; height: 19px; fill: currentColor; }
.share button svg { fill: none; }
.share a:hover, .share button:hover { background: var(--red); color: #fff; }
.share button.copied { background: #1f9d55; color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.pn { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-decoration: none !important; color: var(--ink); transition: border-color .2s, transform .2s; }
.pn:hover { border-color: var(--red); transform: translateY(-3px); color: var(--ink); }
.pn.next { text-align: right; }
.pn small { display: block; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin-bottom: 4px; }
.pn b { font-family: var(--head); font-size: 1.2rem; text-transform: uppercase; line-height: 1.2; }
.post-side { position: sticky; top: 108px; display: grid; gap: 22px; }
.side-cta { background: var(--ink); color: #c9ccd3; border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.side-cta::before { content: ""; position: absolute; right: -40px; top: 0; width: 60%; height: 6px; background: var(--red); transform: skewX(-30deg); }
.side-cta img { height: 42px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; align-self: flex-start; margin-bottom: 6px; }
.side-cta h3 { color: #fff; margin: 0; font-size: 1.5rem; }
.side-cta p { font-size: .95rem; margin: 0 0 6px; }
.side-cta .btn { justify-content: center; }
.side-list { border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.side-list h4 { font-size: 1.15rem; margin-bottom: 10px; }
.side-list a { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.side-list a:last-child { border-bottom: 0; }
.side-list img { width: 70px; height: 54px; border-radius: 8px; object-fit: cover; flex: 0 0 70px; }
.side-list b { display: block; font-size: .95rem; line-height: 1.3; transition: color .2s; }
.side-list a:hover b { color: var(--red); }
.side-list small { color: var(--muted); }

/* Blog · opción B (revista) */
.crumbs.dark { color: var(--muted); }
.crumbs.dark a { color: var(--ink); }
.tchip { display: inline-block; background: var(--red); color: #fff; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 5px 11px; border-radius: 6px; }
.tchip.light { background: rgba(227,6,19,.1); color: var(--red); }
.mmeta { display: flex; gap: 14px; font-size: .82rem; color: rgba(255,255,255,.85); font-weight: 600; }
.mmeta span::before { content: "•"; margin-right: 14px; opacity: .6; }
.mmeta.dark { color: var(--muted); }
.mag-hero { background: var(--bg-alt); padding: 50px 0 56px; }
.mag-title { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: end; margin: 10px 0 0; animation: heroUp .8s cubic-bezier(.2,.8,.2,1) both; }
.mag-title h1 { font-size: clamp(4rem, 10vw, 8rem); line-height: .85; margin: 0; }
.mag-title h1 span { color: var(--red); }
.mag-title p { color: var(--muted); font-size: 1.15rem; max-width: 520px; margin: 0 0 10px; }
.bento { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 260px 260px; gap: 20px; }
.mag { position: relative; display: block; border-radius: 20px; overflow: hidden; color: #fff; isolation: isolate; background: var(--ink); }
.mag:hover { color: #fff; }
.mag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.mag:hover img { transform: scale(1.07); }
.mag::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,11,14,.92) 0%, rgba(10,11,14,.35) 55%, rgba(10,11,14,.05) 100%); }
.mag-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.mag h3 { color: #fff; font-size: 1.6rem; margin: 12px 0 10px; }
.mag.big { grid-row: span 2; }
.mag.big .mag-txt { padding: 36px; }
.mag.big h3 { font-size: clamp(2rem, 3.4vw, 3rem); max-width: 600px; }
.mag.small { height: 320px; }
.mag-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.mag-head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 2px solid var(--line); background: #fff; border-radius: 40px; padding: 8px 18px; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--ink); transition: .2s; font-family: var(--body); }
.filter:hover { border-color: var(--ink); }
.filter.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.rows { display: grid; gap: 18px; }
.row-card { display: grid; grid-template-columns: 300px 1fr 60px; gap: 28px; align-items: center; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--text); transition: border-color .25s, box-shadow .25s; }
.row-card:hover { border-color: transparent; box-shadow: 0 18px 44px rgba(21,23,28,.12); color: var(--text); }
.rc-img { border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; }
.rc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.row-card:hover .rc-img img { transform: scale(1.06); }
.rc-body h3 { font-size: 1.7rem; margin: 10px 0 6px; transition: color .2s; }
.row-card:hover h3 { color: var(--red); }
.rc-body p { color: var(--muted); margin: 0 0 10px; }
.rc-arrow { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 1.4rem; color: var(--ink); transition: .25s; }
.row-card:hover .rc-arrow { background: var(--red); border-color: var(--red); color: #fff; transform: translateX(4px); }
.ed-head { padding: 60px 0 36px; text-align: center; }
.ed-head .container { max-width: 900px; animation: heroUp .8s cubic-bezier(.2,.8,.2,1) both; }
.ed-head .crumbs { margin-bottom: 22px; }
.ed-head h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); margin: 16px 0 22px; }
.ed-meta { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.ed-meta b { display: block; color: var(--ink); }
.ed-meta small { color: var(--muted); }
.ed-avatar { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.ed-avatar img { width: 80%; height: auto; }
.ed-avatar.big { width: 72px; height: 72px; }
.ed-cover { max-width: var(--max); animation: heroUp .8s .15s cubic-bezier(.2,.8,.2,1) both; }
.ed-cover img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px rgba(21,23,28,.18); }
.ed-body { padding: 56px 0 80px; }
.ed-grid { display: grid; grid-template-columns: 56px minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.ed-side { align-self: stretch; display: flex; flex-direction: column; gap: 20px; }
.ed-side .sb-cta { position: sticky; top: 104px; }
.sb-box { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; }
.sb-box h4 { font-size: 1.15rem; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--line); position: relative; }
.sb-box h4::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--red); }
.sb-cta { background: var(--ink); border-color: var(--ink); color: #c9ccd3; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.sb-cta::before { content: ""; position: absolute; right: -40px; top: 0; width: 55%; height: 6px; background: var(--red); transform: skewX(-30deg); }
.sb-cta .tchip { align-self: flex-start; }
.sb-cta h3 { color: #fff; margin: 4px 0 0; font-size: 1.5rem; }
.sb-cta p { margin: 0 0 6px; font-size: .93rem; }
.sb-cta .btn { justify-content: center; }
.sb-cta .btn-outline { padding-top: 11px; padding-bottom: 11px; }
.sb-topics { list-style: none; margin: 0; padding: 0; }
.sb-topics a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; color: var(--ink); font-weight: 600; transition: background .2s; }
.sb-topics a:hover, .sb-topics a.on { background: var(--bg-alt); color: var(--red); }
.sb-topics b { min-width: 28px; height: 24px; border-radius: 12px; background: var(--bg-alt); display: grid; place-items: center; font-size: .8rem; color: var(--muted); }
.sb-topics a.on b, .sb-topics a:hover b { background: var(--red); color: #fff; }
.sb-recent a { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.sb-recent a:last-child { border-bottom: 0; padding-bottom: 0; }
.sb-recent img { width: 72px; height: 56px; border-radius: 10px; object-fit: cover; flex: 0 0 72px; }
.sb-recent b { display: block; font-size: .93rem; line-height: 1.3; transition: color .2s; }
.sb-recent a:hover b { color: var(--red); }
.sb-recent small { color: var(--muted); font-size: .8rem; }
.sb-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sb-social a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 10px; color: #fff; font-weight: 700; font-size: .9rem; transition: transform .2s, opacity .2s; }
.sb-social a:hover { transform: translateY(-2px); opacity: .9; color: #fff; }
.sb-social svg { width: 18px; height: 18px; fill: #fff; }
.sb-social .fb { background: #1877f2; }
.sb-social .ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.ed-share { position: sticky; top: 120px; align-self: start; }
.ed-share .share { flex-direction: column; margin: 0; padding: 0; border: 0; }
.ed-share .share span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .8rem; margin: 0 0 8px; color: var(--muted); }
.ed-share-mobile { display: none; }
.ed-article { max-width: 760px; margin: 0; font-size: 1.1rem; }
.ed-article .post-lead { border: 0; padding: 0; font-size: 1.3rem; font-weight: 400; color: var(--ink); }
.ed-article .post-lead::first-letter { float: left; font-family: var(--head); font-weight: 800; font-size: 4.6rem; line-height: .82; color: var(--red); margin: 8px 12px 0 0; }
.ed-article h2 { position: relative; padding-top: 18px; }
.ed-article h2::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 4px; background: var(--red); }
.ed-author { display: flex; gap: 20px; margin-top: 50px; padding: 28px; background: var(--bg-alt); border-radius: 18px; font-size: 1rem; }
.ed-author small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; }
.ed-author b { font-family: var(--head); font-size: 1.5rem; text-transform: uppercase; color: var(--ink); }
.ed-author p { margin: 6px 0 14px; color: var(--muted); }
.ed-author-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ed-author .btn { text-decoration: none; }
.mag-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Inicio · opción B */
.hero-b { min-height: 680px; }
.hb-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero-b h1 { max-width: 640px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 34px 0 0; color: #c9ccd3; font-size: .92rem; animation: heroUp .8s .8s cubic-bezier(.2,.8,.2,1) both; }
.trust li { display: flex; align-items: baseline; gap: 6px; }
.trust b { font-family: var(--head); font-size: 1.6rem; color: #fff; }
.hb-card { background: #fff; color: var(--text); border-radius: 22px; padding: 30px; box-shadow: 0 30px 70px rgba(0,0,0,.35); animation: heroUp .9s .5s cubic-bezier(.2,.8,.2,1) both; position: relative; }
.hb-card::before { content: ""; position: absolute; left: 30px; top: 0; width: 60px; height: 5px; background: var(--red); border-radius: 0 0 4px 4px; }
.hb-card h2 { font-size: 1.9rem; margin: 6px 0 4px; }
.hb-card > p { color: var(--muted); margin-bottom: 18px; font-size: .95rem; }
.picks { display: grid; gap: 10px; }
.pick { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; color: var(--ink); transition: border-color .2s, background .2s, transform .2s; }
.pick:hover { border-color: var(--red); background: #fff6f6; color: var(--ink); transform: translateX(4px); }
.pick-ico { flex: 0 0 54px; height: 54px; border-radius: 12px; background: var(--bg-alt); color: var(--red); display: grid; place-items: center; transition: .2s; }
.pick-ico svg { width: 36px; height: 36px; }
.pick:hover .pick-ico { background: var(--red); color: #fff; }
.pick-txt { flex: 1; display: flex; flex-direction: column; }
.pick-txt b { font-family: var(--head); font-size: 1.35rem; text-transform: uppercase; line-height: 1.1; }
.pick-txt small { color: var(--muted); font-size: .85rem; }
.pick-go { font-size: 1.4rem; color: var(--red); transition: transform .2s; }
.pick:hover .pick-go { transform: translateX(4px); }
.hb-more { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--muted); }
.hb-more b { color: var(--red); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.sec-head h2 { margin: 0; }
.sec-head .lead { margin: 0; }
.lic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lic { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--text); transition: box-shadow .25s, transform .25s, border-color .25s; }
.lic:hover { color: var(--text); border-color: transparent; box-shadow: 0 24px 50px rgba(21,23,28,.14); }
.js .lic.reveal.in:hover { transform: translateY(-6px); transition-delay: 0s; }
.lic-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.lic-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.lic:hover .lic-img img { transform: scale(1.06); }
.lic-ico { position: absolute; right: 16px; bottom: -26px; width: 60px; height: 60px; border-radius: 16px; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(227,6,19,.35); }
.lic-ico svg { width: 38px; height: 38px; }
.lic-img { overflow: visible; }
.lic-img img { border-radius: 0; }
.lic-body { padding: 26px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.lic-body h3 { font-size: 1.55rem; margin: 10px 0 6px; }
.lic-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.lic-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lic-facts div { text-align: center; }
.lic-facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.lic-facts dd { margin: 2px 0 0; font-family: var(--head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.lic .more { font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--red); letter-spacing: .05em; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.svc { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: var(--bg-alt); color: var(--text); transition: background .2s, box-shadow .2s; }
.svc:hover { background: #fff; box-shadow: 0 14px 34px rgba(21,23,28,.1); color: var(--text); }
.svc img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }
.svc h3 { font-size: 1.15rem; margin: 6px 0 2px; }
.svc p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.4; }
.svc .rc-arrow { width: 40px; height: 40px; font-size: 1.1rem; }
.svc:hover .rc-arrow { background: var(--red); border-color: var(--red); color: #fff; }
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.how::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 3px; background: repeating-linear-gradient(90deg, var(--red) 0 14px, transparent 14px 26px); }
.how li { position: relative; text-align: center; padding: 0 10px; }
.hs-n { position: relative; z-index: 1; width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 3px solid var(--red); display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--red); box-shadow: 0 0 0 8px var(--bg-alt); transition: .25s; }
.how li:hover .hs-n { background: var(--red); color: #fff; transform: scale(1.08); }
.how h3 { font-size: 1.35rem; margin-bottom: 6px; }
.how p { color: var(--muted); font-size: .95rem; margin: 0; }
.why-b { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.why-collage { position: relative; min-height: 520px; }
.why-collage img { position: absolute; border-radius: 20px; object-fit: cover; box-shadow: 0 24px 50px rgba(21,23,28,.18); }
.wc-1 { left: 0; top: 0; width: 72%; height: 78%; }
.wc-2 { right: 0; bottom: 0; width: 56%; height: 50%; border: 6px solid #fff; }
.why-collage .why-badge { left: auto; right: 24px; top: 26px; bottom: auto; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; margin-top: 24px; }
.feat { display: grid; grid-template-columns: 50px 1fr; gap: 4px 16px; }
.feat-ico { grid-row: span 2; width: 50px; height: 50px; border-radius: 14px; background: rgba(227,6,19,.08); color: var(--red); display: grid; place-items: center; transition: .2s; }
.feat:hover .feat-ico { background: var(--red); color: #fff; }
.feat-ico svg { width: 26px; height: 26px; }
.feat h3 { font-size: 1.2rem; margin: 2px 0 0; }
.feat p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.fleet-strip { padding: 70px 0 60px; overflow: hidden; background: #fff; }
.fs-track { display: flex; gap: 16px; width: max-content; animation: marquee 40s linear infinite; }
.fleet-strip:hover .fs-track { animation-play-state: paused; }
.fs-track img { width: 340px; height: 220px; object-fit: cover; border-radius: 16px; flex: 0 0 auto; }
@keyframes marquee { to { transform: translateX(-50%); } }
.fs-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 34px; }
.fs-cta h2 { margin: 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 110px; }
.faqs { display: grid; gap: 12px; }
.faq { background: #fff; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq[open] { border-color: transparent; box-shadow: 0 14px 34px rgba(21,23,28,.1); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--bg-alt); position: relative; transition: .25s; }
.faq summary span::before, .faq summary span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: .25s; }
.faq summary span::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] summary span { background: var(--red); }
.faq[open] summary span::before { background: #fff; }
.faq[open] summary span::after { background: #fff; transform: translate(-50%, -50%) rotate(0deg); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Transición entre páginas */
.page-fade { position: fixed; inset: 0; z-index: 200; background: #fff; display: grid; place-items: center; pointer-events: none; animation: pfOut .55s .1s ease forwards; }
.page-fade img { width: 170px; height: auto; animation: pfLogo .55s ease forwards; }
.page-fade.leaving { animation: pfIn .28s ease forwards; }
.page-fade.leaving img { animation: none; opacity: 1; }
@keyframes pfOut { to { opacity: 0; visibility: hidden; } }
@keyframes pfIn { from { opacity: 0; visibility: visible; } to { opacity: 1; visibility: visible; } }
@keyframes pfLogo { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.92); } }
main { overflow-x: clip; animation: mainIn .7s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes mainIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.from-right { transform: translateX(40px); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.js .stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .1s; }
.stagger.in > *:nth-child(3) { transition-delay: .2s; }
.stagger.in > *:nth-child(4) { transition-delay: .3s; }
.js .card.reveal.in:hover { transform: translateY(-6px); transition-delay: 0s; }
.stat b { display: block; }
.why-img { position: relative; }
.why-badge { position: absolute; left: -22px; bottom: 28px; background: var(--red); color: #fff; border-radius: 14px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 16px 40px rgba(227,6,19,.35); animation: floatY 4s ease-in-out infinite; }
.why-badge b { font-family: var(--head); font-size: 2.6rem; line-height: 1; }
.why-badge span { font-size: .85rem; line-height: 1.25; font-weight: 600; }
@keyframes floatY { 50% { transform: translateY(-10px); } }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn-primary:hover::after { left: 130%; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; z-index: 1; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: #fff; transform: translateX(-50%); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* Contacto */
.contact-hero { position: relative; background: var(--ink) url("/assets/img/FACHADA-SEDE-CENTRO-1.webp") center/cover no-repeat; color: #fff; padding: 90px 0 150px; overflow: hidden; }
.contact-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,16,20,.96) 30%, rgba(15,16,20,.7)); }
.contact-hero::after { content: ""; position: absolute; left: -60px; bottom: 60px; width: 38%; height: 8px; background: var(--red); transform: skewX(-30deg); }
.contact-hero .container { position: relative; }
.contact-hero h1 { color: #fff; margin-bottom: .3em; }
.contact-hero h1 em { font-style: normal; color: var(--red); }
.contact-hero p { color: #d0d3da; font-size: 1.15rem; max-width: 560px; }
.contact-quick { position: relative; z-index: 2; margin-top: -90px; }
.qc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.qc { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 16px; padding: 26px 24px; box-shadow: 0 18px 44px rgba(21,23,28,.14); color: var(--text); transition: transform .2s, box-shadow .2s; animation: heroUp .7s cubic-bezier(.2,.8,.2,1) both; }
.qc:nth-child(2) { animation-delay: .1s; } .qc:nth-child(3) { animation-delay: .2s; } .qc:nth-child(4) { animation-delay: .3s; }
.qc:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(21,23,28,.2); color: var(--text); }
.qc-ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(227,6,19,.1); display: grid; place-items: center; margin-bottom: 14px; transition: .2s; }
.qc-ico svg { width: 26px; height: 26px; fill: var(--red); transition: .2s; }
.qc:hover .qc-ico { background: var(--red); }
.qc:hover .qc-ico svg { fill: #fff; }
.qc-wa .qc-ico { background: #25d366; }
.qc-wa .qc-ico svg { fill: #fff; }
.qc-t { font-family: var(--head); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; color: var(--ink); }
.qc-s { font-size: .88rem; color: var(--muted); }
.qc b { margin-top: 10px; color: var(--red); font-weight: 700; }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.area { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px 28px; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.area:hover { border-color: var(--red); box-shadow: var(--shadow); }
.area-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.area-ico svg { width: 28px; height: 28px; fill: #fff; }
.area h3 { margin-bottom: .2em; }
.area p { color: var(--muted); font-size: .95rem; margin-bottom: .8em; }
.area-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 800; font-size: 1.7rem; color: var(--ink); }
.area-phone svg { width: 20px; height: 20px; fill: var(--red); }
.area-phone:hover { color: var(--red); }
.area small { display: block; color: var(--muted); margin-top: 4px; }
.area-wa { position: absolute; top: 26px; right: 26px; width: 44px; height: 44px; border-radius: 50%; background: #25d366; display: grid; place-items: center; transition: transform .2s; }
.area-wa:hover { transform: scale(1.1); }
.area-wa svg { width: 22px; height: 22px; fill: #fff; }
.contact-main { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.form-card { background: #fff; border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.form-card .muted { color: var(--muted); }
.form-embed { width: 100%; height: 1000px; border: 0; margin-top: 10px; }
.contact-side { display: grid; gap: 22px; position: sticky; top: 104px; }
.side-card { background: #fff; border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.side-card.dark { background: var(--ink); color: #c9ccd3; }
.side-card.dark h3 { color: #fff; }
.side-card.dark .info-list li { border-color: rgba(255,255,255,.1); }
.side-card.dark b { color: #fff; }
.side-card.dark a { color: #fff; }
.side-card.dark a:hover { color: var(--red); }
.side-social { display: flex; gap: 10px; margin-top: 20px; }
.side-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .2s; }
.side-social a:hover { background: var(--red); }
.side-social svg { width: 18px; height: 18px; fill: #fff; }
.map-tabs { display: flex; background: var(--bg-alt); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.map-tabs button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 8px; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; cursor: pointer; color: var(--muted); transition: .2s; }
.map-tabs button[aria-selected="true"] { background: #fff; color: var(--red); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.map-embed { width: 100%; height: 280px; border: 0; border-radius: 12px; display: block; }
.map-link { margin-top: 14px; width: 100%; justify-content: center; }
.map-link svg { fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  .page-fade, main, .qc, .why-badge, .scroll-hint::after, .fs-track { animation: none !important; }
  .page-fade { display: none; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .hb-grid { grid-template-columns: 1fr; gap: 36px; }
  .hb-card { max-width: 560px; }
  .sec-head, .why-b, .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-grid > div:first-child { position: static; }
  .lic-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
  .how { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .how::before { display: none; }
  .why-collage { min-height: 440px; max-width: 620px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 240px; }
  .mag.big { grid-row: auto; grid-column: span 2; }
  .row-card { grid-template-columns: 240px 1fr; }
  .rc-arrow { display: none; }
  .ed-grid { grid-template-columns: minmax(0, 1fr); }
  .ed-side { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; }
  .ed-side .sb-cta { position: relative; top: auto; order: -1; }
  .ed-share { display: none; }
  .ed-share-mobile { display: block; }
  .mag-more { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-side { position: static; grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured-img { min-height: 280px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .cb-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cb-side { position: static; margin: 0 0 10px; order: -1; }
  .ficha { display: grid; grid-template-columns: 300px 1fr; margin-top: -60px; }
  .ficha-img img { height: 100%; aspect-ratio: auto; }
  .ct-tabs { top: 72px; }
  .ch-grid, .course-intro, .curriculum, .pb-grid, .req-grid { grid-template-columns: 1fr; }
  .ch-photo { display: none; }
  .ch-bg { filter: blur(3px) brightness(.38); transform: scale(1.05); }
  .course-facts { grid-template-columns: repeat(2, 1fr); }
  .cf:nth-child(2) { border-right: 0; }
  .cf:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .qc-grid { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: 1fr; }
  .contact-main { grid-template-columns: 1fr; }
  .contact-side { position: static; }
  .pesv-head { grid-template-columns: 1fr; gap: 30px; }
  .grid-3, .quick { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 84px 0 0 0; background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .25s; padding: 10px 20px 40px; }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav button { padding: 14px 4px; width: 100%; text-align: left; font-size: 1.2rem; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 12px; display: none; }
  .nav .has-sub.open .sub { display: block; }
  .nav .cta a { margin: 16px 0 0; justify-content: center; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .topbar .info span.hide-sm { display: none; }
  .header .container { height: 72px; }
  .nav { top: 72px; }
  .logo img { height: 46px; }
  .hero { min-height: 540px; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat b { font-size: 2rem; white-space: nowrap; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.22); }
  .grid-3, .grid-2, .grid-4, .quick, .split, .locations, .contact-cards, .hours, .gallery { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .split { gap: 30px; }
  .footer .cols { grid-template-columns: 1fr; }
  .history-tabs { justify-content: flex-start; }
  .history-tabs { overflow: visible; gap: 0; }
  .history-tabs button { min-width: 0; flex: 1 1 0; padding: 6px 0 0; font-size: 1.1rem; }
  .history-tabs .dot { width: 18px; height: 18px; }
  .history-tabs::before, .history-progress { bottom: 13px; }
  .tab-panel { grid-template-columns: 1fr; }
  .tp-img { min-height: 230px; }
  .tp-year { font-size: 4rem; }
  .tp-text { padding: 26px 22px; }
  .tp-text h3 { font-size: 1.6rem; }
  .pesv-grid { grid-template-columns: 1fr; }
  .pesv-card { padding: 22px 20px 20px 84px; }
  .pesv-quote p { font-size: 1.5rem; }
  .course-hero { padding-top: 40px; }
  .ch-text .actions { margin-bottom: 14px; }
  .ch-text .actions .btn { flex: 1 1 auto; justify-content: center; }
  .ch-photo::before { inset: 10px -8px -10px 10px; }
  .cf { padding: 16px; }
  .cf::before { left: 16px; }
  .cf b { font-size: 1.15rem; }
  .veh-list, .pr-grid { grid-template-columns: 1fr; }
  .cu-card, .req-card { padding: 24px 18px; }
  .cu-head { flex-direction: column; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .pb-tag { right: 10px; }
  .pista-band { padding: 56px 0; }
  .cb-hero { min-height: 360px; padding: 90px 0 90px; }
  .ficha { grid-template-columns: 1fr; margin-top: -50px; }
  .ficha-img { display: none; }
  .ficha-body { padding: 20px; }
  .ct-tabs button { padding: 18px 12px 14px; font-size: 1rem; }
  .ct-panel h2 { font-size: 1.6rem; }
  .cb-pista { grid-template-columns: 1fr; }
  .plan-block { padding: 20px 16px; }
  .plan-icons { grid-template-columns: 1fr 1fr; }
  .eval-list { grid-template-columns: 1fr; }
  .cat-row { grid-template-columns: repeat(3, 1fr); }
  .cb-mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); box-shadow: 0 -6px 20px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .3s; }
  .cb-mobile-cta.show { transform: none; }
  .cb-mobile-cta .btn { width: 100%; justify-content: center; }
  body:has(.cb-mobile-cta.show) .wa-float { bottom: 84px; }
  .blog-hero { padding: 50px 0 100px; }
  .featured-body { padding: 24px 20px; }
  .featured-body h2 { font-size: 1.7rem; }
  .pgrid, .post-side, .post-nav { grid-template-columns: 1fr; }
  .pn.next { text-align: left; }
  .post-hero { padding: 80px 0 40px; }
  .post-body { padding: 36px 0 56px; }
  .article { font-size: 1.02rem; }
  .article .post-lead { font-size: 1.1rem; }
  .mag-title { grid-template-columns: 1fr; gap: 10px; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 260px; }
  .mag.big { grid-column: auto; }
  .mag.big .mag-txt { padding: 22px; }
  .mag h3 { font-size: 1.35rem; }
  .row-card { grid-template-columns: 1fr; gap: 14px; padding: 12px; }
  .rc-body { padding: 0 6px 8px; }
  .rc-body h3 { font-size: 1.4rem; }
  .ed-head { padding: 36px 0 26px; }
  .ed-cover img { aspect-ratio: 16/10; border-radius: 14px; }
  .ed-body { padding: 36px 0 56px; }
  .ed-article { font-size: 1.04rem; }
  .ed-author { flex-direction: column; padding: 22px; }
  .ed-side { grid-template-columns: 1fr; }
  .mag-more { grid-template-columns: 1fr; }
  .mag.small { height: 260px; }
  .qc-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-b { min-height: 0; }
  .hb-card { padding: 22px 18px; border-radius: 18px; }
  .hb-card h2 { font-size: 1.55rem; }
  .pick { padding: 12px; gap: 12px; }
  .pick-ico { flex-basis: 46px; height: 46px; }
  .trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
  .trust li { flex-direction: column; align-items: flex-start; gap: 0; font-size: .8rem; line-height: 1.25; border-left: 3px solid var(--red); padding-left: 10px; }
  .trust b { font-size: 1.3rem; }
  .lic-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 64px 1fr; }
  .svc img { width: 64px; height: 64px; }
  .svc .rc-arrow { display: none; }
  .how { grid-template-columns: 1fr; }
  .how li { display: grid; grid-template-columns: 56px 1fr; gap: 2px 16px; text-align: left; padding: 0; }
  .hs-n { grid-row: span 2; width: 56px; height: 56px; margin: 0; font-size: 1.6rem; box-shadow: none; }
  .how h3 { margin: 4px 0 0; }
  .why-collage { min-height: 320px; }
  .feats { grid-template-columns: 1fr; gap: 18px; }
  .fs-track img { width: 240px; height: 160px; }
  .fleet-strip { padding: 50px 0 44px; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .lead { font-size: 1.02rem; }
  .btn { padding: 13px 22px; font-size: 1.02rem; }
  .hero { min-height: 0; }
  .hero .container { padding-top: 56px; padding-bottom: 76px; }
  .hero .actions .btn { flex: 1 1 100%; justify-content: center; }
  .scroll-hint { display: none; }
  .page-hero { padding: 60px 0 46px; }
  .cta-band { padding: 40px 0; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .course-cta .cc-actions, .course-cta .cc-actions .btn { width: 100%; justify-content: center; }
  .footer { padding-top: 48px; }
  .footer li { margin-bottom: 0; }
  .footer li a { display: inline-block; padding: 6px 0; }
  .footer .bottom { flex-direction: column; text-align: center; }
  .wa-float { width: 54px; height: 54px; }
  .mag-title h1 { font-size: 4.2rem; }
  .filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .form-embed { height: 1150px; }
  .map-embed { height: 240px; }
  .compare { min-width: 600px; }
  .qc { padding: 18px 16px; }
  .qc-t { font-size: 1.15rem; }
  .qc b { font-size: .85rem; }
  .contact-hero { padding: 60px 0 130px; }
  .form-card { padding: 22px 16px; }
  .why-badge { left: 10px; bottom: 14px; padding: 12px 14px; }
  .why-badge b { font-size: 2rem; }
  .privacy-card { flex-direction: column; align-items: flex-start; padding: 24px; }
  .panel { padding: 24px; }
}

/* Celulares pequeños (debe ir al final para tener prioridad) */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .logo img { height: 40px; }
  .qc-grid { grid-template-columns: 1fr; }
  .qc { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; padding: 16px; }
  .qc-ico { grid-row: span 3; margin: 0; width: 48px; height: 48px; }
  .qc b { margin-top: 2px; }
  .stat b { font-size: 1.7rem; }
  .cat-row, .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .history-tabs button { font-size: .95rem; }
}
