* {
    box-sizing: border-box;
}

/* BODY */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #ffb6c1, #ff69b4);
    overflow-x: hidden;
}

/* HEADER (SOLO FONDO) */
header {
    width: 100%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);

    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* CONTENEDOR CENTRADO REAL */
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* USUARIO */
.panel-user {
    text-align: left;
    color: #fff;
    font-size: 0.9rem;
}

/* BOTON LOGOUT */
.logout-btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    background: #ff3366;
    color: white;
    transition: 0.3s;
}

.logout-btn:hover {
    background: #cc0044;
    transform: scale(1.05);
}

/* CONTENEDOR */
.container {
    margin-top: 120px;
    padding: 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* TARJETAS */
.card {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    padding: 30px;

    text-align: center;
    border-radius: 20px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;

    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);

    animation: fadeInUp 0.8s ease both;
}

.card:hover {
    transform: translateY(-6px) scale(1.03);
    background: rgba(255,255,255,0.45);
}

/* ANIMACION */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* VERSICULO */
.versiculo-box {
    margin: 30px auto;
    padding: 20px;
    text-align: center;

    color: #fff;
    font-size: 1.1rem;

    width: 90%;
    max-width: 900px;

    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);

    animation: fadeInUp 1s ease both;
}



@media (max-width: 480px) {

    /* HEADER MÁS COMPACTO */
    header {
        padding: 12px 0;        /* antes 20px */
    }

    .header-inner {
        width: 100%;
        padding: 10px 16px;     /* menos alto */

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 8px;               /* menos separación */
    }

    /* PANEL USUARIO */
    .panel-user {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;

        font-size: 0.95rem;     /* un pelín más chico */
        line-height: 1.4;
    }

    .panel-user b {
        font-size: 1.1rem;
        letter-spacing: 0.4px;
    }

    /* BOTÓN */
    header form {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .logout-btn {
        margin-top: 4px;
        padding: 8px 16px;
        border-radius: 14px;
    }

    /* 👇 MÁS ESPACIO PARA QUE NUNCA TAPE */
    .container {
        margin-top: 240px;
    }
}
@media (max-width: 480px) {

    /* ===== HEADER ===== */
    header {
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .panel-user {
        text-align: center;
        font-size: 14px;
        line-height: 1.2;
    }

    .panel-user b {
        font-size: 16px;
        margin-bottom: 4px;
        display: block;
    }

    .panel-user .fecha,
    .panel-user .hora {
        font-size: 12px;
        opacity: 0.9;
    }

    /* ===== BOTONES ===== */
    .btn-column {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .logout-btn,
    .menu-btn {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 14px;
        flex: 1;
        max-width: 160px;
    }

    /* ===== CONTENIDO ===== */
    .main-wrap {
        margin-top: 220px;   /* 👈 más aire con el header */
        padding: 16px;
    }
    /* ===== TÍTULOS ===== */
    .page-title {
        font-size: 20px;
        text-align: center;
    }
    

}
/* TARJETA GRANDE HORIZONTAL */
.card-wide {
    width: 90%;
    max-width: 900px;
    margin: 20px auto;

    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(10px);

    padding: 35px;
    text-align: center;

    border-radius: 25px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;

    box-shadow: 0 10px 25px rgba(0,0,0,0.25);

    transition: transform 0.3s ease, background 0.3s ease;
    animation: fadeInUp 1s ease both;
}

.card-wide:hover {
    transform: scale(1.03);
    background: rgba(255,255,255,0.5);
}
