/* Academia Ateneo · portada 3D (solo home). Se suma a ateneo.css. */
:root {
  --logo-a-url: url('/tenants/ateneo/assets/ateneo-isotipo-a-oscuro.png');
  --glass: color-mix(in srgb, var(--card) 72%, transparent);
  --glass-line: color-mix(in srgb, var(--accent) 22%, var(--line));
  --glow: color-mix(in srgb, var(--accent) 34%, transparent);
}
:root[data-theme="light"] { --logo-a-url: url('/tenants/ateneo/assets/ateneo-isotipo-a-claro.png'); --glass: color-mix(in srgb, #fff 78%, transparent); }

html:has(body.at-home), html { scroll-padding-top: 72px; }
body.at-home { overflow-x: clip; max-width: 100%; }
.at-home .at-header { background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }

/* ---------- Fondo con profundidad ---------- */
.at-bg { position: absolute; inset: 0 0 auto 0; height: 100%; overflow: hidden; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
.at-bg .glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; transform: translate3d(0, calc(var(--sy, 0) * -.12px), 0); }
.at-bg .g1 { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, var(--accent2), transparent 68%); }
.at-bg .g2 { width: 460px; height: 460px; left: -160px; top: 120px; background: radial-gradient(circle, var(--accent), transparent 68%); opacity: .32; }
.at-bg .floor { position: absolute; left: -30%; right: -30%; bottom: -8%; height: 70%; transform-origin: 50% 100%; transform: perspective(520px) rotateX(64deg) translate3d(0, calc(var(--sy, 0) * .05px), 0);
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--accent) 32%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--accent) 32%, transparent) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center bottom;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 78%); mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  animation: at-floor 14s linear infinite; opacity: .55; }
:root[data-theme="light"] .at-bg .glow { opacity: .22; }
:root[data-theme="light"] .at-bg .g2 { display: none; }
:root[data-theme="light"] .at-bg .floor { opacity: .22; }
@keyframes at-floor { to { background-position: center calc(100% + 64px); } }

/* ---------- Portada ---------- */
.at-hero3d { position: relative; overflow-x: clip; padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 6vw, 64px); isolation: isolate; }
.at-hero3d .hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(16px, 4vw, 56px); }
.hero-copy { text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(8px); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero-copy h1 { font-family: var(--font-title); font-size: clamp(2.3rem, 6.4vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 700; }
.hero-copy h1 em { font-style: normal; background: linear-gradient(95deg, var(--accent), var(--accent2) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-copy p { color: var(--muted); max-width: 470px; margin: 0 0 26px; font-size: 1.1rem; }
.hero-copy .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-copy .at-btn-primary { box-shadow: 0 10px 30px var(--glow); }
.points { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 22px 0 0; padding: 0; color: var(--muted); font-size: .78rem; }
.points li { display: inline-flex; align-items: center; gap: 8px; }
.points li::before { content: ''; flex: 0 0 auto; width: 8px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-1px); }

/* Logo 3D: la "A" en capas apiladas + tres placas 3D completas + orbitas con puntos */
.logo3d { position: relative; width: min(460px, 100%); aspect-ratio: 1.12; margin: 0 auto; perspective: 1100px; touch-action: pan-y; --pl-top: #aef9f4; --pl-mid: #19d9e6; --pl-low: #1a86e6; --pl-edge: #0c93c4; --pl-edge2: #0a62a8; --orb: color-mix(in srgb, var(--dot) 78%, transparent); --dot: var(--accent); }
.logo3d .float { position: absolute; inset: 0; transform-style: preserve-3d; animation: at-float 7s ease-in-out infinite; }
.logo3d .scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg)); will-change: transform; }
.logo3d .floorShadow { position: absolute; left: 22%; right: 22%; bottom: 1%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent); transform: translateZ(-60px); }
:root[data-theme="light"] .logo3d { --dot: #12c4d2; }
:root[data-theme="light"] .logo3d .floorShadow { background: radial-gradient(closest-side, rgba(11, 27, 58, .2), transparent); }

/* La "A": imagen limpia (sin rectangulos ni resplandor) repetida en profundidad */
.logo3d .layers { position: absolute; left: 6%; right: 6%; top: 0; bottom: 0; margin: auto 0; height: auto; aspect-ratio: 358 / 285; transform-style: preserve-3d; transform: translateY(-3%); }
.logo3d .layer { position: absolute; inset: 0; background: var(--logo-a-url) center / 100% 100% no-repeat; transform: translateZ(calc((var(--i) - 11) * 3.3px));
  filter: brightness(calc(.34 + var(--i) * .06)) saturate(1.05); }
.logo3d .layer.front { filter: none; }

/* Tres placas 3D completas, con grosor, que flotan una sobre otra */
.logo3d .plate { position: absolute; left: 56.4%; top: var(--y); width: 33.6%; aspect-ratio: 1; transform-style: preserve-3d;
  transform: translate(-50%, -50%) translateZ(calc(-14px - var(--k) * 7px)); animation: at-bob 4.2s ease-in-out infinite; animation-delay: calc(var(--k) * -.9s); }
.logo3d .slab { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(69deg) rotateZ(45deg); }
.logo3d .f { position: absolute; inset: 0; border-radius: 5%; }
/* Grosor: sombras duras en diagonal local (t,t) = bajan en vertical al verse en perspectiva */
.logo3d .f0 { background: linear-gradient(135deg, var(--pl-top) 0%, var(--pl-mid) 40%, var(--pl-low) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .65), 3px 3px 0 var(--pl-edge), 6px 6px 0 var(--pl-edge), 9px 9px 0 var(--pl-edge2), 14px 14px 22px color-mix(in srgb, var(--accent) 40%, transparent); }@keyframes at-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(-5px - var(--k) * 1.5px); } }

/* Orbitas: anillos finos con puntos que giran alrededor de la "A" */
.logo3d .orbit { position: absolute; left: 50%; top: 54%; width: 98%; aspect-ratio: 1; transform-style: preserve-3d; transform: translate(-50%, -50%) translateZ(-22px) rotateX(72deg); }
.logo3d .orbit.o2 { width: 118%; transform: translate(-50%, -50%) translateZ(-22px) rotateZ(-24deg) rotateX(72deg); }
.logo3d .spin { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--orb); transform-style: preserve-3d; animation: at-orb 26s linear infinite; }
.logo3d .o2 .spin { border-style: dashed; border-color: color-mix(in srgb, var(--accent2) 60%, transparent); animation-duration: 40s; animation-direction: reverse; }
.logo3d .dot { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, #fff 0 13%, var(--dot) 26%, color-mix(in srgb, var(--dot) 38%, transparent) 46%, transparent 70%);
  transform: translate(-50%, -50%) rotateZ(0deg) rotateX(-72deg); animation: at-dot 26s linear infinite; }
.logo3d .dot.sm { width: 16px; height: 16px; }
.logo3d .o2 .dot { background: radial-gradient(circle, #fff 0 13%, var(--accent2) 26%, color-mix(in srgb, var(--accent2) 35%, transparent) 46%, transparent 70%); transform: translate(-50%, -50%) rotateZ(0deg) rotateX(-72deg) rotateZ(24deg); animation: at-dot2 40s linear infinite reverse; }
@keyframes at-float { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(8px); } }
@keyframes at-orb { to { transform: rotateZ(360deg); } }
/* El punto gira en sentido contrario al anillo para verse siempre redondo (no aplastado) */
@keyframes at-dot { to { transform: translate(-50%, -50%) rotateZ(-360deg) rotateX(-72deg); } }
@keyframes at-dot2 { to { transform: translate(-50%, -50%) rotateZ(-360deg) rotateX(-72deg) rotateZ(24deg); } }
/* ---------- Secciones ---------- */
.at-home .at-section { position: relative; z-index: 1; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.sec-head h2 { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2rem); }
.sec-head .sub { margin: 0; }
.at-home .at-footer { position: relative; z-index: 1; border-top-color: color-mix(in srgb, var(--line) 60%, transparent); }

/* ---------- Carrusel 3D de cursos ---------- */
.cf { position: relative; margin: 8px calc(50% - 50vw) 0; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.cf.dragging { cursor: grabbing; }
.cf:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
/* La perspectiva va en el propio contenedor (sin preserve-3d): asi las tarjetas laterales reciben clics. */
.cf-track { position: relative; perspective: 1300px; perspective-origin: 50% 40%; height: 440px; }
.cf-slide { --w: min(320px, 78vw); position: absolute; left: 50%; top: 24px; width: var(--w); margin-left: calc(var(--w) / -2); display: flex; flex-direction: column; text-align: left; padding: 0; border-radius: 20px; overflow: visible; cursor: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, var(--card) 94%, var(--accent)) 0%, var(--card) 60%);
  border: 1px solid var(--glass-line); box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  will-change: transform, opacity; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: border-color .3s, box-shadow .3s; }
:root[data-theme="light"] .cf-slide { box-shadow: 0 30px 60px -26px rgba(11, 27, 58, .35); background: #fff; }
.cf-slide.is-active { border-color: var(--accent); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .6), 0 0 44px -6px var(--glow); }
.cf-slide::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -34px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent 75%); filter: blur(6px); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cf-slide.is-active::after { opacity: .9; }
.cf-slide .at-cover { aspect-ratio: 16 / 10; border-radius: 19px 19px 0 0; position: relative; }
.cf-slide .at-cover .ph { width: 34%; opacity: .8; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.cf-slide .body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.cf-slide .kicker { display: flex; gap: 5px; flex-wrap: wrap; }
.cf-slide .at-chip { font-size: .68rem; padding: 1px 8px; }
.cf-slide .at-price { font-size: .95rem; }
.cf-slide .at-chip.soon, .at-chip.soon { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.cf-slide h3 { font-family: var(--font-title); font-size: .94rem; font-weight: 600; line-height: 1.28; margin: 0; letter-spacing: -.012em; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cf-slide p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-slide .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.cf-slide .go { font-size: .8rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.cf-slide .go::after { content: ' →'; }
.cf-ui { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.cf-ui[hidden] { display: none !important; }
.cf-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(8px); cursor: pointer; display: grid; place-items: center; transition: transform .15s, border-color .15s, box-shadow .15s; }
.cf-btn:hover { border-color: var(--accent); box-shadow: 0 0 18px var(--glow); }
.cf-btn:active { transform: scale(.94); }
.cf-btn svg { width: 18px; height: 18px; }
.cf-dots { display: flex; gap: 8px; align-items: center; }
.cf-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
.cf-dots button[aria-current="true"] { width: 26px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.cf-hint { text-align: center; color: var(--muted); font-size: .8rem; margin: 10px 0 0; letter-spacing: .04em; }
.cf.single .cf-track { height: 440px; }

/* ---------- Categorias del catalogo: accesos y un selector por categoria ---------- */
.cat-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cat-nav[hidden] { display: none !important; }
.cat-nav a { padding: 4px 12px; border-radius: 99px; border: 1px solid var(--glass-line); background: var(--glass); text-decoration: none; font-size: .76rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .15s, border-color .15s; }
.cat-nav a:hover, .cat-nav a:focus-visible { color: var(--fg); border-color: var(--accent); }
.cat { scroll-margin-top: 76px; }
.cat + .cat { margin-top: 18px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.cat-head { text-align: center; }
.cat-head h3 { margin: 6px 0 0; font-family: var(--font-title); font-size: 1.05rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.cat-head p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.cat-empty { max-width: 420px; margin: 24px auto; }
@media (max-width: 560px) {
  /* En celular los accesos van en una sola linea que se desliza */
  .cat-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; padding: 4px 0 2px; scrollbar-width: none; }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cat-nav a { font-size: .72rem; padding: 3px 10px; }
  .cat { scroll-margin-top: 64px; }
  .cat + .cat { margin-top: 12px; padding-top: 12px; }
  .cat-head h3 { font-size: .94rem; }
  .cat-head p { font-size: .72rem; }
}

/* ---------- Franja de herramientas (compacta) ---------- */
.at-tools { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 0 8px; }
.tool { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); scroll-margin-top: 84px; transition: border-color .2s, box-shadow .2s; }
.tool:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.tool .ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tool .ico svg { width: 18px; height: 18px; }
.tool .t { flex: 0 0 auto; font-family: var(--font-title); font-weight: 600; font-size: .88rem; line-height: 1.2; max-width: 8.5em; }
.tool form { flex: 1 1 auto; display: flex; gap: 8px; min-width: 0; }
.tool .at-input { min-height: 38px; padding: 0 12px; font-size: .9rem; border-radius: 10px; text-transform: uppercase; letter-spacing: .06em; min-width: 0; }
.tool .at-input::placeholder { text-transform: none; letter-spacing: 0; }
.tool .at-btn { min-height: 38px; padding: 0 14px; font-size: .86rem; border-radius: 10px; flex: 0 0 auto; }

/* ---------- Aparicion al hacer scroll ---------- */
.js .rv { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  .at-hero3d .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .logo3d { order: -1; width: min(270px, 70%); }
  .hero-copy { text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-copy .actions, .points { justify-content: center; }
  .points { margin-top: 22px; }
  .at-tools { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cf-track, .cf.single .cf-track { height: 410px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  /* Franja compacta: una fila por herramienta (ícono + campo + botón); el nombre va como texto guía del campo */
  .at-tools { gap: 8px; padding: 10px 0 4px; }
  .tool { flex-wrap: nowrap; gap: 8px; padding: 5px 5px 5px 8px; border-radius: 12px; }
  .tool .ico { width: 26px; height: 26px; border-radius: 8px; }
  .tool .ico svg { width: 14px; height: 14px; }
  .tool .t { display: none; }
  .tool form { flex: 1 1 auto; gap: 6px; }
  .tool .at-input { flex: 1; min-height: 34px; padding: 0 10px; font-size: .8rem; border-radius: 8px; text-transform: none; letter-spacing: 0; }
  .tool .at-input:not(:placeholder-shown) { text-transform: uppercase; letter-spacing: .05em; }
  .tool .at-btn { min-height: 34px; padding: 0 12px; font-size: .8rem; border-radius: 8px; }
  .at-bg .floor { background-size: 44px 44px; }
}
/* ---------- Celular: portada compacta para que los cursos se vean al entrar ---------- */
@media (max-width: 560px) {
  .at-hero3d { padding: 6px 0 4px; }
  .at-hero3d .hero-grid { gap: 0; }
  .logo3d { width: min(200px, 54%); margin-bottom: -6px; }
  .eyebrow { font-size: .62rem; letter-spacing: .1em; padding: 4px 11px; gap: 6px; margin-bottom: 10px; }
  .eyebrow::before { width: 5px; height: 5px; }
  .hero-copy h1 { font-size: clamp(1.55rem, 7.4vw, 1.9rem); line-height: 1.1; letter-spacing: -.03em; margin-bottom: 8px; }
  .hero-copy p { font-size: .82rem; line-height: 1.4; max-width: 350px; margin-bottom: 12px; }
  .hero-copy .actions { gap: 8px; }
  .hero-copy .at-btn { min-height: 38px; padding: 0 16px; font-size: .88rem; border-radius: 10px; }
  .points { display: none; }
  #cursos { padding-top: 14px !important; padding-bottom: 20px; }
  .sec-head { margin-bottom: 0; }
  .sec-head h2 { font-size: 1.2rem; }
  .sec-head .sub { display: none; }
  .cf { margin-top: 0; }
  .cf-slide { top: 8px; }
  .cf-track, .cf.single .cf-track { height: 392px; }
  .at-header .at-wrap { min-height: 56px; }
}
/* Portadas: la imagen llena el recuadro y se centra (el placeholder del isotipo conserva su centrado) */
.cf-slide .at-cover, .at-sheet .at-dlg-cover { position: relative; overflow: hidden; }
.cf-slide .at-cover img:not(.ph), .at-sheet .at-dlg-cover img:not(.ph) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
/* ---------- Ficha de curso (minimalista) ---------- */
dialog.at-sheet { width: min(500px, calc(100% - 24px)); max-height: none; overflow: hidden; border-radius: 22px; border-color: var(--glass-line); }
dialog.at-sheet::backdrop { background: rgba(2, 8, 20, .66); backdrop-filter: blur(5px); }
dialog.at-sheet[open] { animation: at-pop .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes at-pop { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.at-sheet .at-dlg-body { display: flex; flex-direction: column; padding: 0; max-height: min(88dvh, 700px); }
.at-sheet .at-dlg-cover { flex: 0 0 auto; margin: 0; height: 150px; aspect-ratio: auto; border-radius: 0; }
.at-sheet .at-dlg-cover .ph { width: 22%; }
.at-sheet .at-close { top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(8px); border-color: color-mix(in srgb, var(--line) 80%, transparent); z-index: 2; }
.sheet-main:focus { outline: none; }
.sheet-main { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 14px; scrollbar-width: thin; }
.sheet-main h3 { font-family: var(--font-title); font-size: 1.3rem; line-height: 1.22; letter-spacing: -.02em; margin: 0 0 10px; padding: 0; }
.sheet-main .at-facts { margin: 0 0 14px; gap: 6px; }
.sheet-main .at-chip { font-size: .72rem; padding: 2px 9px; }
.sheet-main .desc p { margin: 0 0 10px; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.sheet-main .desc p.lead { font-size: .98rem; color: var(--fg); }
.sheet-main .desc h4 { margin: 18px 0 8px; font-family: var(--font-title); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sheet-main .desc ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.sheet-main .desc li { position: relative; padding-left: 22px; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.sheet-main .desc li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.at-sheet .at-buy { flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 16px; padding: 12px 22px 14px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--card) 92%, var(--accent)); }
.at-sheet .at-buy .big { font-size: 1.25rem; white-space: nowrap; }
.at-sheet .at-buy .acts { display: flex; justify-content: flex-end; }
.at-sheet .at-buy .acts .at-btn { flex: 1 1 auto; max-width: 220px; min-height: 44px; }
.at-sheet .at-buy .links { grid-column: 1 / -1; display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: center; }
.at-sheet .at-buy .links:empty { display: none; }
.at-sheet .at-buy .at-legal { grid-column: 1 / -1; margin: 0; text-align: center; }
.at-sheet .at-buy .at-linkbtn { font-size: .82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.at-sheet .at-buy .at-linkbtn:hover { color: var(--accent); }
/* Codigo de acceso dentro de la ficha */
.sheet-code { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; }
.sheet-code .at-input { min-height: 40px; padding: 0 12px; font-size: .9rem; border-radius: 10px; text-transform: uppercase; letter-spacing: .06em; }
.sheet-code .at-input::placeholder { text-transform: none; letter-spacing: 0; }
.sheet-code .at-btn { min-height: 40px; padding: 0 16px; font-size: .88rem; border-radius: 10px; }
.sheet-code .msg { grid-column: 1 / -1; margin: 0; font-size: .8rem; line-height: 1.4; color: var(--danger); text-align: center; }
.sheet-code .msg:empty { display: none; }
.sheet-code .msg.ok { color: var(--ok); }
.sheet-code .msg a { color: var(--accent); font-weight: 600; text-decoration: underline; }

@media (max-width: 560px) {
  /* En celular la ficha sube desde abajo, como una hoja */
  dialog.at-sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  dialog.at-sheet[open] { animation: at-sheet-up .3s cubic-bezier(.2, .8, .2, 1); }
  @keyframes at-sheet-up { from { transform: translateY(40px); opacity: .4; } }
  .at-sheet .at-dlg-body { max-height: 86dvh; }
  .at-sheet .at-dlg-cover { height: 96px; }
  .sheet-main { padding: 14px 18px 10px; }
  .sheet-main h3 { font-size: 1.12rem; margin-bottom: 8px; }
  .sheet-main .at-facts { margin-bottom: 10px; }
  .sheet-main .desc p.lead { font-size: .92rem; }
  .sheet-main .desc p, .sheet-main .desc li { font-size: .86rem; }
  .at-sheet .at-buy { padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); }
  .at-sheet .at-buy .big { font-size: 1.1rem; }
  .at-sheet .at-buy .acts .at-btn { max-width: none; min-height: 42px; }
}
/* ---------- Texto de confianza (bajo el carrusel) ---------- */
.at-trust { position: relative; z-index: 1; max-width: 760px; text-align: center; padding: 4px 0 14px; }
.at-trust .ttl { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-family: var(--font-title); font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.at-trust .ttl svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }
.at-trust p { margin: 0 auto; max-width: 650px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.at-trust ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 10px 0 0; padding: 0; font-size: .76rem; color: var(--muted); }
.at-trust li { display: inline-flex; align-items: center; gap: 6px; }
.at-trust li::before { content: ''; width: 8px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-1px); }

/* ---------- Escritorio: portada compacta para que los cursos se vean al entrar ---------- */
@media (min-width: 861px) {
  .at-hero3d { padding: 16px 0 6px; }
  .at-hero3d .hero-grid { gap: clamp(16px, 3vw, 40px); }
  .eyebrow { font-size: .7rem; letter-spacing: .12em; padding: 5px 12px; margin-bottom: 14px; }
  .hero-copy h1 { font-size: clamp(2.1rem, 3.7vw, 3.05rem); line-height: 1.08; margin-bottom: 12px; }
  .hero-copy p { font-size: .98rem; line-height: 1.55; max-width: 440px; margin-bottom: 18px; }
  .hero-copy .at-btn { min-height: 42px; }
  .points { margin-top: 14px; }
  .logo3d { width: min(350px, 100%); }
  #cursos { padding-top: 0 !important; padding-bottom: 6px; }
  .sec-head h2 { font-size: 1.4rem; }
  .cf-slide { top: 10px; }
  .cf-ui { margin-top: 0; }
}
@media (max-width: 560px) {
  .at-trust { padding: 2px 0 10px; }
  .at-trust .ttl { font-size: .86rem; margin-bottom: 4px; }
  .at-trust p { font-size: .76rem; line-height: 1.5; }
  .at-trust ul { display: none; }
}
/* Ventana de ingreso / registro: controles compactos como el resto */
#at-auth.at-dialog { width: min(420px, calc(100% - 20px)); border-radius: 18px; }
#at-auth .at-dlg-body { padding: 20px; }
#at-auth h3 { font-size: 1.1rem; margin-bottom: 8px; }
#at-auth .at-input { min-height: 40px; font-size: .92rem; border-radius: 10px; }
#at-auth .at-btn, #at-auth .at-google { min-height: 42px; font-size: .92rem; border-radius: 11px; }
#at-auth .at-tabs button { min-height: 34px; font-size: .86rem; }
#at-auth .at-form { gap: 9px; }
#at-auth .at-form label { font-size: .82rem; gap: 4px; }
@media (max-width: 560px) { #at-auth.at-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; border-bottom: 0; } #at-auth .at-dlg-body { padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) {
  .logo3d .float, .logo3d .spin, .logo3d .dot, .logo3d .plate, .at-bg .floor { animation: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
