@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

/* ==========================================================================
   1. RESET Y ESTRUCTURA GLOBAL
   ========================================================================== */

   body{
    background-color: #000 !important; 
   }


html, body {
    font-family: "Poppins", sans-serif !important;
    background-color: #000000 !important; 
    margin: 0;
    padding: 0;
    width: 100%;
    color: #ffffff;
    overflow-x: visible !important; 
}

main, footer {
    overflow-x: hidden !important;
    width: 100%;
}

p, 
span, 
li { 
    color: #e2e8f0; 
}

main, 
footer, 
.carrusel-inicio { 
    position: relative; 
    z-index: 1; 
}

main {
    position: relative;
    z-index: 1 !important;
}


.tabs_scroll_track { 
    margin: 0;             /* Eliminamos los márgenes que fallan */
    background-color: #000000 !important;
}

/* AÑADE ESTA REGLA NUEVA PARA FORZAR EL NEGRO EN EL PIN */
.pin-spacer {
    background-color: #000000 !important;
}

.section_tabs {
    background-color: #000000 !important; /* Que la sección de tabs siempre sea negra */
}

#particle-canvas {
    position: absolute !important; /* Cambiado de fixed a absolute para que se quede en su sección */
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
}

/* ==========================================================================
   2. GLASSMORPHISM Y TARJETAS FLOTANTES
   ========================================================================== */
.glassMorph {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    backdrop-filter: blur(12px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.171) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    border-radius: 20px;
    box-sizing: border-box !important;
}

div.eventosDeportivos.glassMorph,
div.Software-section.glassMorph,
div.servicios-section.glassMorph,
div.video-instalaciones-section.glassMorph {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: relative !important;
    margin: 0 auto !important; 
    padding: 90px 40px !important; 
    z-index: 20;
    max-width: none !important; 
    width: 100vw !important;
    left: 50%;
    transform: translateX(-50%);
}

div.eventosDeportivos.glassMorph > *,
div.Software-section.glassMorph > *,
div.servicios-section.glassMorph > *,
div.video-instalaciones-section.glassMorph > * {
    position: relative;
    z-index: 2;
    max-width: 1300px; 
    margin-left: auto;
    margin-right: auto;
}

div.eventosDeportivos.glassMorph::after,
div.Software-section.glassMorph::after,
div.servicios-section.glassMorph::after,
div.video-instalaciones-section.glassMorph::after {
    content: ""; 
    position: absolute;
    top: 30px; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%);
    width: calc(100% - 40px) !important; 
    max-width: 1300px;
    border-radius: 20px; 
    z-index: -1;
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-sizing: border-box !important;
}

div.eventosDeportivos.glassMorph::after,
div.servicios-section.glassMorph::after,
div.video-instalaciones-section.glassMorph::after {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, rgba(0, 80, 255, 0.05) 100%) !important;
    border: 2px solid rgba(0, 229, 255, 1) !important;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15) !important;
}

div.Software-section.glassMorph::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================================
   3. TIPOGRAFÍA Y TEXTOS
   ========================================================================== */
.titulosGradiente { 
    background-image: linear-gradient(90deg, #ff6f00 0%, #ffca28 35%, #fffde7 70%, #ff6f00 100%) !important; 
    background-size: 200% 100%;
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    animation: tituloGradiente 5s linear infinite; 
    filter: drop-shadow(0px 2px 1px rgba(0, 0, 0, 0.8)); 
    text-shadow: 0px 0px 12px rgba(0, 229, 255, 0.3); 
}

.gradienteSecundario {
    background-image: linear-gradient(90deg, #00c853 0%, #64dd17 35%, #b9f6ca 70%, #00c853 100%) !important;
    background-size: 200% auto !important; 
    color: transparent !important;
    -webkit-background-clip: text !important; 
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: tituloGradiente 5s linear infinite !important;
    display: inline-block !important; 
}

@keyframes tituloGradiente { 
    0% { background-position: 0% 50%; } 
    100% { background-position: 200% 50%; } 
}

.Software h3, 
.Funciones-escena h3 {
    position: relative !important; 
    display: block !important; 
    width: max-content !important; 
    margin: 0 auto 15px auto !important; 
    padding-bottom: 8px !important;
}

.Software h3::after, 
.Funciones-escena h3::after {
    content: "" !important; 
    position: absolute !important; 
    width: 100% !important; 
    height: 3px !important;
    background-image: linear-gradient(90deg, #00c853 0%, #64dd17 35%, #b9f6ca 70%, #00c853 100%) !important;
    bottom: 0 !important; 
    left: 0 !important; 
    border-radius: 3px !important;
    background-size: 200% 100% !important; 
    animation: tituloGradiente 5s linear infinite !important;
}

/* ==========================================================================
   4. CARRUSEL, TABS, SLIDERS Y BOTONES
   ========================================================================== */
.carrusel-inicio {
    min-height: 250px;
    background-color: #000;
}

.carrusel-inicio .carousel-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.tabs_scroll_track { 
    margin-top: 100px; 
    margin-bottom: 100px;
    background-color: #000;
}

.tabs_container {
    width: 100% !important; 
    max-width: 1300px !important; 
    margin: 0 auto !important; 
    padding: 0 40px !important; 
    box-sizing: border-box !important;
}

.tabs_component { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
}

.tabs_left { 
    position: relative; 
    padding: 50px; 
    border-radius: 30px;
    width: 480px !important; 
    min-width: 480px !important;
    display: flex; 
    flex-direction: column !important;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6) !important;
    backdrop-filter: blur(15px) !important;
}

.tabs_texts-container { 
    position: relative; 
    width: 100%; 
    min-height: 450px; 
    margin-bottom: 20px; 
}

.tabs_let-content { 
    top: 0; 
    left: 0; 
    width: 100%; 
    opacity: 0 !important; 
    visibility: hidden !important; 
    position: absolute !important; 
    filter: blur(10px); 
    transform: translateY(10px); 
    transition: all 0.3s ease-in-out; 
    display: flex !important; 
    flex-direction: column !important;
}

.tabs_let-content.is-active { 
    opacity: 1 !important; 
    visibility: visible !important; 
    z-index: 5; 
    position: relative !important; 
    filter: blur(0px); 
    transform: translateY(0px); 
}

.tabs_right { 
    margin-left: 80px; 
    flex: 1; 
    height: 500px; 
    border-radius: 30px; 
    overflow: hidden; 
    position: relative; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tabs_photo { 
    position: absolute; 
    inset: 0; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.6s ease-in-out; 
}

.tabs_photo.is-active { 
    opacity: 1 !important; 
    visibility: visible !important; 
}

.tabs_photo img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

#dynamic-button { 
    background: #0c6ceb; 
    color: #ffffff !important; 
    padding: 12px 25px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: bold; 
    display: inline-block; 
    transition: all 0.3s ease; 
}

#dynamic-button:hover { 
    background: #ffffff; 
    color: #000000 !important; 
}

/* ==========================================================================
   5. SECCIÓN: NUEVA GAMA *** Hacer Animación ***
   ========================================================================== */

.nueva-gama {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 5%;
}

#canvas_fondo_1 {
	display: block; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(180deg, #415b66 0%, #d7feff 10%, #526d6e 80%, #000000 100%);
    filter: blur(3px);
    -webkit-filter: blur(3px);
	}

.showcase-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    text-align: center;
    z-index: 2;
}

.showcase-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    margin-bottom: 1.5em;
    text-shadow: 0 0 40px rgba(255,215,0,0.6), 0 0 80px rgba(255,165,0,0.4);
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease-out;
}

.nueva-gama.activo .showcase-title {
    opacity: 1;
    transform: translateY(0);
}

.pantallas-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.showcase-pantalla {
    position: relative;
    width: clamp(300px, 45%, 600px);
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,229,255,0.3);
    box-shadow: 0 0 0 rgba(0,229,255,0.2);
    opacity: 0;
    transform: scale(0.92) translateY(30px);
    transition: all 1.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s ease-out;
}

.nueva-gama.activo .showcase-pantalla {
    opacity: 1;
    transform: scale(1) translateY(0);
    box-shadow: 0 0 80px rgba(0,229,255,0.6), inset 0 0 50px rgba(0,229,255,0.3);
    transition: transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1s ease-out;
}

.nueva-gama.activo .showcase-pantalla:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(0, 229, 255, 0.8);
    transition: transform 0.3s ease-out, border-color 0.3s ease;
    z-index: 10;
}

.showcase-pantalla.left  { transition-delay: 0.4s; }
.showcase-pantalla.right { transition-delay: 0.6s; }

.showcase-pantalla img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-panel {
    background: rgba(10, 15, 40, 0.118);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,229,255,0.35);
    border-radius: 20px;
    padding: 40px 50px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(60px) scale(1);
    transition: all 1s ease-out 1.2s, transform 0.8s ease-out;
}

.glass {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Soporte para Safari */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nueva-gama.activo .info-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nueva-gama.activo .info-panel:hover {
    transform: translateY(0) scale(1.05); 
    background: rgba(10, 15, 40, 0.2);
    border-color: rgba(0, 229, 255, 0.8);
    transition: transform 0.4s ease-out, background 0.3s ease, border-color 0.3s ease;
}

.lead {
    font-size: 1.6rem;
    color: #e0f7ff;
    margin-bottom: 2em;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5em;
}

.features-list li {
    font-size: 1.3rem;
    margin: 1em 0;
    color: #d0e8ff;
    position: relative;
    padding-left: 2em;
}

.features-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #00e5ff;
}

.btn-primary {
    padding: 16px 48px;
    background: rgba(136, 233, 244, 0.15);
    border: 2px solid #00e5ff;
    color: #00e5ff;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.4s;
}

.btn-primary:hover {
    background: rgba(0,229,255,0.3);
    box-shadow: 0 0 40px rgba(0,229,255,0.6);
}



/* ==========================================================================
   6. SECCIÓN: EVENTOS, SOFTWARE Y DEMÁS CONTENIDO
   ========================================================================== */
.Software {
    padding-left: 30px;
    padding-right: 30px;
}

.Software p {
    color: #e2e8f0;
    line-height: 1.6;
}
.seccionSoftware{
    background-color: black;
}

.eventosDeportivosSeccion{
    width: 100vw;
    border-top-right-radius: 50px;
    border-top-left-radius: 50px;
    overflow: hidden;
    background-color: #000;
}

.tituloEventosDeportivos { 
    font-size: 30px; 
    text-align: center;

}

.video_texto { 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    gap: 60px; 
    width: 100%; 
    padding: 20px; 
}

.video_texto video { 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    width: 90%;
    max-width: 800px; 
}

.textoDelVideo { 
    width: 90%; /* Le damos un 40% de espacio al texto */
    max-width: 500px; 
    padding: 20px; 
}

.textoDelVideo.card { 
    background-color: rgba(255,255,255,0.05) !important; 
    border: 2px solid rgba(255,255,255,0.3) !important; 
    border-radius: 20px; 
}

.Software-section { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    position: relative !important; 
    padding-bottom: 0px !important;
    background-color: #000000;
}

.Software-section > img {
    width: 80vw;
    margin-bottom: 40px; 
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); 
}

.Software-section-content { 
    display: grid !important; 
    grid-template-columns: 1.5fr 1fr 250px !important; 
    gap: 40px !important; 
    width: 100% !important;
    overflow: visible;
}

/* LA IMAGEN DE LA APP ANCLADA Y CORREGIDA */
.img-app { 
    position: absolute !important; 
    bottom: 30px !important; 
    right: 0 !important; 
    width: 250px !important; 
    height: auto !important; 
    z-index: 50 !important; 
}

.img-app > img { 
    width: 100% !important; 
    height: auto !important; 
    display: block !important; 
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); 
}

.cards { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 20px; 
    width: 100%;
    margin-top: 20px;
    padding-left: 30px;
    padding-right: 30px;
}

.cards div { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    background: rgba(255, 255, 255, 0.05) !important; 
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); 
    border-radius: 10px; 
    padding: 20px 10px; 
    border: 2px solid rgba(255, 255, 255, 0.2) !important; 
    text-align: center; 
}

.Conexiones-control-remoto { 
    margin-left: 0 !important; 
    display: flex; 
    flex-direction: column; 
    gap: 40px; 
    width: 100%; 
    background: rgba(255,255,255,0.02); 
    padding: 25px; 
    border-radius: 15px; 
    border: 2px solid rgba(255,255,255,0.2) !important; 
}

.iconos-Conexiones-Accesorios { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    flex-wrap: wrap; 
}

.glassMorphIcon { 
    background-color: rgba(255, 255, 255, 0.05); 
    border-radius: 10px; 
    padding: 10px; 
    margin: 5px; 
    border: 1px solid rgba(255,255,255,0.2); 
}

.iconos-Conexiones-Accesorios i, 
.bi-play-btn, 
.bi-fonts, 
.bi-clock { 
    font-size: 30px; 
    color: #00e5ff; 
}

.Control-remoto { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.Control-remoto-icon-text { 
    display: flex; 
    align-items: center; 
    margin-bottom: 15px; 
    background: rgba(0,0,0,0.2); 
    padding: 10px 15px; 
    border-radius: 10px; 
    border: 1px solid rgba(255,255,255,0.1); 
}

.Control-remoto-icon-text i { 
    font-size: 25px; 
    color: #ff5252; 
    margin-right: 15px; 
}

.video-instalaciones-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    margin-top: 100px;
    position: relative;
    z-index: 20;
    padding-top: 30px;
    padding-bottom: 30px;
}

.seccionInstalaciones{
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    background-color: black !important;
}
.icon-android-ios {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.icon-android-ios p {
    margin-bottom: 0 !important; 
}

.icon-android-ios i {
    color: #ffffff !important;
    font-size: 22px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon-android-ios i:hover {
    color: #0c6ceb !important;
    transform: translateY(-3px);
}


/* ==========================================================================
   7. SERVICIOS
   ========================================================================== */
#canvas_fondo_2 {
    display: block; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: 0; 
    pointer-events: none; 
    filter: blur(4px);
    -webkit-filter: blur(4px);
}

.seccionServicios {
    margin-bottom: 100px !important;
    position: relative;
    overflow: hidden;
    z-index: 20;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    background: linear-gradient(180deg, #415b66 0%, #d7feff 10%, #526d6e 80%, #000000 100%);
    margin-top: 100px;
    padding-top: 50px;
    position: relative;
    z-index: 9999;
    height: 100vh;
}

.seccionServicios h2, 
.seccionServicios p, 
.seccionServicios span {
    color: #1a1a1a !important; 
}

.servicios-footer .enlace-flecha{
    color: #000;
}

.servicios-section {
    position: relative;
    z-index: 10;        
    padding-top: 50px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.contenedor-servicios {
    max-width: 1200px;
    margin: 0 auto;
}

/* ENCABEZADO ESTILO LEDEC */
.servicios-encabezado h2 {
    font-size: 2.5rem;
    font-weight: 510;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #022552;
}


.servicios-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.servicio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    transition: transform 0.3s ease;
}

.servicio-media {
    width: 150px;
    height: 150px;
    background: #4c8ef0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(76, 142, 240, 0.2);
    transition: all 0.3s ease;
}

.servicio-media img {
    width: 70%;
    height: auto;
    filter: brightness(0) invert(1); /* GIFs en blanco para estilo minimalista */
    transition: all 0.3s ease;
}

.servicio-item span {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    transition: color 0.3s;
}

/* HOVER EFFECTS (AZULES) */
.servicio-item:hover { 
    transform: translateY(-10px); 
}

.servicio-item:hover .servicio-media { 
    background-color: #022552;
    box-shadow: 0 12px 25px rgba(2, 37, 82, 0.3);
}

.servicio-item:hover .servicio-media img { 
    filter: none;
    transform: scale(1.1);
}

.servicio-item:hover span { 
    color: #1e88e5;
}

/* Esto afecta solo a la imagen del primer servicio cuando pasas el ratón */
.servicio-item:first-child:hover .servicio-media img {
    /* Este filtro convierte el negro en un azul claro brillante */
    filter: brightness(0) saturate(100%) invert(74%) sepia(38%) saturate(836%) hue-rotate(182deg) brightness(101%) contrast(101%);
    transform: scale(1.1);
}

/* Y esto es para que cuando NO estés encima, se mantenga blanco (como los otros) */
.servicio-item:first-child .servicio-media img {
    filter: brightness(0) invert(1);
}

/* BOTÓN INFERIOR */
.servicios-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.enlace-flecha {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 10px;
    transition: 0.3s;
}

.enlace-flecha:hover { 
    border-bottom-color: #1e88e5; 
    color: #1e88e5; 
}

.flecha-icono { 
    font-size: 1.5rem; 
    transition: transform 0.3s; 
}

.enlace-flecha:hover .flecha-icono { 
    transform: translateX(10px); 
}
/* ==========================================================================
   8. CARRUSEL DE INTALACIONES
   ========================================================================== */

#carouselExampleIndicators {
    width: 100%;
    max-width: 1000px; /* Ancho máximo para pantallas grandes */
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 2. Forzamos el tamaño de cada diapositiva DENTRO de este ID específico */
#carouselExampleIndicators .carousel-item {
    width: 100%;
    height: 500px; /* Altura fija para que todos los vídeos se vean iguales */
    background-color: #000;
}

/* 3. El vídeo se comporta como un fondo recortado */
#carouselExampleIndicators video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta el vídeo sin deformarlo */
    display: block;
}
/* ==========================================================================
   8. SLIDER LOGOS INFINITO
   ========================================================================== */
.itemslider { 
    display: flex; 
    overflow: hidden; 
    width: 100vw !important; 
    position: relative; 
    left: 50%; 
    right: 50%; 
    margin-left: -50vw !important; 
    margin-right: -50vw !important; 
    padding: 40px 0; 
    background: linear-gradient(180deg, #d7feff 10%, #526d6e 100%); 
    border: 1px solid rgba(255, 255, 255, 0.2) !important; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.6) !important; 
    backdrop-filter: blur(15px) !important; 
}

.itemslider.glassMorph { 
    border-radius: 0 !important; 
    background: black !important; 
    border-left: none !important; 
    border-right: none !important; 
}

.grupo { 
    display: flex; 
    align-items: center; 
    flex-shrink: 0; 
    justify-content: space-around; 
    gap: 4em; 
    padding-right: 4em; 
    min-width: 100%; 
    animation: rotar 25s linear infinite; 
}

.itemslider:hover .grupo { 
    animation-play-state: paused; 
}

.itemslider .card { 
    flex: 0 0 auto; 
    height: 70px; 
    min-width: 150px; 
    width: 150px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
}

.itemslider .card img { 
    height: 100%; 
    width: 100%; 
    max-width: 200px; 
    object-fit: contain; 
    display: block; 
}

@keyframes rotar { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-100%); } 
}

.nuestras-instalaciones {
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    width: 100vw;
    position: relative;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

.slider-hero {
    height: 100vh; /* Ocupa toda la altura de la pantalla */
    width: 100vw;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.slider-hero .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}

.slider-hero .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Oscurece un poco la foto para que se lea el texto */
}

.slider-hero .list .item .content {
    position: absolute;
    width: 1300px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px rgba(0,0,0,0.8);
    z-index: 100;
}

.slider-hero .thumbnail .item:nth-child(n+5) {
    display: none !important;
}

.slider-hero .thumbnail {
    width: auto !important;
    max-width: 48vw;
    padding-right: 10px;
}

/* Solo bloqueamos los clics MIENTRAS dura la animación (0.5s aprox) */
.slider-hero.next .thumbnail,
.slider-hero.prev .thumbnail {
    pointer-events: none;
}
/* Estilos para el Título Global Fijo */
.titulo-global-hero {
    position: absolute;
    top: 50px;         /* Separación desde arriba */
    left: 0;
    width: 100%;
    text-align: center; /* Centrado en pantalla */
    z-index: 105;      /* Por encima de las fotos y los textos animados */
    pointer-events: none; /* Para que no estorbe si pasas el ratón o clicas por esa zona */
}

.titulo-global-hero h2 {
    font-size: clamp(3rem, 6vw, 6rem); /* Responsive: grande en PC, adaptado a móvil */
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 10px 20px rgba(0,0,0,0.8); /* Sombra fuerte para que lea sobre fotos claras */
}

.boton-global-hero {
    position: absolute !important;
    top: 55% !important; /* Altura bajo el texto en PC */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 1300px !important;
    max-width: 80% !important;
    z-index: 99999 !important; /* Literalmente por encima de todo */
    display: flex !important;
    justify-content: flex-start !important; /* En PC se pega a la izquierda */
    pointer-events: none !important; /* Caja invisible a los clicks */
}

.btn-azul {
    pointer-events: auto !important; /* FUNDAMENTAL: Le devuelve el click al botón */
    position: relative !important; /* Resetea cualquier absolute mal heredado */
    top: 0 !important;
    left: 0 !important;
    border: none !important;
    background-color: #0c6ceb !important; 
    color: white !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: bold !important;
    cursor: pointer !important;
    letter-spacing: 2px !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    transition: all 0.4s ease !important;
    display: inline-block !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5) !important;
    text-decoration: none !important;
}

.btn-azul:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    letter-spacing: 3px !important;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.6) !important;
}
.slider-hero .list .item .title {
    font-size: 5em;
    font-weight: bold;
    line-height: 1.1em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slider-hero .list .item .description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #e2e8f0;
}

.slider-hero .list .item .button {
    display: flex;
    gap: 15px;
}

.slider-hero .list .item .button button {
    border: none;
    background-color: #0c6ceb; /* Tu color azul corporativo */
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: 0.4s;
    letter-spacing: 2px;
    padding: 12px 25px;
    border-radius: 8px;
}

.slider-hero .list .item .button button:hover {
    background-color: #ffffff;
    color: #000000;
    letter-spacing: 3px;
}

/* --- Miniaturas (Thumbnails) --- */
.slider-hero .thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.slider-hero .thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}

.slider-hero .thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255,255,255,0.2);
}

/* --- Botones Flechas --- */
.nextPrevArrows {
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nextPrevArrows button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 20px;
    transition: .5s;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.nextPrevArrows button:hover {
    background-color: #00e5ff;
    color: #000;
    border-color: #00e5ff;
}

/* ==========================================================================
   9. ANIMACIONES CORE DEL SLIDER
   ========================================================================== */
.nuestras-instalaciones {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    width: 100vw;
    position: relative;
    z-index: 10;
}

.thumbnail{
    position: relative;
}
.thumbnail .item{
    position: relative;
    border: 10px;
    cursor: pointer;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

@property --angle{
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.thumbnail .item::after{
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0%;
    left: 0%;
    border-radius: 20px;
    z-index: -1;
    background-image: conic-gradient(from var(--angle), transparent 0%, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%);    
    animation:3s color linear infinite;
    transition: all 0.3s ease-in-out;
}

.thumbnail .item:hover img{
    scale: 1.2;
}

.thumbnail .item:hover::after{
    scale: 1.2;
}


.thumbnail .item::before{
     filter: blur(1.5rem);
     opacity: 0.5;
}

@keyframes color {
    from{
        --angle: 0deg;
    }
    to{
        --angle: 360deg;
    }
}

.slider-hero {
    height: 100vh; 
    width: 100vw;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.slider-hero .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
    z-index: 0; /* Base para que las tarjetas no se peleen */
}

/* La tarjeta activa (la primera) siempre se pone por encima */
.slider-hero .list .item:nth-child(1) {
    z-index: 1;
}

.slider-hero .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: all 0.3s ease-in-out;
}

.slider-hero .list .item .content {
    position: absolute;
    top: 30%;
    width: 1300px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px rgba(0,0,0,0.8);
    /* Eliminado el z-index: 100 para que no se superpongan */
}

.slider-hero .list .item .title {
    font-size: 5em;
    font-weight: bold;
    line-height: 1.1em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slider-hero .list .item .description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #e2e8f0;
}

/* Estilos para el Botón Global Fijo */
.boton-global-hero {
    position: absolute;
    top: 40%; /* Altura a la que flota el botón. Si queda muy pegado al texto, súbelo a 55% o bájalo a 45% */
    left: 15%;
    transform: translateX(-50%); /* Centrado perfecto */
    z-index: 105; /* Por encima de las fotos para que se pueda hacer clic */
}

.boton-global-hero{
    position: absolute !important;
    top: 55% !important; /* Altura bajo el texto en PC */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 1300px !important;
    max-width: 80% !important;
    z-index: 99999 !important; /* Literalmente por encima de todo */
    display: flex !important;
    justify-content: flex-start !important; /* En PC se pega a la izquierda */
    pointer-events: none !important;
}

.boton-global-hero button {
    border: none;
    background-color: #0c6ceb; 
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: 0.4s;
    letter-spacing: 2px;
    padding: 12px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); /* Sombreado extra para que no se pierda con fotos claras */
    
}

.boton-global-hero button:hover {
    background-color: #ffffff;
    color: #000000;
    letter-spacing: 3px;
}

.slider-hero .list .item .button {
    display: flex;
    gap: 15px;
}

.slider-hero .list .item .button button {
    border: none;
    background-color: #0c6ceb; 
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: 0.4s;
    letter-spacing: 2px;
    padding: 12px 25px;
    border-radius: 8px;
}

.slider-hero .list .item .button button:hover {
    background-color: #ffffff;
    color: #000000;
    letter-spacing: 3px;
}

/* ==========================================================================
   10. Animacion Textos
   ========================================================================== */

/* 1. Por defecto, ocultamos todos los textos de las tarjetas que NO están activas */
.slider-hero .list .item .content .title,
.slider-hero .list .item .content .description,
.slider-hero .list .item .content .button {
    opacity: 0;
}

/* 2. Solo animamos y hacemos visibles los textos de la tarjeta activa (la 1) */
.slider-hero .list .item:nth-child(1) .content .title,
.slider-hero .list .item:nth-child(1) .content .description,
.slider-hero .list .item:nth-child(1) .content .button {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}

@keyframes showContent {
    to { transform: translateY(0px); filter: blur(0px); opacity: 1; }
}

/* Retraso en cascada para la tarjeta activa */
.slider-hero .list .item:nth-child(1) .content .title { animation-delay: 0.4s !important; }
.slider-hero .list .item:nth-child(1) .content .description { animation-delay: 0.6s !important; }
.slider-hero .list .item:nth-child(1) .content .button { animation-delay: 0.8s !important; }


/* ==========================================================================
   11. MINIATURAS Y BOTONES (THUMBNAILS & ARROWS)
   ========================================================================== */
.slider-hero .thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.slider-hero .thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}

.slider-hero .thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255,255,255,0.2);
}

.nextPrevArrows {
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nextPrevArrows button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 20px;
    transition: .5s;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.nextPrevArrows button:hover {
    background-color: #00e5ff;
    color: #000;
    border-color: #00e5ff;
}

/* ==========================================================================
   12. ANIMACIONES AL HACER CLIC EN LOS BOTONES
   ========================================================================== */

/* --- BOTÓN NEXT --- */
.slider-hero.next .list .item:nth-child(1) img {
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage 0.5s linear 1 forwards;
}

@keyframes showImage {
    100% { bottom: 0; left: 0; width: 100%; height: 100%; border-radius: 0; }
}

.slider-hero.next .thumbnail .item:nth-last-child(1) {
    overflow: hidden;
    animation: showThumbnail 0.5s linear 1 forwards;
}

@keyframes showThumbnail {
    0% { width: 0; opacity: 0; }
}

.slider-hero.next .thumbnail {
    animation: effectNext 0.5s linear 1 forwards;
}

@keyframes effectNext {
    0% { transform: translateX(150px); }
}

/* --- BOTÓN PREV --- */
.slider-hero.prev .list .item:nth-child(1) { z-index: 1; }
.slider-hero.prev .list .item:nth-child(2) { z-index: 2; }

.slider-hero.prev .list .item:nth-child(2) img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    animation: outFrame 0.5s linear 1 forwards;
}

@keyframes outFrame {
    100% { width: 150px; height: 220px; bottom: 50px; left: 50%; border-radius: 20px; }
}

.slider-hero.prev .thumbnail .item:nth-child(1) {
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail 0.5s linear 1 forwards;
}

/* El texto desaparece fluido a la vez que la foto */
.slider-hero.prev .list .item:nth-child(2) .content .title,
.slider-hero.prev .list .item:nth-child(2) .content .description,
.slider-hero.prev .list .item:nth-child(2) .content .button {
    animation: contentOut 0.5s linear 1 forwards;
}

@keyframes contentOut {
    0% { transform: translateY(0px); filter: blur(0px); opacity: 1; }
    100% { transform: translateY(-150px); filter: blur(20px); opacity: 0; }
}

/* Bloquea clicks muy rápidos */
.slider-hero.next .nextPrevArrows button,
.slider-hero.prev .nextPrevArrows button {
    pointer-events: none;
}

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */

/* --- TABLETS Y PANTALLAS MEDIANAS (Menos de 1200px) --- */
@media (max-width: 1200px) {
    .tabs_container {
        padding: 0 20px !important;
    }
    .tabs_right {
        margin: 0 !important; 
        width: 100% !important; 
        min-height: 250px !important;  
        border-radius: 20px !important;
        display: block !important;
    }
    .tabs_right img{
        object-fit: contain !important;
        width: 100% !important;
    }
    .Software-section-content {
        grid-template-columns: 1fr 1fr !important; /* Quitamos la 3ra columna de la imagen app */
    }
    .img-app {
        display: none; /* Escondemos la imagen flotante que estorba en tablets */
    }
    .tabs_component { 
        display: flex !important; 
        flex-direction: column-reverse !important; 
        gap: 20px !important;
    }
    
    /* El texto ocupa el 100% y se centra */
    .tabs_left { 
        width: 100% !important;
        min-width: 100% !important;
        height: 300px !important;
        position: relative;
        display: flex !important;
        flex-direction: column !important;
    }
    .button-wrapper{
        position: absolute;
        bottom: 10%;
        margin: 10px 0 !important;
    }
    
    /* Magia para recortar el texto y que no ocupe 10 kilómetros de scroll */
    .tabs_let-content p:nth-of-type(2){
        display: none !important; /* Escondemos el 2º párrafo */
    }
    .tabs_let-content p {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important; /* Máximo 3 líneas */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important; /* Pone "..." al final */
    }

    .servicios-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 30px !important;
    }

    .servicio-item {
        /* Intentamos mantener 3 columnas si hay espacio */
        flex: 0 1 calc(33% - 20px) !important;
        min-width: 180px !important;
    }
    
    .slider-hero .list .item .content {
        padding-right: 0 !important;
        width: 90% !important;
        text-align: center;
    }
    .slider-hero .list .item .button {
        justify-content: center;
    }
    
    /* Centramos flechas y miniaturas */
    .nextPrevArrows {
        right: 50%;
        transform: translateX(50%);
        top: 70%;
    }
    .slider-hero .thumbnail {
        position: absolute;
        right: 10%;
        bottom: 10%;
    }

}

/* --- TABLETS PEQUEÑAS (Menos de 992px) --- */
@media (max-width: 992px) {
    .carrusel-inicio {
        min-height: 576px; 
    }

    .tabs_component { 
        display: flex !important; 
        flex-direction: column-reverse !important; 
        gap: 20px !important;
    }

    .tabs_right {
        margin: 0 !important; 
        width: 100% !important; 
        min-height: 170px !important;  
        border-radius: 20px !important;
        display: block !important;
    }
    .tabs_right img{
        object-fit: contain !important;
        width: 100% !important;
    }
    
    /* El texto ocupa el 100% y se centra */
    .tabs_left { 
        width: 100% !important;
        min-width: 100% !important;
        height: 300px !important;
        position: relative;
        display: flex !important;
        flex-direction: column !important;
    }
    .button-wrapper{
        position: absolute;
        bottom: 10%;
        margin: 10px 0 !important;
    }
    
    /* Magia para recortar el texto y que no ocupe 10 kilómetros de scroll */
    .tabs_let-content p:nth-of-type(2){
        display: none !important; /* Escondemos el 2º párrafo */
    }
    .tabs_let-content p {   
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important; /* Máximo 3 líneas */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important; /* Pone "..." al final */
    }
    /* Ajuste de Secciones Glassmorphism */
    div.eventosDeportivos.glassMorph, 
    div.Software-section.glassMorph, 
    div.servicios-section.glassMorph, 
    div.video-instalaciones-section.glassMorph {
        padding: 60px 20px !important;
    }
    .tabs_texts-container {
        min-height: 300px !important;
    }
    /* Sección Nueva Gama */
    .showcase-pantalla {
        width: 80% !important;
    }
    .info-panel {
        padding: 30px !important;
    }
    .thumbnail .item{
        width: 100px !important;
        height: 160px !important;
    }

    .seccionServicios {
        /* Ajuste de altura para que el contenido no se corte */
        height: auto !important; 
        padding-bottom: 60px !important; 
        display: block !important;
    }

    /* Disposición 2-1: Dos arriba y uno centrado abajo */
    .servicios-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important;
    }

    .servicio-item {
        flex: 0 1 calc(45% - 10px) !important; /* Dos columnas */
    }

    /* El tercer item (o impares) ocupa el centro abajo */
    .servicio-item:last-child {
        flex: 0 1 100% !important;
        margin-top: 10px;
    }

    /* FUERZA VISIBILIDAD DEL ENLACE DE CONTACTO */
    .servicios-footer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: center !important;
        margin-top: 40px !important;
        padding-bottom: 20px !important;
        width: 100% !important;
    }

    .enlace-flecha {
        display: inline-flex !important;
        font-size: 0.9rem !important;
        color: #ffffff !important;
        text-decoration: none !important;
        z-index: 100 !important;
        position: relative !important;
    }

    .nextPrevArrows {
        top: 70%;
        left: 20%;
        width: auto;
    }
    .boton-global-hero {
        top: 45%; /* En móvil el texto está más arriba, así que subimos el botón */
        width: 90% !important; /* Igual que tu contenedor de texto en móvil */
        justify-content: center; /* ¡Centramos el botón! */
    }
    @keyframes outFrame {
        from { width: 100%; height: 100%; bottom: 0; left: 0; border-radius: 0; }
        to { width: 90px; height: 130px; bottom: 20px; left: 50%; border-radius: 20px; }
    }

    .slider-hero.next .list .item:nth-child(1) img {
        width: 90px;
        height: 130px;
        bottom: 20px;
        border-radius: 20px;
    }
}

/* --- MÓVILES (Menos de 768px) --- */
@media (max-width: 768px) {
    .carrusel-inicio {
        height: auto;
        min-height: 200px;
    }
    
    .tabs_container {
        padding: 0 20px !important;
    }
    .tabs_right {
        margin: 0 !important; 
        width: 100% !important; 
        min-height: 170px !important;  
        border-radius: 20px !important;
        display: block !important;
    }
    .tabs_right img{
        object-fit: contain !important;
        width: 100% !important;
    }
    .Software-section-content {
        grid-template-columns: 1fr!important; /* Quitamos la 3ra columna de la imagen app */
    }
    .img-app {
        display: none; /* Escondemos la imagen flotante que estorba en tablets */
    }
    .tabs_component { 
        display: flex !important; 
        flex-direction: column-reverse !important; 
        gap: 20px !important;
    }
    
    /* El texto ocupa el 100% y se centra */
    .tabs_left { 
        width: 100% !important;
        min-width: 100% !important;
        height: 300px !important;
        position: relative;
        display: flex !important;
        flex-direction: column !important;
    }
    .button-wrapper{
        position: absolute;
        bottom: 10%;
        margin: 10px 0 !important;
    }
    
    /* Magia para recortar el texto y que no ocupe 10 kilómetros de scroll */
    .tabs_let-content p:nth-of-type(2){
        display: none !important; /* Escondemos el 2º párrafo */
    }
    .tabs_let-content p {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important; /* Máximo 3 líneas */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important; /* Pone "..." al final */
    }
    /* Tipografías */
    .showcase-title {
        font-size: 3rem !important;
    }
    .servicios-encabezado h2 {
        font-size: 1.8rem !important;
    }
    .titulosGradiente {
        font-size: 1.5rem !important;
    }

    /* Software Section - Todo a 1 columna */
    .Software-section-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .cards {
        grid-template-columns: 1fr!important; /* Iconos de 2 en 2 */
    }

    /* Carrusel de Instalaciones */
    #carouselExampleIndicators .carousel-item {
        height: 300px !important; /* Altura más bajita para móvil */
    }

    /* Servicios */
    .seccionServicios {
        background: linear-gradient(180deg, #415b66 0%, #d7feff 10%, #526d6e 90%, #000000 100%);
    }
    
    .servicios-grid {
        gap: 20px !important;
    }
    .servicio-item {
        width: 140px !important;
    }
    .servicio-media {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Logos infinitos */
    .grupo {
        gap: 2em;
    }
    .itemslider .card {
        width: 100px;
    }

    .thumbnail .item{
        width: 100px !important;
        height: 160px !important;
    }
    
    /* Nuestras Instalaciones */

    /* ESTILO DEL BOTÓN GLOBAL (El azul corporativo bonito) */
    button.btn-azul {
        border: none !important;
        background-color: #0c6ceb !important; 
        color: white !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: bold !important;
        cursor: pointer !important;
        letter-spacing: 2px !important;
        padding: 12px 25px !important;
        border-radius: 8px !important;
        transition: all 0.4s ease !important;
        display: inline-block !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
        z-index: 100; /* Para asegurarnos de que quede por encima de las fotos del slider */
        position: relative;
    }

    button.btn-azul:hover {
        background-color: #ffffff !important;
        color: #000000 !important;
        letter-spacing: 3px !important;
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4) !important;
    }

    .slider-hero {
        height: 100svh !important; /* Mejor que 100vh para navegadores móviles */
    }

    .titulo-global-hero {
        top: 100px !important; /* Dejamos aire para que no se pise con el header */
        position: relative;
    }
    
    .slider-hero .list .item .content {
        top: 22%; /* Subimos un poco el texto */
    }

    .slider-hero .list .item .title {
        font-size: 2.8em !important; /* Reducimos el título gigante */
        margin-bottom: 10px;
    }

    .slider-hero .list .item .description {
        font-size: 15px !important;
    }

    /* Reposicionamos las flechas justo debajo del texto */
    .nextPrevArrows {
        top: 80%;
        left: 5%;
        width: auto;
        gap: 30px;
    }

    /* Hacemos las miniaturas más pequeñas y permitimos scroll si hay muchas */
    .slider-hero .thumbnail {
        bottom: 20px;
        right: 3% ;
        gap: 10px;
        width: 95%;
        overflow-x: auto; /* Permite deslizar las miniaturas con el dedo */
        justify-content: flex-start;
        padding-bottom: 10px;
    }

    /* Ocultamos la barra de scroll visual para que quede limpio */
    .slider-hero .thumbnail::-webkit-scrollbar {
        display: none;
    }

    .slider-hero .thumbnail .item {
        width: 90px !important;
        height: 130px !important;
        flex-shrink: 0; /* Evita que las miniaturas se aplasten */
    }

    /* 🔥 REESCRITURA DE ANIMACIONES PARA MÓVIL (VITAL) 🔥 */
    /* Sin esto, al darle a "Siguiente", la imagen se hace gigante (150x220px) en la transición */
    .slider-hero.next .list .item:nth-child(1) img {
        width: 90px;
        height: 130px;
        bottom: 20px ;
    }

    @keyframes outFrame {
        to { width: 90px; height: 130px; bottom: 20px; left: 50%; border-radius: 20px; }
    }

}

@media (max-width: 600px) {
  .carrusel-inicio {
    min-height: 300px;
  }
  .section_tabs {
    min-height: 600px;
  }
    .slider-hero.next .list .item:nth-child(1) img {
        width: 90px;
        height: 130px;
        bottom: 20px;
        border-radius: 20px;
    }
}

/* --- MÓVILES MUY PEQUEÑOS (Menos de 480px) --- */
@media (max-width: 480px) {
    .tabs_container {
        padding: 0 20px !important;
    }
    .tabs_right {
        margin: 0 !important; 
        width: 100% !important; 
        min-height: 170px !important;  
        border-radius: 20px !important;
        display: block !important;
    }
    .tabs_right img{
        object-fit: contain !important;
        width: 100% !important;
    }
    .Software-section-content {
        grid-template-columns: 1fr 1fr !important; /* Quitamos la 3ra columna de la imagen app */
    }
    .img-app {
        display: none; /* Escondemos la imagen flotante que estorba en tablets */
    }
    .tabs_component { 
        display: flex !important; 
        flex-direction: column-reverse !important; 
        gap: 20px !important;
    }
    
    /* El texto ocupa el 100% y se centra */
    .tabs_left { 
        width: 100% !important;
        min-width: 100% !important;
        height: 300px !important;
        position: relative;
        display: flex !important;
        flex-direction: column !important;
    }
    .button-wrapper{
        position: absolute;
        bottom: 10%;
        margin: 10px 0 !important;
    }
    
    /* Magia para recortar el texto y que no ocupe 10 kilómetros de scroll */
    .tabs_let-content p:nth-of-type(2){
        display: none !important; /* Escondemos el 2º párrafo */
    }
    .tabs_let-content p {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important; /* Máximo 3 líneas */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important; /* Pone "..." al final */
    }

    /* Software Section - Todo a 1 columna */
    .Software-section-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .cards {
        grid-template-columns: 1fr 1fr !important; /* Iconos de 2 en 2 */
    }

    /* Carrusel de Instalaciones */
    #carouselExampleIndicators .carousel-item {
        height: 300px !important; /* Altura más bajita para móvil */
    }
    /* Servicios */
    .servicio-item {
        flex: 0 1 100% !important; /* 1 columna solo si es estrictamente necesario */
        max-width: 250px;
    }

    .servicios-encabezado h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }

    .servicios-footer {
        margin-top: 30px !important;
    }
    
    /* Logos infinitos */
    .grupo {
        gap: 2em;
    }
    .itemslider .card {
        width: 100px;
    }

    .cards {
        grid-template-columns: 1fr !important;
    }
    .showcase-pantalla {
        width: 100% !important;
    }
    .tabs_texts-container {
        min-height: 400px !important;
    }
    .enlace-flecha {
        font-size: 0.75rem !important;
        letter-spacing: 1px !important;
    }
    .btn-primary {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
    .thumbnail .item{
        width: 100px !important;
        height: 160px !important;
    }

    /* Nuestras Instalaciones */
    .slider-hero .list .item .title {
        font-size: 2.2em !important;
    }
    
    .slider-hero .thumbnail .item {
        width: 75px !important;
        height: 110px !important;
    }

    .nextPrevArrows {
        position: absolute;
        top: 70%;
        left: 2%;
        height: 200px;
        width: 200px;
    }
    /* Ajuste de inicio de animación NEXT para Móviles Pequeños */
    .slider-hero.next .list .item:nth-child(1) img {
        width: 75px;
        height: 110px;
        bottom: 20px;
        border-radius: 20px;
    }

    /* LA ANIMACIÓN COMPLETA CON SU INICIO Y FIN */
    @keyframes outFrame {
        0% { width: 100%; height: 100%; bottom: 0; left: 0; border-radius: 0; }
        100% { width: 75px; height: 110px; bottom: 20px; left: 50%; border-radius: 20px; }
    }
}

/* ==========================================================================
   14. OPTIMIZACIÓN
   ========================================================================== */

/* Evita que las secciones de abajo consuman recursos al entrar */
.nueva-gama, 
.eventosDeportivosSeccion, 
.seccionSoftware, 
.seccionServicios, 
.nuestras-instalaciones {
    content-visibility: auto;
    contain-intrinsic-size: 1000px; /* Altura estimada para que el scroll no salte */
}

/* Asegura que la sección de tabs sea tratada como prioritaria */
.section_tabs {
    content-visibility: visible;
    contain: layout style;
}
