/* ===================================================
TUFIESTA DIGITAL - ESTILOS WINTER BLUE (INVIERNO)
=================================================== */

/* 1. VARIABLES Y RESET */
:root {
    /* PALETA DE COLORES INVIERNO */
    --color-primary: #002b59; /* Azul Oscuro Noche */
    --color-secondary: #00ced1; /* Aguamarina / Cian */
    --color-accent: #b0e0e6; /* Azul Hielo (Powder Blue) */
    --color-background-light: #f0f8ff; /* Alice Blue (Muy claro) */
    --color-white: #ffffff;
    --color-text-dark: #2c3e50; /* Gris azulado oscuro */
    --color-silver: #bdc3c7;

    --font-poppins: 'Poppins', sans-serif;
    --font-great-vibes: 'Great Vibes', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-poppins);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-background-light);
    background-image: radial-gradient(circle at 50% 50%, #ffffff 0%, #e6f7ff 100%); /* Sutil degradado de nieve */
    min-height: 100vh;
}

/* 2. TIPOGRAFÍA Y CLASES DE UTILIDAD */
.great-vibes {
    font-family: var(--font-great-vibes);
    font-weight: 400;
}
.poppins-bold { font-weight: 700; }
.poppins-regular { font-weight: 400; }

.text-center { text-align: center; }
.bg-light { background-color: rgba(255, 255, 255, 0.6); } /* Más transparente para efecto hielo */
.mt-2 { margin-top: 20px; }

/* 3. ESTRUCTURA Y CONTENEDOR */
.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(0, 43, 89, 0.1); /* Divisor sutil azul */
}

.section-title {
    font-size: 1.8em;
    color: var(--color-primary);
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(176, 224, 230, 0.5); /* Sombra hielo */
}

.section-subtitle {
    font-size: 0.9em;
    color: #546e7a;
    margin-bottom: 20px;
}

/* 4. HERO / ENCABEZADO */
.hero {
    position: relative;
    height: 75vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente Invernale: Azul oscuro transparente a negro */
    background: linear-gradient(180deg, rgba(0, 43, 89, 0.4) 0%, rgba(0, 206, 209, 0.2) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4em;
    line-height: 0.9;
    text-shadow: 0 0 10px rgba(0, 206, 209, 0.8); /* Resplandor Aguamarina */
}

.hero-content h2 {
    font-size: 1.8em;
    margin-top: 5px;
    margin-bottom: 15px;
    color: var(--color-accent);
}

.date-text {
    font-size: 1.1em;
    background: rgba(0, 43, 89, 0.6);
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid var(--color-secondary);
}

/* 5. CONTADOR */
.countdown-box {
    margin-top: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 206, 209, 0.3); /* Glow invernal */
    text-align: center;
    border: 1px solid var(--color-accent);
}

#countdown-timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    margin-top: 15px;
    font-size: 1em; 
}

#countdown-timer div {
    color: var(--color-primary);
    padding: 0;
    text-align: center;
    font-weight: 600;
    line-height: 1.1;
    font-size: 1.4em;
    margin-top: 0;
}

#countdown-timer span {
    display: block;
    font-size: 0.5em;
    font-weight: 500; 
    color: var(--color-secondary); /* Color aguamarina para etiquetas */
    margin-top: 2px;
    text-transform: uppercase;
}

/* 6. SECCIÓN DE INVITACIÓN */
.invitado-target {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding: 10px 20px;
    border: 2px solid var(--color-secondary);
    background-color: rgba(0, 206, 209, 0.05);
    border-radius: 50px;
    display: inline-block;
}

.mensaje-bienvenida {
    font-style: italic;
    font-size: 1.1em;
    margin: 25px 0;
    color: #444;
}

.familia-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background-color: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 43, 89, 0.1);
    border: 1px solid var(--color-accent);
}

.familia-grid > div {
    flex: 1;
    min-width: 45%;
}

.rol {
    color: var(--color-secondary); /* Aguamarina */
    font-size: 1.1em;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nombre-familiar {
    font-size: 0.95em;
    margin-bottom: 3px;
    font-weight: 600;
    color: var(--color-primary);
}

.hashtag {
    color: var(--color-primary);
    font-size: 1.2em;
    margin-top: 20px;
    font-weight: bold;
}

/* 7. BOTONES Y FORMULARIOS GENERALES */
.btn-primary, .btn-secondary, .btn-mapa {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-image: linear-gradient(to right, var(--color-primary) 0%, #004080 100%);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 43, 89, 0.3);
}
.btn-primary:hover {
    background-image: linear-gradient(to right, #004080 0%, var(--color-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 206, 209, 0.4);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-full {
    width: 90%;
    margin: 15px auto;
}

.btn-mapa {
    background-color: var(--color-secondary); /* Aguamarina */
    color: var(--color-primary);
    margin-top: 15px;
}
.btn-mapa:hover {
    background-color: #00a8a8;
    color: white;
}

/* 8. UBICACIÓN Y DRESS CODE */
.ubicacion-info p {
    margin: 10px 0;
    font-size: 1em;
}

.ubicacion-info i {
    color: var(--color-secondary);
    margin-right: 8px;
    font-size: 1.2em;
}

.dress-code {
    margin-top: 20px;
    padding: 10px 0;
    font-size: 1.1em;
    color: var(--color-primary);
    border-top: 1px solid var(--color-accent);
    background-color: rgba(0, 206, 209, 0.1);
    border-radius: 8px;
}

/* 9. MODALES */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 43, 89, 0.8); /* Fondo modal azul oscuro */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Efecto vidrio */
}

.modal-content {
    background-color: var(--color-white);
    margin: 10% auto;
    padding: 30px 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(0, 206, 209, 0.3);
    position: relative;
    animation: fadeIn 0.5s;
    border: 1px solid var(--color-accent);
}

/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content h4 {
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4em;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
    margin-top: 10px;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--color-primary);
}

.modal-content input, .modal-content select, .modal-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #b0e0e6;
    border-radius: 8px;
    font-family: var(--font-poppins);
    font-size: 1em;
    background-color: #fafdff;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 5px rgba(0, 206, 209, 0.3);
}

.close {
    color: #888;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}
.close:hover {
    color: var(--color-secondary);
    cursor: pointer;
}

/* Modal de Acceso Específico */
.acceso-content {
    text-align: center;
}
.acceso-content h1 {
    color: var(--color-primary);
    margin-bottom: 10px;
}
.acceso-content p {
    margin-bottom: 20px;
    color: #666;
}

/* 10. ESTILOS ESPECÍFICOS DE FUNCIONALIDADES */
.loading-text {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 20px;
}

.playlist-item, .dedicatoria-item {
    background-color: var(--color-white);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 43, 89, 0.05);
    border-left: 4px solid var(--color-secondary); /* Acento de color */
}

.like-button {
    color: var(--color-secondary); /* Corazones aguamarina */
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;
    transition: transform 0.2s;
}
.like-button:hover {
    transform: scale(1.2);
    color: var(--color-primary);
}

.dedicatoria-autor {
    font-weight: 600;
    margin-top: 5px;
    display: block;
    color: var(--color-primary);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.galeria-item {
    width: 100%;
    height: 100px;
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--color-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.status-message {
    margin-top: 10px;
    font-weight: 600;
}

/* FOOTER */
footer {
    padding: 20px 15px;
    text-align: center;
    font-size: 0.8em;
    color: var(--color-primary);
    border-top: 1px solid #eee;
    background-color: #e6f7ff;
}

.collage-container {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    max-width: 600px; 
    background-color: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 43, 89, 0.1);
    border: 4px solid var(--color-accent); /* Marco helado */
}

.collage-image {
    max-width: 100%; 
    height: auto;   
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}