/* =========================================
   1. RESET Y ESTILOS GENERALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #444;
    text-align: center;
    line-height: 1.6;
    overflow-x: hidden; /* Evita desplazamiento lateral indeseado */
}

/* Tipografías especiales (Cursiva) */
h1, h2, .logo-menu, .letra-capital, .saludo {
    font-family: 'Great Vibes', cursive;
    font-weight: normal;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* =========================================
   2. MENÚ DE NAVEGACIÓN (STICKY NAVBAR)
   ========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
    background-color: rgba(50, 50, 50, 0.3);
    color: white;
}

.logo-menu {
    font-size: 1.8rem;
    color: #E6004C;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.enlaces-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.enlaces-menu a {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Estado del menú al bajar (Fondo blanco) */
nav.menu-blanco {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 50px;
}

nav.menu-blanco .enlaces-menu a {
    color: #444;
    text-shadow: none;
}

nav.menu-blanco .enlaces-menu a:hover {
    color: #E6004C;
}

/* =========================================
   3. HERO (PORTADA PRINCIPAL)
   ========================================= */
.hero {
    background-image: url('fondo.jpeg'); 
    background-size: cover;
    background-position: center;
    height: 65vh;
    min-height: 550px;
    position: relative;
    color: white;
}

.capa-oscura {
    background: rgba(0, 0, 0, 0.4);
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contenido-hero {
    margin-top: 40px;
}

.intro {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 0;
}

h1 {
    font-size: 4.5rem;
    margin: 0;
    line-height: 1.2;
}

.fecha {
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* =========================================
   4. CONTADOR (RELOJ)
   ========================================= */
#cuenta-atras {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.tiempo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    width: 80px;
    height: 85px;
    color: white;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.tiempo span {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 3px;
}

.info-evento {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dato-boda {
    font-size: 1.1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.boton-maps {
    background-color: #E6004C;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.boton-maps:hover {
    background-color: #c40041;
}

/* =========================================
   5. ESTRUCTURA DE SECCIONES Y FONDO "PAPEL"
   ========================================= */
section {
    padding: 100px 20px;
}

.contenedor-seccion {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
    width: 90%; 
}

.seccion-clara { background-color: white; }

/* EFECTO PAPEL TEXTURIZADO */
.seccion-oscura {
    background-color: #f9f9f9; 
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.02) 10px, 
        rgba(0, 0, 0, 0.02) 11px
    );
    padding: 80px 0;
}

.seccion-rosa { background-color: #FFF0F5; }

h2 {
    font-size: 3.5rem;
    color: #E6004C;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 50px;
    font-style: italic;
}

/* =========================================
   6. SECCIÓN HISTORIA (ANCHA Y COMPACTA - PC)
   ========================================= */
.collage-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    align-items: center;
    justify-items: center;
    
    max-width: 1250px; 
    width: 98%; 
    margin: 30px auto 0;
    position: relative;
}

/* Tarjeta central de texto */
.carta-historia {
    grid-column: 2;
    grid-row: 1 / span 2;
    z-index: 10;

    padding: 40px 50px; 
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: left;
    line-height: 1.6;
    color: #555;
    
    min-width: 550px; /* IMPORTANTE: Esto se anula luego en móvil */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.letra-capital {
    float: left;
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    line-height: 0.8;
    margin-right: 15px;
    margin-bottom: -5px;
    color: #E6004C;
}

.texto-final-rojo {
    color: #E6004C;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
}

.carta-historia p {
    margin-bottom: 15px;
}

/* Estilo Base Fotos */
.foto-collage {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 6px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.foto-collage:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 20;
}

/* Alineaciones Específicas PC */
.foto-1 { 
    grid-column: 1; grid-row: 1;
    align-self: end; 
    transform: rotate(-4deg);
    margin-bottom: -20px; margin-right: -30px; 
}
.foto-2 { 
    grid-column: 3; grid-row: 1;
    align-self: end; 
    transform: rotate(4deg);
    margin-bottom: -20px; margin-left: -30px;
}
.foto-3 { 
    grid-column: 1; grid-row: 2;
    align-self: start; 
    transform: rotate(3deg);
    margin-top: -20px; margin-right: -30px;
}
.foto-4 { 
    grid-column: 3; grid-row: 2;
    align-self: start; 
    transform: rotate(-3deg);
    margin-top: -20px; margin-left: -30px;
}

/* =========================================
   7. SECCIÓN VESTIMENTA
   ========================================= */
.mensaje-vestimenta {
    background-color: white;
    padding: 60px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.mensaje-vestimenta .saludo {
    font-size: 1.6rem;
    color: #E6004C;
    margin-bottom: 20px;
    display: block;
}

.mensaje-vestimenta .cita-final {
    font-style: italic;
    color: #333;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.foto-perro-vestimenta {
    display: block;
    max-width: 350px;
    width: 100%;
    margin: 30px auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid white;
}

/* =========================================
   8. SECCIÓN ALOJAMIENTOS
   ========================================= */
.grid-alojamientos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    text-align: left;
    width: 100%;
    margin: 0 auto;
}

.card-hotel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s;
    width: 100%;
}

.card-hotel:hover {
    transform: translateY(-5px);
}

.card-hotel h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-hotel h3 i { color: #E6004C; }

.info-hotel p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.info-hotel i { width: 20px; color: #999; text-align: center; }

.link-web {
    display: inline-block;
    margin-top: 10px;
    color: #E6004C;
    font-weight: bold;
    font-size: 0.9rem;
}

/* =========================================
   9. FORMULARIOS Y REGALOS
   ========================================= */
.contenedor-formulario {
    background-color: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.campo-formulario {
    margin-bottom: 20px;
}

.campo-formulario label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 0.95rem;
}

.campo-formulario input, 
.campo-formulario select, 
.campo-formulario textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background-color: #fff;
    transition: border 0.3s;
}

.campo-formulario input:focus, 
.campo-formulario select:focus, 
.campo-formulario textarea:focus {
    border-color: #E6004C;
    outline: none;
}

.boton-enviar {
    width: 100%;
    background-color: #E6004C;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.boton-enviar:hover {
    background-color: #c40041;
}

.tarjeta-regalo {
    background-color: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
    margin: 0 auto;
    text-align: center;
}
.numero-cuenta {
    background-color: #FFF0F5;
    padding: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    border: 1px dashed #E6004C;
    margin-top: 20px;
}
.banco { font-weight: bold; }
.btn-copiar {
    background: none; border: 1px solid #E6004C; color: #E6004C;
    padding: 5px 10px; border-radius: 5px; cursor: pointer;
}

/* =========================================
   10. FOOTER Y BOTÓN SUBIR
   ========================================= */
footer {
    background-color: #222;
    color: white;
    padding: 60px 20px;
    margin-top: 50px;
    text-align: center;
}

footer h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: white;
}

.hashtag {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: #E6004C;
    margin-bottom: 30px;
}

.divisor-footer {
    width: 50px;
    height: 2px;
    background-color: #555;
    margin: 0 auto 30px;
}

.agradecimiento {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
    margin-top: 20px;
}

.btn-subir {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #E6004C;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 900;
}

.btn-subir:hover {
    background-color: #c40041;
    transform: translateY(-5px);
}

/* =========================================
   11. EXTRAS: CALENDARIO Y SPOTIFY
   ========================================= */
.contenedor-calendario {
    margin-top: 30px;
    animation: aparecerSuave 2s ease;
}

.btn-calendario {
    background-color: rgba(255, 255, 255, 0.2); 
    border: 1px solid white;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-calendario:hover {
    background-color: #E6004C;
    border-color: #E6004C;
    transform: scale(1.05);
}

@keyframes aparecerSuave {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.banda-sonora {
    max-width: 600px;
    width: 90%;
    margin: -40px auto 60px; 
    background: white;
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 50; 
    text-align: center;
}

.banda-sonora h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #444;
}

.banda-sonora p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

/* =========================================
   12. TARJETA DE BIENVENIDA (POP-UP)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(4px); 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.modal-overlay.activo { opacity: 1; visibility: visible; }

.tarjeta-bienvenida {
    background-color: #fff;
    width: 90%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border: 1px solid #FFF0F5;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.modal-overlay.activo .tarjeta-bienvenida { transform: translateY(0); }

.icono-corazon {
    font-size: 2.5rem;
    color: #E6004C;
    margin-bottom: 15px;
    animation: latido 2s infinite;
}

@keyframes latido {
    0% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

.tarjeta-bienvenida h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: #444;
    margin-bottom: 15px;
}

.tarjeta-bienvenida p { color: #666; line-height: 1.6; margin-bottom: 20px; }

.recordatorio-fecha {
    background-color: #FFF0F5; 
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #E6004C;
}

.recordatorio-fecha p { margin: 0; font-size: 0.95rem; color: #555; }

.fecha-destacada { font-weight: bold; color: #E6004C; font-size: 1.1rem; text-transform: uppercase; }

.botones-bienvenida { display: flex; flex-direction: column; gap: 12px; margin-top: 25px; }

.btn-confirmar-ahora {
    background-color: #E6004C;
    color: white;
    padding: 14px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(230, 0, 76, 0.3);
    transition: transform 0.2s;
}

.btn-confirmar-ahora:hover { transform: scale(1.02); background-color: #d10045; }

.btn-ver-web { background: none; border: none; color: #888; cursor: pointer; font-size: 0.9rem; text-decoration: underline; }

.cerrar-modal {
    position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 1.2rem; color: #ccc; cursor: pointer; padding: 5px;
}

/* =========================================
   13. RESPONSIVE (ARREGLO DEFINITIVO MÓVIL)
   ========================================= */
.menu-icon {
    font-size: 1.8rem;
    cursor: pointer;
    display: none; 
    color: inherit; 
}

/* REGLAS PARA PANTALLAS PEQUEÑAS (Móviles y Tablets) */
@media (max-width: 1100px) {
    
    /* 1. Ajustes del Contenedor General */
    .contenedor-seccion {
        width: 100%; 
        padding: 0 20px; 
        overflow-x: hidden; 
    }

    /* 2. Ajustes del Menú */
    nav {
        padding: 15px 20px;
        background-color: white; 
        color: #444; 
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    nav .logo-menu { color: #E6004C; text-shadow: none; }
    .menu-icon { display: block; color: #444; }

    .enlaces-menu {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: white;
        flex-direction: column;
        text-align: center;
        padding: 20px 0; gap: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none; 
        transition: all 0.3s ease;
    }
    .enlaces-menu.activo { display: flex; }
    .enlaces-menu a { display: block; padding: 15px; border-bottom: 1px solid #f0f0f0; color: #444; }

    /* 3. ARREGLO DE LA SECCIÓN HISTORIA (LO IMPORTANTE) */
    .collage-grid {
        display: flex;
        flex-direction: column; /* Pone todo en fila vertical */
        gap: 30px;
        margin-top: 20px;
        width: 100%;
    }
    
    .carta-historia { 
        order: 1; /* El texto va primero */
        padding: 40px 30px; 
        
        /* AQUÍ ESTABA EL ERROR: Quitamos el ancho mínimo */
        min-width: 0 !important; 
        width: 100% !important;
        margin: 0 !important;
    } 
    
    .foto-collage {
        order: 2; /* Las fotos debajo */
        height: auto;
        width: 100%;
        max-width: 400px;
        align-self: center;
        
        /* Reseteamos todas las rotaciones y márgenes negativos */
        transform: none !important; 
        margin: 0 !important; 
    }
    
    /* Reseteamos coordenadas específicas */
    .foto-1, .foto-2, .foto-3, .foto-4 {
        align-self: center;
        margin: 10px 0 !important;
    }

    /* 4. Ajustes generales */
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    
    .grid-alojamientos { grid-template-columns: 1fr; }
    .mensaje-vestimenta, .contenedor-formulario { padding: 30px 20px; }
    .banda-sonora { width: 100%; margin: 20px auto; }
}

/* --- ESTILOS SECCIÓN FOTOS (GOOGLE FOTOS) --- */
.contenido-fotos {
    margin-top: 30px;
    display: flex; 
    flex-direction: column;
    align-items: center;
    gap: 15px; 
}

.boton-google-fotos {
    background-color: #E6004C; 
    color: white;
    padding: 15px 35px; 
    border-radius: 8px; 
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-flex; 
    align-items: center;
    gap: 12px; 
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(230, 0, 76, 0.3); 
}

.boton-google-fotos:hover {
    background-color: #c40041; 
    transform: translateY(-3px); 
}

.nota-fotos {
    font-size: 0.95rem;
    color: #777; 
    max-width: 500px;
    margin-top: 5px;
}