/* =========================================
   VARIABLES DE COLOR - DEMO 2 (ELEGANCIA)
========================================= */
:root {
    --bg-crema: #f9f7f2;
    --azul-marino: #0a2239;
    --accent-gold: #D4AF37;
    --text-dark: #333333;
}

/* =========================================
   ESTILOS GENERALES Y TIPOGRAFÍA
========================================= */
body {
    /* Color base de tu invitación */
    background-color: var(--bg-crema);
    
    /* TEXTURA DE PAPEL GENERADA 100% CON CÓDIGO */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
    
    background-attachment: fixed; /* El fondo se queda quieto al hacer scroll */
    background-blend-mode: multiply; /* Mezcla la textura con el color crema */

    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

h1, h2, h3, .titulo-mediano, .subtitulo {
    font-family: 'Playfair Display', serif;
    color: var(--azul-marino);
    margin-top: 0;
}

.firma-novios { 
    font-family: 'Great Vibes', cursive; 
    font-size: 3.5rem; 
    color: var(--azul-marino);
    margin: 10px 0; 
}

/* =========================================
   DISEÑO DE ARCO (CONTENEDORES PRINCIPALES)
========================================= */
.contenedor-foto-arco {
    position: relative;
    max-width: 300px; /* Ancho máximo de la foto */
    margin: 0 auto;
    display: inline-block; /* Mantiene el contenedor del tamaño exacto de la foto */
}

.img-arco-portada {
    width: 100%;
    height: 400px; 
    object-fit: cover; 
    border-top-left-radius: 150px; 
    border-top-right-radius: 150px; 
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    display: block; /* Evita márgenes fantasma debajo de la imagen */
}

/* Estilo base para los adornos */
.adorno {
    position: absolute;
    bottom: -25px; /* Controla qué tan abajo cuelgan las flores */
    width: 120px;  /* Tamaño de tus flores */
    height: auto;
    z-index: 2; /* Asegura que estén por encima de la foto de los novios */
    pointer-events: none; /* Evita que estorben si el usuario toca la pantalla */
}

.adorno-izq {
    left: -40px; /* Qué tanto sobresalen hacia la izquierda */
}

.adorno-der {
    right: -40px; /* Qué tanto sobresalen hacia la derecha */
    /* transform: scaleX(-1); */ /* Quita los comentarios de esta línea si usas la misma imagen y quieres voltearla como espejo */
}

.arco-container {
    background-color: var(--azul-marino);
    color: white;
    border-top-left-radius: 150px;
    border-top-right-radius: 150px;
    padding: 60px 20px 40px;
    margin: 40px 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.arco-container h2, 
.arco-container h3, 
.arco-container p { 
    color: white; 
}

/* =========================================
   BOTONES E INPUTS
========================================= */
.btn-outline {
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    padding: 12px 25px;
    border: 2px solid var(--accent-gold);
    border-radius: 30px;
    background: transparent;
    color: var(--accent-gold);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover { 
    background: var(--accent-gold); 
    color: white; 
}

/* Botones dentro del arco cambian de color */
.arco-container .btn-outline { 
    color: white; 
}

.arco-container .btn-outline:hover { 
    color: var(--azul-marino); 
}

/* Inputs para confirmación de asistencia */
.rsvp-input {
    padding: 12px 15px;
    border-radius: 25px;
    border: 1px solid var(--accent-gold);
    background: transparent;
    color: var(--text-dark);
    font-size: 1rem;
    text-align: center;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.arco-container .rsvp-input { 
    color: white; 
}

.arco-container .rsvp-input::placeholder { 
    color: rgba(255,255,255,0.7); 
}

/* =========================================
   LÍNEA DE TIEMPO DINÁMICA (ITINERARIO)
========================================= */
.timeline-bodas {
    position: relative;
    max-width: 400px;
    margin: 30px auto;
    padding: 20px 0;
}

.timeline-bodas::before {
    content: '';
    position: absolute;
    top: 0; 
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: var(--accent-gold);
}

.bloque-lugar {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
    text-align: left;
}

.bloque-lugar:last-child { 
    margin-bottom: 0; 
}

.bloque-lugar::before {
    content: '♥';
    position: absolute;
    left: 11px; 
    top: 0;
    color: var(--accent-gold);
    font-size: 20px;
    background-color: var(--bg-crema); /* Tapa la línea por detrás */
    padding: 5px 0;
}

.bloque-lugar h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.bloque-lugar p {
    margin: 3px 0;
    font-size: 0.9rem;
}

/* =========================================
   GALERÍA DE FOTOS Y MODAL
========================================= */
.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.galeria-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.galeria-img:hover {
    transform: scale(1.05);
}

/* Fondo oscuro para cuando tocan una foto */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-contenido {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================================
   RELOJ (CUENTA REGRESIVA)
========================================= */
.tiempo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tiempo span {
    background-color: var(--azul-marino);
    color: var(--accent-gold);
    padding: 10px 15px;
    border-radius: 10px;
    min-width: 45px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   ANIMACIONES (FADE IN AL HACER SCROLL)
========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   REPRODUCTOR DE MÚSICA PERSONALIZADO
========================================= */
.btn-control {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.btn-control:hover {
    opacity: 1;
}

.btn-play-circular {
    width: 50px;
    height: 50px;
    background-color: var(--azul-marino);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(10, 34, 57, 0.3);
    transition: transform 0.2s;
}

.btn-play-circular:hover {
    transform: scale(1.05);
}

/* Diseño de la barra fina (slider) */
#barra-progreso {
    -webkit-appearance: none;
    width: 100%;
    height: 3px;
    background: rgba(10, 34, 57, 0.2); /* Azul marino transparente para el fondo */
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: background 0.1s;
}

#barra-progreso::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--azul-marino);
    cursor: pointer;
}

#barra-progreso::-moz-range-thumb {
    width: 12px;    height: 12px;
    border: none;
    border-radius: 50%;
    background: var(--azul-marino);
    cursor: pointer;
}