/* ============================================================
   PANTALLA DE CARGA UNIFICADA: IMAGEN 3D + TEXTO CENTRADO
   ============================================================ */

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fondo con ligero viñeteado para dar profundidad */
    background: radial-gradient(circle, #ffffff, #f0f0f0); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content {
    text-align: center;
    color: #2e4722; /* Tu verde temático de la boda */
}

/* Contenedor relativo: define el área donde el texto se centrará */
.image-loader-container {
    position: relative;
    display: inline-block; /* Se ajusta al ancho de la imagen */
    margin: 0 auto 20px auto;
    /* Animación de latido orgánica (pum-pum) */
    animation: heartbeat3D 1.8s infinite ease-in-out;
}

/* Imagen del corazón reducida al 50% (60px) */
.loader-img-file {
    width: 200px; 
    height: auto;
    display: block;
    /* Efecto de elevación 3D */
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.2));
}

/* Centrado absoluto de F&C sobre el corazón */
.heart-text-inside {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Desplaza el texto exactamente a su centro visual */
    transform: translate(-50%, -50%); 
    
    /* Tipografía elegante */
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1.1rem; /* Ajustado proporcionalmente al tamaño de 60px */
    color:  #2e4722; /* verde temático */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    pointer-events: none; /* Evita interferencias con el mouse */
    white-space: nowrap;
}

/* Mensaje inferior */
.loader-content p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Animación de latido 3D */
@keyframes heartbeat3D {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); } /* Expansión rápida */
    30% { transform: scale(1.05); } /* Rebote sutil */
    45% { transform: scale(1.1); }  /* Expansión suave */
}

/* Clase de salida */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* =========================================
    GLOBAL: RESETS Y TIPOGRAFÍA
/* =========================================
    /* TÍTULOS */
    h1 {
        font-family: 'Playfair Display', serif;
        color: #ffffff;
        font-weight: 700;
        letter-spacing: 2px;
        text-align: center;
        margin-bottom: 10px;    
    }

    h3, p {
        font-family: 'Playfair Display', serif;
        color: #cdaa6c; /* Dorado */
        font-weight: 700;
        letter-spacing: 1px;
        text-align: center;
        margin-bottom: 15px;
    }

    h2 {
        font-family: 'Cinzel', serif;
        color: #cdaa6c;
        font-weight: 700;
        letter-spacing: 2px; 
        text-align: center;
        margin-bottom: 30px;
        font-size: 2.5rem;
    }
/* =========================================
   GLOBAL: RESETS Y TIPOGRAFÍA
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif; /* Fuente elegante */
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}