
/**
 * ===================================================
 * © 2025 YUYAY Ltda. - yuyay.fin.ec
 * Sistema: Pagína Web
 * Versión: 2.5
 * Desarrollador: [Leonardo Verdugo Crespo - Sistemas]
 * Última modificación: 24/06/2024
 * ===================================================
 */
@import url('https://fonts.google.com/share?selection.family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900');

.container-pop {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    visibility: hidden; /* Iniciar oculto */
    opacity: 0;
    transition: all 600ms; /* Animación suave */
    display: flex;
    justify-content: flex-start; /* Alinear al lado izquierdo */
    align-items: center;
    background: rgba(8, 61, 142, 0.5); /* Fondo oscuro semitransparente */
    z-index: 10000;
}

.container-pop.show {
    visibility: visible;
    opacity: 1;
}

.popup {
    width: 350px; /* (Ancho de la imagen) Reducir el ancho para mostrar varias imágenes en vertical */
    height: 93vh; /* Ocupar todo el alto de la pantalla */
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    justify-content: flex-start;
    align-items: center;
    padding: 7px;
    transform: translateX(-100%);
    transition: all 600ms;
}

.container-pop.show .popup {
    transform: translateX(0);
}

.img-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    height: 90vh;
}

.text-pop {
    width: 100%;
    padding: 20px;
    text-align: center;
}

.text-pop h1 {
    font-size: 24px;
}

.text-pop p {
    margin-top: 10px;
    font-size: 8px;
}

.btn-close-popup {
    width: 40px;
    height: 40px;
    position: absolute;
    right: -15px;
    top: -15px;
    padding: 10px;
    background: #0056b3;
    color: white;
    border-radius: 50%;
    line-height: 10px;
    cursor: pointer;
}

/* Responsividad */
@media screen and (max-width: 600px) {
    .popup {
        width: 250px; /* Ajustar el ancho en pantallas más pequeñas */
    }
}

@media screen and (max-width: 400px) {
    .popup {
        width: 200px;
    }
}


/* FACILITO*/
/* Estilos para tarjeta flotante alargada tipo barra */
/* Estilos para tarjeta flotante VERTICAL (30x150) */
.floating-card {
    right: 20px;
    top: 50%; /* Centra verticalmente */
    transform: translateY(-50%); /* Ajuste fino de centrado */
    z-index: 999;
    transition: all 0.3s ease;
    overflow: hidden; /* Evita que el slide se vea fuera */
}

.card-main {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.card-main img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el espacio */
}

/* Slide que se despliega hacia la IZQUIERDA (ahora es horizontal) */
.card-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: auto; /* Ancho automático (se expandirá) */
    height: 100%;
    background: rgba(214, 88, 88, 0.95);
    color: rgb(255, 255, 255);
    padding: 10px 5px;
    border-radius: 4px 0 0 4px;
    transform: translateX(-100%); /* Se esconde a la izquierda */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
    white-space: nowrap; /* Evita saltos de línea */
}

/* Al hacer hover, la tarjeta se expande a la izquierda */
.floating-card:hover {
    width: 100px; /* Ancho expandido (30px + 150px aprox.) */
}

.floating-card:hover .card-slide {
    transform: translateX(0); /* Muestra el slide */
    opacity: 1;
}

.slide-content {
    font-size: 11px;
    line-height: 1.3;
    writing-mode: vertical-lr; /* Texto en vertical (opcional) */
    transform: rotate(180deg); /* Gira el texto si se usa vertical-lr */
}

.slide-title {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #f8f8f8;
    font-size: 12px;
}

/* Botón de cerrar ajustado para barra vertical */
.close-floating-card {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 18px;
    z-index: 10;
    transition: all 0.2s ease;
}

.close-floating-card:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Animación de aparición */
@keyframes floatIn {
    0% {
        transform: translateY(20px) translateY(-50%);
        opacity: 0;
    }
    100% {
        transform: translateY(0) translateY(-50%);
        opacity: 1;
    }
}

.floating-card {
    animation: floatIn 0.5s ease-out forwards;
    animation-delay: 2s;
    opacity: 0;
}

/*CUADRO YUYAY*/
/* Contenedor principal (agrupa ambos elementos) */
.floating-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 120px; /* Espacio entre el cuadrado y la barra */
    z-index: 999;
}

/* ---- Estilos del cuadrado pequeño (30x30) ---- */
.mini-square {
    position: relative;
    width: 58px;
    height: 58px;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: floatIn 0.5s ease-out forwards;
    animation-delay: 1.5s; /* Aparece un poco antes que la barra */
    opacity: 0;
}

.square-main {
    display: block;
    width: 100%;
    height: 100%;
}

.square-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slide del cuadrado (se despliega hacia abajo) */
.square-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95); /* Rojo para diferenciarlo */
    color: white;
    padding: 5px;
    border-radius: 4px 4px 0 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.mini-square:hover .square-slide {
    transform: translateY(0);
    opacity: 1;
}

/* Botón de cerrar del cuadrado */
.close-mini-square {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    line-height: 16px;
    z-index: 10;
    transition: all 0.2s ease;
}

.close-mini-square:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* ---- Ajustes para la barra vertical existente ---- */
.floating-card {
    position: relative; /* Ahora es relativo al contenedor */
    right: auto;
    top: auto;
    transform: none;
    width: 58px;
    height: 250px;
}   /* El resto de estilos se

