:root {
    --color-primary: #5A6B53; /* Verde oliva oscuro */
    --color-secondary: #A6B49D; /* Verde oliva claro */
    --color-text-dark: #454744; /* Verde grisáceo para texto */
    --color-background: #F8F9F7; /* Blanco roto / Crema */
}

/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700&family=Roboto:wght@300;400&display=swap');

/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
    color: var(--color-text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    padding: 2em 0;
    text-align: center;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
    text-align: center;
}
h4, h5 {
    font-family: 'Roboto', sans-serif;
    color: var(--color-primary);
    text-align: center;
    font-weight: 400;
}
.wedding-date {
    font-size: 1.5em;
    font-style: normal;
    font-weight: 400;
}

/* Efecto de fade-in al hacer scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 1. Header principal */
.hero {
    background: url('fotonovios.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Capa oscura para que el texto resalte */
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 2em;
}
.hero-content h1 {
    font-size: 4em;
    color: white;
}
.hero-content h2 {
    font-size: 2em;
    color: white;
    margin-bottom: 0.5em;
}
.hero-content h3 {
    font-size: 1.5em;
    color: white;
}
.hero-content h4 {
    font-size: 1.5em;
    color: white;
}
.hero-content h5 {
    font-size: 1.2em;
    color: white;
}
.hero-content p {
    color: white;
}

/* Contador de tiempo */
.countdown {
    font-size: 2.5em;
    margin: 20px 0;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    color: white;
}
.primary-btn {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}
.primary-btn:hover {
    background-color: #A0AD96;
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    background-color: var(--color-primary);
    color: white;
}
.btn:hover {
    background-color: #4B5944;
}

/* 2. Sección de Música */
.audio-controls {
    text-align: center;
    margin-top: 20px;
}
.play-pause-btn {
    background: none;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
.play-pause-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
}
.play-icon {
    margin-left: 5px;
}
.play-icon, .pause-icon {
    font-family: 'Roboto', sans-serif;
}

/* 3. Sección "Nuestra Historia" */
#our-story p {
    max-width: 600px;
    margin: 0 auto;
}

/* 4. Carrusel de Fotos */
#photos .container {
    overflow: hidden;
}
.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}
.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 300px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
/* -- ESTE ES EL CÓDIGO ACTUALIZADO PARA LOS COLORES -- */
/* Flechas y puntos de navegación del carrusel - Ahora verdes */
.swiper-button-next, .swiper-button-prev {
    color: var(--color-primary);
}
.swiper-pagination-bullet {
    background: var(--color-secondary); /* Color de los puntos inactivos */
    opacity: 0.7;
}
.swiper-pagination-bullet-active {
    background: var(--color-primary); /* Color del punto activo */
    opacity: 1;
}

/* También puedes usar las variables de Swiper para más seguridad */
:root {
    --swiper-navigation-color: var(--color-primary);
    --swiper-pagination-color: var(--color-primary);
}
/* -- FIN DEL CÓDIGO ACTUALIZADO -- */


/* 5. Sección de Línea de Tiempo */
.timeline {
    position: relative;
    padding-left: 50px;
    border-left: 2px solid var(--color-secondary);
    margin-top: 2em;
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--color-secondary);
    border-radius: 50%;
}
.timeline-content {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.timeline-content h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--color-primary);
}
.timeline-content p {
    margin: 5px 0 0;
}

/* 6. Sección de Regalos */
.gift-options {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin-top: 2em;
}
.gift-option {
    background-color: #fff;
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.gift-option h3 {
    margin-top: 0;
}
.gift-option .btn {
    margin: 0.5em 0.5em 0.5em 0;
}

/* Pie de página */
footer {
    padding: 2em 0;
    text-align: center;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.9em;
}

/* Separadores de sección (SVG de flechas) */
.section-separator {
    width: 100%;
    height: 30px;
    background-color: var(--color-background);
    overflow: hidden;
}
.section-separator svg {
    display: block;
    width: 100%;
    height: 100%;
}
.section-separator .separator-fill {
    fill: var(--color-secondary);
}

/* Efecto de fade-in al hacer scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    .countdown {
        font-size: 1.8em;
    }
    .timeline {
        padding-left: 30px;
    }
    .timeline-item::before {
        left: -8px;
    }
    .photo-carousel img {
        width: 200px;
        height: 200px;
    }
}

/* Flechas de navegación del carrusel */
.swiper-button-next, .swiper-button-prev {
    color: var(--color-primary); /* Usa el color primario verde */
    --swiper-navigation-color: var(--color-primary);
}

/* Paginación (los puntos de abajo) - ¡Aquí está el cambio! */
.swiper-pagination-bullet {
    background: var(--color-secondary); /* Color para puntos inactivos */
    opacity: 0.7;
}
.swiper-pagination-bullet-active {
    background: var(--color-primary); /* Color para el punto activo */
    opacity: 1;
}

/* 5. Sección de Línea de Tiempo */
.timeline {
    position: relative;
    padding-left: 50px;
    border-left: 2px solid var(--color-secondary);
    margin-top: 2em;
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--color-secondary);
    border-radius: 50%;
}
.timeline-content {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.timeline-content h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--color-primary);
}
.timeline-content p {
    margin: 5px 0 0;
}

/* 6. Sección de Regalos */
.gift-options {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin-top: 2em;
}
.gift-option {
    background-color: #fff;
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.gift-option h3 {
    margin-top: 0;
}
.gift-option .btn {
    margin: 0.5em 0.5em 0.5em 0;
}

/* Pie de página */
footer {
    padding: 2em 0;
    text-align: center;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.9em;
}

/* Separadores de sección (SVG de flechas) */
.section-separator {
    width: 100%;
    height: 30px;
    background-color: var(--color-background);
    overflow: hidden;
}
.section-separator svg {
    display: block;
    width: 100%;
    height: 100%;
}
.section-separator .separator-fill {
    fill: var(--color-secondary);
}

/* Efecto de fade-in al hacer scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    .countdown {
        font-size: 1.8em;
    }
    .timeline {
        padding-left: 30px;
    }
    .timeline-item::before {
        left: -8px;
    }
    .photo-carousel img {
        width: 200px;
        height: 200px;
    }
}