/* ===================================================
TUFIESTA DIGITAL - ESTILOS XV AÑOS (FLORAL & ELEGANT)
Tema: Violeta -> Cereza -> Rosa
=================================================== */

/* 1. VARIABLES Y RESET */
:root {
    /* Paleta de Colores Solicitada */
    --color-violet-dark: #4a1e58;  /* Violeta oscuro */
    --color-cherry: #d81b60;       /* Rojo Cereza */
    --color-pink-soft: #fce4ec;    /* Rosa muy suave para fondos */
    --color-pink-accent: #ff80ab;  /* Rosa vibrante para detalles */
    
    /* Degradado Principal */
    --gradient-main: linear-gradient(135deg, #4a1e58 0%, #d81b60 60%, #ff80ab 100%);
    
    /* Colores Neutros */
    --color-white: #ffffff;
    --color-text-dark: #3e2723;    /* Marrón muy oscuro (más elegante que negro puro) */
    --color-text-muted: #6d4c41;

    /* Tipografías */
    --font-poppins: 'Poppins', sans-serif;
    --font-great-vibes: 'Great Vibes', cursive;
    
    /* Efectos */
    --shadow-card: 0 10px 30px rgba(74, 30, 88, 0.15);
    --radius-main: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-poppins);
    color: var(--color-text-dark);
    line-height: 1.6;
    /* Fondo con un degradado suave general */
    background: linear-gradient(to bottom, #fdfbf7, #fce4ec); 
    min-height: 100vh;
}

/* Imagen de fondo floral decorativa (Opcional: puedes agregar una imagen real aquí) */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('assets/img/fondo.png'); /* Si tienes una textura sutil */
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* 2. TIPOGRAFÍA */
.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; }

/* 3. ESTRUCTURA */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Tarjetas para las secciones (Efecto Tarjeta Elegante) */
.section {
    padding: 50px 25px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9); /* Blanco semitransparente */
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* Decoración floral sutil en las esquinas de las secciones con CSS */
.section::after {
    content: '🌸';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 3rem;
    opacity: 0.1;
    transform: rotate(20deg);
}

.section-title {
    font-size: 2.2em;
    /* Texto con degradado */
    background: -webkit-linear-gradient(45deg, var(--color-violet-dark), var(--color-cherry));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-family: var(--font-great-vibes);
}

.section-subtitle {
    font-size: 0.95em;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    font-style: italic;
}

/* 4. HERO / ENCABEZADO */
.hero {
    position: relative;
    height: 85vh; 
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    margin-bottom: -40px; /* Superposición con el contenido */
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%); /* Desvanecido inferior suave */
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Degradado oscuro pero con los tonos del tema */
    background: linear-gradient(180deg, rgba(74, 30, 88, 0.4) 0%, rgba(216, 27, 96, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-main);
    backdrop-filter: blur(3px);
    background: rgba(0,0,0,0.2);
    margin: 0 15px;
}

.hero-content h1 {
    font-size: 4.5em;
    line-height: 0.8;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 1.5em;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.date-text {
    margin-top: 15px;
    font-size: 1.2em;
    background: var(--color-white);
    color: var(--color-cherry);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 5. CONTADOR */
.countdown-box {
    margin-top: 25px;
    color: var(--color-white);
}

#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

#countdown-timer div {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
    width: 60px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.4);
}

#countdown-timer div {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1;
}

#countdown-timer span {
    font-size: 0.4em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* 6. INVITACIÓN PERSONALIZADA */
.invitado-target {
    font-size: 1.4em;
    color: var(--color-cherry);
    padding: 15px 25px;
    background: #fff0f5; /* Fondo rosa muy pálido */
    border: 1px dashed var(--color-cherry);
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}

.mensaje-bienvenida {
    font-size: 1.1em;
    color: #555;
    padding: 0 10px;
}

.familia-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background-color: var(--color-white);
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.03); /* Sombra interna sutil */
}

.rol {
    color: var(--color-violet-dark);
    font-family: var(--font-great-vibes);
    font-size: 1.8em;
    margin-bottom: 5px;
}

.hashtag {
    color: var(--color-pink-accent);
    font-weight: bold;
    font-size: 1.3em;
    margin-top: 20px;
    letter-spacing: 1px;
}

/* 7. BOTONES */
.btn-primary {
    background: var(--gradient-main);
    color: var(--color-white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 5px 15px rgba(216, 27, 96, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(216, 27, 96, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--color-cherry);
    border: 2px solid var(--color-cherry);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--color-cherry);
    color: var(--color-white);
}

.btn-full { width: 100%; margin-top: 15px; }

.btn-mapa {
    background: #25d366;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

/* 8. UBICACIÓN E ICONOS */
.ubicacion-info p {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ubicacion-info i {
    color: var(--color-cherry);
    font-size: 1.2em;
    background: #fce4ec;
    padding: 10px;
    border-radius: 50%;
}

.dress-code {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dotted var(--color-cherry);
    color: var(--color-violet-dark);
}

/* 9. MODALES */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(74, 30, 88, 0.6); /* Fondo violeta oscuro transparente */
    backdrop-filter: blur(5px); /* Efecto borroso al fondo */
    justify-content: center;
    align-items: center;
}

/* Modal de Acceso (Estilo Específico) */
.modal-acceso {
    background: url('assets/Gallery_eventos/Laura_Estefania_Sanchez_Vargas/encabezado.png') no-repeat center center;
    background-size: cover;
    position: fixed;
    width: 100%; height: 100%;
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Capa oscura sobre la imagen del modal de acceso */
.modal-acceso::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(74, 30, 88, 0.85); /* Violeta muy fuerte */
}

.acceso-content, .modal-content {
    background: var(--color-white);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.acceso-content h1 {
    color: var(--color-cherry);
    font-size: 3em;
    margin-bottom: 0;
}

.modal-content input, .modal-content select, .modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    font-family: var(--font-poppins);
}

.modal-content input:focus {
    outline: none;
    border-color: var(--color-cherry);
    box-shadow: 0 0 5px rgba(216, 27, 96, 0.2);
}

.close {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 30px;
    color: var(--color-cherry);
    cursor: pointer;
}

/* 10. LISTAS (Dedicatorias y Playlist) */
.playlist-item, .dedicatoria-item {
    background: #fff;
    border-left: 4px solid var(--color-cherry); /* Borde de acento */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.like-button {
    color: #e0e0e0;
    transition: color 0.3s;
}
.like-button:hover, .like-button.active {
    color: var(--color-cherry);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
.galeria-item {
    aspect-ratio: 1;
    background-color: #eee;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

/* 11. COLLAGE & FOOTER */
.collage-container {
    padding: 10px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: rotate(-2deg); /* Un toque divertido */
    margin: 40px auto;
}

footer {
    padding: 30px;
    text-align: center;
    background: var(--color-violet-dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.9em;
}