/* ===================================================
TUFIESTA DIGITAL - ESTILOS PRINCESS DREAM
=================================================== */

/* 1. VARIABLES Y RESET */
:root {
    --color-primary: #880e4f; 
    --color-secondary: #d4af37; 
    --color-accent: #f8bbd0; 
    --color-background-light: #fff0f5; 
    --color-white: #ffffff;
    --color-text-dark: #4a2c2a; 
    --color-gold-light: #f9e79f; 

    --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%, #ffeef8 100%);
    min-height: 100vh;
}

/* 2. TIPOGRAFÍA */
.great-vibes { font-family: var(--font-great-vibes); font-weight: 350; }
.poppins-bold { font-weight: 700; }
.poppins-regular { font-weight: 400; }
.text-center { text-align: center; }
.text-gold { color: var(--color-secondary); }

/* 3. ESTRUCTURA */
.container { max-width: 650px; margin: 0 auto; padding: 0 15px; }
.section { padding: 50px 0; position: relative; border-bottom: 1px dashed rgba(212, 175, 55, 0.3); }

.section-title {
    font-size: 2.5em; color: var(--color-primary); margin-bottom: 25px;
    font-family: var(--font-great-vibes); text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.4); 
}
.section-title::before {
    content: '👑'; display: block; font-size: 0.6em; margin-bottom: 5px;
    animation: floatCrown 3s ease-in-out infinite;
}
@keyframes floatCrown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* 4. TARJETAS & CARDS */
.info-card {
    background: white; padding: 30px; border-radius: 25px; margin: 25px 0;
    text-align: center; border: 2px solid #fff0f5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; overflow: hidden;
    transition: all 0.3s ease;
}
.info-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: var(--color-secondary);
}
.info-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(136, 14, 79, 0.15); border-color: var(--color-accent); }
.info-card i { font-size: 2.5em; color: var(--color-secondary); margin-bottom: 15px; display: block; }

/* NUEVO: SECTION CARD (Para la Galería) */
.section-card {
    background-color: white; padding: 30px; border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-bottom: 30px;
    border: 1px solid var(--color-accent);
}

/* 5. HERO */
.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);
    border-bottom: 5px solid var(--color-secondary);
}
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(136, 14, 79, 0.3) 0%, rgba(212, 175, 55, 0.2) 60%, rgba(74, 44, 42, 0.6) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 20px; }
.hero-content h1 { font-size: 4.5em; line-height: 0.9; color: #fff; text-shadow: 0 0 15px rgba(233, 30, 99, 0.8); }
.hero-content h2 { font-size: 2em; margin-top: 10px; margin-bottom: 15px; color: var(--color-gold-light); text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.date-text {
    font-size: 1.2em; background: rgba(255, 255, 255, 0.9); color: var(--color-primary);
    display: inline-block; padding: 8px 15px; border-radius: 25px; border: 2px solid var(--color-secondary);
    font-weight: bold;
}

/* 6. CONTADOR */
.countdown-box { margin-top: 30px; background-color: transparent; text-align: center; }
#countdown-timer { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 15px; }
.countdown-item {
    background: rgba(255, 255, 255, 0.9); border: 2px solid var(--color-secondary);
    border-radius: 10px; padding: 10px 15px; min-width: 70px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    display: flex; flex-direction: column; align-items: center; transition: transform 0.3s ease;
}
.countdown-item:hover { transform: translateY(-5px); border-color: var(--color-primary); }
.countdown-number { color: var(--color-primary); font-weight: 700; line-height: 1; font-size: 1.8em; }
.countdown-label { font-size: 0.7em; font-weight: 600; color: #5d4037; margin-top: 5px; text-transform: uppercase; }

/* 7. INVITACIÓN */
.invitado-target {
    font-size: 1.4em; color: var(--color-primary); margin-bottom: 20px;
    padding: 10px 30px; border: 2px solid var(--color-secondary);
    background-color: #fff; border-radius: 10px; display: inline-block;
    box-shadow: 3px 3px 0px var(--color-accent);
}
.mensaje-bienvenida {
    font-style: italic; color: #555; margin: 25px 0; font-size: 1.1em;
    padding: 20px; background-color: #fffaf0; border-radius: 15px;
    border: 1px solid var(--color-accent); position: relative; font-family: var(--font-great-vibes);
}
.mensaje-bienvenida::before {
    content: '“'; font-family: serif; font-size: 3em; color: var(--color-secondary);
    position: absolute; top: -20px; left: 10px;
}
.familia-grid {
    display: flex; justify-content: space-around; gap: 20px; margin: 30px 0;
    padding: 25px; background-color: var(--color-white); border-radius: 20px;
    box-shadow: 0 10px 20px rgba(136, 14, 79, 0.05); border: 1px solid var(--color-accent);
}
.rol { color: var(--color-secondary); font-size: 1.1em; text-transform: uppercase; font-weight: bold; }
.nombre-familiar { font-size: 1.1em; font-weight: 600; color: var(--color-primary); }

/* 8. BOTONES */
.btn-primary, .btn-secondary, .btn-mapa, .btn-gold {
    display: inline-block; padding: 12px 30px; border-radius: 50px;
    text-decoration: none; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
    border: none; text-transform: uppercase; font-size: 0.9em;
}
.btn-primary {
    background-image: linear-gradient(to right, #e91e63 0%, #d81b60 50%, #d4af37 100%);
    background-size: 200% auto; color: var(--color-white);
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
}
.btn-primary:hover { background-position: right center; transform: translateY(-2px); }
.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); color: #fff; margin-top: 10px;}

/* BOTONES GOLD (NUEVOS) */
.btn-gold {
    background: var(--color-secondary); color: white; border: 2px solid var(--color-secondary);
    padding: 10px 25px; font-weight: bold; letter-spacing: 1px;
}
.btn-gold:hover { background: white; color: var(--color-secondary); }
.btn-outline { background: transparent; color: var(--color-secondary); border: 2px solid var(--color-secondary); }
.btn-outline:hover { background: var(--color-secondary); color: white; }

/* 9. MODALES */
.modal {
    display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(50, 20, 30, 0.85); justify-content: center; align-items: center;
    backdrop-filter: blur(8px);
}
.modal-content {
    background-color: #fffaf0; margin: 10% auto; padding: 35px 25px;
    border-radius: 20px; width: 90%; max-width: 420px; position: relative;
    animation: zoomIn 0.4s ease-out; border: 4px double var(--color-secondary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
@keyframes zoomIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.modal-content h4 {
    color: var(--color-primary); margin-bottom: 20px; text-align: center; font-size: 1.8em;
    font-family: var(--font-great-vibes); border-bottom: 1px solid var(--color-accent);
}
.modal-content input, .modal-content select, .modal-content textarea {
    width: 100%; padding: 12px; border: 2px solid #ecd6d6; border-radius: 10px;
    margin-top: 5px; margin-bottom: 10px; font-family: var(--font-poppins);
}
.close { color: #aaa; font-size: 32px; font-weight: bold; position: absolute; top: 5px; right: 15px; cursor: pointer; }

/* 10. GALERÍA */
.live-gallery-grid, .gallery-modal-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px; margin-top: 15px;
}
.galeria-item {
    aspect-ratio: 1/1; background-color: #fce4ec; border-radius: 15px; overflow: hidden;
    cursor: pointer; border: 3px solid var(--color-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s;
}
.galeria-item:hover { transform: scale(1.03); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; }

/* COLLAGE FIJO (ESTILOS RESTAURADOS) */
.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(136, 14, 79, 0.1); border: 3px solid var(--color-secondary);
}
.collage-image {
    max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 0 auto;
}

/* Lightbox */
.modal-content-img {
    margin: auto; display: block; width: 80%; max-width: 700px;
    border-radius: 10px; border: 3px solid var(--color-secondary);
    box-shadow: 0 0 20px rgba(0,0,0,0.5); animation: zoomIn 0.3s;
}
@media only screen and (max-width: 700px){ .modal-content-img { width: 100%; } }

/* 11. PLAYLIST Y DEDICATORIAS */
.playlist-item, .dedicatoria-item {
    background-color: var(--color-white); padding: 15px; margin-bottom: 10px;
    border-radius: 10px; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-left: 4px solid var(--color-secondary);
}
.like-button { color: var(--color-accent); cursor: pointer; font-size: 1.3em; padding: 5px; }

/* 12. OTROS */
.crown-top-decoration {
    display: block; margin: 20px auto 10px; width: 80px; z-index: 20;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}
.floating-stars-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 50; overflow: hidden;
}
.floating-star { position: absolute; opacity: 0.8; animation: twinkleFloat 5s infinite alternate; }
@keyframes twinkleFloat { 0% { transform: scale(0.8) rotate(0deg); opacity: 0.5; } 100% { transform: scale(1.2) rotate(45deg); opacity: 1; } }

.music-control {
    position: fixed; bottom: 25px; right: 25px;
    background: linear-gradient(135deg, var(--color-accent), #f08cc3);
    color: white; width: 60px; height: 60px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 0 20px rgba(112, 26, 91, 0.6); cursor: pointer; z-index: 200;
    border: 3px solid white; animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow { 0% { box-shadow: 0 0 20px rgba(112, 26, 91, 0.6); } 50% { box-shadow: 0 0 40px rgba(223, 61, 161, 0.9); } 100% { box-shadow: 0 0 20px rgba(112, 26, 91, 0.6); } }

.intro-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; z-index: 20000;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 1s ease-out;
}
.intro-overlay img { width: 100%; height: 100%; object-fit: cover; }

.footer-castle-decoration {
    position: relative; width: 100%; margin-top: -120px;
    pointer-events: none; text-align: center; z-index: 1;
}
.footer-castle-decoration img {
    width: 100%; max-width: 800px; margin: 0 auto; display: block;
    mask-image: linear-gradient(to top, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 80%, transparent 100%);
}