/* ========================================================================================================================= 
                                              CONFIGURACIÓN BASE RESPONSIVE
=========================================================================================================================== */
main_divice

/********GENERAL**********/

:root {
--primary-blue: #3182ce;
--dark-bg: #0b1120;
--text-main: #045894;
}

body, html {
margin: 0;
padding: 0;
overflow-x: hidden; 
height: auto;
min-height: 100%;
}

body {
font-family: 'Plus Jakarta Sans', sans-serif;
background-image: linear-gradient(rgba(220, 220, 220, 0.5), rgba(220, 220, 220, 0.5)), url("../fondo_principal.webp");
background-size: cover;
background-position: center;
background-attachment: fixed;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;

}

/* Contenedor del video */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Se mantiene detrás de todo */
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Capa de claridad para que el texto sea legible */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* El efecto linear-gradient que tenías */
}


/********HEADER*********/

header {
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
height: 20px;
background-color: #045894;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-circular {
width: clamp(60px, 10vw, 110px);
height: clamp(60px, 10vw, 110px);
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 10px;
left: 10px;
z-index: 1000;
border: none;
border-radius: 50%;
box-shadow: 0 10px 30px rgba(4, 88, 148, 0.2);
}

.navbar-menu {
position: fixed;
top: 20px;
width: 100%;
background: #ffffff;
min-height: 60px; /* mejor que height */
display: flex;
align-items: center;
z-index: 999;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
padding: 0 15px;
}

.nav-link-custom {
color: #045894 !important;
font-weight: 800;
text-transform: uppercase;
font-size: clamp(0.8rem, 1vw, 1rem); /* adaptable */
letter-spacing: 1px;
transition: 0.3s;
color: #045894 !important;
}

.nav-link-custom:hover {
color: #3182ce !important;
transform: translateY(-2px);
}

.btn-contactar {
background-color: #045894;
color: white !important;
border: 2px solid #045894;
font-weight: bold;
border-radius: 50px;
padding: 8px 25px;
transition: all 0.3s ease;
}

.btn-contactar:hover {
background-color: transparent;
color: #045894 !important;
border: 2px solid #045894;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(4, 88, 148, 0.2);
}


/* Ajustes generales para el Navbar de Bootstrap */
.navbar-toggler {
border: none;
padding: 0;
}

.navbar-toggler:focus {
box-shadow: none;
}

.collapsing {
transition: height 0.4s ease-in-out; /* Controla la velocidad del despliegue */
}


/* Ajustes para el nuevo menú de Software */
.dropdown-menu {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 10px;
}

.dropdown-item {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(4, 88, 148, 0.05);
    color: #3182ce !important;
    transform: translateX(5px);
}

/* Quitar la flechita de Bootstrap si prefieres un look más limpio */
.dropdown-toggle::after {
    vertical-align: middle;
    color: #045894;
}




/*************CARRUCEL***************/

.swiper {
width: 100%;
height: 100vh;
flex-grow: 1;
height: auto;
}

.swiper-slide {
height: 85vh; 
display: flex;
flex-direction:column;
justify-content: flex-start !important;
align-items: center;
padding-top: 135px !important; /* Espacio fijo para Header (20px) + Nav (60px) + Margen extra */
padding-left: 5%;
padding-right: 5%;
box-sizing: border-box;
overflow: hidden;
}

.mySwiper {
margin-top: 1px;
}

.visual-container {
perspective: 1000px;
position: relative;
width: 50%;
height: 50%;
}

.main-device {
width: 160%;
height: 160%;
left: 15%;
margin-top: 50px;
filter: drop-shadow(0 20px 50px rgba(0,0,0,0.2));
z-index: 2;
}

.floating-icon {
position: absolute;
width: clamp(40px, 5vw, 60px);
height: clamp(40px, 5vw, 60px);
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
z-index: 3;
box-shadow: 0 15px 35px rgba(0,0,0,0.3);
animation: float 4s ease-in-out infinite;
z-index: 10;
}

.icon-1 { top: 10%; right: 20%; background-color: #3182ce;}
.icon-2 { bottom: 15%; left: 80%; animation-delay: 1s; background-color: #3182ce;}
.icon-3 { top: 25%; left: 15%; animation-delay: 0.5s; background-color: #3182ce;}

@keyframes float {
0%, 100% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-title {
margin-top: 20px !important; /* Eliminamos márgenes que causan saltos */
margin-bottom: 20px;
background: linear-gradient(to right, #045894, #3182ce);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: clamp(2.35rem, 5vw, 4.5rem) !important;
font-weight: 800;
line-height: 1;
letter-spacing: 5px; /* Un poco menos de espacio para que no rompa en laptop */
width: 100%;
text-align: left;
text-transform: uppercase;
}

/* --- Subtítulos Consistentes --- */
.text-primary.text-uppercase {
padding-top: 10px !important; /* Reducimos el padding excesivo de 60px */
font-size: clamp(1rem, 4vw, 1.4rem) !important;
margin-bottom: 10px;
display: block;
color: #3182ce !important;
}

.text-secondary {
font-size: clamp(1rem, 1.8vw, 1.4rem) !important;
color: #000000 !important;
}

.contenedor-identidad {
flex-direction: row;     /* Uno al lado del otro */
justify-content: flex-start; /* Alineados a la izquierda en PC */
align-items: center;     /* Botón centrado verticalmente respecto al logo */
gap: 30px;               /* Un poco más de espacio en PC */
}

.logo-spdi { 
width: 100%;
max-width: clamp(100px, 8vw, 150px);
height: auto;
}

.soporte-container {
display: inline-flex; 
align-items: center;
flex-wrap: wrap;
border: 2px solid #045894;
border-radius: 12px;
overflow: hidden;
background: rgba(229, 62, 62, 0.05);
}

.beta-badge {
background: #610404b9;
Color: white;
display: flex;
align-items: center;
justify-content: center;
margin-top: 30px;
margin-bottom: -30px;
}

.soporte-link {
color: #e96011 !important;
text-decoration: none;
font-weight: 700;
padding: 8px 14px;
font-size: clamp(0.8rem, 1vw, 1.2rem);
letter-spacing: 1px;
transition: 0.3s;
display: flex;
align-items: center;
}

.soporte-link:hover {
color: rgb(9, 165, 204) !important;
background: rgba(255, 255, 255, 0.404);

}

.descripcion-izquierda {
color: #000000 !important;
line-height: 1.6;
font-size: clamp(0.9rem, 1.4vw, 1.4rem);
text-align: left;
font-weight: 500;
}

.swiper-button-next {
    margin-right: 2%;
}

.swiper-button-prev {
    margin-left: 2%;
}

.swiper-button-next, .swiper-button-prev {
color: #045894;
transition: 0.3s;
background: rgba(255,255,255,0.5);
width: clamp(35px, 5vw, 50px);
height: clamp(35px, 5vw, 50px);
border-radius: 50%;
}

.swiper-button-next:after, .swiper-button-prev:after {
font-size: 20px;
font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
background: #045894;
color: #ffffff;
}

.nav-link-custom.active {
color: #3182ce !important;
border-bottom: 2px solid #3182ce;
transform: translateY(-2px);
}

/***********FOOTER*****************/

footer {
background-color: #045894;
color: #ffffff;
padding: 1px 0;
width: 100%;
border-top: 1px solid rgba(255,255,255,0.1);
position: relative;
bottom: 0;
z-index: 5;
font-size: clamp(0.8rem, 2vw, 1.2rem);
}

footer p {
font-weight: 500;
letter-spacing: 0.5px;
}

footer .text-primary {
color: #ffffff !important;
opacity: 0.9;
font-weight: 500;
}

/**********************************************************NOSOTROS**************************************************************/

/**********TARJETA EFECTOS **********/

/* 1. Contenedor con perspectiva 3D */
.col-lg-6.visual-container {
perspective: 2000px; /* Da profundidad al espacio */
}

/* 2. Estilo base de la tarjeta flotante con neón */
.p-4.bg-white.shadow-sm.rounded-4 {
transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Suavidad total */
transform-style: preserve-3d; /* Permite que el contenido interno tenga 3D */
will-change: transform, box-shadow;
border: 2px solid transparent !important; /* Base para el neón */
background: rgba(255, 255, 255, 0.95) !important; /* Ligeramente transparente */
backdrop-filter: blur(5px);
transform: rotateX(10px) rotateY(-10px); /* Inclinación inicial */
margin-top: 50px !important; /* Eliminamos márgenes que causan saltos */
}


/* 3. El Efecto Glow (Resplandor) y Tilt al pasar el ratón */
.p-4.bg-white.shadow-sm.rounded-4:hover {
transform: rotateX(0deg) rotateY(0deg) scale(1.05) translateY(-10px); /* Se endereza y sube */
background: rgba(255, 255, 255, 1) !important;
}


/* 4. Colores de Neón específicos al hover */
/* DISEÑO (Azul) */
.col-6:nth-child(1) .p-4.bg-white.shadow-sm.rounded-4:hover {
border-color: #3182ce !important;
box-shadow: 0 15px 40px rgba(49, 130, 206, 0.3), 0 0 20px rgba(49, 130, 206, 0.2) !important;
}

/* WEB (Cian) */
.col-6:nth-child(2) .p-4.bg-white.shadow-sm.rounded-4:hover {
border-color: #0dcaf0 !important;
box-shadow: 0 15px 40px rgba(13, 202, 240, 0.3), 0 0 20px rgba(13, 202, 240, 0.2) !important;
}

/* QR (Verde) */
.col-6:nth-child(3) .p-4.bg-white.shadow-sm.rounded-4:hover {
border-color: #198754 !important;
box-shadow: 0 15px 40px rgba(25, 135, 84, 0.3), 0 0 20px rgba(25, 135, 84, 0.2) !important;
}

/* IDENTIDAD (Naranja) */
.col-6:nth-child(4) .p-4.bg-white.shadow-sm.rounded-4:hover {
border-color: #ffc107 !important;
box-shadow: 0 15px 40px rgba(255, 193, 7, 0.3), 0 0 20px rgba(255, 193, 7, 0.2) !important;
}

/* 5. Efecto de "paralaje" en el icono interno */
.p-4.bg-white.shadow-sm.rounded-4 i {
transition: transform 0.5s ease;
display: inline-block;
}

.p-4.bg-white.shadow-sm.rounded-4:hover i {
transform: translateZ(30px) scale(1.1); /* El icono sobresale */
}

/* --- ANIMACIÓN DE ESCALA (RELOJ) --- */
@keyframes scaleClock {
0%, 20%, 100% {
transform: scale(1);
z-index: 1;
}
5%, 15% {
transform: scale(1.12) translateY(-10px);
z-index: 10;
}
}

/* --- BASE TARJETAS --- */
.visual-container .p-4 {
position: relative;
border-radius: 1rem;
background: rgba(255,255,255,0.95);
overflow: hidden;
z-index: 1;
transform: scale(1);
transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* --- CAPA NEÓN GENERAL --- */
.visual-container .p-4::before {
content: "";
position: absolute;
inset: -2px;
border-radius: inherit;
z-index: -1;
background-size: 300% 300%;
filter: blur(8px);
opacity: 0; 
}

/* --- INTERIOR --- */
.visual-container .p-4::after {
content: "";
position: absolute;
inset: 2px;
background: rgb(255, 255, 255);
border-radius: inherit;
z-index: -1;
}

/* --- ANIMACIÓN RELOJ --- */
@keyframes neonClock {
0%, 20%, 100% {
opacity: 0;
transform: scale(1);
}
5%, 15% {
opacity: 1;
transform: scale(1.12) translateY(-10px) rotateX(5deg);
}
}

/*****GRADIENTES POR TARJETA COLOR EN LOS BORDES***********/

/* 1 AZUL */
.visual-container .col-6:nth-child(1) .p-4::before {
background: linear-gradient(120deg, #3182ce, #00f0ff, #3182ce);
animation: neonFlow 6s linear infinite, neonClock 8s infinite;
}

/* 2 CIAN */
.visual-container .col-6:nth-child(2) .p-4::before {
background: linear-gradient(120deg, #0dcaf0, #00f0ff, #0dcaf0);
animation: neonFlow 6s linear infinite, neonClock 8s infinite;
animation-delay: 2s;
}

/* 3 VERDE */
.visual-container .col-6:nth-child(3) .p-4::before {
background: linear-gradient(120deg, #198754, #00ffcc, #198754);
animation: neonFlow 6s linear infinite, neonClock 8s infinite;
animation-delay: 4s;
}

/* 4 DORADO */
.visual-container .col-6:nth-child(4) .p-4::before {
background: linear-gradient(120deg, #ffc107, #fff3cd, #ffc107);
animation: neonFlow 6s linear infinite, neonClock 8s infinite;
animation-delay: 6s;
}

/* --- MOVIMIENTO DEL GRADIENTE --- */
@keyframes neonFlow {
0% { background-position: 0% 50%; }
100% { background-position: 300% 50%; }
}

/* --- ICONOS --- */
.visual-container .p-4 i {
transition: color 0.4s ease;
}

/* --- ACTIVACIÓN COLOR ICONO (SIN HOVER) --- */
.visual-container .col-6:nth-child(1) .p-4 {
animation: iconBlue 8s infinite;
animation: scaleClock 8s infinite;
}

.visual-container .col-6:nth-child(2) .p-4 {
animation: iconCyan 8s infinite;
animation-delay: 2s;
animation: scaleClock 8s infinite;
animation-delay: 2s;
}
.visual-container .col-6:nth-child(3) .p-4 {
animation: iconGreen 8s infinite;
animation-delay: 4s;
animation: scaleClock 8s infinite;
animation-delay: 4s;
}

.visual-container .col-6:nth-child(4) .p-4 {
animation: iconGold 8s infinite;
animation-delay: 6s;
animation: scaleClock 8s infinite;
animation-delay: 6s;
}

/* --- ICONOS COLOR --- */
@keyframes iconBlue {
0%,20%,100% { color: #045894; }
5%,15% { color: #00f0ff; }
}
@keyframes iconCyan {
0%,20%,100% { color: #045894; }
5%,15% { color: #0dcaf0; }
}
@keyframes iconGreen {
0%,20%,100% { color: #045894; }
5%,15% { color: #00ffcc; }
}
@keyframes iconGold {
0%,20%,100% { color: #045894; }
5%,15% { color: #ffc107; }
}

/***************************************************************CATALOGO***********************************************************************/

/* --- BOTÓN ESPECIAL WHATSAPP --- */
.btn-whatsapp {
background-color: #25D366; /* Verde oficial de WhatsApp */
color: white !important;
border: 2px solid #20ce60;
font-weight: 800;
border-radius: 40px;
padding: 20px 40px;
font-size: 1.1rem;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;

}

.btn-whatsapp:hover {
background-color: #0458949d;
color: #25D366 !important;
transform: translateY(-5px) scale(1.05);
box-shadow: 0 10px 20px rgba(37, 211, 101, 0.774);
}

.btn-whatsapp i {
font-size: 1.4rem;
}

/* --- ESTILO DE BADGES SPDI --- */
.badge {
font-family: 'Plus Jakarta Sans', sans-serif;
font-weight: 700;
font-size: 0.9rem;
display: flex;
align-items: center;
min-width: 180px;
transition: all 0.3s ease;
border: 1px solid rgba(0,0,0,0.02) !important;
}

.badge:hover {
transform: scale(1.1) !important;
z-index: 20 !important;
cursor: default;
}

/* Animación individual para que parezcan burbujas flotando */
.badge:nth-child(2) { animation: float 6s ease-in-out infinite; }
.badge:nth-child(3) { animation: float 5s ease-in-out infinite; animation-delay: 1s; }
.badge:nth-child(4) { animation: float 7s ease-in-out infinite; animation-delay: 0.5s; }
.badge:nth-child(5) { animation: float 5.5s ease-in-out infinite; animation-delay: 1.5s; }



/***************************************************************FAQ***********************************************************************/


.accordion-item {
border-bottom: 1px solid rgba(4, 88, 148, 0.1) !important;
}

.accordion-button {
padding: 20px !important;
background-color: #ffffff !important;
color: #045894 !important;
font-size: 1rem;
}

.accordion-button:not(.collapsed) {
background-color: rgba(49, 130, 206, 0.05) !important;
box-shadow: none !important;
}

.accordion-button:focus {
box-shadow: none !important;
}

.accordion-body {
background-color: #ffffff;
padding: 15px;
font-size: 0.9rem;
line-height: 1.6;
}


/***************************************************************GaeVans Landing Card***********************************************************************/


/* Animación para la Landing Card Preview */
.card-preview {
    animation: floatCard 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}


.landing_card_tarjeta_virtual {
    max-width: 240px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0, 123, 255, 0.733));
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Ajuste para el botón de contactar (si no lo tenías definido) */
.btn-contactar {
    background-color: #045894;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-contactar:hover {
    background-color: #3182ce;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(4, 88, 148, 0.2);
}



@media (max-width: 576px) {

/* Permitimos que el cuerpo y el swiper crezcan si el contenido es largo */
body, html, .swiper, .mySwiper {
height: auto !important;
min-height: auto;
overflow-y: visible !important;
}

.swiper-slide {
        height: auto !important;
        min-height: auto;
        display: block !important; /* Cambiamos flex por block para que no colapse */
        padding-bottom: 60px !important; /* Espacio para que el contenido no pegue al footer */
    }

.swiper, .mySwiper, .swiper-wrapper {
height: auto !important;
min-height: auto;
}


footer {
        margin-top: auto !important;
        position: relative !important;
        width: 100%;
        background-color: #045894; /* Color sólido para que no se vea blanco detrás */
    }


.logo-circular {
top: 5px;
left: 25px;
width: 100px;
height: 100px;
}

.navbar-menu {
top: 10px; /* ajusta según header */
padding: 10px;
}

/* menú desplegable */
.navbar-collapse {
position: fixed;
top: 20px; /* La altura de tu header azul */
left: 0;
width: 100%;
height: calc(100vh - 20px) !important; /* Pantalla completa menos el header */
background-color: white; /* O el color que prefieras */
z-index: 999;
overflow-y: auto;
transition: all 0.3s ease-in-out;
display: flex;
flex-direction: column;
justify-content: center; /* Centra los enlaces verticalmente para un look profesional */
}

.nav-link-custom {
display: block;
text-align: center;
font-size: 1.5rem !important;
padding: 20px 0 !important;
border-bottom: 1px solid #f0f0f0;
width: 100%;
}

.swiper-slide {
padding-top: 125px !important; /* Espacio fijo para Header (20px) + Nav (60px) + Margen extra */
padding-bottom: 40px !important; 
display: flex;
flex-direction: column;
justify-content: flex-start; /* Empuja el contenido hacia arriba */
}

.hero-title {
padding: 0 35px; /* evita que el texto toque bordes */
}

.text-primary.text-uppercase {
padding: 0 35px; /* evita que el texto toque bordes */
}

.text-secondary {
padding: 0 35px; /* evita que el texto toque bordes */
}

.swiper-button-next {
    margin-right: 2%;
    top: 40% !important; /* Las sube del fondo hacia el centro visual */
    transform: translateY(-50%);
}

.swiper-button-prev {
    margin-left: 2%;
    top: 40% !important; /* Las sube del fondo hacia el centro visual */
    transform: translateY(-50%);
}


.contenedor-identidad {
display: flex;
flex-direction: column; /* Uno debajo del otro */
align-items: center;    /* Centrados horizontalmente */
gap: 1px;              /* Espacio entre logo y botón */
width: 100%;
}

.logo-spdi { 
padding: 0 35px; /* evita que el texto toque bordes */
max-width: clamp(220px, 8vw, 250px);
}

.descripcion-izquierda {
padding: 0 35px; /* evita que el texto toque bordes */
}

.main-device {
width: 150%;
height: 150%;
left: 4%;
filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
z-index: 2;
}

.visual-container{
width: 100%;
height: 100%;
}

.col-md-6{
padding: 0 35px; /* evita que el texto toque bordes */
}


/* --- BOTÓN ESPECIAL WHATSAPP --- */
.btn-whatsapp {
font-weight: 700;
padding: 10px 10px;
margin-left: 35px;
font-size: 0.7rem;
}

.badge {
font-family: 'Plus Jakarta Sans', sans-serif;
font-weight: 700;
font-size: 0.8rem;
display: flex;
align-items: center;
min-width: 100px;
transition: all 0.3s ease;
border: 1px solid rgba(0,0,0,0.05) !important;
}

.accordion-button {
padding: 10px !important;
background-color: #ffffff !important;
color: #045894 !important;
font-size: 1.1rem;
}

.visual-container .badge {
        font-size: 0.75rem !important; /* Letra más pequeña en móvil */
        min-width: auto !important;     /* Que no tengan un ancho fijo gigante */
        padding: 8px 12px !important;  /* Más compactos */
    }
    
    /* Ajustamos posiciones para que no se salgan del borde del teléfono */
    .visual-container .badge[style*="left: -5%"] { left: 0% !important; }
    .visual-container .badge[style*="right: -10%"] { right: 0% !important; }

.accordion-button {
padding: 20px !important;
background-color: #ffffff !important;
color: #045894 !important;
font-size: 1rem;
}

.btn.btn-primary{
margin-left: 30px;
}


}


@media (max-width: 767.98px) {
    /* Compactar el espacio de los slides */
    .swiper-slide {

    }

    /* Reducir márgenes de los títulos y textos */
    .hero-title {
        margin-top: 10px !important;
        font-size: 2.5rem !important;
    }

    .descripcion-izquierda {
        margin-bottom: 20px !important;
    }

    /* Subir las flechas de navegación */
    .swiper-button-next, 
    .swiper-button-prev {
        top: 40% !important; /* Las sube del fondo hacia el centro visual */
        transform: translateY(-50%);
    }

    /* Pegar más el footer al contenido */
    footer {
        margin-top: auto;
        padding: 15px 0 !important;
    }
}