* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(160deg, #042f2c 0%, #0f766e 45%, #0d9488 100%);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
    position: relative;
    overflow-x: hidden;
}

/* Formas decorativas de fondo, ahora con un flotado lento — quieto se
   sentía "sin vida"; este movimiento apenas perceptible (14-18s por
   ciclo) le da profundidad sin distraer. position:fixed + blur, nunca
   interfieren con el layout ni con el toque/click (pointer-events:none). */
.acceso-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    opacity: .6;
    animation: acceso-flotar 16s ease-in-out infinite;
}
.acceso-blob-1 { width: 460px; height: 460px; top: -130px; left: -110px; background: radial-gradient(circle, #2dd4bf, transparent 70%); animation-duration: 18s; }
.acceso-blob-2 { width: 420px; height: 420px; bottom: -150px; right: -90px; background: radial-gradient(circle, #0d9488, transparent 70%); animation-duration: 15s; animation-delay: -4s; }
.acceso-blob-3 { width: 340px; height: 340px; top: 38%; right: 8%; background: radial-gradient(circle, #5eead4, transparent 70%); opacity: .35; animation-duration: 20s; animation-delay: -8s; }
@keyframes acceso-flotar {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -25px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .acceso-blob { animation: none; }
}

.acceso-wrap { position: relative; z-index: 1; width: 100%; max-width: 1040px; }

.acceso-header { text-align: center; margin-bottom: 3.25rem; }
.acceso-header-icon {
    width: 90px; height: 90px;
    border-radius: 22px;
    background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    padding: 10px;
    box-shadow: 0 14px 32px rgba(2,10,20,.4);
    position: relative;
}
.acceso-header-icon img { width: 100%; height: 100%; object-fit: contain; }
.acceso-header h1 { font-size: 2.5rem; font-weight: 900; color: #fff; margin: 0 0 .5rem; letter-spacing: -.01em; }
.acceso-header h1 span {
    background: linear-gradient(90deg, #2dd4bf, #5eead4);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.acceso-header p { font-size: 1.1rem; color: rgba(255,255,255,.75); margin: 0; }

.acceso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
}

.acceso-card {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #f3fbfa 100%);
    border-radius: 22px;
    padding: 2.5rem 1.75rem 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 34px rgba(2, 8, 30, .4);
    border: 1px solid rgba(255,255,255,.2);
    border-top: 5px solid var(--color, #0d9488);
    transition: transform .22s ease, box-shadow .22s ease;
    display: flex; flex-direction: column; align-items: center;
    overflow: hidden;
}
.acceso-card-glow {
    position: absolute;
    top: -45%; left: 50%;
    width: 240px; height: 240px;
    transform: translateX(-50%);
    background: radial-gradient(circle, color-mix(in srgb, var(--color, #0d9488) 35%, transparent), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}
.acceso-card:hover, .acceso-card:focus-visible {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 26px 55px rgba(2, 8, 30, .32), 0 0 0 3px color-mix(in srgb, var(--color, #0d9488) 40%, transparent);
    outline: none;
}
.acceso-card:hover .acceso-card-glow { opacity: 1; }

/* Aro de color detrás del logo (halo) — sin esto el círculo blanco se
   perdía contra la tarjeta, casi flotando sin peso visual. */
.acceso-logo {
    position: relative;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.35rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
        0 10px 24px rgba(15,23,42,.14),
        0 0 0 6px color-mix(in srgb, var(--color, #0d9488) 12%, transparent),
        0 0 0 7px color-mix(in srgb, var(--color, #0d9488) 30%, transparent);
}
.acceso-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
/* Marcador para un colegio sin logo propio todavía: mismo <img> que uno
   real, solo con el logo de Academix y un poco más de aire (no está
   pensado para llenar el círculo, es un genérico). */
.acceso-logo-generico { padding: 22px !important; }

.acceso-nombre { position: relative; font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: 1.1rem; letter-spacing: .01em; }

/* Botón sólido en vez de la píldora translúcida de antes — mucho más
   presencia visual, se lee de inmediato como una acción, no como una
   etiqueta decorativa. */
.acceso-entrar {
    position: relative;
    margin-top: auto;
    font-size: .92rem; font-weight: 700;
    color: #fff;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .65rem 1.5rem;
    border-radius: 999px;
    width: 100%;
    background: linear-gradient(135deg, var(--color, #0d9488), color-mix(in srgb, var(--color, #0d9488) 70%, #042f2c));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--color, #0d9488) 45%, transparent);
}
.acceso-card:hover .acceso-entrar i { transform: translateX(3px); }
.acceso-entrar i { transition: transform .18s ease; font-size: .85rem; }

/* Tarjeta reservada (sin subdominio propio todavía, url="#") — apagada a
   propósito y sin la animación de "esto lleva a algo" para no confundir. */
.acceso-card-reservado {
    cursor: default;
    opacity: .8;
    filter: grayscale(.4);
}
.acceso-card-reservado:hover, .acceso-card-reservado:focus-visible {
    transform: none;
    box-shadow: 0 12px 34px rgba(2, 8, 30, .4);
}
.acceso-card-reservado .acceso-card-glow { display: none; }
.acceso-badge-proximamente {
    position: absolute;
    top: 16px; right: 16px;
    background: #f1f5f9;
    color: #64748b;
    font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    padding: .3rem .65rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    z-index: 2;
}
.acceso-entrar-reservado { background: #94a3b8 !important; box-shadow: none !important; }

.acceso-footer {
    text-align: center;
    margin-top: 2.75rem;
    font-size: .85rem;
    color: rgba(255,255,255,.6);
}
.acceso-footer i { color: #5eead4; margin-right: .3rem; }

@media (max-width: 640px) {
    body { padding: 2rem 1rem; }
    .acceso-header { margin-bottom: 2.25rem; }
    .acceso-header-icon { width: 70px; height: 70px; border-radius: 18px; margin-bottom: 1rem; padding: 8px; }
    .acceso-header h1 { font-size: 1.9rem; }
    .acceso-header p { font-size: .95rem; }
    .acceso-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.1rem; }
    .acceso-card { padding: 1.75rem 1.1rem 1.4rem; border-radius: 18px; }
    .acceso-logo { width: 110px; height: 110px; margin-bottom: 1rem; box-shadow: 0 8px 18px rgba(15,23,42,.14), 0 0 0 4px color-mix(in srgb, var(--color, #0d9488) 12%, transparent), 0 0 0 5px color-mix(in srgb, var(--color, #0d9488) 30%, transparent); }
    .acceso-logo-generico { padding: 16px !important; }
    .acceso-nombre { font-size: 1rem; margin-bottom: .75rem; }
    .acceso-entrar { font-size: .8rem; padding: .55rem 1rem; }
    .acceso-footer { margin-top: 2rem; font-size: .76rem; }
    .acceso-blob { filter: blur(50px); opacity: .45; }
}

@media (max-width: 400px) {
    .acceso-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
}
