/* Ed, el asistente escolar gratis: pagina /estudiantes/, hojas de instalar y
   barra de la app instalada. Tokens de guia-mkt.css (claro por defecto). */
.ed-wrap { max-width:880px; margin:0 auto; padding:0 20px; }
.ed-hero { padding:48px 0 24px; display:grid; grid-template-columns:auto 1fr; gap:28px; align-items:center; }
.ed-hero svg.ed-mascota { width:148px; height:148px; display:block; }
.ed-hero h1 { margin:0; font-size:44px; line-height:48px; letter-spacing:-1.2px; font-weight:700; }
.ed-hero h1 span { color:var(--brand-ink); }
.ed-hero .lead { margin:12px 0 0; font-size:16.5px; line-height:26px; color:var(--text-secondary); max-width:560px; }
.ed-garantias { display:flex; flex-wrap:wrap; gap:8px 16px; margin:14px 0 0; padding:0; list-style:none; font-size:13px; font-weight:600; color:var(--text-secondary); }
.ed-garantias li::before { content:"✓ "; color:var(--green-dark); font-weight:700; }
.ed-ctas { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; align-items:center; }
.ed-ctas .nota { font-size:12.5px; color:var(--text-tertiary); }
html.ed-instalada .ed-ctas .btn-mkt.brand { display:none; }

.ed-sec { padding:32px 0; border-top:1px solid var(--border-subtle); }
.ed-sec h2 { margin:0 0 6px; font-size:24px; line-height:30px; letter-spacing:-.4px; font-weight:600; }
.ed-sec > p.sub { margin:0 0 18px; font-size:14.5px; line-height:22px; color:var(--text-secondary); }
.ed-card { background:var(--card-surface); border:1px solid var(--border-subtle); border-radius:16px; padding:18px; }
.ed-vacio { text-align:center; padding:28px 18px; }
.ed-vacio p { margin:0 0 14px; color:var(--text-secondary); font-size:14.5px; line-height:22px; }

/* Comparacion de colegios */
.ed-cmp-scroll { overflow-x:auto; margin:0 -18px; padding:0 18px; }
.ed-cmp { border-collapse:collapse; min-width:100%; font-size:14px; }
.ed-cmp th, .ed-cmp td { text-align:left; vertical-align:top; padding:11px 14px 11px 0; border-bottom:1px solid var(--border-subtle); }
.ed-cmp thead th { font-size:15px; font-weight:600; color:var(--text-primary); min-width:150px; }
.ed-cmp thead th a { color:var(--text-primary); }
.ed-cmp thead th small { display:block; font-size:12.5px; font-weight:500; color:var(--text-tertiary); margin-top:2px; }
.ed-cmp tbody th { font-size:12.5px; font-weight:600; color:var(--text-tertiary); white-space:nowrap; width:1%; }
.ed-cmp td { color:var(--text-secondary); }
.ed-cmp td strong { color:var(--brand-ink); font-weight:600; }
.ed-cmp .ed-quitar { margin-top:6px; background:none; border:0; padding:0; font-family:var(--font-roboto); font-size:12.5px; color:var(--text-tertiary); cursor:pointer; text-decoration:underline; }

/* Mañana llevas: los útiles como fichas, para que quepa de un vistazo */
#ed-manana-l { display:flex; flex-wrap:wrap; gap:8px; padding:14px; }
#ed-manana-l li { padding:6px 12px; border:0; border-radius:var(--radius-pill); background:var(--calc-brand-tint); font-size:13.5px; }
#ed-manana-l li strong { font-size:13.5px; font-weight:600; }

/* Herramientas disponibles */
.ed-tools { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ed-tool { display:flex; gap:14px; align-items:center; padding:16px; border-radius:16px; background:var(--card-surface); border:1px solid var(--border-subtle); transition:border-color 120ms ease; }
.ed-tool:hover { border-color:var(--text-tertiary); }
.ed-tool .ico { width:44px; height:44px; flex:0 0 44px; border-radius:12px; background:var(--calc-brand-tint); border:1px solid var(--calc-brand-line); display:flex; align-items:center; justify-content:center; font-size:22px; }
.ed-tool strong { display:block; font-size:15.5px; font-weight:600; color:var(--text-primary); }
.ed-tool span { display:block; font-size:13px; line-height:19px; color:var(--text-secondary); }

/* Llega pronto: votos */
.ed-votos { list-style:none; margin:0; padding:0; }
.ed-votos li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; border-bottom:1px solid var(--border-subtle); }
.ed-votos li:last-child { border-bottom:0; }
.ed-votos .t { display:flex; gap:12px; align-items:center; }
.ed-votos .t i { font-style:normal; font-size:22px; width:32px; text-align:center; }
.ed-votos strong { display:block; font-size:15px; font-weight:600; color:var(--text-primary); }
.ed-votos small { display:block; font-size:12.5px; line-height:18px; color:var(--text-tertiary); }
.ed-votar { flex:0 0 auto; font-family:var(--font-roboto); font-size:13px; font-weight:600; border-radius:var(--radius-pill); padding:8px 14px; cursor:pointer; color:var(--brand-ink); background:var(--calc-brand-tint); border:1px solid var(--calc-brand-line); }
.ed-votar[aria-pressed="true"] { background:var(--green); border-color:var(--green); color:#08090a; }
.ed-votar:focus-visible { outline:2px solid var(--green); outline-offset:2px; }

.ed-pie { padding:28px 0 48px; font-size:12.5px; line-height:19px; color:var(--text-tertiary); border-top:1px solid var(--border-subtle); }
.ed-pie a { color:var(--text-secondary); text-decoration:underline; }

/* Hojas: instalar en iPhone, navegador de otra app, instalacion manual */
.ed-hoja { position:fixed; inset:0; z-index:60; background:rgba(8,9,10,.45); display:flex; align-items:flex-end; justify-content:center; }
.ed-hoja[hidden] { display:none; }
.ed-hoja-in { width:100%; max-width:440px; background:var(--card-surface); color:var(--text-primary); border-radius:22px 22px 0 0; padding:20px 20px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width:600px) { .ed-hoja { align-items:center; } .ed-hoja-in { border-radius:22px; } }
.ed-hoja h3 { margin:0 0 12px; font-size:18px; font-weight:600; }
.ed-hoja ol { margin:0 0 16px; padding-left:22px; font-size:15px; line-height:24px; color:var(--text-secondary); }
.ed-hoja ol li { margin-bottom:8px; }
.ed-hoja ol strong { color:var(--text-primary); }
.ed-hoja .btn-mkt { width:100%; }

/* Barra de pestañas de la app instalada */
.ed-tabbar { position:fixed; left:0; right:0; bottom:0; z-index:45; display:grid; grid-template-columns:repeat(5,1fr); background:var(--card-surface); border-top:1px solid var(--border-subtle); padding:6px 4px calc(6px + env(safe-area-inset-bottom)); view-transition-name:ed-tabbar; }
.ed-tabbar a { display:flex; flex-direction:column; align-items:center; gap:3px; font-size:11px; font-weight:600; color:var(--text-tertiary); padding:2px 0; -webkit-tap-highlight-color:transparent; }
.ed-tabbar a svg { width:56px; height:30px; padding:4px 17px; border-radius:var(--radius-pill); transition:background-color 160ms ease; }
.ed-tabbar a[aria-current="page"] { color:var(--brand-ink); }
.ed-tabbar a[aria-current="page"] svg { background:var(--calc-brand-tint); }
.ed-tabbar a:active svg { background:var(--calc-brand-tint); }
/* Cambio de pestaña sin parpadeo: la barra y el encabezado se quedan quietos */
@media (display-mode: standalone) { @view-transition { navigation:auto; } }
html.nt-standalone .nt-header { view-transition-name:ed-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration:160ms; }
html.ed-standalone body { padding-bottom:calc(68px + env(safe-area-inset-bottom)); }
html.ed-standalone .nt-mini { bottom:calc(76px + env(safe-area-inset-bottom)); }
html.ed-standalone .ed-solo-web { display:none !important; }
html:not(.ed-standalone) .ed-solo-app { display:none !important; }
html.ed-standalone .ed-hero { padding:20px 0 18px; grid-template-columns:auto 1fr; gap:14px; }
html.ed-standalone .ed-hero svg.ed-mascota { width:64px; height:64px; }
html.ed-standalone .ed-hero h1 { font-size:26px; line-height:31px; letter-spacing:-.5px; }

/* Inicio de la app instalada: herramientas primero, en mosaicos de color */
html.ed-standalone main.ed-wrap { display:flex; flex-direction:column; }
html.ed-standalone #herramientas { order:1; }
html.ed-standalone #manana-llevas { order:2; }
html.ed-standalone #colegios { order:3; }
html.ed-standalone #pronto { order:4; }
html.ed-standalone .ed-pie { order:5; }
html.ed-standalone .ed-sec { padding:22px 0; }
html.ed-standalone .ed-sec h2 { font-size:19px; line-height:24px; margin-bottom:12px; }
html.ed-standalone #herramientas { border-top:0; padding-top:4px; }
.ed-saludo-sub { margin:4px 0 0; font-size:14.5px; line-height:21px; color:var(--text-secondary); }
.ed-chips { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 0; padding:0; list-style:none; }
.ed-chips li { font-size:13px; font-weight:600; color:var(--text-primary); background:var(--card-surface); border:1px solid var(--border-subtle); border-radius:var(--radius-pill); padding:6px 12px; }
.ed-estado { display:block; }
html.ed-standalone .ed-tools { grid-template-columns:1fr 1fr; gap:10px; }
html.ed-standalone .ed-tool { --c:var(--green); flex-direction:column; align-items:flex-start; gap:12px; padding:14px; min-height:132px; border-radius:20px; border-color:color-mix(in srgb, var(--c) 32%, transparent); background:color-mix(in srgb, var(--c) 13%, var(--card-surface)); transition:transform 120ms ease; -webkit-tap-highlight-color:transparent; }
html.ed-standalone .ed-tool:active { transform:scale(.97); }
html.ed-standalone .ed-tool .ico { width:46px; height:46px; flex:0 0 auto; border-radius:14px; font-size:24px; background:color-mix(in srgb, var(--c) 30%, var(--card-surface)); border:0; }
html.ed-standalone .ed-tool strong { font-size:15px; line-height:19px; }
html.ed-standalone .ed-tool .ed-estado { margin-top:4px; font-size:12.5px; line-height:17px; font-weight:600; color:var(--text-secondary); }
html.ed-standalone .ed-tool:last-child { grid-column:1 / -1; flex-direction:row; align-items:center; min-height:0; }

@media (max-width:760px) {
    .ed-hero { grid-template-columns:1fr; gap:14px; padding-top:28px; }
    .ed-hero svg.ed-mascota { width:96px; height:96px; }
    .ed-hero h1 { font-size:30px; line-height:35px; letter-spacing:-.7px; }
    .ed-tools { grid-template-columns:1fr; }
}
