/* style.css */
:root {
    --color-primary: #8a2be2; /* Azul violeta para elementos principales (botones, iconos) */
    --color-secondary: #e6e6fa; /* Lavanda (Lila pálido) para tarjetas y fondos sutiles */
    --color-background: #f8f8ff; /* Lila muy sutil para el fondo del body */
    --color-text: #333333; /* Texto oscuro general */
    --color-light-text: #666666; /* Texto gris claro para subtítulos */
    --color-banner-text: #4b0082; /* Tono oscuro para nombres en el banner */
}

body {
    font-family: 'Montserrat', sans-serif; /* Fuente base para la mayoría del texto */
    margin: 0;
    padding: 0;
    background-color: var(--color-background); 
    color: var(--color-text);
}

/* Header/Nav */
header {
    background-color: var(--color-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    font-family: 'Parisienne', cursive; /* Fuente cursiva para el logo */
    font-size: 2em;
    font-weight: normal;
    color: var(--color-primary);
}

.nav-links a {
    color: var(--color-light-text);
    text-decoration: none;
    margin-left: 25px;
    font-size: 1em;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* General Sections */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Título principal (Alondra & Eder) en el banner */
h1 {
    font-family: 'Parisienne', cursive; /* ¡Nueva fuente cursiva! */
    font-size: 5.5em; 
    font-weight: normal; 
    color: var(--color-banner-text);
    margin-top: 0;
    margin-bottom: 20px; 
    position: relative; 
    display: inline-block; 
}

/* Línea decorativa debajo del nombre (h1) */
h1::after {
    content: '';
    display: block;
    width: 60%; 
    height: 2px; 
    background-color: var(--color-banner-text); 
    margin: 10px auto 0 auto; 
    border-radius: 1px;
}

/* Títulos de sección (Detalles, Ubicación, etc.) */
h2, h3 {
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0;
}

/* Subtítulo general ("Nos complace invitarte...") */
.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em; 
    color: var(--color-light-text);
    margin-bottom: 10px;
}

/* Texto de descripción en el banner */
#inicio p {
    font-size: 1.15em; 
    line-height: 1.6; 
    max-width: 600px; 
    margin: 20px auto 30px auto; 
    color: var(--color-text);
}

/* Estilos específicos para la sección de inicio (banner) */
#inicio {
    padding: 150px 20px;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('../img/banner-boda.jpg') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Fecha y Hora: CORREGIDO para visualización móvil (separado) */
#inicio .fecha-grande {
    font-size: 2.2em; 
    color: var(--color-text); 
    margin-bottom: 5px; 
}

#inicio .hora-grande {
    font-size: 1.8em; 
    color: var(--color-text); 
    margin-bottom: 30px;
}

/* Contador Regresivo */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.countdown-box {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 80px;
}

.countdown-box span {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: var(--color-primary);
}

.countdown-box small {
    display: block;
    font-size: 0.9em;
    color: var(--color-light-text);
    margin-top: 5px;
}

/* OCULTAR SEGUNDOS: El último (cuarto) elemento del contador */
.countdown-box:nth-child(4) {
    display: none;
}

/* Seccion Detalles */
.detail-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.detail-card {
    background-color: var(--color-secondary);
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.detail-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.detail-card p {
    color: var(--color-text);
}

.icon {
    font-size: 2em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* Codigo de Vestimenta */
.dress-code-details {
    margin-top: 20px;
    padding: 20px;
    background-color: #ffe0e0; 
    border-radius: 10px;
    color: #cc0000;
    font-weight: 600;
}

/* Seccion Ubicacion */
.venue-info {
    display: flex;
    text-align: left;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

.info-details {
    flex: 1;
    min-width: 300px;
    background-color: var(--color-secondary);
    padding: 30px;
    border-radius: 15px;
}

.info-details div {
    margin-bottom: 20px;
}

.info-details strong {
    display: block;
    font-size: 1.1em;
    color: var(--color-primary);
    margin-bottom: 5px;
}

/* Boton general (Usado en el dashboard y links) */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #5d2296; 
}

/* Formulario de Confirmacion */
.confirmation-form {
    background-color: var(--color-secondary);
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    margin: 40px auto;
    text-align: left;
}

.confirmation-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Asegura que los selects en la confirmación se vean bien */
.confirmation-form input[type="number"],
.confirmation-form textarea,
.confirmation-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.confirmation-message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Video Responsive (Añadido para el video del fotógrafo) */
.video-container {
    position: relative;
    width: 100%;
    /* Mantener proporción 16:9 */
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 800px; 
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Galeria */
.photo-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 15px; 
    margin-top: 40px;
}
.photo-grid img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    border-radius: 8px; 
    transition: transform 0.3s; 
    cursor: pointer; 
}
.photo-grid img:hover { 
    transform: scale(1.05); 
}

footer {
    padding: 20px;
    text-align: center;
    color: var(--color-light-text);
    font-size: 0.9em;
}