/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, #0f1b2e 0%, #1a2942 30%, #243a5a 50%, #1a2942 70%, #0f1b2e 100%);
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    min-height: 100vh;
    padding: 20px;
    color: #e8f1f7;
    position: relative;
    overflow-x: hidden;
}

/* Efecto de nieve cayendo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 25% 20%, white, transparent),
        radial-gradient(2px 2px at 75% 60%, white, transparent),
        radial-gradient(1px 1px at 50% 40%, white, transparent),
        radial-gradient(1px 1px at 85% 15%, white, transparent),
        radial-gradient(2px 2px at 15% 75%, white, transparent);
    background-size: 250px 250px, 350px 350px, 200px 200px, 300px 300px, 280px 280px;
    background-position: 0 0, 50px 80px, 150px 300px, 80px 120px, 200px 50px;
    animation: snowfall 25s linear infinite;
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}

@keyframes snowfall {
    0% { background-position: 0 0, 50px 80px, 150px 300px, 80px 120px, 200px 50px; }
    100% { background-position: 0 500px, 50px 580px, 150px 800px, 80px 620px, 200px 550px; }
}

/* Decoración de copos en esquinas */
body::after {
    content: '❄️';
    position: fixed;
    bottom: 8%;
    left: 5%;
    font-size: 2.5rem;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    animation: rotate-slow 15s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== NAVEGACIÓN - BOTÓN VOLVER ========== */
.nav-volver {
    max-width: 900px;
    margin: 0 auto 25px;
    position: relative;
    z-index: 10;
}

.btn-volver {
    display: inline-block;
    background: linear-gradient(135deg, rgba(176, 196, 222, 0.9), rgba(200, 220, 240, 0.9));
    color: #1a2942;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(176, 196, 222, 0.3), 0 0 15px rgba(255, 255, 255, 0.1);
    font-family: 'Arial', sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-volver:hover {
    background: linear-gradient(135deg, rgba(200, 220, 240, 0.95), rgba(230, 240, 250, 0.95));
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(176, 196, 222, 0.5), 0 0 25px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ========== ENCABEZADO ========== */
.header-principal {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(70, 130, 180, 0.4), rgba(100, 149, 237, 0.35));
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 30px rgba(176, 196, 222, 0.2);
    border: 2px solid rgba(176, 196, 222, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.header-principal::before {
    content: '✨';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 2rem;
    animation: sparkle-left 3s ease-in-out infinite;
}

.header-principal::after {
    content: '✨';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    animation: sparkle-right 3s ease-in-out infinite 1.5s;
}

@keyframes sparkle-left {
    0%, 100% { opacity: 0.4; transform: rotate(0deg) scale(1); }
    50% { opacity: 1; transform: rotate(-20deg) scale(1.2); }
}

@keyframes sparkle-right {
    0%, 100% { opacity: 0.4; transform: rotate(0deg) scale(1); }
    50% { opacity: 1; transform: rotate(20deg) scale(1.2); }
}

.titulo-principal {
    color: #e8f4f8;
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(176, 196, 222, 0.3);
}

.descripcion-header {
    color: #d4e6f1;
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ========== CONTENEDOR DE ORACIONES ========== */
.contenedor-oraciones {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px;
    position: relative;
    z-index: 10;
}

/* ========== TARJETAS DE ORACIÓN ========== */
.oracion-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95));
    border-radius: 10px;
    padding: 35px 40px;
    margin-bottom: 35px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 20px rgba(176, 196, 222, 0.15);
    border-left: 6px solid #4682b4;
    transition: all 0.3s ease;
    position: relative;
}

.oracion-card::before {
    content: '❄️';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    opacity: 0.15;
}

.oracion-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 30px rgba(176, 196, 222, 0.25);
    transform: translateY(-3px);
    border-left-color: #6495ed;
}

.oracion-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(176, 196, 222, 0.3);
}

.numero-oracion {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(70, 130, 180, 0.3));
}

.oracion-titulo-grupo {
    flex: 1;
}

.oracion-titulo {
    color: #243a5a;
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.oracion-autor {
    color: #4682b4;
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
}

.oracion-texto {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.9;
    text-align: justify;
}

.oracion-texto p {
    margin-bottom: 15px;
}

.oracion-texto p:last-child {
    margin-bottom: 0;
}

.nota-historica {
    color: #4682b4;
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(176, 196, 222, 0.15), rgba(200, 220, 240, 0.1));
    border-radius: 6px;
    border-left: 3px solid #87ceeb;
}

/* ========== PIE DE PÁGINA ========== */
.footer {
    text-align: center;
    padding: 25px 20px;
    margin-top: 60px;
    background: linear-gradient(135deg, rgba(70, 130, 180, 0.4), rgba(100, 149, 237, 0.35));
    border-radius: 10px;
    color: #d4e6f1;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(176, 196, 222, 0.15);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid rgba(176, 196, 222, 0.2);
    position: relative;
    z-index: 10;
}

.footer::before {
    content: '⭐';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: star-glow 2s ease-in-out infinite;
}

@keyframes star-glow {
    0%, 100% { opacity: 0.5; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.5); }
}

.footer p {
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    body::after {
        font-size: 2rem;
    }

    .header-principal {
        padding: 35px 25px;
        margin-bottom: 35px;
    }

    .header-principal::before,
    .header-principal::after {
        font-size: 1.5rem;
        top: 15px;
    }

    .titulo-principal {
        font-size: 2rem;
    }

    .descripcion-header {
        font-size: 1rem;
    }

    .oracion-card {
        padding: 25px 20px;
        margin-bottom: 25px;
    }

    .oracion-card::before {
        font-size: 1.2rem;
        top: 12px;
        right: 15px;
    }

    .oracion-header {
        flex-direction: column;
        gap: 10px;
        padding-bottom: 15px;
    }

    .numero-oracion {
        font-size: 1.8rem;
    }

    .oracion-titulo {
        font-size: 1.3rem;
    }

    .oracion-autor {
        font-size: 0.95rem;
    }

    .oracion-texto {
        font-size: 1.05rem;
    }

    .nota-historica {
        font-size: 0.9rem;
        padding: 12px 15px;
    }

    .footer::before {
        font-size: 1.5rem;
        top: -18px;
    }
}

@media (max-width: 480px) {
    .titulo-principal {
        font-size: 1.7rem;
    }

    .descripcion-header {
        font-size: 0.95rem;
    }

    .oracion-card {
        padding: 20px 15px;
    }

    .oracion-titulo {
        font-size: 1.2rem;
    }

    .oracion-texto {
        font-size: 1rem;
    }
}