/* ===================================================
TUFIESTA DIGITAL - ESTILOS GRADO (GOLD & NAVY CARDS)
=================================================== */

/* 1. VARIABLES Y RESET */
:root {
    /* PALETA DE COLORES GRADO */
    --color-primary: #d4af37; /* Dorado Metálico */
    --color-primary-dark: #aa8c2c; /* Dorado Oscuro */
    --color-secondary: #001f3f; /* Azul Navy Oscuro */
    --color-accent: #000000; /* Negro Elegante */
    --color-text-dark: #1a1a1a; /* Casi negro para texto */
    --color-text-light: #f4f4f4; /* Blanco humo */
    --color-white: #ffffff;
    
    --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: #001f3f; /* Fondo de respaldo */
    background-image: url('../img/fondo.png'); 
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    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; }
.mt-2 { margin-top: 20px; }

/* Resaltado de texto */
.text-highlight {
    color: var(--color-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    background: linear-gradient(to right, #001f3f, #000);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block; /* Para que el padding funcione bien */
}

/* 3. ESTRUCTURA Y CONTENEDOR */
.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 15px;
    /* IMPORTANTE: Fondo transparente para que las tarjetas floten */
    background-color: transparent; 
    box-shadow: none;
}

/* 4. ESTILO DE TARJETAS (SECCIONES) */
.section {
    background-color: #ffffff; /* Tarjeta blanca */
    border: 2px solid var(--color-primary); /* Borde Dorado */
    border-radius: 20px; /* Esquinas Redondeadas */
    padding: 40px 25px; /* Espacio interno */
    margin: 40px 0; /* Separación vertical entre tarjetas */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6); /* Sombra profunda */
    position: relative;
    overflow: hidden; /* Para contener elementos hijos */
}

/* Decoración interna opcional para las tarjetas */
.section::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px solid rgba(212, 175, 55, 0.3); /* Borde interno sutil */
    border-radius: 15px;
    pointer-events: none;
}

.section-title {
    font-size: 1.8em;
    color: var(--color-secondary);
    margin-bottom: 25px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 5px;
}

.section-subtitle {
    font-size: 1em;
    color: #444;
    margin-bottom: 20px;
}

/* 5. HERO / ENCABEZADO (No es una tarjeta, ocupa todo el ancho) */
.hero {
    position: relative;
    height: 65vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: -20px; /* Superposición ligera con el contenido */
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0, 31, 63, 0.6) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    border: 3px double var(--color-primary); /* Marco doble elegante */
    background: rgba(0, 31, 63, 0.7); /* Fondo semitransparente */
    border-radius: 10px;
    max-width: 90%;
}

.hero-content h1 {
    font-size: 3.5em;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: var(--color-primary);
}

.hero-content h2 {
    font-size: 1.5em;
    margin-top: 10px;
    margin-bottom: 15px;
    color: var(--color-white);
    letter-spacing: 1px;
}

.date-text {
    font-size: 1.2em;
    color: var(--color-primary);
    display: inline-block;
    padding: 5px 15px;
    border-top: 1px solid var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    margin-top: 10px;
}

/* 6. CONTADOR */
.countdown-box {
    margin-top: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--color-primary);
}

#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

#countdown-timer div {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-primary);
}

#countdown-timer span {
    display: block;
    font-size: 0.4em;
    color: #fff;
    text-transform: uppercase;
}

/* 7. ELEMENTOS DECORATIVOS (Entre tarjetas) */
.img-decorativa-container {
    text-align: center;
    margin: -10px auto; /* Superposición ligera */
    position: relative;
    z-index: 10;
}

.img-decorativa {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5)); /* Sombra a la imagen PNG */
}

.img-final {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

/* 8. BOTONES */
.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background-color: white;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-full { width: 100%; display: block; margin: 15px 0; }

.btn-mapa {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
}

/* 9. MODALES */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 31, 63, 0.95);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border: 4px double var(--color-primary);
    width: 90%;
    max-width: 450px;
    border-radius: 10px;
    text-align: center;
}

/* Input Styles */
input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f4f4f4;
}
input:focus { border-color: var(--color-primary); outline: none; }

/* 10. LISTAS INTERNAS (Playlist, Mensajes) */
.playlist-item, .dedicatoria-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid var(--color-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}
.galeria-item {
    height: 100px;
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--color-primary);
}

footer {
    padding: 20px;
    background-color: rgba(0, 31, 63, 0.9);
    color: var(--color-primary);
    text-align: center;
    font-size: 0.9em;
    border-top: 2px solid var(--color-primary);
}

/* Ajuste Collage */
.collage-container {
    text-align: center;
    margin: 0;
    padding: 0;
}
.collage-image {
    width: 100%;
    border-radius: 15px;
    /* La imagen collage llena la tarjeta */
}