/* =========================================
   FUENTES (ALEX BRUSH, CINZEL, CORMORANT)
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@400;500&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg-cream: #FDFBF7; /* Crema muy claro */
    --text-main: #4A4238; /* Café grisáceo */
    --accent-gold: #C5A880; /* Dorado pastel opaco */
    --primary-color: #0080ff; 
    
    --font-name: 'Alex Brush', cursive;
    --font-titles: 'Cinzel', serif;
    --font-text: 'Cormorant Garamond', serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: #EFEBE1; /* Fondo oscuro exterior en PC */
    color: var(--text-main);
    font-family: var(--font-text);
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
}

/* =========================================
   ENVOLTORIO (LA MAGIA DE LA TARJETA)
========================================= */
.invitation-wrapper {
    max-width: 500px; /* Obliga a que siempre se vea como en un celular */
    margin: 0 auto;
    background-color: var(--bg-cream);
    box-shadow: 0 0 30px rgba(0,0,0,0.05); /* Efecto de tarjeta física en PC */
    overflow-x: hidden;
    padding-bottom: 40px;
}

/* =========================================
   DIVISORES FLORALES
========================================= */
.divisor {
    width: 60%;
    height: 1px;
    background: var(--accent-gold);
    margin: 3.5rem auto;
    position: relative;
    opacity: 0.6;
}
.divisor::after {
    content: '❦';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-cream);
    padding: 0 15px;
    color: var(--accent-gold);
    font-size: 1.5rem;
}
.divisor-sutil {
    width: 40px;
    height: 1px;
    background: var(--accent-gold);
    margin: 15px auto;
}

/* Línea sutil sin adornos (para usar en cualquier lado) */
.linea-separadora {
    width: 80%; /* Qué tan ancha quieres que sea la línea */
    height: 1px; /* El grosor de la línea */
    background-color: var(--accent-gold); /* Toma tu color dorado */
    opacity: 0.3; /* La hace semitransparente para que se vea súper fina */
    margin: 2.5rem auto; /* Da espacio arriba/abajo y la centra */
}

/* =========================================
   BOTÓN MÚSICA
========================================= */
.music-player {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    background: var(--bg-cream); 
    color: var(--accent-gold); 
    border: 1px solid var(--accent-gold);
    border-radius: 50%; 
    width: 50px; 
    height: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    z-index: 1000; 
}

/* =========================================
   PORTADA (EFECTO ARCO)
========================================= */
.hero-section {
    padding-top: 2rem;
    text-align: center;
}
.foto-arco {
    width: 90%;
    max-width: 380px;
    height: 550px;
    object-fit: cover;
    border-radius: 200px 200px 0 0; /* Forma de ventana o arco */
    border: 2px solid var(--accent-gold);
    padding: 6px; /* Doble línea dorada */
    background: var(--bg-cream);
    display: block;
    margin: 0 auto 2rem;
}
.hero-content .title {
    font-family: var(--font-name);
    font-size: 6.5rem;
    color: var(--primary-color);
    margin: -40px 0 0 0; /* Sube el nombre para superponerse un poco a la foto */
    line-height: 1;
    position: relative;
    z-index: 10;
}
.hero-content .subtitle {
    font-family: var(--font-titles);
    font-size: 1.1rem;
    letter-spacing: 6px;
    color: var(--accent-gold);
    margin-top: 10px;
}
.fecha-hero {
    font-family: var(--font-text);
    font-size: 1.4rem;
    color: var(--text-main);
    font-style: italic;
}

/* =========================================
   TEXTOS Y SECCIONES
========================================= */
section {
    padding: 1rem 2rem;
    text-align: center;
}
.titulo-seccion {
    font-family: var(--font-titles);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 400;
}
.texto-introduccion {
    font-family: var(--font-titles);
    font-size: 1rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.6;
}
.nombres-script {
    font-family: var(--font-name);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

/* =========================================
   NEUTRALIZADOR DE CÓDIGO PYTHON
========================================= */
.detail-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1rem 0 !important;
    margin-bottom: 2rem !important;
    border-bottom: 1px solid rgba(197, 168, 128, 0.3) !important; 
    border-radius: 0 !important;
}
.detail-card:last-child {
    border-bottom: none !important;
}
.detail-card h3 {
    font-family: var(--font-titles);
    font-size: 1.3rem;
    color: var(--text-main);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* Arreglo del Dress Code (Tamaño de las bolitas) */
.color-box {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    display: inline-block !important;
}

/* =========================================
   ITINERARIO (LÍNEA CENTRAL Y CÍRCULOS)
========================================= */
.itinerario-container {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px 0;
}

/* La línea punteada dorada en el centro */
.itinerario-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    border-left: 1px dashed var(--accent-gold);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-evento {
    display: block !important; 
    position: relative;
    margin-bottom: 2.5rem !important;
    border: none !important;
    padding: 0 !important;
    z-index: 2;
}

/* Ocultamos cualquier punto viejo */
.timeline-evento::before { display: none !important; } 

.timeline-contenido {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    /* Aquí ocurre la magia: dividimos en 3 columnas exactas */
    display: grid !important;
    grid-template-columns: 1fr 40px 1fr !important; 
    align-items: center !important;
    flex-direction: row !important; 
}

/* 1. ÍCONO (COLUMNA IZQUIERDA) */
.timeline-icono-derecha {
    order: 1 !important; /* Lo forzamos a ser el primero */
    margin: 0 !important; 
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: flex-end !important; /* Pega el ícono hacia la línea */
    padding-right: 15px; 
}
.timeline-icono-derecha svg {
    width: 32px !important;
    height: 32px !important;
    stroke: var(--accent-gold) !important;
    stroke-width: 1.2 !important;
}

/* 2. CÍRCULO CENTRAL (COLUMNA DEL MEDIO) */
.timeline-contenido::before {
    content: '';
    order: 2 !important; /* Lo forzamos al centro */
    width: 22px;
    height: 22px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    background-color: var(--bg-cream); /* Tapa la línea punteada que pasa por detrás */
    margin: 0 auto;
}

/* 3. TEXTOS (COLUMNA DERECHA) */
.timeline-textos {
    order: 3 !important; /* Lo forzamos al final */
    text-align: left !important;
    padding-left: 15px; 
}
.timeline-hora {
    font-family: var(--font-titles) !important;
    font-size: 0.95rem !important;
    color: var(--accent-gold) !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    margin-bottom: 5px !important;
}
.timeline-textos h3 {
    font-family: var(--font-text) !important;
    font-size: 1.4rem !important;
    color: var(--text-main) !important;
    margin: 0 !important;
    font-weight: normal !important;
    letter-spacing: 0 !important;
}
.timeline-textos p {
    font-size: 0.85rem !important;
    margin-top: 3px !important;
    opacity: 0.7 !important;
}

/* =========================================
   BOTONES
========================================= */
.btn-primary {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent-gold);
    font-family: var(--font-titles);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s ease;
}
.btn-primary:hover {
    background: var(--accent-gold);
    color: #fff;
}

/* =========================================
   GALERÍA DE FOTOS (2 COLUMNAS FIJAS)
========================================= */
.galeria-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.galeria-img {
    width: calc(50% - 15px); /* Obliga a que siempre sean 2 por fila */
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--accent-gold);
    padding: 3px;
    cursor: pointer;
}

/* =========================================
   MODAL DE FOTOS (VENTANA EMERGENTE)
========================================= */
.modal-galeria {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0; 
    top: 0; 
    width: 100vw; 
    height: 100vh; 
    background-color: rgba(253, 251, 247, 0.95); /* Crema casi opaco */
    backdrop-filter: blur(5px);
}

.modal-contenido {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-main);
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
}

.cerrar-modal:hover {
    color: var(--accent-gold);
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   CONTADOR (EL GRAN DÍA)
========================================= */
.contador-elegante {
    display: flex;
    justify-content: center;
    gap: 20px; /* Separación entre los bloques de tiempo */
    margin: 20px 0;
}

/* Cada bloque (Días, Horas, Minutos, Segundos) */
.contador-elegante div {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

/* Estilo para los Números (Ej: 10, 24, 59) */
.contador-elegante div span:first-child {
    font-family: var(--font-titles);
    font-size: 3.5rem; /* Números muy grandes y elegantes */
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

/* Estilo para las etiquetas (DÍAS, HORAS, MINUTOS) */
.contador-elegante div span:last-child {
    font-family: var(--font-titles);
    font-size: 0.75rem;
    color: var(--accent-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}