:root {
    --accent: #95CD01;
    --bg: #f4f5f7;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    background: transparent;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("backEstu.jpg") center/cover no-repeat;
    filter: blur(12px);
    transform: scale(1.06);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    /* lo vuelve “clean” para lectura */
    z-index: -1;
}

/* Page wrapper */
.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

/* Card */
.card {
    width: min(980px, 100%);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
    border-radius: var(--radius);
    padding: 22px 22px 18px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.icon {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
}

.app {
    margin: 0;
    color: var(--accent);
    letter-spacing: .6px;
    font-weight: 800;
}

.subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.4;
    max-width: 70ch;
}

/* Title */
.title {
    padding: 16px 0 10px;
    text-align: left;
}

.title h1 {
    margin: 0;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.hint {
    margin: 8px 0 0;
    color: var(--muted);
}

/* Terms box */
.terms-box {
    margin-top: 10px;
    padding: 14px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fafafa;
    max-height: 420px;
    /* clave para pantallas pequeñas */
    overflow: auto;
}

.term {
    padding: 10px 4px;
}

.term+.term {
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.term h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.term p {
    margin: 0;
    color: #1f2937;
}

.term ul {
    margin: 0;
    padding-left: 18px;
    color: #1f2937;
}

.term li {
    margin: 6px 0;
}

/* Accept section */
.accept-section {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.accept-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.accept-label input {
    width: 18px;
    height: 18px;
}

.link {
    color: #2563eb;
    text-decoration: underline;
}

#checkmark {
    display: none;
    color: var(--accent);
    font-weight: 900;
    font-size: 18px;
}

/* Button */
.primary {
    padding: 12px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    background: var(--accent);
    color: #111;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.primary:hover:enabled {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    filter: brightness(0.98);
}

.primary:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}


/* =========================================================
   Floating buttons PRO (crece hacia arriba + íconos)
========================================================= */
.floating-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;

    display: flex;
    flex-direction: column-reverse;
    /* crece hacia arriba */
    align-items: flex-end;
    gap: 10px;
}

/* ✅ Evita que hereden estilos raros de botones globales */
.floating-actions .fab {
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;

    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    text-decoration: none;
    background: transparent;
}

.fab svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.fab--whatsapp {
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.fab--whatsapp span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin-left: 8px;
    font-size: 14px;
    color: white;
    transition: all 1.3s;
}

.fab--whatsapp:hover {
    width: 200px;
    justify-content: flex-start;
    padding-left: 16px;
}

.fab--whatsapp:hover span {
    opacity: 1;
    width: auto;
}

.fab--social {
    background: rgba(17, 24, 39, 0.96);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.fab--social .fab-item {
    display: none;
    opacity: 0;
    width: 0;
    margin-left: 8px;
    flex-direction: column;
    align-items: center;
    background: transparent;
    color: white;
    text-decoration: none;
    transition: all 2.5s;
}

.fab--social:hover {
    width: 250px;
    justify-content: flex-start;
    padding-left: 16px;
}

.fab--social:hover .fab-item {
    display: flex;
    opacity: 1;
    width: auto;
    margin-left: 10px;
}

.fab-item__icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.fab-item span:last-child {
    font-size: 12px;
    margin-top: 4px;
    text-align: center;
}

.fab--youtube {
    background: #FF0000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.fab--youtube span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin-left: 8px;
    font-size: 14px;
    color: white;
    transition: all 1s;
}

.fab--youtube:hover {
    width: 180px;
    justify-content: flex-start;
    padding-left: 16px;
}

.fab--youtube:hover span {
    opacity: 1;
    width: auto;
}

/* Menú en flujo: cuando abre ocupa espacio y NO se encima */
.fab-menu {
    position: absolute;
    right: 100%;
    top: 0;
    width: auto;
    padding: 0;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: row;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}

.fab-menu.is-open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.fab-item__icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

/* Mobile */
@media (max-width: 480px) {
    .floating-actions {
        right: 12px;
        bottom: 12px;
    }

    .fab {
        width: 50px;
        height: 50px;
    }

    .fab svg {
        width: 25px;
        height: 25px;
    }

    .fab-menu {
        width: 230px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        padding: 18px 16px;
    }

    .icon {
        width: 54px;
        height: 54px;
    }

    .title h1 {
        font-size: 1.1rem;
    }

    .terms-box {
        max-height: 52vh;
    }

    .accept-section {
        justify-content: center;
    }

    .primary {
        width: 100%;
    }
}