/*
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 {
    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;
}

.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); }
}
