@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Montserrat:wght@400;600;700&display=swap');

:root {
    --blood-red: #8a0303;
    --neon-orange: #ff6600;
    --dark-bg: #050505;
    --panel-bg: rgba(15, 15, 15, 0.95);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--dark-bg);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    display: flex; justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at top center, #1a0202 0%, #000000 100%);
    overflow-x: hidden; /* Permite scroll vertical pero esconde los murciélagos horizontales */
}

.mt-1 { margin-top: 15px; } .mt-2 { margin-top: 30px; } .mt-3 { margin-top: 50px; }
.mb-2 { margin-bottom: 20px; }
.text-center { text-align: center; }

/* Botón Flotante de Audio */
.floating-btn {
    position: fixed; bottom: 20px; right: 20px;
    width: 50px; height: 50px; border-radius: 50%;
    background-color: var(--blood-red); color: white;
    border: 2px solid #000; font-size: 1.2rem; cursor: pointer;
    z-index: 9999; box-shadow: 0 0 15px rgba(138, 3, 3, 0.6);
}

/* Pantalla de inicio */
.splash-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #000; display: flex; justify-content: center; align-items: center; z-index: 10000;
}
.splash-title { font-size: 3rem; color: var(--blood-red); margin-bottom: 30px; text-align: center; }

/* Murciélagos Animados */
.bats-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 100; overflow: hidden;
}
.bat {
    position: absolute; font-size: 2rem; left: -10vw;
    filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.8));
    animation: fly linear infinite, flap 0.3s infinite alternate;
}
.bat1 { top: 15vh; animation-duration: 9s; font-size: 2rem; }
.bat2 { top: 40vh; animation-duration: 7s; animation-delay: 2s; font-size: 1.5rem; }
.bat3 { top: 75vh; animation-duration: 11s; animation-delay: 4s; font-size: 2.8rem; }

@keyframes fly {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(60vw) translateY(5vh); }
    100% { transform: translateX(120vw) translateY(-10vh); } 
}
@keyframes flap { 0% { transform: scaleY(1); } 100% { transform: scaleY(0.4); } }

/* Contenedor Principal */
.invitation-container {
    width: 100%; max-width: 500px;
    background: var(--panel-bg);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    padding: 40px 20px; text-align: center; position: relative; z-index: 10;
}

/* Títulos y Tipografía */
.main-title { font-family: 'Creepster', cursive; font-size: 4rem; color: var(--neon-orange); text-shadow: 2px 2px 10px rgba(255, 102, 0, 0.5); line-height: 1.1; }
.section-title { font-family: 'Creepster', cursive; font-size: 2.5rem; color: var(--blood-red); margin-bottom: 25px; border-bottom: 1px dashed #333; padding-bottom: 10px; }
.subtitle { color: #aaa; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; }

/* Contador */
.bloody-countdown {
    position: relative; background: rgba(20, 0, 0, 0.8); border-top: 6px solid var(--blood-red);
    border-radius: 10px; padding: 25px 15px; box-shadow: inset 0 10px 20px rgba(138, 3, 3, 0.2);
}
.blood-drip { position: absolute; top: 0; background-color: var(--blood-red); border-radius: 0 0 10px 10px; }
.drip1 { left: 15%; width: 12px; height: 35px; } .drip2 { left: 50%; width: 8px; height: 50px; } .drip3 { left: 80%; width: 15px; height: 25px; }
.countdown-title { font-size: 1.2rem; color: var(--blood-red); margin-bottom: 15px; font-family: 'Creepster', cursive; letter-spacing: 2px; }
.timer-grid { display: flex; justify-content: space-around; }
.timer-box span { display: block; font-size: 2.2rem; font-family: 'Creepster', cursive; color: #fff; }
.timer-box p { font-size: 0.7rem; text-transform: uppercase; color: #aaa; }

/* Detalles */
.detail-item { margin-bottom: 25px; background: rgba(255,255,255,0.03); padding: 15px; border-radius: 8px; }
.detail-item h3 { font-size: 1rem; color: var(--neon-orange); margin-bottom: 8px; }
.detail-item p { font-size: 0.95rem; color: #ddd; }
.detail-item i { margin-right: 8px; color: var(--blood-red); }

/* Itinerario */
.timeline { position: relative; padding-left: 20px; border-left: 2px solid var(--blood-red); text-align: left; }
.timeline-item { position: relative; margin-bottom: 25px; padding-left: 15px; }
.timeline-item::before { content: ''; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--neon-orange); border: 2px solid #000; }
.time { display: block; font-weight: bold; color: var(--blood-red); font-size: 1.1rem; margin-bottom: 5px; }
.event-desc { color: #ccc; font-size: 0.95rem; }

/* Galería */
.image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.image-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid #333; filter: grayscale(50%); transition: 0.3s; }
.image-grid img:hover { filter: grayscale(0%); border-color: var(--neon-orange); transform: scale(1.05); }
.dress-code { color: #ff3333; font-weight: bold; text-transform: uppercase; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Formulario RSVP */
.form-dark { display: flex; flex-direction: column; gap: 15px; }
.form-dark input, .form-dark textarea { width: 100%; padding: 15px; background: rgba(0,0,0,0.5); border: 1px solid #444; color: #fff; border-radius: 5px; font-family: 'Montserrat', sans-serif; font-size: 1rem; transition: 0.3s; }
.form-dark input:focus, .form-dark textarea:focus { border-color: var(--neon-orange); outline: none; box-shadow: 0 0 10px rgba(255, 102, 0, 0.2); }

/* Botones */
.btn-blood { background-color: transparent; border: 2px solid var(--blood-red); color: var(--blood-red); padding: 15px 30px; font-size: 1rem; font-weight: bold; cursor: pointer; border-radius: 5px; transition: 0.3s; text-transform: uppercase; }
.btn-blood:hover { background-color: var(--blood-red); color: #000; box-shadow: 0 0 20px var(--blood-red); }
.btn-blood-solid { display: inline-block; width: 100%; background-color: var(--blood-red); color: #fff; padding: 15px 20px; font-size: 1.1rem; font-weight: bold; border: none; cursor: pointer; text-decoration: none; border-radius: 5px; transition: 0.3s; text-transform: uppercase; }
.btn-blood-solid:hover { background-color: #600000; box-shadow: 0 0 20px var(--blood-red); }
.btn-outline { display: inline-block; border: 1px solid #555; color: #ccc; padding: 8px 15px; border-radius: 20px; text-decoration: none; font-size: 0.85rem; transition: 0.3s; }
.btn-outline:hover { border-color: var(--neon-orange); color: var(--neon-orange); }