/* ════════════════════════════════════════════════════════════════
   I-NOVA BIONICS 3D — sistema de diseño
   Basado en las maquetas aprobadas por el cliente: blanco clínico,
   azul eléctrico, navy profundo y tarjetas con vidrio suave.
   ════════════════════════════════════════════════════════════════ */
:root {
  --blue: #0b4fd6;
  --blue-2: #1f6bff;
  --blue-soft: #eaf1ff;
  --navy: #0a1630;
  --navy-2: #101f45;
  --ink: #0b1b3f;
  --text: #33405a;
  --muted: #6a7891;
  --line: #e3e9f3;
  --bg: #f5f8fd;
  --white: #fff;
  --cyan: #22d3ee;
  --green: #16a34a;
  --wa: #22c55e;
  --red: #dc2626;
  --amber: #f59e0b;
  --gray-1: #eef1f6;
  --gray-2: #c9d0dc;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(11, 27, 63, .18);
  --shadow-lg: 0 30px 60px -25px rgba(11, 79, 214, .35);
  --shell: min(1240px, calc(100% - 40px));
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.shell { width: var(--shell); margin-inline: auto; }
[hidden] { display: none !important; }
.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hl { color: var(--blue); }
.hl-cyan { color: var(--cyan); }
:focus-visible { outline: 3px solid rgba(31, 107, 255, .45); outline-offset: 2px; border-radius: 6px; }

/* ── Botones ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1.5px solid transparent; border-radius: 999px; padding: .85rem 1.5rem; font: 600 .95rem/1 var(--font-body); cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 12px 24px -10px rgba(11, 79, 214, .6); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 30px -10px rgba(11, 79, 214, .7); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--navy-2); }
.btn-light { background: #fff; color: var(--blue); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { color: #fff; background: #16a34a; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-danger { background: #fff; color: var(--red); border-color: #fecaca; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.link-arrow { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow svg { width: 16px; height: 16px; }

/* ── Barra de anuncio y cabecera ─────────────────────────── */
.announce { background: linear-gradient(90deg, var(--navy), #0b3aa8 60%, var(--blue)); color: #dbe7ff; font-size: .82rem; text-align: center; padding: .5rem 1rem; }
.announce b { background: rgba(255,255,255,.16); color: #fff; padding: .1rem .5rem; border-radius: 999px; font-size: .7rem; letter-spacing: .08em; margin-right: .5rem; }
.announce a { color: #fff; text-decoration: underline; margin-left: .4rem; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11,27,63,.35); }
.header .shell { display: flex; align-items: center; gap: 1.5rem; height: 78px; }
.brand { flex: none; display: block; }
.brand img { height: 58px; width: auto; max-width: none; }
.nav { display: flex; align-items: center; gap: .25rem; margin-inline: auto; }
.nav > a, .nav .dd > button { font: 500 .9rem var(--font-body); color: var(--ink); padding: .55rem .6rem; white-space: nowrap; border-radius: 10px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; position: relative; }
.nav > a.active::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: 2px; height: 2.5px; border-radius: 3px; background: var(--blue); }
.nav > a.active { color: var(--blue); }
.nav > a:hover, .nav .dd > button:hover { background: var(--blue-soft); color: var(--blue); }
.dd { position: relative; }
.dd svg { width: 14px; height: 14px; }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 330px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: .5rem; opacity: 0; visibility: hidden; transition: .2s; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dd-menu a { display: flex; align-items: center; gap: .8rem; padding: .65rem .75rem; border-radius: 12px; color: var(--ink); }
.dd-menu a:hover { background: var(--bg); }
.dd-menu img { height: 34px; width: auto; }
.dd-menu small { display: block; color: var(--muted); font-size: .78rem; }
.tools { display: flex; align-items: center; gap: .35rem; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--ink); position: relative; border: 0; background: none; cursor: pointer; }
.icon-btn:hover { background: var(--blue-soft); color: var(--blue); }
.icon-btn svg { width: 21px; height: 21px; }
.badge-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.menu-toggle { display: none; }
.search-pop { position: absolute; right: 20px; top: 74px; background: #fff; padding: .6rem; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); display: none; }
.search-pop.open { display: flex; gap: .5rem; }
.search-pop input { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; min-width: 240px; font: inherit; }

/* ── Mensajes ────────────────────────────────────────────── */
.flash-wrap { position: fixed; z-index: 90; top: 92px; right: 18px; display: grid; gap: .6rem; max-width: min(420px, calc(100% - 36px)); }
.flash { background: #fff; border-left: 4px solid var(--blue); border-radius: 12px; padding: .85rem 1rem; box-shadow: var(--shadow); font-size: .92rem; animation: slidein .35s ease; display: flex; gap: .7rem; align-items: flex-start; }
.flash.success { border-color: var(--green); }
.flash.error { border-color: var(--red); }
.flash button { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }

/* ── Hero de portada ─────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 10%, #e3ecff 0%, transparent 60%), linear-gradient(180deg, #f7faff, #fff); padding: clamp(2.5rem, 5vw, 4.5rem) 0 3rem; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0v40' fill='none' stroke='%230b4fd6' stroke-opacity='.05'/%3E%3C/svg%3E"); mask-image: linear-gradient(180deg, #000, transparent 80%); pointer-events: none; }
.hero .shell { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: center; position: relative; }
.kicker { display: inline-flex; align-items: center; gap: .75rem; font: 600 .82rem var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.1rem; }
.kicker::after { content: ""; width: 70px; height: 2px; background: var(--blue); border-radius: 2px; }
.pill { display: inline-flex; align-items: center; gap: .45rem; background: var(--blue-soft); color: var(--blue); border-radius: 999px; padding: .35rem .8rem; font: 600 .74rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.pill.dark { background: rgba(34,211,238,.12); color: var(--cyan); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero h1 .line2 { display: block; color: var(--blue); }
.hero p.lead { font-size: 1.12rem; max-width: 520px; color: var(--text); }
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-cards { position: relative; display: flex; gap: .7rem; height: clamp(300px, 34vw, 430px); align-items: center; justify-content: center; perspective: 1200px; }
.hero-card { flex: 1; height: 88%; border-radius: 26px; overflow: hidden; position: relative; transform: skewX(-12deg); box-shadow: 0 25px 50px -25px rgba(11,79,214,.55), 0 0 0 2px rgba(31,107,255,.35); background: #0b3aa8; transition: transform .5s, flex .5s; }
.hero-card:nth-child(even) { height: 100%; }
.hero-card img { width: 140%; max-width: none; height: 100%; object-fit: cover; transform: skewX(12deg) translateX(-14%); transition: transform 6s ease; }
.hero-card:hover { flex: 1.25; }
.hero-card:hover img { transform: skewX(12deg) translateX(-14%) scale(1.06); }
.hero-card .cap { position: absolute; left: 14%; right: 6%; bottom: 14px; transform: skewX(12deg); color: #fff; font: 600 .85rem var(--font-head); text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hero-card .cap small { display: block; font: 600 .62rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #a5c4ff; }
.hero-card.fade-in { animation: cardin .8s ease both; }
@keyframes cardin { from { opacity: 0; transform: skewX(-12deg) translateY(16px); } }
.hero-dots { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); display: flex; gap: .4rem; }
.hero-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: var(--gray-2); cursor: pointer; padding: 0; transition: width .3s; }
.hero-dots button.on { width: 26px; background: var(--blue); }

/* ── Divisiones ──────────────────────────────────────────── */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section.alt { background: var(--bg); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 2.4rem; }
.sec-head.line h2 { display: flex; align-items: center; gap: 1.2rem; justify-content: center; }
.sec-head.line h2::before, .sec-head.line h2::after { content: ""; flex: 0 1 110px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--gray-2)); }
.sec-head.line h2::after { transform: scaleX(-1); }
.sec-head p { color: var(--muted); }
.sec-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.sec-row h2 { margin: 0; }
.eyebrow { font: 600 .76rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: .4rem; display: block; }
.div-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.div-card { position: relative; border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; overflow: hidden; display: flex; flex-direction: column; gap: .9rem; min-height: 175px; transition: transform .3s, box-shadow .3s; isolation: isolate; color: var(--ink); }
.div-card::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 260px; transform: rotate(25deg); background: linear-gradient(180deg, rgba(255,255,255,.35), transparent); z-index: -1; }
.div-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: inherit; }
.div-card .top { display: flex; align-items: center; gap: .9rem; }
.div-card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.div-card .ico svg { width: 26px; height: 26px; }
.div-card .wm { height: 42px; width: auto; }
.div-card p { margin: 0; font-weight: 500; font-size: 1.02rem; line-height: 1.35; padding-right: 2.6rem; }
.div-card .go { position: absolute; right: 1.1rem; bottom: 1.1rem; width: 36px; height: 36px; border-radius: 50%; border: 1.8px solid currentColor; display: grid; place-items: center; }
.div-card .go svg { width: 18px; height: 18px; }
.theme-white { background: linear-gradient(145deg, #fff, #eef3fb); border: 1px solid var(--line); box-shadow: var(--shadow); }
.theme-white .ico { background: var(--blue-soft); color: var(--ink); }
.theme-white .go { color: var(--blue); }
.theme-blue { background: linear-gradient(135deg, #0b4fd6, #1f6bff 60%, #0a3cb0); color: #fff; box-shadow: 0 20px 40px -18px rgba(11,79,214,.75); }
.theme-blue .ico { background: rgba(255,255,255,.14); color: #fff; }
.theme-gray { background: linear-gradient(135deg, #f1f3f7, #cfd5df); border: 1px solid #d8dde6; }
.theme-gray .ico { background: rgba(255,255,255,.7); color: #3b4252; }
.theme-black { background: linear-gradient(135deg, #0a1630, #1b2541 70%, #2b3554); color: #fff; }
.theme-black .ico { background: rgba(255,255,255,.08); color: #fff; }
.theme-blue:hover, .theme-black:hover { color: #fff; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2.2rem; }
.values div { display: flex; align-items: center; gap: .9rem; justify-content: center; padding: .6rem 1rem; font-weight: 500; color: var(--ink); }
.values div + div { border-left: 1px solid var(--line); }
.values svg { width: 32px; height: 32px; color: var(--ink); flex: none; }

/* ── Tarjetas genéricas ──────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.tri { display: grid; grid-template-columns: 1fr 1.2fr .9fr; gap: 1.3rem; align-items: start; }
.panel-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.4rem; }
.panel-box h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; }
.panel-box h3 svg { width: 26px; height: 26px; color: var(--blue); }
.panel-box .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: .5rem; }
.panel-box .head h3 { margin: 0; }
.news-slide { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center; }
.news-slide img { width: 150px; height: 120px; object-fit: cover; border-radius: 14px; }
.tag { display: inline-block; background: var(--blue); color: #fff; font: 600 .72rem var(--font-body); border-radius: 999px; padding: .2rem .65rem; margin-bottom: .35rem; }
.tag.green { background: #dcfce7; color: #166534; }
.tag.purple { background: #ede9fe; color: #6d28d9; }
.tag.dark { background: var(--navy); }
.tag.soft { background: var(--blue-soft); color: var(--blue); }
.event-row { display: grid; grid-template-columns: 130px auto 1fr; gap: 1rem; align-items: center; }
.event-row img { border-radius: 14px; height: 120px; width: 100%; object-fit: cover; }
.event-full { grid-template-columns: 220px auto 1fr auto; }
.event-row p .ic { color: var(--blue); }
.datebox { background: linear-gradient(160deg, var(--blue), #0a3cb0); color: #fff; border-radius: 14px; padding: .7rem .9rem; text-align: center; font-family: var(--font-head); line-height: 1.05; min-width: 82px; }
.datebox b { display: block; font-size: 1.6rem; }
.datebox small { font-size: .8rem; opacity: .9; }
.newsletter { background: linear-gradient(135deg, var(--blue), #0a3cb0); color: #dbe7ff; border-radius: var(--radius); padding: 1.5rem; position: relative; overflow: hidden; }
.newsletter h3 { color: #fff; font-size: 1.35rem; }
.newsletter h3 .ic { width: 42px; height: 42px; }
.newsletter button .ic { width: 18px; height: 18px; }
.newsletter form { display: flex; background: #fff; border-radius: 999px; padding: .3rem; margin-top: 1rem; }
.newsletter input { flex: 1; border: 0; padding: .6rem 1rem; font: inherit; border-radius: 999px; min-width: 0; }
.newsletter button { border: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; }
.slider-nav { display: flex; gap: .4rem; }
.slider-nav button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.dots { display: flex; gap: .35rem; justify-content: center; margin-top: .8rem; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-2); }
.dots span.on { background: var(--blue); }

/* Banner oscuro "De la resonancia…" */
.dark-band { background: radial-gradient(800px 400px at 15% 0%, #13306f 0%, transparent 60%), linear-gradient(135deg, var(--navy), #0d1c3f); color: #b9c6e4; border-radius: 28px; padding: clamp(2rem, 4vw, 3.4rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; overflow: hidden; position: relative; }
.dark-band h2 { color: #fff; }
.dark-band .stats { display: flex; gap: 2rem; margin-top: 1.8rem; flex-wrap: wrap; }
.dark-band .stats div { border-left: 2px solid var(--cyan); padding-left: 1rem; }
.dark-band .stats b { display: block; color: #fff; font: 700 1.6rem var(--font-head); }
.dark-band .stats small { font-size: .8rem; }
.dark-band .media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.dark-band .media img { width: 100%; height: 300px; object-fit: cover; }
.dark-band .media .chip { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; justify-content: space-between; align-items: center; background: rgba(10,22,48,.75); backdrop-filter: blur(8px); border-radius: 14px; padding: .7rem 1rem; color: #fff; font-size: .85rem; }

/* Producto / curso */
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; box-shadow: 0 6px 20px -14px rgba(11,27,63,.25); }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.p-card .ph { position: relative; aspect-ratio: 16/10; background: var(--gray-1); overflow: hidden; }
.p-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.p-card:hover .ph img { transform: scale(1.05); }
.p-card .ph .tag { position: absolute; top: .8rem; left: .8rem; }
.p-card .body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; gap: .3rem; }
.p-card .div-label { font: 600 .68rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.p-card h3 { font-size: 1.02rem; margin: 0; }
.p-card h3 a { color: var(--ink); }
.p-card p { font-size: .86rem; color: var(--muted); margin: 0; }
.p-card .foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: end; justify-content: space-between; gap: .5rem; }
.price { font: 700 1.15rem var(--font-head); color: var(--ink); }
.price small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.price del { display: block; font: 400 .78rem var(--font-body); color: var(--muted); }
.cart-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); border: 0; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.cart-btn:hover { background: var(--blue); color: #fff; }
.cart-btn svg { width: 19px; height: 19px; }
.meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: .3rem; }
.meta svg { width: 15px; height: 15px; }

.course-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.course-card .row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.stars { color: var(--amber); font-size: .82rem; font-weight: 600; }
.check-list { list-style: none; padding: 0; margin: .9rem 0 1.2rem; display: grid; gap: .45rem; }
.check-list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; }
.check-list svg { width: 18px; height: 18px; flex: none; color: var(--blue); margin-top: 2px; }
.course-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }

/* ── Formularios ─────────────────────────────────────────── */
.field { display: grid; gap: .35rem; margin-bottom: .95rem; }
.field label { font: 600 .82rem var(--font-body); color: var(--ink); }
.field .help { font-size: .78rem; color: var(--muted); }
.field .err, .errorlist { color: var(--red); font-size: .8rem; list-style: none; padding: 0; margin: 0; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=datetime-local], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: #f8fafd; border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-2); background: #fff; box-shadow: 0 0 0 4px rgba(31,107,255,.12); }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); width: 18px; height: 18px; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--text); }
.check input { margin-top: 2px; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
input[type=file] { font: inherit; font-size: .88rem; }

/* Contacto */
.contact-wrap { background: #fff; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.6rem); display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.4rem; }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; }
.contact-list .ci { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-list .ci.wa { background: #dcfce7; color: var(--green); }
.contact-list svg { width: 19px; height: 19px; }
.quick-wa { display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: #ecfdf3; border: 1px solid #bbf7d0; border-radius: 16px; padding: .9rem 1rem; }
.quick-wa small { display: block; color: var(--muted); }

/* ── Pie y sellos ────────────────────────────────────────── */
.footer { background: var(--navy); color: #9fb0d0; padding: 4rem 0 0; margin-top: 0; }
.footer a { color: #c8d4ee; }
.footer a:hover { color: #fff; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer h4 { color: #fff; font: 700 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.footer .brandmark { height: 30px; width: auto; margin-bottom: 1rem; }
.footer .social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer .social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.footer .social svg { width: 16px; height: 16px; }
.cert-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid rgba(34,211,238,.35); color: var(--cyan); border-radius: 999px; padding: .4rem .8rem; font-size: .78rem; margin-top: .8rem; }
.cert-chip svg { width: 15px; height: 15px; }
.footer__sellos { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.6rem; padding-top: 1.8rem; text-align: center; }
.footer__sellos-tit { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; opacity: .75; margin: 0 0 1rem; color: #c8d4ee; }
.footer__sellos ul { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.6rem, 2vw, 1.4rem); max-width: 860px; margin: 0 auto; }
.sello { color: #c8d4ee; }
.sello svg { width: clamp(68px, 10vw, 92px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .85; transition: opacity .3s, transform .3s; }
.sello:hover svg { opacity: 1; transform: rotate(-6deg) scale(1.04); }
.sello svg text { fill: currentColor; stroke: none; text-anchor: middle; font-family: var(--font-body); }
.sello__arco { font-size: 6.2px; letter-spacing: .1em; }
.sello__t { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.sello__n { font-size: 7.5px; letter-spacing: .06em; }
.footer__sellos-nota { font-size: .74rem; line-height: 1.65; opacity: .7; max-width: 760px; margin: 1.1rem auto 0; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1.8rem; padding: 1.2rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }
.footer .legal nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(34,197,94,.7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.cookie { position: fixed; left: 18px; bottom: 18px; z-index: 61; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1rem 1.1rem; font-size: .85rem; display: none; }
.cookie.show { display: block; }
.cookie .row { display: flex; gap: .5rem; margin-top: .7rem; }

/* ── Páginas de división ─────────────────────────────────── */
.dhero { position: relative; overflow: hidden; padding: 0; }
.dhero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 460px; align-items: stretch; }
.dhero .copy { padding: clamp(2.2rem, 5vw, 4rem) 0; padding-right: 2rem; display: flex; flex-direction: column; justify-content: center; }
.dhero .brandline { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.2rem; }
.dhero .brandline .ico { width: 54px; height: 54px; display: grid; place-items: center; }
.dhero .brandline .ico svg { width: 44px; height: 44px; }
.dhero .brandline img { height: 52px; width: auto; }
.dhero .brandline .sep { width: 1px; align-self: stretch; background: currentColor; opacity: .2; }
.dhero .brandline span { font-size: .92rem; font-weight: 500; }
.dhero .art { position: relative; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.dhero .art img { width: 100%; height: 100%; object-fit: cover; }
.dhero.white { background: linear-gradient(120deg, #fff 45%, #eef3fb); }
.dhero.blue { background: linear-gradient(120deg, #fff 40%, #eaf1ff); }
.dhero.blue .art { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.dhero.gray { background: linear-gradient(120deg, #fafbfc 40%, #e9edf2); }
.dhero.black { background: linear-gradient(120deg, #fff 40%, #eef1f6); }
.feature-strip { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1rem 1.2rem; margin-top: -2.2rem; position: relative; z-index: 2; }
.feature-strip div { display: flex; align-items: center; gap: .65rem; font-size: .86rem; font-weight: 500; color: var(--ink); padding: .3rem .6rem; }
.feature-strip svg { width: 28px; height: 28px; color: var(--ink); flex: none; }
.carousel { position: relative; }
.carousel .track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.2rem) / 4); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .4rem .2rem 1rem; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .track > * { scroll-snap-align: start; }
.carousel .arrow { position: absolute; top: 40%; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; z-index: 3; color: var(--ink); }
.carousel .arrow.l { left: -18px; }
.carousel .arrow.r { right: -18px; }
.carousel .arrow svg { width: 18px; height: 18px; }
.promo-band { border-radius: 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: center; padding: 1.4rem 1.8rem; }
.promo-band.light { background: linear-gradient(120deg, #eaf1ff, #f7faff); border: 1px solid #d7e3ff; }
.promo-band .cal { width: 64px; height: 64px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--blue); box-shadow: var(--shadow); }
.promo-band .cal svg { width: 32px; height: 32px; }
.feature-banner { border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 280px; }
.feature-banner .copy { padding: 2.2rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.feature-banner .img { position: relative; }
.feature-banner .img img { width: 100%; height: 100%; object-fit: cover; }
.feature-banner.blue { background: linear-gradient(120deg, #fff 45%, #dfe9ff); border: 1px solid #d7e3ff; }
.feature-banner.black { background: linear-gradient(120deg, #0a1630 50%, #1b2a52); color: #b9c6e4; }
.feature-banner.black h2 { color: #fff; }
.mini-feats { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.mini-feats div { display: grid; justify-items: center; gap: .3rem; font-size: .78rem; text-align: center; }
.mini-feats svg { width: 26px; height: 26px; }
.why { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.2rem; align-items: center; }
.why img { border-radius: 22px; width: 100%; height: 300px; object-fit: cover; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.why-grid div { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; }
.why-grid svg { width: 30px; height: 30px; color: var(--blue); flex: none; }
.testi { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.testi .card { padding: 1.4rem; }
.testi blockquote { margin: 0 0 1rem; font-size: .92rem; font-style: italic; }
.testi .who { display: flex; align-items: center; gap: .8rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.svc-card img { height: 120px; width: 100%; object-fit: cover; }
.svc-card .b { padding: .9rem; display: grid; gap: .4rem; flex: 1; }
.svc-card h4 { margin: 0; display: flex; align-items: center; gap: .45rem; font-size: 1rem; }
.svc-card h4 svg { width: 20px; height: 20px; color: var(--blue); }
.svc-card p { font-size: .8rem; color: var(--muted); margin: 0; }
.steps { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); gap: 1rem; align-items: start; }
.steps .s { text-align: center; font-size: .82rem; }
.steps .s svg { width: 34px; height: 34px; margin: 0 auto .4rem; color: var(--ink); }
.materials { display: flex; gap: 1rem; flex-wrap: wrap; }
.mat { display: grid; justify-items: center; gap: .3rem; font-size: .8rem; text-align: center; width: 76px; }
.mat .spool { width: 58px; height: 58px; border-radius: 50%; border: 8px solid rgba(0,0,0,.08); box-shadow: inset 0 0 0 8px rgba(255,255,255,.25), 0 6px 14px -6px rgba(0,0,0,.4); }
.mat b { color: var(--ink); }
.cta-band { background: linear-gradient(120deg, #eef3fb, #fff); border: 1px solid var(--line); border-radius: 24px; padding: 1.6rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band.dark { background: linear-gradient(120deg, var(--navy), #13306f); color: #b9c6e4; border: 0; }
.cta-band.dark h3 { color: #fff; }
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.apps-grid div { text-align: center; font-size: .82rem; display: grid; gap: .4rem; justify-items: center; }
.apps-grid svg { width: 34px; height: 34px; color: var(--ink); }
.support-box { background: linear-gradient(150deg, var(--blue), #0a3cb0); color: #dbe7ff; border-radius: 20px; padding: 1.5rem; }
.support-box h3 { color: #fff; }
.doc-box ul { list-style: none; padding: 0; margin: .6rem 0 1rem; display: grid; gap: .4rem; font-size: .88rem; }
.doc-box li::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: .5rem; }

/* ── Cotizador ───────────────────────────────────────────── */
.quoter { display: grid; grid-template-columns: 1.25fr .95fr; gap: 1.5rem; align-items: start; }
.drop { display: block; border: 2px dashed #b9cdf5; border-radius: 18px; background: #f7faff; padding: 2rem 1rem; text-align: center; cursor: pointer; transition: .2s; position: relative; }
.drop.over { border-color: var(--blue); background: var(--blue-soft); }
.drop .ic { display: block; width: 46px; height: 46px; color: var(--blue); margin: 0 auto .4rem; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.viewer { height: 380px; border-radius: 18px; background: radial-gradient(circle at 50% 40%, #f3f7ff, #dde7f7); overflow: hidden; position: relative; }
.viewer .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 1rem; }
.viewer canvas { width: 100% !important; height: 100% !important; }
.qbox { position: sticky; top: 96px; }
.qbox .total { background: linear-gradient(135deg, var(--blue), #0a3cb0); color: #fff; border-radius: 16px; padding: 1rem 1.2rem; margin: 1rem 0; }
.qbox .total b { font: 700 2.1rem var(--font-head); display: block; }
.qbox .total small { opacity: .85; }
.breakdown { width: 100%; font-size: .85rem; border-collapse: collapse; }
.breakdown td { padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.breakdown td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.qstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: .8rem 0; }
.qstats div { background: var(--bg); border-radius: 12px; padding: .6rem; text-align: center; font-size: .75rem; }
.qstats b { display: block; color: var(--ink); font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font-size: .85rem; background: #fff; transition: .2s; }
.chips input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.chips .sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.range-row { display: flex; align-items: center; gap: .8rem; }
.range-row input[type=range] { flex: 1; accent-color: var(--blue); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 38px; height: 40px; border: 0; background: #f3f6fb; cursor: pointer; font-size: 1.1rem; }
.qty input { width: 64px; text-align: center; border: 0; border-radius: 0; background: #fff; }
.loader { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Academia / aula ─────────────────────────────────────── */
.page-hero { background: linear-gradient(180deg, #f2f6fd, #fff); padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); }
.page-hero.dark { background: linear-gradient(135deg, var(--navy), #13306f); color: #b9c6e4; border: 0; }
.page-hero.dark h1 { color: #fff; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: .8rem; }
.crumbs a { color: inherit; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.filters a { border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; font-size: .85rem; color: var(--ink); background: #fff; }
.filters a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.course-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.buy-box { position: sticky; top: 96px; }
.buy-box img { border-radius: 14px; aspect-ratio: 16/9; object-fit: cover; width: 100%; margin-bottom: 1rem; }
.syllabus details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: .6rem; background: #fff; }
.syllabus summary { padding: .9rem 1.1rem; cursor: pointer; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; }
.syllabus ul { list-style: none; margin: 0; padding: 0 1.1rem .8rem; }
.syllabus li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.classroom { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.player { background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; }
.player video, .player iframe { width: 100%; height: 100%; border: 0; }
.player .noplay { color: #9fb0d0; display: grid; place-items: center; height: 100%; text-align: center; padding: 1rem; }
.lesson-list { max-height: 70vh; overflow: auto; }
.lesson-list h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 .4rem; }
.lesson-list a { display: flex; gap: .6rem; align-items: center; padding: .55rem .6rem; border-radius: 10px; color: var(--ink); font-size: .88rem; }
.lesson-list a.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.lesson-list .st { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gray-2); flex: none; display: grid; place-items: center; }
.lesson-list .st.ok { background: var(--green); border-color: var(--green); color: #fff; }
.lesson-list .st svg { width: 12px; height: 12px; }
.bar { height: 8px; background: var(--gray-1); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 99px; }
.quiz-q { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; background: #fff; }
.quiz-q label { display: flex; gap: .6rem; align-items: center; padding: .45rem .3rem; border-radius: 8px; cursor: pointer; }
.quiz-q label:hover { background: var(--bg); }

/* Certificado (también se imprime) */
.cert-page { background: var(--bg); padding: 2rem 0 4rem; }
.cert { width: min(1000px, 100%); margin: 0 auto; aspect-ratio: 1.414; background: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); border-radius: 6px; padding: 5% 7%; display: flex; flex-direction: column; background-size: cover; }
.cert::before { content: ""; position: absolute; inset: 14px; border: 2px solid var(--c1); border-radius: 4px; pointer-events: none; }
.cert::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--c1) 0%, transparent 70%); opacity: .12; }
.cert .ctop { display: flex; justify-content: space-between; align-items: center; }
.cert .ctop img { height: 70px; }
.cert .folio { font-size: .8rem; color: var(--muted); text-align: right; }
.cert h2 { text-align: center; color: var(--c2); font-size: clamp(1.1rem, 3vw, 2.2rem); letter-spacing: .14em; text-transform: uppercase; margin: 4% 0 2%; }
.cert .who { text-align: center; font: 700 clamp(1.4rem, 4vw, 3rem) var(--font-head); color: var(--c1); margin: 1% 0; }
.cert .txt { text-align: center; max-width: 80%; margin: 0 auto; font-size: clamp(.75rem, 1.5vw, 1rem); }
.cert .course { text-align: center; font: 600 clamp(1rem, 2.4vw, 1.6rem) var(--font-head); color: var(--c2); margin: 1.5% 0; }
.cert .cfoot { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.cert .sign { text-align: center; min-width: 200px; font-size: .8rem; }
.cert .sign img { height: 50px; margin: 0 auto; }
.cert .sign .ln { border-top: 1.5px solid var(--c2); padding-top: .3rem; margin-top: .3rem; }
.cert .qr { width: clamp(70px, 12%, 120px); text-align: center; font-size: .6rem; color: var(--muted); }
.cert .qr svg { width: 100%; height: auto; }
.verify-ok { border: 2px solid #86efac; background: #f0fdf4; border-radius: 18px; padding: 1.5rem; }
.verify-bad { border: 2px solid #fecaca; background: #fef2f2; border-radius: 18px; padding: 1.5rem; }

/* Mi cuenta / tablas */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; overflow-x: auto; }
.tabs a { padding: .8rem 1rem; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--blue); border-color: var(--blue); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font: 600 .75rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .7rem .8rem; border-bottom: 1px solid var(--line); background: #fafcff; }
.table td { padding: .75rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #fafcff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.status { display: inline-block; padding: .22rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--gray-1); color: var(--ink); white-space: nowrap; }
.status.pagado, .status.activo, .status.ganado, .status.aceptada, .status.entregada, .status.entregado, .status.True { background: #dcfce7; color: #166534; }
.status.pendiente, .status.nuevo, .status.solicitada, .status.estimada { background: #fef3c7; color: #92400e; }
.status.proceso, .status.produccion, .status.agendado, .status.revisada, .status.contactado, .status.enviado { background: #dbeafe; color: #1e40af; }
.status.certificado, .status.finalizado { background: #ede9fe; color: #5b21b6; }
.status.cancelado, .status.rechazada, .status.descartado, .status.inactivo, .status.False { background: #fee2e2; color: #991b1b; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty svg { width: 48px; height: 48px; margin: 0 auto .8rem; color: var(--gray-2); }
.auth { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1fr 1fr; }
.auth .art { background: linear-gradient(150deg, var(--navy), #0b3aa8); color: #b9c6e4; padding: 3rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth .art h2 { color: #fff; }
.auth .art img.bg { position: absolute; right: -10%; bottom: -5%; width: 70%; opacity: .25; border-radius: 30px; transform: rotate(-8deg); }
.auth .form { display: grid; place-items: center; padding: 2.5rem 1.2rem; }
.auth .form > div { width: min(460px, 100%); }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose li { margin-bottom: .4rem; }
.cart-line { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 90px; height: 70px; object-fit: cover; border-radius: 12px; background: var(--gray-1); }
.summary { position: sticky; top: 96px; }
.summary .row { display: flex; justify-content: space-between; padding: .4rem 0; }
.summary .row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .8rem; font: 700 1.3rem var(--font-head); color: var(--ink); }
.pay-opt { display: flex; gap: .8rem; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: .9rem 1rem; cursor: pointer; margin-bottom: .6rem; }
.pay-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 78px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 20px 1.5rem; gap: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .35s; max-height: calc(100vh - 78px); overflow: auto; }
  .nav.open { transform: none; }
  .nav > a, .nav .dd > button { padding: .9rem .4rem; width: 100%; justify-content: space-between; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav > a.active::after { display: none; }
  .dd-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; min-width: 0; padding: 0 0 .5rem; display: none; }
  .dd.open .dd-menu { display: block; }
  .dd:hover .dd-menu { transform: none; }
  .menu-toggle { display: inline-grid; }
  .header .shell { gap: .6rem; }
  .tools { margin-left: auto; }
  .div-grid, .grid-4, .services-grid, .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel .track { grid-auto-columns: calc((100% - 1.2rem) / 2); }
  .tri { grid-template-columns: 1fr 1fr; }
  .tri .newsletter { grid-column: 1 / -1; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero .shell, .dhero .wrap, .dark-band, .contact-wrap, .quoter, .course-layout, .classroom, .feature-banner, .why, .auth, .grid-2, .testi { grid-template-columns: 1fr; }
  .hero-cards { height: 260px; }
  .dhero .art { clip-path: none; height: 240px; border-radius: 0; order: -1; }
  .dhero .copy { padding: 2rem 0 3.4rem; }
  .values { grid-template-columns: 1fr 1fr; gap: .4rem; }
  .values div + div { border-left: 0; }
  .grid-3, .why-grid { grid-template-columns: 1fr 1fr; }
  .qbox, .buy-box, .summary { position: static; }
  .auth .art { display: none; }
  .promo-band { grid-template-columns: 1fr; text-align: left; }
  .event-row { grid-template-columns: 1fr auto; }
  .event-row img { display: none; }
  .event-full { grid-template-columns: auto 1fr; }
  .event-full > :last-child { grid-column: 1 / -1; }
  .feature-banner .img { height: 220px; }
}
@media (max-width: 560px) {
  :root { --shell: calc(100% - 32px); }
  .brand img { height: 46px; }
  .div-grid, .grid-4, .grid-3, .services-grid, .why-grid, .form-grid { grid-template-columns: 1fr; }
  .carousel .track { grid-auto-columns: 82%; }
  .carousel .arrow { display: none; }
  .tri { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .feature-strip { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-cards { height: 210px; gap: .4rem; }
  .hero-card .cap { display: none; }
  .news-slide { grid-template-columns: 100px 1fr; }
  .news-slide img { width: 100px; height: 90px; }
  .cart-line { grid-template-columns: 70px 1fr; }
  .cart-line img { width: 70px; height: 56px; }
  .qstats { grid-template-columns: 1fr 1fr 1fr; }
  .btn { padding: .8rem 1.2rem; }
  .dark-band .stats { gap: 1rem; }
  .cert { aspect-ratio: auto; min-height: 520px; }
  .icon-btn.hide-sm { display: none; }
}
@media print {
  .header, .footer, .announce, .wa-float, .no-print, .flash-wrap, .cookie { display: none !important; }
  .cert-page { padding: 0; background: #fff; }
  .cert { box-shadow: none; width: 100%; border-radius: 0; }
  @page { size: A4 landscape; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
