/* =========================================
   VARIABLES GLOBALES (Colores y Fuentes)
   ========================================= */
:root {
    --primary-color: #d4af37; /* Dorado Boda */
    --secondary-color: #4A90E2; /* Azul Cámara */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #fff;
    --bg-gray: #f4f7f6;
}

body, html {
    margin: 0; padding: 0;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    color: var(--text-dark);
}

/* =========================================
   ESTILOS DE TEXTO Y TÍTULOS (RECUPERADOS)
   ========================================= */

/* Estilo base para todo el sitio */
body {
    font-family: 'Poppins', sans-serif;
    color: #555;
    background-color: var(--white-soft); /* Usamos el blanco suave nuevo */
}

/* La fuente cursiva elegante (Great Vibes) */
.script-font {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    margin-bottom: 15px;
    text-align: center;
}

/* Título Principal (Pamela & Claudio) */
h1.script-font {
    font-size: 4.5rem; /* Bien grande */
    /* Color Rose Gold oscuro para que se lea bien sobre fotos */
    color: white; /* Blanco para destacar sobre la foto */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2); /* Sombrita para resaltar */
    line-height: 1.1;
    margin-top: 20px;
}

/* Subtítulos de Secciones (Nuestra Historia, Cuándo y Dónde...) */
h2.script-font {
    font-size: 3.2rem;
    color: var(--gold-accent); /* Dorado elegante */
    margin-top: 40px;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
}

/* Títulos dentro de los Tickets (Catedral, Salón) */
h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 5px;
}

/* =========================================
   ESTILOS ESPECÍFICOS: INDEX (HOME)
   ========================================= */
/* --- PORTADA (HERO) OPTIMIZADA --- */
.hero {
    /* En celular (Móvil) sigue igual */
    height: 85vh; 
    min-height: 500px;
    
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../img/portada_boda.jpg');
    background-size: cover;
    
    /* CAMBIO CLAVE 1: "top center" prioriza las cabezas en lugar del centro del pecho */
    background-position: top center; 
    
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

/* --- REGLA NUEVA SOLO PARA PC (Pantallas grandes) --- */
@media (min-width: 1024px) {
    .hero {
        height: 70vh; /* Bajamos la altura en PC para que no sea tan "monstruosa" */
        max-height: 700px; /* Ponemos un límite máximo */
        background-attachment: scroll; /* A veces 'fixed' en pantallas muy grandes causa ese zoom excesivo. Prueba cambiarlo a 'scroll' si sigue viéndose mal */
    }

    /* Ajuste para las franjas de fotos intermedias en PC */
    .parallax-section {
        background-position: top center; /* Enfocar caras */
        height: 500px; /* Un poco más altas en PC para que se luzcan */
    }
}

.hero h1 { font-size: 4rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.5rem; letter-spacing: 3px; text-transform: uppercase; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.hero .date { font-size: 1.2rem; margin-top: 20px; font-weight: 600; background: rgba(0,0,0,0.4); padding: 10px 20px; border-radius: 50px; }

.section-content {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--bg-light);
    max-width: 900px;
    margin: auto;
}
.section-content h2 { font-size: 3rem; margin-bottom: 20px; }
.section-content p { line-height: 1.8; color: #666; margin-bottom: 20px; font-size: 1.05rem; }

/* Parallax */
.parallax-section {
    height: 400px;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.parallax-overlay { position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.1); }
.bg-historia { background-image: url('../img/nuestra_historia.jpg'); }
.bg-detalles { background-image: url('../img/detalles_boda.jpeg'); }

/* Cuenta Regresiva */
.countdown-container { padding: 40px 20px; background: #f9f9f9; text-align: center; border-bottom: 1px solid #eee; }
.countdown-timer { display: flex; justify-content: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.time-box { background: white; padding: 15px 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); min-width: 70px; }
.time-box span { display: block; font-size: 2rem; font-weight: 600; color: var(--primary-color); }
.time-box small { text-transform: uppercase; font-size: 0.7rem; color: #999; }

/* Mapas */
.map-responsive {
    overflow: hidden; padding-bottom: 56.25%; position: relative; height: 0;
    border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.15); margin-top: 30px; border: 5px solid white;
}
.map-responsive iframe { left: 0; top: 0; height: 100%; width: 100%; position: absolute; border: 0; }

/* Regalos y Banco */
.gift-intro { max-width: 600px; margin: 0 auto 30px auto; color: #555; }
.bank-card {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 20px;
    max-width: 500px; margin: 0 auto 30px auto; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: left;
}
.bank-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #ddd; font-size: 0.95rem; }
.bank-row:last-child { border-bottom: none; }
.label { font-weight: 600; color: var(--primary-color); margin-right: 10px; }
.value { color: #333; font-weight: 400; text-align: right; word-break: break-word; }
.gift-note { font-style: italic; color: #888; font-size: 0.9rem; }

/* Observaciones */
.observations-section { padding: 60px 20px; background-color: #f9f9f9; text-align: center; }
.obs-container { display: flex; justify-content: center; gap: 30px; max-width: 900px; margin: 40px auto 0 auto; flex-wrap: wrap; }
.obs-card {
    background: white; padding: 40px 30px; border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); flex: 1; min-width: 280px; max-width: 400px; transition: transform 0.3s ease;
}
.obs-card:hover { transform: translateY(-5px); }
.obs-icon { font-size: 3rem; margin-bottom: 20px; display: block; }
.obs-card h3 { color: var(--primary-color); margin-bottom: 15px; font-weight: 600; }

/* Footer */
footer { background: #222; color: #888; text-align: center; padding: 40px 20px; }

/* =========================================
   ESTILOS ESPECÍFICOS: CÁMARA & GALERÍA
   ========================================= */
.app-container {
    background: #fff; width: 100%; max-width: 420px; min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05); display: flex; flex-direction: column;
    align-items: center; position: relative; margin: 0 auto;
}
.header-image { width: 100%; height: auto; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-bottom: 20px; display: block; }

/* Zona de carga */
.upload-area {
    border: 2px dashed #cbd5e0; border-radius: 15px; padding: 30px 20px;
    background-color: #fafbfc; cursor: pointer; transition: all 0.3s ease; margin-bottom: 20px;
}
.upload-area:hover { border-color: var(--secondary-color); background-color: #edf2f7; }
.upload-icon { font-size: 40px; color: var(--secondary-color); margin-bottom: 10px; }
input[type="file"] { display: none; }

/* Estado y Botones */
#status-container { width: 100%; text-align: left; margin-bottom: 20px; font-size: 0.85rem; max-height: 150px; overflow-y: auto; }
.status-item { margin: 5px 0; padding: 8px; background: #f8f9fa; border-radius: 5px; display: flex; justify-content: space-between; }
.status-success { color: #2ecc71; }
.status-error { color: #e74c3c; }

.btn-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 15px; width: 100%;
    border-radius: 50px; font-size: 1rem; font-weight: 600; box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4); cursor: pointer; transition: transform 0.2s;
}
.btn-main:disabled { background: #bdc3c7; box-shadow: none; cursor: not-allowed; }
.btn-main:active { transform: scale(0.98); }
.spinner {
    display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Botón Secundario y Volver */
.btn, .btn-secondary, .btn-back {
    display: inline-block; text-align: center; padding: 12px 30px; border-radius: 50px;
    text-decoration: none; font-weight: 600; transition: all 0.3s ease; box-sizing: border-box; cursor: pointer;
}
.btn { border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn:hover { background: var(--primary-color); color: white; }
.btn-filled { background: var(--primary-color); color: white; }

.btn-secondary { width: 100%; margin-top: 15px; background: transparent; color: var(--secondary-color); border: 2px solid var(--secondary-color); }
.btn-secondary:hover { background-color: #eaf4ff; transform: translateY(-2px); }

.btn-back { margin-bottom: 20px; background: var(--secondary-color); color: white; border: none; }

/* Galería Grid */
.gallery-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; max-width: 1000px; margin: auto; }
.photo-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); height: 200px; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.photo-card:hover { transform: scale(1.03); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
#loading { font-size: 1.2rem; color: #666; margin-top: 50px; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .hero, .parallax-section { background-attachment: scroll; } 
    .parallax-section { height: 250px; }
    .section-content h2 { font-size: 2.2rem; }
    .bank-row { flex-direction: column; text-align: center; }
    .value { text-align: center; margin-top: 4px; }
}

/* --- Estilos Boarding Pass --- */
.boarding-pass-container {
    background-color: #f4f4f4; /* Un fondo suave para resaltar los tickets */
    padding: 40px 20px;
}

.boarding-pass {
    background: #fff;
    max-width: 600px;
    margin: 0 auto 30px auto; /* Margen abajo para separar los tickets */
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    position: relative;
    border: 1px solid #e0e0e0;
}

/* Cabecera Azul (Ceremonia) */
.pass-header {
    background: #0A2342; /* Azul elegante */
    color: #fff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Cabecera Dorada (Fiesta - Opcional para diferenciar) */
.pass-header.party-header {
    background: #D4AF37; /* Dorado */
}

.pass-body {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Patrón de líneas opcional para fondo */
    background-image: repeating-linear-gradient(45deg, #f9f9f9 25%, transparent 25%, transparent 75%, #f9f9f9 75%, #f9f9f9), repeating-linear-gradient(45deg, #f9f9f9 25%, #fff 25%, #fff 75%, #f9f9f9 75%, #f9f9f9);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.pass-location, .pass-destination {
    flex: 1;
    text-align: center;
}

.pass-location h3, .pass-destination h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 700;
}

.pass-location p, .pass-destination p {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.time-big {
    font-size: 1.8rem;
    color: #0A2342;
    font-weight: 800;
}

.date-small {
    font-size: 1.2rem;
    color: #D4AF37;
    font-weight: 700;
    border: 2px solid #D4AF37;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    transform: rotate(-5deg); /* Efecto de sello */
}

.pass-icon {
    font-size: 2.5rem;
    margin: 0 15px;
    color: #ccc;
    animation: float 3s ease-in-out infinite; /* Pequeña animación */
}

.pass-footer {
    background: #f8f9fa;
    border-top: 2px dashed #ccc; /* Línea de corte */
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

/* Animación del avión flotando */
@keyframes float {
    0% { transform: translateY(0px) rotate(90deg); }
    50% { transform: translateY(-5px) rotate(90deg); }
    100% { transform: translateY(0px) rotate(90deg); }
}

/* Ajuste para móviles */
@media (max-width: 480px) {
    .pass-body {
        flex-direction: column;
        gap: 20px;
    }
    .pass-icon {
        transform: rotate(180deg); /* Flecha hacia abajo en móvil */
        margin: 10px 0;
    }
}

/* =========================================
   ESTILOS NUEVOS: PALETA BODA (Rose Gold & Blanco)
   ========================================= */

:root {
    /* Paleta Oficial */
    --rose-gold: #cba18e;       /* Tono principal rosado */
    --rose-gold-dark: #a87b6a;  /* Tono oscuro para textos */
    --gold-accent: #d4af37;     /* Dorado clásico para acentos */
    --white-soft: #fcfcfc;      /* Blanco suave de fondo */
    --text-dark: #555555;       /* Gris oscuro para lectura */
}

/* Contenedor principal */
.boarding-pass-container {
    background-color: var(--white-soft);
    padding: 50px 20px;
    border-top: 5px solid var(--rose-gold); /* Detalle superior rosado */
}

/* Estructura del Ticket */
.boarding-pass {
    background: #fff;
    max-width: 600px;
    margin: 0 auto 35px auto;
    border-radius: 16px;
    /* Sombra rosada muy suave y elegante */
    box-shadow: 0 15px 35px rgba(203, 161, 142, 0.2); 
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    position: relative;
    border: 1px solid #f0e6e6; /* Borde sutil rosado */
    transition: transform 0.3s ease;
}

.boarding-pass:hover {
    transform: translateY(-5px);
}

/* --- TICKET 1: CEREMONIA (Estilo Rose Gold) --- */
.pass-header {
    /* Fondo Rose Gold sólido y elegante */
    background: var(--rose-gold);
    color: #fff;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

/* --- TICKET 2: FIESTA (Estilo White & Gold) --- */
/* Sobreescribimos el header para el segundo ticket */
.pass-header.party-header {
    background: #fff; /* Fondo Blanco */
    color: var(--gold-accent); /* Texto Dorado */
    border-bottom: 2px solid var(--gold-accent); /* Línea dorada divisoria */
}

.pass-header.party-header .airline, 
.pass-header.party-header .flight-no {
    font-weight: 700; /* Un poco más grueso para que se lea bien sobre blanco */
}

/* CUERPO DEL TICKET */
.pass-body {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    /* Textura de puntos muy sutil */
    background-image: radial-gradient(#f0e6e6 1px, transparent 1px);
    background-size: 20px 20px;
}

.pass-location, .pass-destination {
    flex: 1;
    text-align: center;
}

.pass-location h3, .pass-destination h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0 0 5px 0;
    font-weight: 700;
}

.pass-location p, .pass-destination p {
    font-size: 0.8rem;
    color: #999;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hora grande */
.time-big {
    font-size: 1.6rem;
    color: var(--rose-gold-dark); /* Color oscuro del rosado */
    font-weight: 800;
    margin-top: 5px;
}

/* Fecha estilo sello */
.date-small {
    font-size: 1.1rem;
    color: var(--gold-accent);
    font-weight: 700;
    border: 2px solid var(--gold-accent);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    transform: rotate(-8deg);
}

/* Ícono central */
.pass-icon {
    font-size: 2.5rem;
    margin: 0 15px;
    color: #eaddd9; /* Gris-Rosado muy claro */
    animation: floatIcon 3s ease-in-out infinite;
}

/* PIE DE TICKET */
.pass-footer {
    background: #fdfbfb; /* Casi blanco */
    border-top: 2px dashed #eaddd9; /* Línea punteada suave */
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    position: relative;
}

/* Muecas de corte (Círculos) */
.pass-footer::before, .pass-footer::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--white-soft); /* Coincide con fondo container */
    border-radius: 50%;
    border: 1px solid #f0e6e6; /* Borde sutil para que no se vea cortado */
    border-top: none; /* Truco para simular el corte */
}
.pass-footer::before { left: -11px; border-right: none; }
.pass-footer::after { right: -11px; border-left: none; }

@keyframes floatIcon {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .pass-body {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    .pass-icon {
        transform: rotate(90deg);
        margin: 10px 0;
        animation: none;
    }
}

p {
    /* 1. Salimos de la carpeta 'css' (..) 
       2. Entramos a 'img' 
       3. Elegimos la imagen */
    background-image: url('../img/avion.png');
    
    /* Ajustes para que el avión se vea bonito */
    background-repeat: no-repeat;
    background-position: center bottom; /* Lo pone al fondo para no tapar tanto texto */
    background-size: 300px; /* Ajusta este número según qué tan grande lo quieras */
    padding-bottom: 50px; /* Un poco de espacio extra al final del texto */
}

p {
    /* Esto pone una capa blanca semi-transparente encima del avión */
    background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('../img/avion.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}