/* ==========================================================================
   descargas.css
   Ventana "Descargar App" (Little Seeds / La Arboleda / Ambos -> iOS / Android)
   y estilos de la página de descargas (index.html de la raíz).
   Lo cargan: index.html, little/index.html y arboleda/index.html
   ========================================================================== */

@property --beam-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
@keyframes dlSpin {
    to { --beam-angle: 360deg; }
}

/* ---------- Ventana (modal) ---------- */
#dl-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
#dl-modal.dl-oculto { display: none; }

.dl-card {
    position: relative;
    background: #ffffff;
    color: #0f172a;
    border-radius: 24px;
    max-width: 460px;
    width: 100%;
    padding: 26px 22px 22px;
    border: 3px solid var(--primary, #1D8FE1);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
    max-height: 90vh;
    overflow-y: auto;
}
.dl-cerrar {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 800;
    cursor: pointer;
}

.dl-titulo { font-size: 20px; font-weight: 900; margin: 0 38px 6px 0; line-height: 1.25; }
.dl-sub { font-size: 14px; color: #475569; margin: 0 0 16px; }

.dl-lista { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Botones grandes (colegio / plataforma) ---------- */
.dl-opcion {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 2.5px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-family: inherit;
    font-weight: 900;
    font-size: 17px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dl-opcion:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14); }
.dl-opcion:active { transform: scale(0.99); }
.dl-op-little   { border-color: #1D8FE1; background: #eff6ff; }
.dl-op-arboleda { border-color: #006A7A; background: #ecfeff; }
.dl-op-ambos    { border-color: #6CC02E; background: linear-gradient(110deg, #eff6ff, #ecfdf5); }
.dl-op-android  { border-color: #16a34a; background: #f0fdf4; }
.dl-op-ios      { border-color: #1d8fe1; background: #eff6ff; }
.dl-logos { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.dl-logos img { height: 40px; width: auto; max-width: 64px; object-fit: contain; }
.dl-emoji { font-size: 28px; line-height: 1; }

/* ---------- Pasos ---------- */
.dl-pasos { margin: 0 0 16px; padding-left: 20px; font-size: 14px; line-height: 1.65; color: #334155; }
.dl-fila {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
}
.dl-fila img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.dl-fila-info { flex: 1; font-size: 15px; min-width: 0; }
.dl-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    background: var(--primary, #1D8FE1);
    color: #ffffff;
    font-family: inherit;
    font-weight: 800;
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.dl-ok { font-weight: 900; color: #15803d; font-size: 13.5px; }
.dl-aqui { font-size: 12.5px; font-weight: 800; color: #475569; text-align: right; }
.dl-nota {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
}
.dl-nota[hidden] { display: none; }
.dl-atras {
    margin-top: 14px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

/* ---------- Página de descargas (index.html de la raíz) ---------- */
body.dl-hub {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1A2233;
    background-color: #E2F6FA;
    background-image:
        radial-gradient(circle at 14% 18%, rgba(53, 194, 214, 0.50), transparent 46%),
        radial-gradient(circle at 86% 20%, rgba(255, 208, 21, 0.46), transparent 46%),
        radial-gradient(circle at 82% 84%, rgba(244, 100, 154, 0.40), transparent 46%),
        radial-gradient(circle at 18% 82%, rgba(108, 192, 46, 0.44), transparent 46%),
        linear-gradient(135deg, #E2F6FA 0%, #EFFAE9 50%, #FFF7DC 100%);
    background-attachment: fixed;
}
.dl-panel {
    width: 100%;
    max-width: 440px;
    border-radius: 30px;
    padding: 30px 22px;
    text-align: center;
    border: 3px solid transparent;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.60)),
        conic-gradient(from var(--beam-angle), #35C2D6, #FFD015, #F4649A, #6CC02E, #35C2D6);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: dlSpin 5s linear infinite;
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.95), 0 22px 50px rgba(29, 143, 225, 0.20);
}
.dl-panel h1 { font-size: 24px; font-weight: 900; margin: 0 0 18px; line-height: 1.2; }
