/* ==========================================================================
   1. CONFIGURACIÓN GENERAL Y VARIABLES
   ========================================================================== */
:root {
    --bg-color: #f7f5f0;       /* Beige muy suave de fondo */
    --primary-color: #c4a468;  /* Dorado elegante para detalles y botones */
    --primary-hover: #b08f54;  /* Dorado más oscuro para el hover */
    --text-dark: #333333;      /* Gris oscuro para texto principal */
    --text-muted: #777777;     /* Gris suave para subtítulos */
    --white: #ffffff;
    --font-titles: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* ==========================================================================
   2. ESTILOS COMPARTIDOS (TARJETAS Y BOTONES)
   ========================================================================== */
/* ==========================================================================
   2. ESTILOS COMPARTIDOS (TARJETAS Y CONTENEDOR CON FONDO Y DOBLE BORDE)
   ========================================================================== */
.card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(196, 164, 104, 0.2);
}

.landing-container {
    background-image: url('../images/fondo-bautizo.jpg'); /* Carga la nueva imagen */
    background-size: cover;        /* Cubre todo el contenedor */
    background-position: center;    /* Centra los elementos del fondo */
    background-repeat: no-repeat;
    padding: 45px 35px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    max-width: 520px;
    width: 100%;
    text-align: center;
    
    /* DOBLE BORDE ELEGANTE: */
    border: 1px solid rgba(43, 92, 143, 0.2); /* Borde externo azul grisáceo tenue */
    position: relative;
}

/* MARCO DORADO INTERNO (Efecto Tarjeta de Gala) */
.landing-container::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid var(--primary-color); /* Filete dorado interno */
    border-radius: 12px;
    pointer-events: none; /* Permite hacer clic en los botones de abajo sin estorbar */
    opacity: 0.7;
}



h1, h2, h3 {
    font-family: var(--font-titles);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* ==========================================================================
   3. MAQUETACIÓN: LANDING PAGE (views/landing.php)
   ========================================================================== */
.hero-section {
    margin-bottom: 30px;
}

.hero-section h1, .fecha-section h2, .detalle-bloque h3 {
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8); /* Hace que el texto flote elegantemente sobre las nubes */
}

.cruz-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-section h1 {
    font-size: 24px;
    font-weight: 600;
}

.lema {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.linea-divisoria {
    width: 60px;
    height: 1px;
    background-color: var(--primary-color);
    margin: 20px auto 0 auto;
}

/* Sección Fecha */
.fecha-section {
    margin-bottom: 45px;
}

.fecha-section h2, .fecha-section h3 {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
}

.numero-dia {
    font-family: var(--font-titles);
    font-size: 54px;
    line-height: 1;
    color: var(--primary-color);
    margin: 5px 0;
}

/* Sección Detalles (Ceremonia y Recepción) */
.detalles-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.detalle-bloque .icono-detalle {
    font-size: 28px;
    margin-bottom: 5px;
}

.detalle-bloque h3 {
    font-size: 16px;
    color: var(--primary-color);
}

.detalle-bloque .lugar {
    font-weight: 500;
    font-size: 15px;
}

.detalle-bloque .hora {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.btn-mapa {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid var(--white);
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
}

.btn-mapa:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.landing-footer .agradecimiento {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.landing-footer .familia {
    font-family: var(--font-titles);
    font-size: 15px;
    font-weight: 600;
}

/* ==========================================================================
   4. MAQUETACIÓN: RSVP / CONFIRMACIÓN (views/rsvp.php)
   ========================================================================== */
.rsvp-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.formulario-card h1 {
    font-size: 20px;
    margin-bottom: 8px;
}

.subtitulo {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Formularios */
.form-group {
    text-align: left;
    margin-bottom: 25px;
}

.main-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.radio-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.radio-label {
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label:not(.main-label):not(.radio-label) {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    background-color: #fafafa;
    outline: none;
    transition: border 0.3s;
}

select:focus {
    border-color: var(--primary-color);
}

small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 4px;
}

/* Botón de envío */
.btn-confirmar {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px;
    font-family: var(--font-titles);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-confirmar:hover {
    background-color: var(--primary-hover);
}

/* Vista de Éxito / Ya confirmó */
.gracias-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.resumen-confirmacion {
    background-color: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
    display: inline-block;
    min-width: 200px;
}

.resumen-confirmacion p {
    font-size: 14px;
    margin-bottom: 5px;
}

.Footer-nota {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================================================
   FOTO DEL BEBÉ (Ajuste elegante y circular)
   ========================================================================== */
.foto-bebe-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px auto;
    width: 100%;
}

.marco-circular-dorado {
    width: 200px;           /* Tamaño ideal para pantallas móviles y ordenadores */
    height: 200px;
    border-radius: 50%;     /* Hace el contenedor perfectamente circular */
    border: 3px solid var(--primary-color); /* Utiliza el dorado elegante configurado en :root */
    padding: 6px;           /* Crea el efecto de separación blanco entre el borde y la foto */
    background-color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;       /* Recorta la imagen para que no sobresalga del círculo */
    display: flex;
    justify-content: center;
    align-items: center;
}

.foto-bebe {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Crucial: escala y centra la foto automáticamente sin distorsionarla */
    border-radius: 50%;     /* Refuerza la forma circular en la imagen interna */
}

/* ==========================================================================
   5. RESPONSIVE / MEDIA QUERIES
   ========================================================================== */
@media (min-width: 480px) {
    /* En pantallas medianas/grandes, mostramos los bloques uno al lado del otro */
    .detalles-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
    }

    .detalle-bloque {
        flex: 1;
    }

    .separador-vertical {
        width: 1px;
        background-color: rgba(196, 164, 104, 0.3);
        margin: 0 10px;
    }
}