/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    /* TONOS EXTRAÍDOS DE PRESENTACION1.PNG */
    --primary-blue: #0b4f8c;
    --primary-purple: #783e7a;
    --caroni-blued: #0B61D6;
    --caroni-pinkd: #C81F8D;
     --caroni-blue: #1d71b8;
    --caroni-pink: #b06293; 
    
    /* Variantes más oscuras y profundas para los fondos de las tarjetas */
    --card-blue-dark: #1b497c;
    --card-purple-dark: #58335c;

    --bg-light: #e2e8f0; 
    
    --text-dark: #1e293b;
    --text-light: #ffffff;
    --card-height: 260px;
}

/* 1. Definición de la animación de rebote y sombra */
@keyframes caroniBounce {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translateY(-6px); /* El botón sube 6 píxeles */
        box-shadow: 0 16px 24px rgba(0, 0, 0, 0.15); /* La sombra se estira y suaviza */
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: radial-gradient(circle at top right, rgba(120, 62, 122, 0.05), transparent 40%),
                      radial-gradient(circle at top left, rgba(11, 79, 140, 0.05), transparent 40%);
    background-attachment: fixed;
}

/* ==========================================================================
   HEADER / HERO STYLE (ALINEACIÓN RECTIFICADA Y CENTRADA)
   ========================================================================== */
.hero-container {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
    padding-top: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-area {
    position: absolute;
    top: 0;
    right: 0;
    margin-bottom: 0;
}

.logo-img {
    max-height: 75px;
    width: auto;
}

.welcome-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-text h1 {
    color: var(--caroni-pink); 
    font-size: 2.2rem; 
    font-weight: 700;
    line-height: 1.1;
}

.welcome-text .subtitle {
    color: var(--caroni-blue); 
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 4px;
}

.badge-steps {
    display: inline-block;
    border: 1.5px solid var(--caroni-pink);
    color: var(--caroni-pink);
    padding: 3px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 8px;
}

/* ==========================================================================
   HEADER / HERO STYLE (PASOS PERMANENTEMENTE CENTRADOS)
   ========================================================================== */
.steps-flow {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Mantiene todo el bloque en el centro horizontal */
    align-items: center;
    gap: 12px;               /* Separación fija y controlada entre elementos */
    margin: 25px auto 0 auto; /* Centra el contenedor en el eje principal */
    width: 100%;
    max-width: 480px;        /* Evita que los pasos se dispersen en pantallas grandes */
    padding: 0 10px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;          /* Evita que los textos colapsen o se rompan en dos líneas */
}

.step-icon {
    background-color: var(--primary-purple);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Identificadores de color específicos para los extremos */
.step-item:nth-child(1) .step-icon { background-color: var(--primary-blue); }
.step-item:nth-child(5) .step-icon { background-color: #b92b5d; } 

.step-text {
    font-weight: bold;
    color: #222;
    font-size: 0.9rem;
}

.step-arrow {
    color: #b92b5d;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ==========================================================================
   GRID DINÁMICO Y COMPORTAMIENTO 3D (FLIP GENERAL)
   ========================================================================== */
.products-grid {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: 25px;
    padding: 10px;
}

/* Base de Tarjetas: Activación del entorno 3D (Sin overflow:hidden para dejar girar) */
.product-card, .banner-card {
    perspective: 1000px;
    background: transparent !important;
    overflow: visible !important; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card {
    height: var(--card-height);
    border-radius: 20px; /* <--- Radio establecido para la grilla superior */
}

/* Chasis interno que ejecuta la rotación física */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: inherit; /* <--- CORRECCIÓN: Hereda dinámicamente los 20px o 24px del contenedor externo */
}

/* Disparador JavaScript */
.card-inner.is-flipped {
    transform: rotateY(180deg);
}

/* Las dos caras de la moneda */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: inherit; /* <--- CORRECCIÓN: Hereda el radio directamente desde .card-inner */
    overflow: hidden;       /* <--- CORRECCIÓN: Corta de forma limpia las imágenes y fondos en las esquinas */
    transform: translateZ(0); /* <--- TRUCO CSS: Forzar antialiasing y clipping estricto en motores WebKit */
}

/* CARA FRONTAL (Por defecto) */
.card-front {
    transform: rotateY(0deg);
    z-index: 2;
    background-color: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: flex;
    width: 100%;
    height: 100%;
}

.product-card:hover, .banner-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Distribución interna frontal */
.card-info {
    flex: 1.2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-light);
    position: relative;
}

.bg-blue-gradient {
    background: linear-gradient(135deg, var(--caroni-pinkd) 0%, #615091 50%, var(--card-blue-dark) 100%);
}

.bg-purple-gradient {
    background: linear-gradient(135deg, var(--caroni-pinkd) 0%, #9c4987 45%, var(--card-purple-dark) 100%);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-icon {
    font-size: 1.8rem;
    opacity: 0.9;
}

.card-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-info p {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.3;
    margin: 8px 0;
}

.btn-buy {
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1.5px solid white;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none; 
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-buy:hover {
    background-color: white;
    color: var(--primary-blue);
}

.card-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-more {
    position: absolute;
    bottom: 15px;                  /* Alineación perfecta a la altura del de comprar */
    right: 20px;                   /* Posicionado a la derecha sobre la fotografía */
    
    /* El degradado exacto de tu paleta corporativa */
    background: linear-gradient(135deg, #784ba0 0%, #2b4bb9 100%);
    
    /* Borde blanco estilizado */
    border: 1.5px solid #ffffff;
    border-radius: 30px;           /* Forma de píldora idéntica al de comprar */
    
    /* Tipografía y color */
    color: #ffffff;                /* Texto blanco limpio */
    font-family: 'Arial Narrow', 'Segoe UI Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    
    /* Maquetación interna */
    display: inline-flex;
    align-items: center;
    gap: 6px;                      /* Separación entre el texto y la flecha > */
    padding: 6px 16px;             /* Espaciado interno para darle cuerpo de botón */
    cursor: pointer;
    z-index: 5;
    
    /* La sombra proyectada en el fondo para dar relieve */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.35);
    
    /* Transición suave para interactividad */
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto hover interactivo al pasar el mouse */
.btn-more:hover {
    /* Se aclara sutilmente el degradado */
    background: linear-gradient(135deg, #8a5cb3 0%, #3c5cd1 100%);
    transform: translateY(-1px);   /* Micro movimiento hacia arriba */
    box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.45); /* La sombra se profundiza */
}


/* ==========================================================================
   CARA TRASERA COLECTIVA (INFO OCULTA)
   ========================================================================== */
.card-back {
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    z-index: 1;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--caroni-pinkd) 0%, #9c4987 45%, var(--card-purple-dark) 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.banner-content-back {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.banner-content-back h3 {
    font-size: 1.15rem;
    margin: 0 0 10px 0;
    /* color: var(--caroni-pink) !important; Mantiene la marca viva atrás */
    border-bottom: 2px solid var(--caroni-pink);
    color: #ffffff;
    padding-bottom: 4px;
    text-shadow: none !important;
}

.back-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.back-benefits-list li {
    margin-bottom: 8px;
    font-size: 0.82rem;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
}

.back-benefits-list i {
    color: #00c0f0; 
    margin-right: 8px;
    margin-top: 2px;
}

.back-actions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.btn-buy-back {
    background-color: #00c0f0;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-buy-back:hover {
    background-color: #00a0d0;
}

.btn-banner-back {
    /* background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s; */
    position: relative !important;
    right: auto !important;
   padding: 6px 14px;
    /*right: 20px;                   Posicionado a la derecha sobre la fotografía

    
    /* El degradado exacto de tu paleta corporativa */
    background: linear-gradient(135deg, #784ba0 0%, #2b4bb9 100%);
    
    /* Borde blanco estilizado */
    border: 1.5px solid #ffffff;
    border-radius: 30px;           /* Forma de píldora idéntica al de comprar */
    
    /* Tipografía y color */
    color: #ffffff;                /* Texto blanco limpio */
    font-family: 'Arial Narrow', 'Segoe UI Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    
    /* Maquetación interna */
    display: inline-flex;
    align-items: center;
    gap: 6px;                      /* Separación entre el texto y la flecha > */
    padding: 6px 16px;             /* Espaciado interno para darle cuerpo de botón */
    cursor: pointer;
    z-index: 5;
    
    /* La sombra proyectada en el fondo para dar relieve */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.35);
    
    /* Transición suave para interactividad */
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-banner-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* ==========================================================================
   SECCIÓN INFERIOR: CARRUSEL DE BANNERS
   ========================================================================== */
.bottom-section {
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.bottom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.bottom-title-area h2 {
    color: var(--caroni-blue);
    font-size: 1.4rem;
    font-weight: 700;
}

.bottom-title-area p {
    color: #555;
    font-size: 0.9rem;
    margin-top: 2px;
}

.btn-view-all {
    background-color: white;
    color: var(--caroni-pink);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    background-color: var(--caroni-pink);
    color: white;
    transform: scale(1.03);
}

/* Carrusel contenedor flex */
.banners-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 15px 5px 25px 5px;
    scrollbar-width: none; 
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.banners-slider::-webkit-scrollbar {
    display: none; 
}

.banner-card {
    flex: 0 0 96%; 
    height: 285px; 
    scroll-snap-align: start;
    border-radius: 24px; /* <--- Radio establecido para los banners inferiores */
}

/* Reajustamos la cara frontal del carrusel para albergar el absoluto de fondo */
.banner-card .card-front {
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

.banner-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2; 
    padding: 15px; /* Compactamos levemente el padding general */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    width: 100%; /* Por defecto ocupa todo el ancho disponible */
    text-align: left;
    /* Degradado oscuro vertical para blindar la lectura de textos blancos */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
}

.banner-content h3 {
    font-size: 1.15rem;
    color: #ffffff/*var(--caroni-pinkd)*/; 
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4); 
}

.banner-content p {
    font-size: 0.88rem;
    color: #ffffff; 
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.btn-banner-more {
    align-self: flex-start;
    background-color: var(--caroni-blue);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.2s;
}

.btn-banner-more:hover {
    background-color: var(--caroni-pink);
    transform: scale(1.05);
}

/* Icono del carrusel */
.banner-icon-container {
    position: absolute; 
    top: 25px;          
    left: 25px;
    margin-bottom: 0;   
    width: auto;
    z-index: 3;
}

.banner-icon {
    background: linear-gradient(135deg, var(--caroni-blue) 0%, var(--primary-purple) 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Contenedor e indicadores */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--caroni-pink) !important;
    width: 22px;
    border-radius: 10px;
}

/* ==========================================================================
   FLECHAS DE NAVEGACIÓN (CARRUSEL BANNERS)
   ========================================================================== */
.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.25); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #1d71b8; 
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10; 
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover {
    background-color: #1d71b8;
    color: white;
    box-shadow: 0 6px 15px rgba(29, 113, 184, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.prev-arrow { left: -15px; }
.next-arrow { right: -15px; }

/* ==========================================================================
   BARRA FLOTANTE DESPLEGABLE (CONTROL DE ESPACIO EN PANTALLA)
   ========================================================================== */
.social-sidebar-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; 
    z-index: 9999; 
}

/* El botón que el usuario ve siempre */
.main-float-trigger {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #1d71b8 0%, #783e7a 100%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;

    /* Añadimos la animación infinita */
    animation: caroniBounce 1.6s ease-in-out infinite;
    
    /* Esto garantiza que el cambio al pasar el mouse sea fluido */
    transition: transform 0.2s ease, animation-play-state 0.2s ease, box-shadow 0.2s ease;
}

.main-float-trigger:hover {
    transform: scale(1.08);
    animation-play-state: paused; 
    
    /* Micro-escalado sutil de feedback interactivo */
    transform: scale(1.06); 
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Control de íconos internos del disparador */
.main-float-trigger .close-icon {
    display: none;
}

/* Contenedor del submenú con transición de opacidad y desplazamiento */
.social-submenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none; /* Evita clicks accidentales mientras esté oculto */
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-btn.avatar-btn {
    background: transparent !important; /* Quitamos el gradiente para que se vea el avatar */
    animation: none !important;        /* Quitamos la animación del gradiente */
    box-shadow: none;                  /* Opcional: quita o deja la sombra según prefieras */
    overflow: visible;                 /* Permite que el cabello o diseño sobresalga elegantemente si es necesario */
}

.social-icon-btn.avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene las proporciones de la ilustración */
}
/* CLASE ACTIVA (Disparada por JS) */
.social-sidebar-float.is-open .social-submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.social-sidebar-float.is-open .main-float-trigger {
    background: #1e293b; /* Cambia a un tono oscuro neutro al abrirse */
}

.social-sidebar-float.is-open .open-icon {
    display: none;
}

.social-sidebar-float.is-open .close-icon {
    display: block;
    animation: rotateX 0.3s ease-in-out;
}

/* Estilos de los botones individuales */
.social-icon-btn {
    width: 44px;  /* Ajustado un pelo más compacto para que estilice */
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important; /* Quitamos bordes viejos */
    
    /* El gradiente exacto de 4 colores de tu referencia */
    background: linear-gradient(45deg, #ba5389, #9056a2, #50bee0, #0555a5) !important;
    background-size: 300% 300% !important;
    
    /* Dispara el movimiento continuo del fondo */
    animation: moverGradiente 6s ease infinite !important;
}

/* Colores de marca exactos */
/* .social-icon-btn.web { background: linear-gradient(135deg, #00c0f0 0%, #1d71b8 100%); }
.social-icon-btn.facebook { background-color: #3b5998; }
.social-icon-btn.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon-btn.whatsapp { background-color: #25d366; } */

.social-icon-btn i {
    color: #ffffff !important; 
    -webkit-text-fill-color: #ffffff !important; /* Asegura que se pinte de blanco */
    font-size: 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    width: auto;
    height: auto;
}

.social-icon-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 16px rgba(144, 86, 162, 0.5);
}

@keyframes rotateX {
    from { transform: rotate(-90deg); opacity: 0; }
    to { transform: rotate(0); opacity: 1; }
}

@keyframes moverGradiente {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Ajuste fino para celulares */
@media (max-width: 600px) {
    .social-icon-btn {
        width: 40px;
        height: 40px;
    }
    .social-icon-btn i {
        font-size: 18px !important;
    }
}

/* Ajuste fino para pantallas pequeñas */
@media (max-width: 600px) {
    .social-sidebar-float {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    .main-float-trigger {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .social-icon-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .social-submenu {
        gap: 8px;
    }
}

/* ==========================================================================
   SECCIÓN FLYERS (CORREGIDA)
   ========================================================================== */
.flyers-section {
    width: 100%;
    max-width: 1200px; 
    margin: 40px auto 20px auto; 
    padding: 0 20px;
    box-sizing: border-box;
}

.flyers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    width: 100%;
    margin-top: 20px;
}

.flyer-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.flyer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.flyer-image-wrapper {
    width: 100%;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flyer-img {
    width: 100%;
    height: auto; 
    display: block;
    object-fit: contain; 
}

.flyer-footer {
    padding: 15px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #f1f5f9;
}

.btn-flyer-action {
    background: linear-gradient(135deg, var(--caroni-blue) 0%, var(--primary-blue) 100%);
    color: white !important;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(29, 113, 184, 0.2);
    transition: all 0.2s ease;
    width: 100%; 
    justify-content: center;
}

/* ==========================================================================
   MEDIA QUERIES Y RESPONSIVE
   ========================================================================== */
@media (min-width: 768px) {
    .bottom-section .banner-card {
        flex: 0 0 calc((100% - 20px) / 2) !important;
    }
}

@media (min-width: 1024px) {
    .bottom-section .banner-card {
        flex: 0 0 calc((100% - 40px) / 3) !important;
    }
}

@media (max-width: 768px) {
    .slider-arrow {
        display: none !important;
    }
}

@media (max-width: 720px) {
    .hero-container {
        padding-top: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .logo-area {
        position: relative !important; 
        left: auto !important;
        transform: none !important;
        top: auto !important;
        margin-bottom: 20px; 
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .welcome-text h1 {
        font-size: 2.1rem; 
    }

    .welcome-text .subtitle {
        font-size: 1.05rem;
    }
    
    .steps-flow {
        flex-direction: row !important; 
        justify-content: center !important;
        gap: 8px !important; /* Reducción sutil del espacio en móviles pequeños */
    }
    
    .step-item { 
        gap: 4px; 
    }
    
    .step-icon {
        width: 26px; 
        height: 26px;
        font-size: 0.75rem;
    }
    
    .step-text { 
        font-size: 0.8rem; 
    }
    
    .step-arrow {
        font-size: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .flyers-grid {
        /* En pantallas medianas (tablets), si el espacio es muy justo, se pasa a 2 columnas */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    /* .flyers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .flyers-section { max-width: 100%; } */
    .flyers-section { 
        width: 100%;
        max-width: 100%; 
        padding: 0 0 0 15px; /* Deja aire a la izquierda, permite que el derecho rompa la pantalla */
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .flyers-grid {
        display: flex; /* En fila */
        flex-direction: row;
        gap: 15px; 
        width: 100%;
        margin-top: 20px;
        overflow-x: auto; /* Activa el arrastre con el dedo */
        padding-bottom: 15px; /* Espacio para que respiren las sombras */
        padding-right: 15px; 
        scrollbar-width: none; /* Oculta barra en Firefox */
        scroll-snap-type: x mandatory; /* Efecto imán */
        scroll-behavior: smooth;
    }

    .flyers-grid::-webkit-scrollbar {
        display: none; /* Oculta barra en Chrome/Safari */
    }

    .flyer-card {
        flex: 0 0 82%; /* Ajustado al 82% para que el segundo flyer se asome un poco más y tiente a arrastrar */
        scroll-snap-align: start;
        background: white;
        border-radius: 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    }

    .flyer-img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    /* ==========================================================================
       ESTILOS DE LOS PUNTOS INDICADORES (SOLO MÓVIL)
       ========================================================================== */
    .flyer-dots-container {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 10px;
        margin-bottom: 10px;
        padding-right: 15px; /* Compensa el margen del contenedor padre */
    }

    .flyer-dot {
        width: 7px;
        height: 7px;
        background-color: #cbd5e1; /* Gris claro inactivo */
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .flyer-dot.active {
        background-color: var(--caroni-pink) !important; /* Tu rosado corporativo */
        width: 18px; /* Se estira para denotar cuál está activo */
        border-radius: 10px;
    }
}

@media (min-width: 601px) {
    .flyer-dots-container {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .social-sidebar-float {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    .social-icon-btn {
        width: 45px;
        height: 45px;
        font-size: 19px;
    }
}

@media (max-width: 400px) {
    /* Para pantallas críticamente pequeñas (ej. iPhone SE) compactamos al mínimo */
    .steps-flow {
        gap: 4px !important;
    }
    .step-text {
        font-size: 0.72rem;
    }
    .step-icon {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
}

/* Pantallas Pequeñas: Teléfonos Celulares (Fuerza la vista de 2 en 2 impecable) */
@media (max-width: 600px) {
    .banners-slider {
        gap: 10px; /* Reducimos la separación para ganar píxeles valiosos */
        padding: 10px 5px;
    }

    .bottom-section .banner-card {
        flex: 0 0 calc((100% - 10px) / 2) !important; /* Cuadra exactamente dos elementos en pantalla */
        height: 210px; /* Reducción de altura proporcional para evitar estiramientos */
        border-radius: 16px; /* Ajustamos el radio para que se vea estilizado al ser pequeño */
    }

    /* Ajustes internos para que NO se monte nada */
    .banner-icon-container {
        top: 12px;
        left: 12px;
    }

    .banner-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .banner-content {
        padding: 12px;
    }

    .banner-content h3 {
        font-size: 0.85rem; /* Tamaño de letra compacto y legible */
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .banner-content p {
        font-size: 0.72rem; /* El párrafo se reduce para dar espacio a la imagen trasera */
        line-height: 1.3;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Corta el texto a máximo 2 líneas si es muy largo */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn-banner-more {
        padding: 5px 12px;
        font-size: 0.7rem;
        border-radius: 15px;
    }

    /* Ocultamos flechas físicas en móvil para evitar que pisen los bordes de los banners */
    .slider-arrow {
        display: none !important;
    }
}

/* Optimización extra para teléfonos de gama baja o pantallas extremadamente angostas */
@media (max-width: 380px) {
    .bottom-section .banner-card {
        height: 195px;
    }
    .banner-content p {
        display: none; /* En pantallas diminutas ocultamos el párrafo para priorizar título y botón */
    }
    .banner-content h3 {
        font-size: 0.8rem;
    }
}

/* Ajuste específico para la imagen del logo dentro del botón */
.float-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Mantiene la proporción de la imagen sin distorsionar */
    border-radius: 50%;   /* Asegura que si la imagen es cuadrada, se recorte en círculo */
    padding: 6px;         /* Le da un margen interno elegante para que el logo no toque los bordes */
    display: block;
    transition: transform 0.3s ease;
}

.main-float-trigger {
    background: #ffffff !important; /* Cambiamos a fondo blanco para resaltar el logo de la empresa */
    border: 2px solid #1d71b8;      /* Añadimos un borde con el azul corporativo */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    /* Añadimos la animación infinita */
    animation: caroniBounce 1.6s ease-in-out infinite;
    
    /* Esto garantiza que el cambio al pasar el mouse sea fluido */
    transition: transform 0.2s ease, animation-play-state 0.2s ease, box-shadow 0.2s ease;
}

/* Modificación para cuando el menú esté abierto */
.social-sidebar-float.is-open .main-float-trigger {
    background: #1e293b !important; /* Fondo oscuro neutro para la X de cierre */
    border-color: #1e293b;
}

.social-sidebar-float.is-open .close-icon {
    color: #ffffff; /* Asegura que la X se vea blanca sobre el fondo oscuro */
}

/* Ajuste responsive para la imagen en móviles */
@media (max-width: 600px) {
    .float-logo-img {
        padding: 4px; /* Un pelo menos de margen en pantallas pequeñas */
    }
}


/* ==========================================================================
   RESETEO CLAVE PARA EVITAR ESPACIOS BLANCOS EN LOS BORDES
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Evita scrolls horizontales fantasmas */
}

/* ==========================================================================
   FOOTER MINIMALISTA CLARO (DE BORDE A BORDE)
   ========================================================================== */
.minimal-footer-light {
    width: 100% !important;
    left: 0;
    right: 0;
    margin: 50px 0 0 0 !important; /* Separación arriba, pero 0 a los lados y abajo */
    padding: 20px 24px;
    
    /* Tono claro: Un gris/azul ultra sutil que combina con el fondo de tus capturas */
    background-color: #f4f7fb; 
    
    position: relative;
    box-sizing: border-box;
    
    /* Sombra sutil superior para despegarlo del fondo si es totalmente blanco */
    box-shadow: inset 0 1px 0px rgba(0, 0, 0, 0.05), 0 -4px 10px rgba(0, 0, 0, 0.02);
}

/* Línea superior delgada con el degradado neón de tus botones */
.minimal-footer-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1d71b8, #ba5389, #e6683c);
}

/* Distribución exacta a los extremos */
.footer-bottom-content {
    width: 100%;
    max-width: 1200px; /* Se alinea con el ancho de tu grilla superior */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-family: Arial, sans-serif;
}

/* Estilo de los textos en gris oscuro elegante para fondo claro */
.footer-bottom-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #4a5568; /* Gris oscuro legible que no choca */
    font-weight: 500;
    letter-spacing: 0.2px;
}

.footer-tagline-right {
    font-style: italic;
    color: #1d71b8 !important; /* El eslogan resalta con tu azul corporativo */
    font-weight: bold !important;
}

/* ==========================================================================
   AJUSTE RESPONSIVE (MÓVIL)
   ========================================================================== */
@media (max-width: 600px) {
    .minimal-footer-light {
        padding: 15px 20px;
        margin-top: 35px !important;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    
    .footer-bottom-content p {
        font-size: 0.78rem;
    }
}



.float-tooltip {
    position: absolute;
    bottom: calc(100% + 12px); /* Se posiciona justo encima del botón */
    left: 50%;
    transform: translateX(-50%); /* La centra perfectamente */
    
    /* Diseño visual tipo Toast/Nube */
    background: #3b4cb4; /* El azul corporativo de Seguros Caroní */
    color: #ffffff;
    font-family: 'Arial Narrow', 'Segoe UI Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    
    /* Animación sutil de entrada */
    pointer-events: none; /* Evita que estorbe al hacer click */

    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* La flechita de la nube apuntando hacia abajo */
.float-tooltip::after {
    content: "";
    position: absolute;
    top: 100%; /* Sale del borde inferior de la nube */
    left: 50%;
    transform: translateX(-50%);
    
    /* Construcción del triángulo en CSS */
    border-width: 6px;
    border-style: solid;
    border-color: #3b4cb4 transparent transparent transparent; /* Triángulo azul */
}

.social-sidebar-float.is-open .float-tooltip {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* ==========================================================================
   ESTILOS DE LA SECCIÓN DE PREGUNTAS FRECUENTES
   ========================================================================== */
.faq-section {
    width: 100%;
    max-width: 900px; /* Lo hacemos más angosto que el resto para que sea cómodo de leer */
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.faq-title {
    font-size: 1.8rem;
    color: #004b93; /* Tu azul corporativo */
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
}

.faq-subtitle {
    font-size: 1rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 35px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Separación entre cada pregunta */
}

/* Caja de cada pregunta */
.faq-item {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); /* Sombra ultra suave */
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Cuando el usuario lo abre, le damos un sutil borde de enfoque */
.faq-item[open] {
    border-color: #004b93;
    box-shadow: 0 6px 20px rgba(0, 75, 147, 0.06);
}

/* La cabecera interactiva */
.faq-question {
    padding: 18px 22px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    list-style: none; /* Oculta la flecha nativa del navegador */
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

/* Ocultar flecha nativa en Safari */
.faq-question::-webkit-details-marker {
    display: none;
}

/* Animación del icono + / - */
.faq-icon {
    font-size: 1.3rem;
    color: #004b93;
    transition: transform 0.3s ease;
}

/* Si está abierto, giramos el "+" para convertirlo en un "-" o darle un efecto visual */
.faq-item[open] .faq-icon {
    transform: rotate(45deg); /* Gira el "+" y parece un "x" de cerrar, o puedes cambiar el texto */
    color: #ef4444; /* Cambia a un tono de alerta suave si gustas */
}

/* El bloque oculto con la respuesta */
.faq-answer {
    padding: 0 22px 20px 22px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

/* Ajuste rápido para móviles */
@media (max-width: 600px) {
    .faq-title { font-size: 1.5rem; }
    .faq-question { padding: 15px; font-size: 0.95rem; }
    .faq-answer { padding: 15px; font-size: 0.9rem; }
}

/* ==========================================================================
   ESTILOS PARA TARJETA ÚNICA CENTRADA
   ========================================================================== */
.extranet-single-section {
    width: 100%;
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center; /* Esto es lo que hace la magia de centrarla horizontalmente */
}

.single-hub-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    /* Control de ancho: Evita que se estire demasiado y rompa la estética */
    width: 100%;
    max-width: 580px; /* Mide casi lo mismo que uno de los banners de arriba */
    
    box-shadow: 0 4px 15px rgba(0, 75, 147, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.single-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 75, 147, 0.06);
    border-color: #cbd5e1;
}

/* Espaciado del contenido interior */
.hub-card-content {
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.hub-icon-box {
    width: 44px;
    height: 44px;
    background-color: #f0f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hub-icon-box i {
    color: #004b93;
    font-size: 1.2rem;
}

.hub-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #004b93;
    margin: 0 0 6px 0;
}

.hub-text p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* El botón de bloque inferior con fondo gris */
.single-hub-card .hub-button-footer {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100% !important;
    background-color: #f8fafc !important;
    padding: 15px 25px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 700;
    color: #004b93 !important;
    border-top: 1px solid #e2e8f0 !important;
    transition: all 0.25s ease-in-out !important;
}

/* Efecto Hover para pintar el botón inferior de azul */
.single-hub-card:hover .hub-button-footer {
    background-color: #004b93 !important;
    color: #ffffff !important;
    border-top-color: #004b93 !important;
}

.single-hub-card .hub-button-footer i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.single-hub-card:hover .hub-button-footer i {
    transform: translateX(5px);
}

.fc-section { width: 100%; max-width: 1200px; margin: 40px auto; padding: 0 20px; box-sizing: border-box; }
.fc-header { margin-bottom: 20px; }
.fc-wrapper { position: relative; }
.fc-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 8px; }
.fc-track::-webkit-scrollbar { display: none; }
.fc-item { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; background: white; border-radius: 16px; border: 1px solid #f1f5f9; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.fc-item:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.fc-img-wrap { background: #f8fafc; display: flex; align-items: center; justify-content: center; }
.fc-img-wrap img { width: 100%; height: auto; display: block; object-fit: contain; }
.fc-footer { padding: 12px 14px; border-top: 1px solid #f1f5f9; display: flex; justify-content: center; }
.fc-btn { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--caroni-blue) 0%, var(--primary-blue) 100%); color: white; border: none; border-radius: 25px; padding: 10px 24px; font-size: 0.9rem; font-weight: bold; cursor: pointer; text-decoration: none; width: 100%; justify-content: center; box-shadow: 0 4px 12px rgba(29,113,184,0.2); transition: all 0.2s ease; }
.fc-btn:hover { filter: brightness(1.1); transform: scale(1.02); }
.fc-arrow { position: absolute; top: 42%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.08); color: var(--caroni-blue); font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: all 0.2s ease; }
.fc-arrow:hover { background: var(--caroni-blue); color: white; }
.fc-prev { left: -18px; }
.fc-next { right: -18px; }
.fc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.fc-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: all 0.3s; }
.fc-dot.active { background: var(--caroni-pink); width: 20px; border-radius: 10px; }

@media (max-width: 900px) { .fc-item { flex: 0 0 calc((100% - 16px) / 2); } .fc-arrow { display: none; } }
@media (max-width: 560px) { .fc-item { flex: 0 0 82%; } .fc-section { padding: 0 0 0 15px; } }
@media (max-width: 600px) {
    .banner-card .card-back .back-benefits-list li:nth-child(n+3) {
        display: none;
    }
}
.banner-card .card-back .btn-buy-back {
    display: none;
}

@media (max-width: 600px) {
    .banner-card .card-back .banner-content-back {
        padding: 12px 14px;
    }

    .banner-card .card-back .banner-content-back h3 {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .banner-card .card-back .back-benefits-list li {
        font-size: 0.72rem;
        margin-bottom: 5px;
        line-height: 1.2;
    }

    .banner-card .card-back .back-actions-footer {
        justify-content: flex-end;
        margin-top: 8px;
    }

    .banner-card .card-back .btn-banner-back {
        font-size: 0.72rem;
        padding: 5px 12px;
    }
}