/* --- General Styles & Variables --- */
:root {
    --primary-1: #6374BA;
    --primary-2: #786DAF;
    --secondary-1: #ADC0E1;
    --secondary-2: #809EC3;
    --accent-1: #E6BEE0;
    --accent-2: #A677BD;
    --text-light: #F0F4F8;
    --text-dark: #333;
    
    --font-title: 'Great Vibes', cursive;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--text-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: normal;
    color: var(--primary-2);
}

/* --- Animated Petals Background --- */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.petal {
    position: absolute;
    background-color: var(--accent-1);
    border-radius: 50%;
    opacity: 0.7;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}


/* --- Music Button --- */
.music-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.music-button:hover {
    transform: scale(1.1);
}

.music-button.playing {
    background-color: var(--primary-1);
}
.music-button.playing i::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    bottom: 10px;
    right: 10px;
    animation: soundwave 1.5s infinite;
}

@keyframes soundwave {
    0% { box-shadow: 0 0 0 0px rgba(255,255,255,0.5); }
    100% { box-shadow: 0 0 0 15px rgba(255,255,255,0); }
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    background: url('imagen1.jpg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(99, 116, 186, 0.7), rgba(120, 109, 175, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.couple-names {
    font-size: 6rem;
    margin-bottom: 0.2em;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.wedding-date {
    font-size: 1.5rem;
    margin-bottom: 1em;
    font-weight: bold;
}

.main-phrase {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

/* --- Main Section Layout --- */
.main-section {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
}

.main-section:nth-child(odd) {
    background-color: #fff;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0; /* Hidden by default for animations */
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-1);
}

.divider-icon {
    margin: 0 auto 1.5rem auto;
    width: 80px;
}

.divider-icon img {
    width: 100%;
    opacity: 0.5;
}

/* --- Countdown Section --- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.time-box {
    background-color: var(--secondary-1);
    color: var(--primary-2);
    padding: 1.5rem;
    border-radius: 15px;
    width: 120px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid var(--secondary-2);
    transition: transform 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
}

.time-box span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: var(--font-body);
}

/* --- Location Section --- */
.location-content h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: bold;
    margin: 0.5rem 0;
}

.location-content .venue {
    font-size: 1.2rem;
    color: var(--primary-2);
    font-weight: bold;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-2), var(--primary-2));
    color: var(--text-light);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(166, 119, 189, 0.4);
    border: none;
    cursor: pointer;
    font-family: var(--font-body); /* Asegura la misma fuente */
    font-size: 1rem; /* Asegura el mismo tamaño de fuente */
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(166, 119, 189, 0.6);
}

.cta-button.secondary {
    background: #fff;
    color: var(--primary-2);
    border: 2px solid var(--primary-2);
}

/* --- Gallery Section --- */
.gallery-carousel .slick-slide {
    padding: 0 15px;
}

.gallery-carousel img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Slick Dots Styling */
.slick-dots li button:before {
    font-size: 12px;
    color: var(--primary-1);
}
.slick-dots li.slick-active button:before {
    color: var(--accent-2);
}


/* --- Footer --- */
footer {
    background-color: var(--primary-1);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
}

.footer-names {
    font-family: var(--font-title);
    font-size: 2rem;
}

/* --- Map & Music Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#map-container {
    height: 400px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    background-color: #eee;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
}

.close-button:hover {
    color: #333;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .couple-names {
        font-size: 4rem;
    }
    .wedding-date {
        font-size: 1.2rem;
    }
    .main-phrase {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2.8rem;
    }
    .time-box {
        width: 100px;
        padding: 1rem;
    }
    .time-box span {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 90vh;
    }
    .couple-names {
        font-size: 3rem;
    }
    .countdown-container {
        gap: 0.5rem;
    }
    .time-box {
        width: 70px;
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    .time-box span {
        font-size: 1.5rem;
    }
    .main-section {
        padding: 3rem 1rem;
    }
}

/* --- Estilos para el fondo de la Galería --- */

#gallery {
    background-image: url('fondo-galeria.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 244, 248, 0.50); 
    z-index: 0;
}

#gallery .content-wrapper {
    position: relative;
    z-index: 1;
}

/* --- Estilos para el fondo de la Cuenta Regresiva --- */

#countdown {
    background-image: url('fondo-espera.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); 
    z-index: 0;
}

#countdown .content-wrapper {
    position: relative;
    z-index: 1;
}

#map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

/* --- Contenedor para botones de ubicación --- */
.buttons-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* --- ESTILOS PARA LA GUÍA DE VIAJE --- */

/* Fondo para la nueva sección en la página principal */
#travel-guide {
    background-image: url('fondo-espera.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#travel-guide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); 
    z-index: 0;
}

#travel-guide .content-wrapper {
    position: relative;
    z-index: 1;
}

/* Encabezado para la subpágina */
.subpage-header {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-light);
    background: url('imagen1.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

.subpage-header .couple-names {
    font-size: 4rem;
}

.subpage-header .wedding-date {
    font-size: 1.2rem;
}

/* Footer para la subpágina */
.subpage-footer {
    background-color: var(--primary-1);
    padding: 2rem;
    text-align: center;
}

/* Fondos para secciones en la guía de viaje */
#accommodation, #tourism-guide {
    background-image: url('fondo-galeria.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#accommodation::before, #tourism-guide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 244, 248, 0.85); 
    z-index: 0;
}

#accommodation .content-wrapper, #tourism-guide .content-wrapper {
    position: relative;
    z-index: 1;
}

.info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-box {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    flex: 1 1 300px;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.info-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-2);
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.info-box a {
    color: var(--primary-2);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.info-box a:hover {
    color: var(--accent-2);
    text-decoration: underline;
}
.content-wrapper {
  opacity: 1 !important;
}
