/* ====================================================================== */
/* 0. ESTILOS GLOBALES Y VARIABLES */
/* ====================================================================== */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* Las variables se asumen definidas en otro archivo o aquí (omitidas por brevedad) */
}

/* ---------------------------------------------------------------------- */
/* 1. SECCIÓN PRINCIPAL HERO (Full Height y Full Width) */
/* ---------------------------------------------------------------------- */
.seccion-inicio-hermosa {
    /* Altura que resta Header y Footer */
    min-height: calc(100vh - 144px);
    max-height: calc(100vh - 144px);
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    background: linear-gradient(180deg, var(--fondo-general, #e9f0f9) 0%, var(--blanco, #ffffff) 100%);
    border-radius: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px 0;
    box-sizing: border-box;
    overflow-y: auto;
}

/* ---------------------------------------------------------------------- */
/* 2. CONTENEDOR INTERNO (Ancho Completo y Flexbox) */
/* ---------------------------------------------------------------------- */
.contenedor-principal-heroe {
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 80px;
}

/* ---------------------------------------------------------------------- */
/* 3. COLUMNA DE TEXTO (Izquierda) */
/* ---------------------------------------------------------------------- */
.columna-texto {
    flex: 1;
    max-width: 900px;
    padding: 0;
}

.titulo-impacto {
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.15;
    color: #054bad;
    margin-bottom: 15px;
}

.subtitulo-elegante {
    font-size: 1.35em;
    color: var(--texto-suave);
    line-height: 1.5;
    margin-bottom: 30px;
}

/* 🔑 LOGO CONTPAQI */
.logo-contpaqi-contenedor {
    margin-top: 25px;
    margin-bottom: 25px;
    text-align: left;
}

.logo-contpaqi {
    max-width: 180px;
    height: auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo-contpaqi:hover {
    opacity: 1;
}

/* LLAMADA A LA ACCIÓN SECUNDARIA */
.llamada-accion-secundaria {
    color: var(--texto-suave);
    font-size: 1.1em;
    margin-bottom: 15px;
}

.llamada-accion-secundaria strong {
    color: var(--accent);
    font-weight: 700;
}



/* LISTA DE CARACTERÍSTICAS */
.lista-caracteristicas {
    list-style: none;
    padding: 0;
    margin-top: 25px;
    display: flex;
    gap: 20px;
    color: var(--texto);
    font-size: 1.05em;
    font-weight: 500;
    text-align: center;
}

.lista-caracteristicas li {
    display: flex;
    align-items: center;
    color: var(--texto-suave);
}

.icono-check-azul {
    color: var(--accent, #007bff);
    margin-right: 8px;
    font-weight: 900;
    font-size: 1.1em;
}


/* ---------------------------------------------------------------------- */
/* 4. COLUMNA VISUAL (Derecha) - CONTENEDOR CARRUSEL */
/* ---------------------------------------------------------------------- */
.columna-visual {
    flex: 1;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.columna-visual.carrusel-promociones-contenedor-Inicio {
    max-width: 500px;
    /* ANCHO FIJO MÁXIMO (Ajustar este valor si quieres un carrusel más grande) */
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    height: auto;
    margin-top: 0;
}

/* 🔑 4.1 SLIDER TRACK: RELACIÓN DE ASPECTO FIJA Y CONTENEDOR */
.slider-InicioPromos-track {
    width: 100%;
    height: 0;
    padding-top: 140%;    /* RELACIÓN DE ASPECTO 4:5 (Altura = 80% del Ancho) */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: var(--blanco, white);
    flex-grow: 0;
}

/* 4.2 ESTRUCTURA INTERNA DEL SLIDER */
.slider-InicioPromos-track .slider-InicioPromos-slides-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-InicioPromos-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-InicioPromos-right {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slider-InicioPromos-image-card {
    width: 100%;
    height: 100%;
}

/* 🔑 4.3 IMAGEN: AJUSTE DENTRO DEL CONTENEDOR FIJO */
.slider-InicioPromos-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* CLAVE: La imagen se ajusta dentro sin recortar */
    object-position: center;
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
    transition: none !important;
}

.slider-InicioPromos-right img:hover {
    transform: none !important;
}

/* 4.4 CARGADOR */
.cargador-promos-Inicio {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.cargador-promos-Inicio.activo {
    display: block;
}

/* ---------------------------------------------------------------------- */
/* 5. CONTROLES DEL CARRUSEL (FLECHAS) */
/* ---------------------------------------------------------------------- */
.slider-InicioPromos-miniaturas {
    display: none;
    /* Ocultamos miniaturas */
}

.slider-InicioPromos-controles {
    width: 100%;
    padding: 15px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.slider-control {
    background-color: var(--accent, #007bff);
    color: var(--blanco, white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slider-control:hover {
    background-color: #0b5aa9;
    transform: scale(1.05);
}

.slider-control:active {
    transform: scale(0.98);
}

.indicador-slide {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--texto);
    min-width: 50px;
    text-align: center;
}

/* ---------------------------------------------------------------------- */
/* 6. ANIMACIONES DE ENTRADA (Estado inicial y final) */
/* ---------------------------------------------------------------------- */

@keyframes fadeInUpCustom {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRightCustom {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ESTADO INICIAL (OCULTO) */
.titulo-impacto,
.subtitulo-elegante,
.llamada-accion-secundaria,
.boton-pro,
.lista-caracteristicas,
.logo-contpaqi-contenedor, .boton-contacto {
    opacity: 0;
    transform: translate3d(0, 0, 0);
}

/* APLICACIÓN DE ANIMACIÓN (fadeInUpCustom) */
.titulo-impacto.animate-in,
.subtitulo-elegante.animate-in,
.llamada-accion-secundaria.animate-in,
.boton-pro.animate-in,
.logo-contpaqi-contenedor.animate-in , .boton-contacto.animate-in {
    animation: fadeInUpCustom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* APLICACIÓN DE ANIMACIÓN (fadeInRightCustom) */
.lista-caracteristicas.animate-in {
    animation: fadeInRightCustom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ---------------------------------------------------------------------- */
/* 7. ESTILOS DEL FOOTER (Pie de Página) */
/* ---------------------------------------------------------------------- */

.pie-sitio {
    background-color: #0b4d8e;
    color: var(--blanco, white);
    padding: 15px 20px;
    font-size: 0.9em;
    min-height: 55px;
    box-sizing: border-box;
}

.pie-contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.columna-info-horizontal {
    flex-shrink: 0;
}

.pie-sitio p {
    margin: 0;
}

.pie-sitio .copyright {
    opacity: 0.9;
    font-size: 1em;
}

.columna-redes-horizontal {
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: var(--blanco, white);
    font-size: 1.4em;
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
}

.social-icon:hover {
    color: var(--accent, #ffc107);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .pie-contenido {
        justify-content: space-around;
        padding: 0 10px;
    }

    .pie-sitio .copyright {
        font-size: 0.9em;
    }
}

/* ---------------------------------------------------------------------- */
/* 8. RESPONSIVE Y SOLUCIÓN DE SCROLL (< 900px) */
/* ---------------------------------------------------------------------- */

@media (max-height: 900px) {
    /* Solución Scroll y Altura */


    /* 🔑 4.1 SLIDER TRACK: RELACIÓN DE ASPECTO FIJA Y CONTENEDOR */
    .slider-InicioPromos-track {
        width: 100%;
        height: 0;
        padding-top: 80%;
        /* RELACIÓN DE ASPECTO 4:5 (Altura = 80% del Ancho) */
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        background-color: var(--blanco, white);
        flex-grow: 0;
    }

    .titulo-impacto {
        font-size: 2.5em;
    }
}


/* ANTES: La imagen manejaba la opacidad */
.logo-contpaqi {
    max-width: 180px;
    height: auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* CAMBIO: Eliminamos el hover de la imagen, la imagen se queda en opacidad 1.0 */
.logo-contpaqi {
    max-width: 180px;
    height: auto;
    display: block;
    opacity: 1;
    /* Quitamos el 0.8 para que se vea normal */
    transition: none;
    /* Quitamos la transición de la imagen */
}

/* AÑADE ESTO en la sección 3 o junto a .logo-contpaqi-link */
.logo-contpaqi-link {
    /* ... estilos ya definidos ... */

    /* Añadimos la transición para el hover en el enlace */
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.logo-contpaqi-link:hover {
    opacity: 0.8;
    /* Efecto de atenuación al pasar el mouse */
    transform: translateY(-2px);
    /* Un ligero efecto de levantamiento */
}


.botones-container {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;     /* Alinea verticalmente */
    gap: 20px;               /* Espacio entre los botones */
    flex-wrap: wrap;         /* Permite que se acomoden si la pantalla es pequeña */
}

.boton-pro {
    min-width: 250px;
    height: 65px;
    display: flex; /* 🔥 Para centrar el logo */
    justify-content: center;
    align-items: center;
    background: var(--accent, #007bff);
    color: var(--blanco, white);
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(15, 105, 193, 0.25);
    border: none;
    cursor: pointer;
}

.boton-pro:hover {
    background: #0b5aa9;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(15, 105, 193, 0.35);
}

.boton-contacto {
    min-width: 250px;
    height: 65px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--blanco, white);
    color: var(--accent, #007bff);
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(15, 105, 193, 0.15);
    border: none;
    cursor: pointer;
}

.boton-contacto:hover {
    background: #e6f0ff;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(15, 105, 193, 0.25);
}

.logo-contpaqi {
    max-height: 35px; /* 🔥 Ajusta el tamaño del logo dentro del botón */
}
