/* ============================================================
   LLAMADO RELIGIOSO - Hoja de Estilos Principal
   ============================================================ */

/* ── Pantalla de Celebración de 16 Años ── */
#celebration {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.82);
    z-index: 9999;
    color: white;
    flex-direction: column;
    font-size: 3em;
    text-align: center;
}
#confettispecial {
    position: absolute;
    width: 100%; height: 100%;
    pointer-events: none;
}
.confettispecial-piece {
    position: absolute;
    width: 10px; height: 10px;
    animation: celebrationFall linear infinite;
}
@keyframes celebrationFall {
    0%   { transform: translateY(0);     opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}
#timer {
    font-size: 0.5em;
    margin-top: 20px;
}

/* ── Formulario de correo (oculto) ── */
#correoForm { display: none; }

/* ── Estilos generales ── */
a { text-decoration: none; color: #fff; }
a:hover { color: #fff; }

body { background: #27211E; }

/* ── Barra de navegación ── */
#header-nav {
    position: fixed;
    top: 0;
    display: block;
    width: 100%;
    background: black;
    transition: transform 0.7s 0.3s ease;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0px, 0px, 0px);
    z-index: 999;
}
#header-nav.hide-nav-bar {
    transform: translate(0, -100%);
    -webkit-backface-visibility: hidden;
}
a.menu-link {
    float: right;
    display: block;
    padding: 1em;
}
nav[role=navigation] {
    clear: right;
    transition: all 0.3s ease-out;
}
.js nav[role=navigation] {
    overflow: hidden;
    max-height: 0;
}
nav[role=navigation].active { max-height: 50em; }
nav[role=navigation] ul {
    margin: 0;
    padding: 0.7em 0;
    float: left;
}
nav[role=navigation] li a {
    display: block;
    padding: 0.8em;
    font-size: 1.1em;
}

/* ── Botón hamburguesa ── */
.menu-link { height: 30px; width: 33px; cursor: pointer; }
.bar1, .bar2, .bar3 {
    margin-top: 3px;
    background: #999;
    width: 33px; height: 4px;
    position: absolute;
    transform: rotate(-180deg);
}
.bar2 { margin-top: 13px; }
.bar3 { margin-top: 23px; transform: rotate(180deg); }

/* ── Marca / Logo ── */
.brand { float: left; margin-left: 1em; padding: 1em; }
.brand h1 { margin: 0; font-size: 1.5em; }

/* ── Contenedor ── */
.container {
    max-width: 100em;
    margin: 0 auto;
    background-color: #27211E;
}

/* ── Secciones ── */
section { margin-top: 4em; padding: 1em; color: #5c5c5c; }
section hr { border-bottom: none; color: #f2f2f2; }
.info { text-align: center; }
.resolucion { width: 99%; text-align: center; }

/* ── Submenú ── */
.submenu { display: none; }
.submenu.show { display: block; }

/* ══════════════════════════════════════════
   EFECTOS DE FONDO SEGÚN MES
   ══════════════════════════════════════════ */

/* Burbujas - Marzo */
.bubbles {
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    width: 100%; height: 100%;
    z-index: -1;
}
.bubble {
    position: absolute;
    background: #00f;
    width: 20px; height: 20px;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0%   { transform: translateY(100vh); }
    100% { transform: translateY(-100vh); }
}

/* Hielo cayendo - Diciembre */
.icechop {
    position: absolute;
    width: 10px; height: 10px;
    background-color: #fff;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: icefall linear infinite;
    pointer-events: none;
}
@keyframes icefall {
    0%   { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* Nieve - Enero */
.snowflakes {
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    width: 100%; height: 100%;
    z-index: -1;
}
.snowflake {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    animation: snowFall linear infinite;
}
@keyframes snowFall {
    to { transform: translateY(100vh); }
}

/* Chispas de fuego - Abril, Junio, Septiembre */
.sparks {
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    width: 100%; height: 100%;
    z-index: -1;
}
.spark {
    position: absolute;
    background: #ff6600;
    width: 4px; height: 4px;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    animation: flicker linear infinite;
}
@keyframes flicker {
    0%, 100% { opacity: 0.7; }
    50%       { opacity: 0.2; }
}

/* Confeti - Febrero (rojo), Julio (amarillo), Noviembre (verde) */
.confetti-container {
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    width: 100%; height: 100%;
    z-index: -1;
}
.confetti {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    pointer-events: none;
    animation: confettiFall 5s ease-out infinite;
}
@keyframes confettiFall {
    0%   { transform: translateY(0) rotate(0); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

/* Estrellas parpadeantes - Mayo (blanco), Agosto (azul), Octubre (rojo) */
.stars {
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    width: 100%; height: 100%;
    z-index: -1;
}
.star {
    position: absolute;
    width: 2px; height: 2px;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    animation: twinkle linear infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.7; }
    50%       { opacity: 0.2; }
}

/* ══════════════════════════════════════════
   SECCIÓN PRINCIPAL - CONTENIDO CENTRAL
   ══════════════════════════════════════════ */

/* Imagen orisha (logo principal) */
#Imagen1 {
    justify-content: center;
    width: 80%;
    max-width: 400px;
    height: auto;
    position: absolute;
    top: 95%; left: 50%;
    transform: translate(-50%, -50%);
}

/* Segunda imagen (se intercala con la del mes) */
.segunda-imagen {
    align-content: center;
    width: 350px; height: 350px;
    position: absolute;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    top: 66%; left: 50%;
    transform: translate(-50%, -50%);
}

/* Mensaje interactivo del mes */
#mensaje {
    text-align: center;
    width: auto;
    font-size: 25px;
    font-family: Algerian, serif;
    color: blue;
    margin-bottom: 20px;
    position: absolute;
    top: 115%; left: 50%;
    transform: translate(-50%, -50%);
}

/* Contenedor de imagen del mes */
#contenedor-imagen {
    align-content: center;
    max-height: 249px;
    height: auto;
    position: absolute;
    top: 150%; left: 50%;
    transform: translate(-50%, -50%);
}
#contenedor-imagen img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

/* ── Calendario / Formularios de info ── */
#examForm1 {
    width: 80%; height: 15%;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
    position: absolute;
    top: 70%; left: 50%;
    transform: translate(-50%, -50%);
}
#examForm2 {
    width: 80%; height: 17%;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
#examForm3 {
    width: 80%; height: 16%;
    padding: 15px;
    margin: 0 auto;
    position: absolute;
    top: 25%; left: 50%;
    transform: translate(-50%, -50%);
}
#examForm4 {
    width: 80%; height: 17%;
    padding: 20px;
    margin: 0 auto;
    position: absolute;
    top: 197%; left: 50%;
    transform: translate(-50%, -50%);
}

#examForm3 h1 { font-size: 30px; color: #fff; text-align: center; }
#examForm3 p  { font-size: 20px; color: #fff; text-align: center; }

#examForm1 h1, #examForm2 h1, #examForm4 h1 {
    font-size: 20px; color: blue; text-align: center;
    margin-top: 0; margin-bottom: 20px;
}
#examForm1 p, #examForm2 p, #examForm4 p {
    font-size: 20px; color: red; text-align: center;
}
#examForm1 p { margin-top: 10px; margin-bottom: 1px; }
#examForm2 p { margin-top: 0; }

/* ── Contador de aniversario ── */
#contadorLlamadoReligioso {
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: #fff;
    text-align: center;
}
#AgeCounterLlamadoReligioso {
    width: 70%; height: 16%;
    padding: 15px;
    margin: 0 auto;
    position: absolute;
    top: 225%; left: 50%;
    transform: translate(-50%, -50%);
}
#AgeCounterLlamadoReligioso h1 { font-size: 30px; color: #fff; text-align: center; }
#AgeCounterLlamadoReligioso p  { font-size: 20px; color: #fff; text-align: center; }

/* ══════════════════════════════════════════
   RESPONSIVE - MÓVIL (max 767px)
   ══════════════════════════════════════════ */
@media (max-width: 767px) {
    #AgeCounterLlamadoReligioso h1 { font-size: 20px; }
    #AgeCounterLlamadoReligioso p  { font-size: 14px; }
    #AgeCounterLlamadoReligioso    { top: 230%; }
    #contenedor-imagen { width: 80%; }
}

/* ══════════════════════════════════════════
   RESPONSIVE - ESCRITORIO (min 48.25em)
   ══════════════════════════════════════════ */
@media screen and (min-width: 48.25em) {
    a.menu-link { display: none; }
    .js nav[role=navigation] { max-height: none; }
    nav[role=navigation] ul {
        margin: 0 0 0 -0.25em;
        border: 0;
        float: right;
    }
    nav[role=navigation] li { display: inline-block; margin: 0 0.25em; }
    nav[role=navigation] li a { border: 0; }
}