:root{
    --color-primary: #627567;
    --color-secondary: #b6e9c7;
    --color-tertiary: #4dca8e;
    --color-contrast: #c5a46f;
}

body{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;


    /* font-family: "Sue Ellen Francisco", cursive !important; */
    font-family: "Vibur", cursive !important;

    font-weight: 400;
    font-style: normal;
    letter-spacing: 1.5px;
    font-size:20px;
    line-height: 1.3;
    position:relative;
}

.bg-contrast{
    background:var(--color-contrast);
}

.text-contrast{
    color:var(--color-contrast);
}
.text-main-3{
    color:var(--color-tertiary);
}
.bg-main{
    background:var(--color-primary);
}

.bg-main-2{
    background:var(--color-secondary);
}

.bg-main-3{
    background:var(--color-tertiary);
}

#nombre_bebe{
    font-size:30px;letter-spacing:5px;bottom:-35px;left:51%;transform:translateX(-50%);text-shadow:3px 2px 0px #00000024;
}

@media(max-width:992px){
    #nombre_bebe{
        text-shadow: none !important;
    }
}

.my-6{
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.mt-6{
    margin-top: 5rem;
}

.mb-6{
    margin-bottom: 5rem;
}

.container-main{
    width:370px;
    overflow:hidden;
}

@media(min-width:992px){
    .container-main{
        transform: scale(1.2);
        padding: 382px 0px 346px 0px;
    }
    
}

.container-main-2{
    width:370px;
}

@media(max-width:992px){
    .container-main-2{
        overflow:hidden;
    }
}
@media(min-width:992px){
    .container-main-2{
        transform: scale(1.2);
        padding: 364px 0px 0px 0px;
    }
    
}

.web-center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.star{
    width: 95px;
    margin-top: 10px;
    margin-left: 26px;
    margin-bottom: 15px;
}

.font-cursiva{
    /* font-family: "Lobster", sans-serif !important; */
    font-family: "Finger Paint", sans-serif !important;
}

.text-dino-boy{
    color:var(--color-primary);
}



.swiper {
width: 100%;
padding-top: 50px;
padding-bottom: 50px;
overflow: visible !important;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 300px;
}

.swiper-slide img {
    display: block;
    width: 100%;
}


.swiper-slide{
    width:280px !important;
    height:280px !important;
}

.w_slider{
    width:500px;
    overflow-x: hidden;
    overflow-y: visible;
    mask-image: linear-gradient(
        to right, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,1) 25%, 
        rgba(0,0,0,1) 75%, 
        rgba(0,0,0,0) 100%
    );
    height:320px;
}

@media(max-width:992px){
    .w_slider{
        width:370px !important;
        height:290px !important;
    }
    .swiper-slide{
        width:220px !important;
        height:220px !important;
    }
}

.swiper-pagination-horizontal{
    bottom: -40px !important;
}


.swiper-pagination-bullet{
    background: var(--color-primary) !important;
    opacity:0.6 !important;
    width: 10px !important;
    height: 10px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active{
    background: var(--color-primary) !important;
    width: 20px !important;
    height: 20px !important;
    opacity: 1 !important;
    margin-bottom: -4px !important;
}

@media(max-width:992px){
    .swiper-pagination-bullet{
        width: 8px !important;
        height: 8px !important;
        margin:0 2px !important;
        
    }
    .swiper-pagination-bullet-active{
        width: 12px !important;
        height: 12px !important;
        margin-bottom: 0px !important;
    }
}

.swiper-slide-shadow-left, 
.swiper-slide-shadow-right{
    opacity: 0 !important;
}

/* Animación para los globos - movimiento vertical continuo desde abajo hasta arriba */
@keyframes subir-globo {
    0% {
        bottom: -210px; /* Comienza fuera de la pantalla (debajo) */
    }
    100% {
        bottom: 100vh; /* Termina fuera de la pantalla (arriba) */
    }
}

.globo-flotante {
    position: absolute;
    bottom: -210px; /* Posición inicial fuera de la pantalla */
}

/* Globo 1 - Velocidad rápida (12 segundos) */
.globo-1 {
    animation: subir-globo 12s linear infinite;
}

/* Globo 2 - Velocidad media (15 segundos) */
.globo-2 {
    animation: subir-globo 15s linear infinite;
    animation-delay: -5s; /* Inicia en un punto diferente para variación */
}

/* Globo 3 - Velocidad lenta (18 segundos) */
.globo-3 {
    animation: subir-globo 18s linear infinite;
    animation-delay: -10s; /* Inicia en un punto diferente para variación */
}

.globo-4, .globo-5, .globo-6 {
    display: none;
}

.w_globos{
    width:370px;
}

/* Globos solo desktop */
@media(min-width:992px){

    .w_globos{
        width:100%;
    }

    .globo-4, .globo-5, .globo-6 {
        display: block !important;
    }
    .globo-4 {
        animation: subir-globo 22s linear infinite;
        animation-delay: -7s;
    }

    .globo-5 {
        animation: subir-globo 7s linear infinite;
        animation-delay: -12s;
    }

    .globo-6 {
        animation: subir-globo 12s linear infinite;
        animation-delay: -15s;
    }
}

/* ============================================
   ANIMACIÓN PARA LA ONDA DEL LATIDO DEL CORAZÓN
   ============================================ */
@keyframes heartbeat-wave-scroll {
    0% {
        left: 0;
    }
    100% {
        left: -370px; /* Desplaza la imagen completa hacia la izquierda */
    }
}

@keyframes heartbeat-wave-scroll-2 {
    0% {
        left: 370px; /* La segunda imagen comienza justo después de la primera */
    }
    100% {
        left: 0; /* Cuando termina, está en la posición inicial */
    }
}

/* Asegurar que la animación se vea suave */
.heartbeat-wave-img {
    will-change: left;
    transition: animation 0.3s ease;
}

/* ============================================
   ANIMACIONES DE ENTRADA TIPO POPUP AL SCROLL
   ============================================ */

/* Estado inicial: elementos ocultos y más grandes */
.animacion-popup-entrada {
    opacity: 0;
    transform: scale(1.3);
    transition: opacity 2.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 2.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Estado activo: elementos visibles y tamaño normal */
.animacion-popup-entrada.animacion-activa {
    opacity: 1;
    transform: scale(1);
}

/* Variaciones de delay para crear efecto escalonado */
.animacion-popup-entrada.delay-1 {
    transition-delay: 0.1s;
}

.animacion-popup-entrada.delay-2 {
    transition-delay: 0.2s;
}

.animacion-popup-entrada.delay-3 {
    transition-delay: 0.3s;
}

.animacion-popup-entrada.delay-4 {
    transition-delay: 0.4s;
}

/* Delay inicial más largo para las primeras animaciones (esperan a que las imágenes carguen) */
.animacion-popup-entrada.delay-inicial,
.animacion-popup-imagen.delay-inicial,
.animacion-popup-texto.delay-inicial {
    transition-delay: 0.8s;
}

.animacion-popup-entrada.delay-inicial-1,
.animacion-popup-imagen.delay-inicial-1,
.animacion-popup-texto.delay-inicial-1 {
    transition-delay: 1.0s;
}

.animacion-popup-entrada.delay-inicial-2,
.animacion-popup-imagen.delay-inicial-2,
.animacion-popup-texto.delay-inicial-2 {
    transition-delay: 1.2s;
}

.animacion-popup-entrada.delay-inicial-3,
.animacion-popup-imagen.delay-inicial-3,
.animacion-popup-texto.delay-inicial-3 {
    transition-delay: 1.4s;
}

.animacion-popup-entrada.delay-inicial-4,
.animacion-popup-imagen.delay-inicial-4,
.animacion-popup-texto.delay-inicial-4 {
    transition-delay: 1.6s;
}

/* Para imágenes específicas */
.animacion-popup-imagen {
    opacity: 0;
    transform: scale(1.4);
    transition: opacity 2.7s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 2.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animacion-popup-imagen.animacion-activa {
    opacity: 1;
    transform: scale(1);
}

/* Para textos específicos */
.animacion-popup-texto {
    opacity: 0;
    transform: scale(1.25);
    transition: opacity 2.65s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 2.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animacion-popup-texto.animacion-activa {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   LOADER DE CARGA - PANTALLA DE CARGA
   ============================================ */

.loader-carga-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* background: linear-gradient(135deg, #b6e9c7 0%, #a8d9b8 50%, #627567 100%); */
    display: none; /* Inicia oculto */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
    visibility: hidden;
}

/* Clase para mostrar el loader cuando sea necesario */
.loader-carga-container.mostrando {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.loader-carga-container.ocultando {
    opacity: 0;
    visibility: hidden;
}

.loader-carga-contenido {
    text-align: center;
    width: 90%;
    max-width: 400px;
}

/* Texto "CARGANDO" con animación de letras */
.loader-carga-texto {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.loader-letra {
    font-family: "Finger Paint", sans-serif;
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-primary);
    text-shadow: 3px 3px 0px rgba(255, 255, 255, 0.5);
    display: inline-block;
    animation: letra-bounce 1.2s ease-in-out infinite;
    transform-origin: center;
}

/* Animación escalonada para cada letra */
.loader-letra:nth-child(1) { animation-delay: 0s; }
.loader-letra:nth-child(2) { animation-delay: 0.1s; }
.loader-letra:nth-child(3) { animation-delay: 0.2s; }
.loader-letra:nth-child(4) { animation-delay: 0.3s; }
.loader-letra:nth-child(5) { animation-delay: 0.4s; }
.loader-letra:nth-child(6) { animation-delay: 0.5s; }
.loader-letra:nth-child(7) { animation-delay: 0.6s; }
.loader-letra:nth-child(8) { animation-delay: 0.7s; }

@keyframes letra-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

/* Contenedor de la barra de progreso */
.loader-barra-contenedor {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Barra de progreso */
.loader-barra-progreso {
    height: 100%;
    width: 0%;
    background: var(--color-secondary);
    border-radius: 10px;
    transition: width 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(77, 202, 142, 0.4);
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo animado en la barra */
.loader-barra-progreso::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: brillo-barra 2s infinite;
}

@keyframes brillo-barra {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .loader-letra {
        font-size: 2rem;
    }
    
    .loader-carga-texto {
        gap: 4px;
        margin-bottom: 30px;
    }
    
    .loader-barra-contenedor {
        height: 10px;
    }
}

/* ============================================
   ANIMACIÓN FADE-IN PARA IMÁGENES DE FONDO
   ============================================ */

.imagen-fade-in {
    opacity: 0 !important;
    transition: opacity 1.2s ease-in-out;
}

.imagen-fade-in.imagen-cargada {
    opacity: 1 !important;
}

/* Para el fondo general, mantener el z-index bajo */
#bg_general_body {
    z-index: -1;
    top: 0;
    left: 0;
}

/* Asegurar que los globos mantengan su opacidad cuando están cargados */
.globo-flotante.imagen-fade-in.imagen-cargada {
    opacity: 0.5 !important; /* Mantener la opacidad original de los globos */
}
