/* Variables de diseño y paleta */
:root {
    --color-oro: #d4a373;
    --color-oro-oscuro: #a67c52;
    --color-rosa-suave: #fcecee;
    --color-rosa-fuerte: #d98cb3;
    --color-rosa-polvo: #c88ea7;
    --color-texto: #5a4b46;

    --fuente-cursiva: 'Alex Brush', cursive;
    --fuente-titulos: 'Cinzel', serif;
    --fuente-cuerpo: 'Montserrat', sans-serif;
}

body {
    font-family: var(--fuente-cuerpo);
    color: var(--color-texto);
    background-color: #fff;
    overflow-x: hidden;
}

/* Efecto de degradado cíclico que baja a blanco */
.seccion-degradada {
    background: linear-gradient(180deg, var(--color-rosa-suave) 0%, #ffffff 100%);
    position: relative;
}

/* Tipografías auxiliares */
.fuente-cursiva {
    font-family: var(--fuente-cursiva);
    color: var(--color-rosa-fuerte);
    line-height: 1.1;
}

.fuente-titulos {
    font-family: var(--fuente-titulos);
    color: var(--color-oro-oscuro);
    letter-spacing: 2px;
}

/* Animación del sobre */
.cargando {
    overflow: hidden;
}

.sobre-contenedor {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    transition: opacity 0.4s ease 0.6s, visibility 0s ease 1s;
}

.sobre-mitad {
    height: 50%;
    width: 100%;
    background: #fcf1f3;
    box-shadow: 0 0 40px rgba(212, 163, 115, 0.2);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.sobre-arriba {
    border-bottom: 2px solid var(--color-oro);
    transform-origin: top;
}

.sobre-abajo {
    border-top: 2px solid var(--color-oro);
    transform-origin: bottom;
}

.sobre-sello {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, var(--color-oro), var(--color-oro-oscuro));
    border-radius: 50%;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.3rem;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

body.loaded .sobre-arriba {
    transform: translateY(-100%);
}

body.loaded .sobre-abajo {
    transform: translateY(100%);
}

body.loaded .sobre-sello {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
}

body.loaded .sobre-contenedor {
    opacity: 0;
    visibility: hidden;
}

/* Portada */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(252, 236, 238, 0.2), rgba(0, 0, 0, 0.45)), url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.nombres-hero {
    font-family: var(--fuente-cursiva);
    font-size: 6.5rem;
    color: #fff;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.4);
    min-height: 120px;
}

.titulo-hero {
    font-family: var(--fuente-titulos);
    color: var(--color-oro);
    letter-spacing: 5px;
    text-transform: uppercase;
}

.fecha-hero {
    color: #fff;
    letter-spacing: 3px;
    font-weight: 500;
    margin-top: 15px;
}

/* Contador */
.caja-contador {
    width: 95px;
    height: 95px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid var(--color-rosa-polvo);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(217, 140, 179, 0.2);
    margin: 0 auto;
    position: relative;
}

.caja-contador::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px dashed var(--color-oro);
    border-radius: 50%;
}

.caja-contador h2 {
    font-family: var(--fuente-titulos);
    font-size: 2.2rem;
    color: var(--color-oro-oscuro);
    margin: 0;
    line-height: 1;
}

.caja-contador small {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-texto);
}

/* Tarjetas de Sedes Niveladas */
.card-lugar {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(212, 163, 115, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lugar:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(217, 140, 179, 0.2);
}

.img-lugar {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-bottom: 4px solid var(--color-rosa-fuerte);
}

.card-lugar-cuerpo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* Botones principales */
.btn-lujo {
    background: linear-gradient(135deg, var(--color-rosa-fuerte), var(--color-rosa-polvo));
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(217, 140, 179, 0.4);
    transition: 0.3s;
}

.btn-lujo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(217, 140, 179, 0.55);
}

/* Itinerario Ampliado */
.itinerario {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 0;
}

.itinerario::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--color-rosa-polvo);
    transform: translateX(-50%);
}

.item-iti {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    width: 100%;
}

.item-iti:nth-child(odd) {
    flex-direction: row-reverse;
}

.contenido-iti {
    width: 42%;
    text-align: left;
}

.item-iti:nth-child(odd) .contenido-iti {
    text-align: right;
}

.punto-iti {
    width: 18px;
    height: 18px;
    background: var(--color-oro);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 5px #fff, 0 0 12px rgba(212, 163, 115, 0.6);
    z-index: 2;
}

.icono-iti {
    font-size: 3.2rem;
    color: var(--color-rosa-fuerte);
    margin-bottom: 8px;
    display: inline-block;
}

/* Tarjetas de Regalo y Vestimenta con efecto flotante */
.card-detalle-regalo {
    transition: transform 0.4s ease;
}

.card-detalle-regalo:hover {
    transform: translateY(-5px);
}

/* Formulario */
.form-elegante {
    background: #fff;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 45px rgba(217, 140, 179, 0.15);
    border: 1px solid rgba(217, 140, 179, 0.3);
}

.form-elegante .form-control,
.form-elegante .form-select {
    border: none;
    border-bottom: 2px solid var(--color-rosa-suave);
    border-radius: 0;
    padding: 10px 15px;
    background: transparent;
    color: var(--color-texto);
    font-weight: 500;
}

.form-elegante .form-control:focus,
.form-elegante .form-select:focus {
    box-shadow: none;
    border-color: var(--color-oro);
}

/* Audio flotante */
.btn-audio {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .nombres-hero {
        font-size: 4.5rem;
    }

    .itinerario::before {
        left: 25px;
    }

    .item-iti {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 65px;
    }

    .contenido-iti {
        width: 100%;
        text-align: left !important;
    }

    .punto-iti {
        left: 25px;
    }

    .form-elegante {
        padding: 2rem 1.5rem;
    }
}