/* ==========================================
   1. LIMPIEZA GENERAL Y PALETA BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #e5dfd6; /* El color 'Bone' */
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden; /* Evita scrolls laterales raros en móviles */
}

/* ==========================================
   2. PORTADA (HERO) CON RELOJ FLOTANTE DOWN
   ========================================== */
.portada {
    position: relative;
    width: 100%;
    height: 85vh; /* Ajuste para insinuar que la página continúa abajo */
}

.portada img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
}

/* Capa transparente posicionada abajo y centrada sobre la foto */
.cuenta-atras-portada {
    position: absolute;
    bottom: 40px; 
    left: 50%;
    transform: translateX(-50%); 
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    z-index: 5;
}

.titulo-reloj {
    font-size: 38px;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 4px;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); 
}

/* Diseño del Reloj Limpio y Sin Fondo */
.cuenta-atras-contenedor {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.tiempo-bloque {
    text-align: center;
}

.tiempo-bloque span {
    font-size: 42px;
    font-weight: 400;
    color: #ffffff; 
    display: block;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.tiempo-bloque p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Bloque para la imagen del logotipo de los novios */
.nombres-bloque {
    width: 100%;
    text-align: center;
    padding: 60px 20px; 
}

.nombres-bloque img {
    max-width: 300px; 
    width: 80%;      
    height: auto;
}

/* ==========================================
   3. SECCIÓN DATOS BODA (IGLESIA Y CIGARRAL MAPAS)
   ========================================== */
.datos-boda {
    position: relative;        
    background-color: #7a816c; /* Verde oliva */
    text-align: center;
    padding: 100px 20px;
    letter-spacing: 2px;
    overflow: hidden;          
}

.datos-boda .introduccion {
    position: relative;
    z-index: 2;                
    color: #ffffff;
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 50px;
}

.hoja-fondo {
    position: absolute;
    left: -150px;
    top: 50px;
    opacity: 0.2;
    width: 400px;
    z-index: 1;
    pointer-events: none;
}

.columnas-contenedor {
    position: relative;
    z-index: 2;                
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 950px;          
    margin: 0 auto;
}

.columna {
    color: white;
}

.fecha-dia {
    font-size: 32px;
    font-weight: 300;
}

.linea-separadora {
    width: 1px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.4);
}

.columna-lugares {
    display: flex;
    flex-direction: column;
    gap: 35px;
    text-align: left;
}

.enlace-mapa {
    display: flex;
    align-items: center; 
    gap: 20px; 
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.enlace-mapa:hover {
    transform: translateX(10px);
}

.icono-mapa {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.texto-lugar {
    display: flex;
    flex-direction: column;
}

.tipo-evento {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.8;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.nombre-sitio {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ==========================================
   4. BLOQUE PREMIUM SECUENCIAL (FOTOS -> BOTONES)
   ========================================== */
.bloque-confirmacion-premium {
    display: flex;
    flex-direction: column; 
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.columna-galeria-fija {
    display: flex;
    flex-direction: row; 
    gap: 15px; 
    width: 100%;
    margin-bottom: 30px; 
}

.columna-galeria-fija img {
    flex: 1;
    width: 33.33%;
    height: 480px; 
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.bloque-musica-medio {
    width: 100%;
    text-align: center;
    margin-bottom: 40px; 
}

.btn-audio {
    background-color: transparent;
    border: 1px solid #7a816c;
    color: #7a816c;
    padding: 12px 35px;
    font-family: inherit;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.btn-audio:hover {
    background-color: rgba(122, 129, 108, 0.08);
}

.btn-audio.sonando {
    background-color: #7a816c;
    color: white;
}

.contenido-invitacion-ancho {
    width: 100%;
    text-align: center; 
    margin-bottom: 25px; 
}

.contenido-invitacion-ancho h2 {
    font-size: 36px;
    font-weight: 300;
    color: #4a4a4a;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.contenido-invitacion-ancho p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

.bloque-confirmar-final {
    width: 100%;
    text-align: center;
}

.boton-confirmar {
    display: inline-block;
    padding: 15px 40px;
    background-color: #7a816c;
    color: white;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.boton-confirmar:hover {
    background-color: #656b59;
    transform: translateY(-2px);
}

/* ==========================================
   5. SECCIÓN LISTA DE BODAS (CUENTAS CENTRADAS)
   ========================================== */
.seccion-regalos {
    width: 100%;
    background-color: #f1f3ee; /* Color verde muy claro y limpio elegido por ti */
    padding: 80px 20px;
    font-family: 'Montserrat', sans-serif;
    border-top: 1px solid rgba(122, 129, 108, 0.1);
}

.contenedor-regalos {
    max-width: 1050px;
    margin: 0 auto;
    text-align: center;
}

.contenedor-regalos h2 {
    font-size: 38px;
    font-weight: 300;
    color: #53594b; 
    letter-spacing: 5px;
    margin-bottom: 30px;
}

.frase-regalo {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 50px auto;
    letter-spacing: 1px;
}

.bloques-cuentas-grid {
    display: flex;
    justify-content: center; 
    gap: 100px; 
    text-align: left;
    max-width: 850px; 
    margin: 0 auto; 
}

.columna-cuenta-regalo {
    flex: 1;
    max-width: 400px; 
}

.bloque-banco-detalle h3 {
    font-size: 15px;
    font-weight: 600;
    color: #656b59;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.bloque-banco-detalle p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase; 
}

.btn-copiar {
    background-color: transparent;
    border: 1px dashed #7a816c;
    color: #7a816c;
    padding: 6px 12px;
    font-size: 11px;
    font-family: inherit;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 140px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-copiar:hover {
    background-color: rgba(122, 129, 108, 0.06);
}

/* ==========================================
   6. SECCIÓN UN PASEO POR TOLEDO RESTAURADA
   ========================================== */
.seccion-toledo {
    width: 100%;
    background-color: #e5dfd6; /* Volvemos al color 'Bone' */
    padding: 90px 20px 0px 20px;
    font-family: 'Montserrat', sans-serif;
}

.contenedor-toledo {
    max-width: 1000px;
    margin: 0 auto;
}

.seccion-toledo h2 {
    font-size: 36px;
    font-weight: 300;
    color: #4a4a4a;
    letter-spacing: 5px;
    text-align: center;
    margin-bottom: 25px;
}

.introduccion-toledo {
    font-size: 16px;
    color: #666;
    text-align: center;
    line-height: 1.7;
    max-width: 750px;
    margin: 0 auto 60px auto;
}

.bloque-lugares-boda {
    display: flex;
    gap: 50px; 
    margin-bottom: 70px;
    width: 100%;
}

.espacio-lugar-boda {
    flex: 1; 
    background-color: transparent;
    text-align: left;
}

.espacio-lugar-boda h3 {
    font-size: 19px;
    font-weight: 600;
    color: #7a816c; 
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.espacio-lugar-boda p {
    font-size: 14.5px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.subtitulo-visitas {
    font-size: 20px;
    font-weight: 600;
    color: #4a4a4a;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 40px;
}

.grid-turismo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.tarjeta-turismo {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el enlace de mapas siempre al fondo de la tarjeta */
}

.tarjeta-turismo h4 {
    font-size: 15px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tarjeta-turismo p {
    font-size: 13.5px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px; /* Espacio para separar el texto del enlace */
}

/* El nuevo enlace fino con vuestro icono de mapas */
.enlace-mapa-turismo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #7a816c; /* Vuestro verde oliva fino */
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    margin-top: auto; /* Se ancla al fondo */
}

.enlace-mapa-turismo:hover {
    opacity: 0.7;
}

.enlace-mapa-turismo img {
    width: 18px; /* Icono discreto e idéntico al de arriba */
    height: 18px;
    object-fit: contain;
}

.tarjeta-especial-catedral {
    background-color: #f6f4f0; 
    border: 1px solid rgba(122, 129, 108, 0.2);
}

.bloque-toledo-pass {
    background-color: rgba(122, 129, 108, 0.08);
    border: 1px dashed #7a816c;
    padding: 30px;
    border-radius: 6px;
    text-align: left;
    margin-top: 40px;
}

/* ==========================================
   6. BLOQUE TOLEDO PASS REPARADO
   ========================================== */
.bloque-toledo-pass {
    background-color: rgba(122, 129, 108, 0.08);
    border: 1px dashed #7a816c;
    padding: 30px;
    border-radius: 6px;
    text-align: left;
    margin: 40px auto 90px auto;
    max-width: 1000px;
    width: 100%;
}

.bloque-toledo-pass h4 {
    font-size: 15px;
    font-weight: 600;
    color: #7a816c;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.bloque-toledo-pass p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Estilo para el enlace de dentro del texto */
.link-interno-pass {
    color: #7a816c;
    text-decoration: underline;
    font-weight: 600;
}

.link-interno-pass:hover {
    color: #656b59;
}

/* ==========================================
   7. PIE DE PÁGINA (FOTO ANCHO COMPLETO FIXED)
   ========================================== */
.pie-pagina-boda-limpio {
    position: relative;
    width: 100%;
    height: 60vh; /* Altura en PC */
    overflow: hidden;
    background-color: #7a816c; 
}

.foto-cierre-ancho {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    display: block;
}

/* Capa oscura para asegurar el contraste de la letra cursiva */
.pie-pagina-boda-limpio::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Filtro sutil */
    z-index: 1;
}

.capa-texto-cierre {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Obliga a las letras a ponerse por encima del filtro oscuro */
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.frase-cierre-cursiva {
    font-family: 'Playfair Display', serif;
    font-style: italic; 
    font-size: 54px; 
    color: #ffffff !important; /* Fuerza el color blanco */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); /* Sombra de relieve */
    letter-spacing: 1px;
}

/* ==========================================
   8. ADAPTACIÓN RESPONSIVE COMPACTA (MÓVILES)
   ========================================== */
@media (max-width: 768px) {
    .portada {
        height: 70vh; 
    }

    .tiempo-bloque span {
        font-size: 34px;
    }
    
    .columnas-contenedor {
        flex-direction: column;
        gap: 30px;
    }
    
    .linea-separadora {
        width: 80%;
        height: 1px;
        margin: 0 auto;
    }
    
    .columna-lugares {
        text-align: center;
        align-items: center; 
        width: 100%;
    }
    
    .enlace-mapa {
        flex-direction: column; 
        gap: 10px;
    }
    
    .texto-lugar {
        text-align: center; 
    }

    .bloque-confirmacion-premium {
        margin: 40px auto;
    }

    .columna-galeria-fija {
        gap: 8px;
        margin-bottom: 25px;
    }

    .columna-galeria-fija img {
        height: 240px; 
    }

    .bloque-musica-medio {
        margin-bottom: 30px;
    }

    .contenido-invitacion-ancho h2 {
        font-size: 28px;
    }

    .seccion-regalos {
        padding: 50px 20px;
    }
    
    .contenedor-regalos h2 {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .bloques-cuentas-grid {
        flex-direction: column;
        gap: 40px;
    }

    .bloque-banco-detalle {
        text-align: center; 
    }

    .btn-copiar {
        margin: 10px auto 0 auto;
        display: block;
    }

    .seccion-toledo {
        padding: 60px 15px;
    }

    .seccion-toledo h2 {
        font-size: 26px;
        letter-spacing: 3px;
    }

    .bloque-lugares-boda {
        flex-direction: column; 
        gap: 40px;
    }

    .subtitulo-visitas {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .grid-turismo {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .bloque-toledo-pass {
        padding: 20px;
        margin-top: 30px;
    }

    /* Adaptación del footer en teléfonos */
    .pie-pagina-boda-limpio {
        height: 40vh; 
    }

    .frase-cierre-cursiva {
        font-size: 34px; 
        letter-spacing: 0px;
    }
}

/* --- RECUADRO DEL HOTEL BEATRIZ COMPLETAMENTE CENTRADO --- */
.tarjeta-alojamiento-hotel {
    background-color: #ffffff; 
    border: 1px solid rgba(122, 129, 108, 0.25);
    border-top: 4px solid #7a816c; 
    padding: 35px;
    border-radius: 6px;
    text-align: center; /* ¡Centra todos los textos internos de la tarjeta! */
    margin: 40px auto 70px auto; /* Fuerza el centrado horizontal en la página */
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    width: 100%;
    max-width: 850px; /* Estrechado a 850px para que haga juego con las cuentas de arriba */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los bloques de tarifas en el medio */
}

.tarjeta-alojamiento-hotel h4 {
    font-size: 15px;
    font-weight: 600;
    color: #7a816c;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hotel-nombre {
    font-size: 19px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 6px;
}

.hotel-nota {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

/* Rejilla de precios centrada */
.tarifas-grid-hotel {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center; /* Centra las cajitas de los precios */
    flex-wrap: wrap;
    width: 100%;
}

.tarifa-hotel-item {
    background-color: rgba(122, 129, 108, 0.06);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13.5px;
    color: #555;
    border: 1px dashed rgba(122, 129, 108, 0.3);
}

.hotel-incluye {
    font-size: 13px;
    color: #7a816c;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Adaptación responsive para pantallas de móviles */
@media (max-width: 768px) {
    .tarjeta-alojamiento-hotel {
        padding: 25px 20px;
        margin-top: 30px;
    }
    
    .tarifas-grid-hotel {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .tarifa-hotel-item {
        text-align: center;
        width: 100%;
        max-width: 280px; /* Tamaño compacto para que luzca tipo botón en el móvil */
    }
}

/* Estilo elegante para el enlace de texto del hotel */
.enlace-mapa-hotel {
    display: inline-block;
    text-decoration: underline; /* Añade un subrayado fino para que se sepa que es un enlace */
    color: #7a816c; /* Vuestro verde oliva */
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    margin-top: 25px; /* Separación limpia respecto a la línea del desayuno */
    text-transform: uppercase;
}

.enlace-mapa-hotel:hover {
    opacity: 0.7;
    color: #656b59;
}

/* --- SECCIÓN CÓDIGO DE VESTIMENTA (FONDO BLANCO Y LETRA MÁS PEQUEÑA) --- */
.seccion-dresscode {
    width: 100%;
    background-color: #ffffff; /* ¡Cambiado a fondo blanco puro! */
    padding: 60px 20px 20px 20px; 
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.contenedor-dresscode {
    max-width: 800px;
    margin: 0 auto;
}

.contenedor-dresscode h2 {
    font-size: 26px; /* Reducido el tamaño del título de 32px a 26px */
    font-weight: 300;
    color: #4a4a4a;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.texto-dresscode {
    font-size: 13.5px; /* Letra mucho más pequeña y fina (antes era 15.5px) */
    color: #666; /* Un gris un poco más suave para que sea más discreto */
    line-height: 1.8;
    letter-spacing: 0.5px;
    max-width: 600px;
    margin: 0 auto;
}

/* --- CORRECCIÓN FINAL: FOTO A ANCHO COMPLETO SIN MÁRGENES --- */
.bloque-foto-transicion {
    width: 100vw !important; /* Fuerza a ocupar el 100% del ancho del monitor de lado a lado */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #ffffff; 
    height: 460px !important; /* Altura más larga y majestuosa para pantallas grandes */
    max-height: 460px !important;
    overflow: hidden;
    margin-bottom: 50px; /* Espacio limpio antes de que empiece la lista de bodas */
}

.bloque-foto-transicion img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Centra el plano de las manos de forma artística */
    object-position: center;
    display: block;
    border-radius: 0px !important; /* Quitamos bordes redondeados para que muera limpia en los bordes de la pantalla */
    box-shadow: none !important;
}

/* 📱 ADAPTACIÓN PERFECTA PARA PANTALLAS DE MÓVIL (IPHONE / ANDROID) */
@media (max-width: 768px) {
    .bloque-foto-transicion {
        height: 180px !important; /* En el móvil se hace más cortita para que no ocupe toda la pantalla vertical */
        max-height: 180px !important;
        margin-bottom: 30px;
    }
}