<style>
    @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600&display=swap');
    
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        font-family: 'Montserrat', sans-serif;
        background-color: #f8f5f2;
        color: #333;
        line-height: 1.6;
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Header */
    .header {
        /* Mantén tus estilos actuales */
        background-image: url('../img/fondo_1.jpg');
        background-size: cover;
        background-position: center;
        padding: 80px 20px;            
        max-width: 800px;
        margin: 0 auto;
        height: 100vh;

        /* Cambia estos valores: */
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Cambia de 'center' a 'flex-end' */
        align-items: center;
        text-align: center;
        color: white;
        position: relative;

        /* Añade padding inferior para separación */
        padding-bottom: 0px; /* Ajusta este valor según necesites */
    }
    
    .header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0);
    }
    
    .header-content {
        position: relative;
        z-index: 1;
        padding: 0 20px;
    }
    
    .names {
        font-family: 'Playfair Display', serif;
        font-size: 4.5rem;
        font-weight: 400;
        margin-bottom: 1rem;
        letter-spacing: 2px;
    }
    
    .date {
        font-size: 1.5rem;
        letter-spacing: 5px;
        margin-bottom: 2rem;
        font-weight: 300;
    }
    
    /* Contador regresivo */
    .countdown {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 30px 0;
        flex-wrap: wrap;
    }
    
    .countdown-item {
        text-align: center;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(5px);
        padding: 15px 20px;
        border-radius: 8px;
        min-width: 80px;
    }
    
    .countdown-number {
        color: #8b7355;
        font-size: 4rem;
        font-weight: 600;
        margin-bottom: 5px;
    }
    
    .countdown-label {
        color: #8b7355;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .scroll-down {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 1.2rem;
        animation: bounce 2s infinite;
    }
    
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
        40% {transform: translateY(-20px) translateX(-50%);}
        60% {transform: translateY(-10px) translateX(-50%);}
    }

    .imagen {
    max-width: 100%;  /* La imagen no será más ancha que el contenedor */
    height: auto;      /* El alto se ajusta automáticamente para mantener la relación de aspecto */
    object-fit: cover; /* La imagen llena el contenedor, recortando si es necesario */
    }

    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 1s ease-out, transform 1s ease-out;
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Sección de detalles */
    .details {
        background-image: url('../img/fondo.jpg');
        background-size:cover;
        background-repeat: no-repeat;
        background-position: center;            
        padding: 80px 20px;
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }
    .details_bottom{
        background-image: url('../img/fondo_2.jpg');
        background-size:cover;
        background-repeat: no-repeat;
        background-position: center;            
        padding: 380px 20px;
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }
    .details_bottom_2{
        background-image: url('../img/fondo_3.jpg');
        background-size:cover;
        background-repeat: no-repeat;
        background-position: center;            
        padding: 380px 20px;
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }        
            
    .top-content, .bottom-content {
        width: 100%;
    }

    /* Opcional: para dar más espacio al centro */
    .top-content {
        margin-bottom: auto; /* Empuja hacia arriba */
    }

    .bottom-content {
        margin-top: auto; /* Empuja hacia abajo */
    }        
    .section-title {
        font-family: 'Playfair Display', serif;
        font-size: 2.5rem;
        margin-bottom: 40px;
        color: #8b7355;
        position: relative;
    }
    
    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 2px;
        background: #8b7355;
        margin: 15px auto;
    }
    
    .detail-item {
        margin-bottom: 30px;
    }
    
    .detail-title {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        margin-bottom: 10px;
        color: #555;
    }
    
    .detail-text {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    /* Galería */
    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 0;
    }
    
    .gallery img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        transition: transform 0.3s;
    }
    
    .gallery img:hover {
        transform: scale(1.03);
    }
    
    /* Mapa */
    .map-section {
        padding: 80px 20px;
        background: #f0ece6;
    }
    
    .map-container {
        height: 400px;
        margin-top: 40px;
        border: 1px solid #ddd;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    /* RSVP */
    .rsvp {
        background-image: url('../fondo_3.jpg');
        background-size:contain;
        background-repeat: no-repeat;
        background-position: center;            
        padding: 80px 20px;
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .form-group {
        margin-bottom: 20px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    input, select, textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        font-family: 'Montserrat', sans-serif;
    }
    
    button[type="submit"] {
        background: #8b7355;
        color: white;
        border: none;
        padding: 12px 30px;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.3s;
    }
    
    button[type="submit"]:hover {
        background: #6b5a45;
    }
    
    /* Reproductor de audio */
    .audio-section {
        padding: 60px 20px;
        text-align: center;
        background: #f8f5f2;
    }
    
    .play-btn {
        background: none;
        border: none;
        color: #8b7355;
        font-size: 4rem;
        cursor: pointer;
        width: 100px;
        height: 100px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s;
    }
    
    .play-btn:hover {
        transform: scale(1.1);
    }
    
    .song-title {
        margin-top: 15px;
        font-style: italic;
        color: #666;
        font-size: 1.2rem;
    }
    
    /* Footer */
    .footer {
        background: #333;
        color: white;
        text-align: center;
        padding: 30px 20px;
        font-size: 0.9rem;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .names {
            font-size: 2.5rem;
        }
        
        .date {
            font-size: 1.2rem;
        }
        
        .section-title {
            font-size: 2rem;
        }
        
        .countdown {
            gap: 10px;
        }
        
        .countdown-item {
            padding: 10px 15px;
            min-width: 70px;
        }
        
        .countdown-number {
            font-size: 1.5rem;
        }
        
        .details_bottom {
            min-height: 90vh;
            padding: 40px 20px;
        }
        
        .top-content, .bottom-content {
            padding: 20px 0;
        }            
    }
</style>