/*
Theme Name: Boda Paco y Raquel
Theme URI: https://hotelkore.com
Author: Juanma El Comandante & Antigravity
Author URI: https://hotelkore.com
Description: Tema premium a medida para la boda de Paco y Raquel. Cuenta con un telón interactivo superior inspirado en el teatro y un pie de página inmersivo del fondo marino con animaciones.
Version: 1.0.0
Text Domain: boda-paco-raquel
*/

/* --- 1. Variables y Reset --- */
:root {
    --primary: #c5a059; /* Champán Dorado Elegante */
    --primary-light: #e8d8b8;
    --primary-dark: #8c6a2e;
    --text-dark: #2d3142;
    --text-muted: #6c757d;
    --bg-cream: #fbf9f6;
    --bg-white: #ffffff;
    
    /* Telón */
    --velvet-red: #721c24;
    --velvet-dark: #3a0d11;
    
    /* Mar */
    --sea-top: #0a1e3f;
    --sea-mid: #051329;
    --sea-bottom: #010610;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
.card,
.wp-block-group.is-style-wedding-card,
.wp-block-group.is-style-wedding-card-featured,
.detalles-grid > div,
.detalles-grid .wp-block-column,
.detalles-grid .wp-block-group,
.transporte-grid > div,
.transporte-grid .wp-block-column,
.transporte-grid .wp-block-group {
    text-align: center !important;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-cream);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, .serif-font {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* --- 2. Héroe y Telón de Teatro --- */
.hero-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenido oculto tras el telón */
.hero-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.hero-text-container {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 30px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 1s ease 0.8s;
}

.curtain-opened .hero-text-container {
    transform: translateY(0);
    opacity: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
}

.hero-date {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-light);
    margin-bottom: 25px;
}

/* Telón de Teatro */
.theater-curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    pointer-events: none; /* Permite clicks en el botón una vez abierto */
    transition: opacity 0.5s ease 1.5s;
}

.curtain-opened .theater-curtain {
    opacity: 0;
}

.curtain-panel {
    width: 50%;
    height: 100%;
    position: relative;
    background: linear-gradient(90deg, var(--velvet-dark) 0%, var(--velvet-red) 50%, var(--velvet-dark) 100%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transition: transform 2s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: auto;
}

/* Pliegues verticales tridimensionales del telón */
.curtain-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 30px,
        rgba(0, 0, 0, 0.4) 40px,
        rgba(0, 0, 0, 0.6) 50px,
        rgba(0, 0, 0, 0.4) 60px,
        rgba(0, 0, 0, 0) 70px,
        rgba(0, 0, 0, 0) 100px
    );
    mix-blend-mode: multiply;
    opacity: 0.8;
}

.curtain-left {
    transform-origin: left center;
}

.curtain-right {
    transform-origin: right center;
}

.curtain-opened .curtain-left {
    transform: translateX(-100%) scaleX(0.2);
}

.curtain-opened .curtain-right {
    transform: translateX(100%) scaleX(0.2);
}

/* Cuerdas y Cenefa Superior Decorativa */
.curtain-valance {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12%;
    background: linear-gradient(180deg, var(--velvet-dark) 0%, var(--velvet-red) 70%, var(--velvet-dark) 100%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 11;
    border-bottom: 4px double var(--primary);
    transition: transform 1.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.curtain-valance::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: radial-gradient(circle, var(--primary) 3px, transparent 4px);
    background-size: 15px 15px;
}

.curtain-opened .curtain-valance {
    transform: translateY(-100%);
}

/* Botón interactivo para abrir el telón */
.curtain-trigger {
    position: absolute;
    z-index: 12;
    padding: 15px 35px;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    pointer-events: auto;
}

.curtain-trigger:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.4);
}

.curtain-opened .curtain-trigger {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 15px 30px rgba(197, 160, 89, 0.4); }
    100% { transform: scale(1); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); }
}

/* --- 3. Secciones Generales --- */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '✿';
    display: block;
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

/* --- 4. Cards y Detalles --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.15);
    border-color: var(--primary-light);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Tarjeta Destacada Paella - El Arroz Manda */
.card-featured {
    background: linear-gradient(135deg, var(--bg-white) 70%, #fffbe6 100%);
    border: 2px solid #fbd38d;
}

.card-featured::before {
    content: 'REGLA DE ORO';
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: #f6ad55;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 30px;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

/* --- 5. Formulario de Confirmación (RSVP) --- */
.rsvp-section {
    background-color: var(--bg-white);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    padding: 60px 40px;
    max-width: 800px;
    margin: 80px auto;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.rsvp-form .form-group {
    margin-bottom: 25px;
}

.rsvp-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.rsvp-form input[type="text"],
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #f7fafc;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: left;
}

.rsvp-form input[type="text"]:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

/* Estilo para subir fotos */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--primary-light);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    background-color: #fcfbf9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background-color: #f7f5f0;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    color: var(--text-muted);
}

.file-upload-text i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

/* Botón enviar RSVP */
.btn-submit {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(197, 160, 89, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.rsvp-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.rsvp-status.success {
    display: block;
    background-color: #c6f6d5;
    color: #22543d;
}

.rsvp-status.error {
    display: block;
    background-color: #fed7d7;
    color: #742a2a;
}

.rsvp-status.loading {
    display: block;
    background-color: #ebf8ff;
    color: #2b6cb0;
}

/* --- 6. Pie de Página Submarino --- */
.marine-footer {
    position: relative;
    background: linear-gradient(180deg, var(--sea-top) 0%, var(--sea-mid) 40%, var(--sea-bottom) 100%);
    color: #fff;
    padding: 100px 20px 40px 20px;
    overflow: hidden;
}

/* Imagen del fondo marino subida por el usuario */
.marine-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    opacity: 0.15;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

/* Destellos de Luz Solar en el fondo del mar */
.marine-light-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: radial-gradient(ellipse at 50% 0%, rgba(135, 206, 250, 0.25) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
    animation: shimmer 8s infinite alternate ease-in-out;
}

/* Contenido del pie de página */
.footer-content {
    position: relative;
    z-index: 5;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 2.2rem;
    font-family: var(--font-serif);
    color: var(--primary-light);
    margin-bottom: 20px;
}

.footer-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.footer-guarantee {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: inline-block;
    max-width: 500px;
    margin-bottom: 40px;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
}

/* Burbujas flotantes animadas */
.bubble {
    position: absolute;
    bottom: -50px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2), 0 2px 5px rgba(255, 255, 255, 0.1);
    z-index: 3;
    animation: floatUp 12s infinite ease-in;
}

/* Diferentes tamaños y retrasos para burbujas */
.bubble:nth-child(1) { left: 10%; width: 25px; height: 25px; animation-duration: 10s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 30%; width: 15px; height: 15px; animation-duration: 14s; animation-delay: 2s; }
.bubble:nth-child(3) { left: 50%; width: 35px; height: 35px; animation-duration: 12s; animation-delay: 4s; }
.bubble:nth-child(4) { left: 70%; width: 20px; height: 20px; animation-duration: 8s; animation-delay: 1s; }
.bubble:nth-child(5) { left: 85%; width: 30px; height: 30px; animation-duration: 16s; animation-delay: 3s; }
.bubble:nth-child(6) { left: 95%; width: 10px; height: 10px; animation-duration: 11s; animation-delay: 5s; }

/* Animaciones */
@keyframes shimmer {
    0% { opacity: 0.8; transform: skewX(-5deg); }
    100% { opacity: 1; transform: skewX(5deg); }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-600px) translateX(50px);
        opacity: 0;
    }
}

/* Silueta de Tortuga o Pez nadando de fondo */
.marine-silhouette {
    position: absolute;
    width: 60px;
    height: 40px;
    background-color: rgba(255,255,255,0.03);
    z-index: 2;
    pointer-events: none;
    clip-path: polygon(100% 50%, 75% 15%, 45% 25%, 0% 10%, 15% 50%, 0% 90%, 45% 75%, 75% 85%);
    animation: swimAcross 25s infinite linear;
}

@keyframes swimAcross {
    0% { left: -100px; top: 30%; transform: scaleX(1); }
    49% { transform: scaleX(1); }
    50% { left: 105%; top: 60%; transform: scaleX(-1); }
    99% { transform: scaleX(-1); }
    100% { left: -100px; top: 30%; transform: scaleX(1); }
}

/* --- 7. Cuadrículas Responsivas y Adaptabilidad Móvil --- */
.responsive-grid {
    display: grid;
    margin-top: 40px;
}

.detalles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.transporte-grid {
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 0;
}

/* Reglas Media Queries para móviles */
@media (max-width: 768px) {
    .detalles-grid,
    .transporte-grid,
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .section {
        padding: 60px 15px !important;
    }

    .rsvp-section {
        padding: 40px 20px !important;
        margin: 40px auto !important;
        border-radius: 16px !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }
}

@media (max-width: 480px) {
    .form-group label {
        font-size: 0.85rem !important;
    }
    
    .btn-submit {
        font-size: 1rem !important;
        padding: 14px !important;
    }
}

/* --- 8. Estilos Personalizados para Gutenberg (Bloques) --- */

/* Estilo Polaroid de Boda (para imágenes y grupos) */
.is-style-wedding-polaroid, 
.wp-block-image.is-style-wedding-polaroid img,
.wp-block-group.is-style-wedding-polaroid {
    background: #ffffff !important;
    padding: 15px 15px 50px 15px !important;
    border-radius: 4px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
    transform: rotate(-1.5deg);
    transition: var(--transition);
    display: inline-block;
    max-width: 100%;
}

.is-style-wedding-polaroid:hover,
.wp-block-image.is-style-wedding-polaroid img:hover,
.wp-block-group.is-style-wedding-polaroid:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

/* Para agregar un pie de foto de Polaroid en Gutenberg */
.is-style-wedding-polaroid::after {
    content: 'Paco & Raquel 💍';
    display: block;
    margin-top: 15px;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #555;
    font-style: italic;
}

/* Estilo Tarjeta de Boda (para Bloque de Grupo) */
.wp-block-group.is-style-wedding-card {
    background-color: var(--bg-white) !important;
    padding: 40px 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.wp-block-group.is-style-wedding-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.15) !important;
    border-color: var(--primary-light) !important;
}

.wp-block-group.is-style-wedding-card h3,
.wp-block-group.is-style-wedding-card-featured h3 {
    margin-top: 10px;
    font-size: 1.4rem;
}

/* Estilo Tarjeta Destacada de Boda (para Bloque de Grupo) */
.wp-block-group.is-style-wedding-card-featured {
    background: linear-gradient(135deg, var(--bg-white) 70%, #fffbe6 100%) !important;
    border: 2px solid #fbd38d !important;
    padding: 40px 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.wp-block-group.is-style-wedding-card-featured:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.15) !important;
    border-color: var(--primary-light) !important;
}

.wp-block-group.is-style-wedding-card-featured::before {
    content: 'REGLA DE ORO';
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: #f6ad55;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 30px;
    transform: rotate(45deg);
    letter-spacing: 1px;
    z-index: 10;
}

/* --- 9. Sistema de Escalado Inteligente (Detect & Decide) --- */

/* Contenedores en modo optimizado */
.hero-content.js-enhanced {
    background-image: none !important;
}

.marine-bg-image.js-enhanced {
    background-image: none !important;
    opacity: 0.22 !important; /* Ligeramente incrementada para balancear el desenfoque */
}

/* Capa 1: Fondo Ambiental Desenfocado */
.hero-ambient-bg,
.marine-ambient-bg {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
    opacity: 0.55;
}

.hero-ambient-bg {
    filter: blur(25px) brightness(0.5) saturate(1.2);
}

.marine-ambient-bg {
    filter: blur(20px) brightness(0.6);
    background-position: center bottom;
}

/* Capa 2: Imagen de Primer Plano Nítida */
.hero-foreground-img,
.marine-foreground-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

/* Animación elegante al abrir el telón (Efecto Cine) */
.hero-foreground-img {
    background-position: center;
    transform: scale(1.08);
    opacity: 0;
    transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.8s ease-out;
}

.curtain-opened .hero-foreground-img {
    transform: scale(1);
    opacity: 1;
}

.marine-foreground-img {
    background-position: center bottom;
    opacity: 0.85;
    transition: background-size 0.3s ease;
}

/* === LÓGICA INTELIGENTE DE ENCUADRE (DETECT & DECIDE) === */

/* CASO A: Imagen Vertical (Móvil) */
.img-portrait .hero-foreground-img {
    background-size: contain; /* En PC muestra los laterales desenfocados sin cortar */
}
.img-portrait .marine-foreground-img {
    background-size: contain;
}

@media (max-width: 768px) {
    /* En Móvil Vertical, al ser del mismo aspecto, cubre toda la pantalla */
    .img-portrait .hero-foreground-img {
        background-size: cover;
    }
    .img-portrait .marine-foreground-img {
        background-size: cover;
    }
}

/* CASO B: Imagen Horizontal (Estándar) */
.img-landscape .hero-foreground-img {
    background-size: cover; /* En PC cubre toda la pantalla */
}
.img-landscape .marine-foreground-img {
    background-size: cover;
}

@media (max-width: 768px) {
    /* En Móvil Vertical, muestra la foto horizontal entera sin recortar cabezas */
    .img-landscape .hero-foreground-img {
        background-size: contain;
    }
    .img-landscape .marine-foreground-img {
        background-size: contain;
    }
}

/* --- 10. Estilos Premium para la Sección de Bienvenida --- */
.welcome-card {
    background-color: var(--bg-white);
    padding: 35px 25px;
    border-radius: 16px;
    margin-bottom: 40px;
    border-top: 4px solid var(--primary);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.welcome-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.08);
}

.welcome-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
}

.welcome-card p + p {
    margin-top: 15px;
}

/* Polaroid Premium de la Pareja */
.couple-polaroid {
    background: #ffffff;
    padding: 15px 15px 25px 15px;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: rotate(-1.5deg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.couple-polaroid:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.couple-polaroid img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    display: block;
}

.couple-polaroid-caption {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #4a4a4a;
    padding: 0 10px;
    line-height: 1.4;
    width: 100%;
    word-wrap: break-word;
    font-style: italic;
}

@media (max-width: 480px) {
    .welcome-card {
        padding: 25px 15px;
    }
    .welcome-card p {
        font-size: 1rem;
    }
    .couple-polaroid-caption {
        font-size: 1.1rem;
    }
}

/* --- 11. Estilos de Privacidad (RGPD) --- */
.privacy-consent-group {
    text-align: left !important;
}
.privacy-checkbox-label {
    text-align: left !important;
    font-weight: 500 !important;
    color: var(--text-dark);
}
.privacy-checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
    cursor: pointer;
}
.privacy-short-text {
    text-align: left !important;
    line-height: 1.5;
}
#privacy-details-accordion {
    text-align: left !important;
    line-height: 1.6;
}
#privacy-details-accordion ul {
    margin-top: 5px;
    margin-bottom: 0;
}
#privacy-details-accordion ul li {
    text-align: left !important;
}

/* --- 12. Estilos del Chat de la Boda --- */
.wedding-chat-launcher {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: #fff !important;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(197, 160, 89, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wedding-chat-launcher:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.6);
}
.wedding-chat-launcher i {
    pointer-events: none;
}
.chat-pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: chatPulse 2.5s infinite;
    opacity: 0;
}
@keyframes chatPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.wedding-chat-container {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 380px;
    height: 520px;
    max-width: calc(100vw - 50px);
    max-height: calc(85vh - 100px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}
.wedding-chat-container.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.chat-header {
    padding: 15px 20px;
    background: rgba(10, 15, 30, 0.5);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-header-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-serif);
}
.chat-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}
.chat-close-btn:hover {
    color: #fff;
}
.chat-panel {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
    overflow: hidden;
}
.chat-panel.active {
    display: flex;
}
.chat-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.chat-form-group label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left !important;
}
.chat-form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    padding: 10px 12px;
    font-size: 0.95rem;
    width: 100%;
    text-align: left !important;
    transition: border-color 0.2s;
}
.chat-form-group input:focus {
    border-color: var(--primary);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}
.chat-btn-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
}
.chat-btn-submit:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.3);
}
.chat-tabs {
    display: flex;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    margin: -20px -20px 0 -20px;
    background: rgba(0, 0, 0, 0.2);
}
.chat-tab-btn {
    flex: 1;
    padding: 12px 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.chat-tab-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}
.chat-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(255, 255, 255, 0.02);
}
.chat-tab-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}
.chat-messages-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    margin: 0 -20px;
}
.chat-pane {
    display: none;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.chat-pane.active {
    display: flex;
    flex-direction: column;
}
.chat-messages-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}
.chat-message-item {
    display: flex;
    gap: 10px;
    max-width: 85%;
    align-items: flex-start;
    text-align: left !important;
}
.chat-message-item.incoming {
    align-self: flex-start;
}
.chat-message-item.outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.chat-message-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    word-break: break-word;
}
.chat-message-item.incoming .chat-message-bubble {
    background: rgba(255, 255, 255, 0.08);
    border-top-left-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-message-item.outgoing .chat-message-bubble {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-top-right-radius: 2px;
}
.chat-message-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}
.chat-message-item.incoming .chat-message-meta {
    justify-content: flex-start;
    padding-left: 2px;
}
.chat-message-item.outgoing .chat-message-meta {
    justify-content: flex-end;
    padding-right: 2px;
}
.chat-message-meta .alias-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}
.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(10, 15, 30, 0.4);
    border-top: 1px solid rgba(197, 160, 89, 0.15);
    margin: 0 -20px -20px -20px;
    align-items: center;
}
.chat-input-area input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 8px 15px !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    text-align: left !important;
    transition: all 0.2s;
}
.chat-input-area input:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
}
.chat-input-area button {
    background: var(--primary);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.chat-input-area button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}
.chat-locked-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(10, 15, 30, 0.85);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    backdrop-filter: blur(4px);
}

/* Scrollbar personalizado para lista de mensajes */
.chat-messages-list::-webkit-scrollbar {
    width: 4px;
}
.chat-messages-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.chat-messages-list::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.3);
    border-radius: 4px;
}

/* Adaptación responsiva para móviles */
@media (max-width: 600px) {
    .wedding-chat-container {
        bottom: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 80vh !important;
        max-width: 100% !important;
        max-height: 80vh !important;
        border-radius: 20px 20px 0 0 !important;
        transform: translateY(100%) scale(1) !important;
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    }
    .wedding-chat-container.open {
        transform: translateY(0) scale(1) !important;
    }
    .wedding-chat-launcher {
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
    }
}




