*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
font-family:'Inter',sans-serif;
background:#f5f7fa;
color:#1e293b;
}

/* NAVBAR */

.navbar{
    position:fixed;
    top:0;
    left:0;

    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:15px 5%;

    background:#fff;

    box-shadow:0 2px 15px rgba(0,0,0,.08);

    z-index:9999;
}

.logo{
display:flex;
align-items:center;
gap:10px;
font-weight:700;
font-size:24px;
}

.menu{
display:flex;
list-style:none;
gap:25px;
}

.menu a{
text-decoration:none;
color:#334155;
font-weight:600;
}

.menu a:hover{
color:#0078D4;
}

.btn-nav{
background:#0078D4;
color:white;
padding:6px 12px;
border-radius:8px;
text-decoration:none;
}

.menu-toggle{
display:none;
cursor:pointer;
font-size:30px;
border:none;
background:none;
}

/* HERO */

.hero{
    position:relative;
    min-height:100vh;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;

    overflow:hidden;

    background:
        linear-gradient(
            rgba(0,0,0,.60),
            rgba(0,0,0,.60)
        ),
        url('assets/images/hero-background.webp');

    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
}

.hero video{
position:absolute;
width:100%;
height:100%;
object-fit:cover;
}

.overlay{
position:absolute;
width:100%;
height:100%;
background:rgba(0,0,0,.2);
}

.hero-content{
    position:relative;
    z-index:2;
    text-align:center;
    color:white;
    width:100%;
    max-width:1200px;

    padding:20px;
}

.hero-content h1{
    font-size:clamp(2.5rem,5vw,5rem);
    line-height:1.1;
    margin-bottom:20px;
}

.hero-content p{
    font-size:clamp(1rem,1.8vw,1.4rem);
    max-width:800px;
    margin:0 auto 30px;
}

.hero h1{
font-size:4rem;
margin:20px 0;
}

.hero p{
font-size:1.2rem;
margin-bottom:30px;
}

.badge{
display:inline-block;
padding:10px 20px;
background:rgba(255,255,255,.15);
border-radius:30px;
}

.hero-buttons a{
padding:15px 25px;
border-radius:8px;
text-decoration:none;
margin:10px;
display:inline-block;
}

.btn-primary{
background:white;
color:#0078D4;
}

.btn-secondary{
border:2px solid white;
color:white;
}



/* ==========================
   TESTIMONIOS SLIDER
========================== */

.testimonials{
    padding:100px 0;
    overflow:hidden;
    background:#f8fafc;
}

.testimonial-slider{
    position:relative;
    overflow:hidden;
    width:100%;
}

.testimonial-track{

    display:flex;

    gap:30px;

    width:max-content;

    animation:testimonials-scroll 40s linear infinite;

}

.testimonial-card{

    width:380px;

    min-height:240px;

    background:#ffffff;

    padding:30px;

    border-radius:20px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.08);

    flex-shrink:0;

}

.testimonial-card p{

    font-style:italic;

    margin-bottom:20px;

    line-height:1.7;

}

.testimonial-card h4{

    color:#0078D4;

    margin-bottom:5px;

}

.testimonial-card span{

    color:#64748b;

    font-size:14px;

}

@keyframes testimonials-scroll{

    0%{
        transform:translateX(0);
    }

    100%{
        transform:translateX(-50%);
    }

}

/* Pausar al pasar el mouse */

.testimonial-track:hover{
    animation-play-state:paused;
}

/* Movil */

@media(max-width:768px){

    .testimonial-card{

        width:300px;

        min-height:auto;

    }

}


/* STATS */

.stats{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
padding:80px 8%;
}

.stat{
background:white;
border-radius:15px;
padding:30px;
text-align:center;
box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.stat h2{
font-size:3rem;
color:#0078D4;
}

    /* ===================================
    CLIENTES
    ================================== */

.clients {
    padding: 60px 0;
    text-align: center;
    background: white;
    overflow: hidden;
}

.client-slider {
    overflow: hidden;
    position: relative;
    margin-top: 30px;
    width: 100%;
}

/* Agregamos degradados sutiles a los lados para un acabado profesional */
.client-slider::before,
.client-slider::after {
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 100px;
    z-index: 2;
    pointer-events: none; /* Permite hacer clic a través del degradado */
}
.client-slider::before { left: 0; top: 0; }
.client-slider::after { right: 0; top: 0; transform: rotate(180deg); }



/* slide */

.slide-track {
    display: flex;
    /* CORRECCIÓN: 200px por 12 elementos totales (6 originales + 6 duplicados) */
    width: calc(200px * 12); 
    animation: scroll 25s linear infinite;
}

/* Pausar la animación cuando el usuario pasa el mouse (Mejora la experiencia) */
.slide-track:hover {
    animation-play-state: paused;
}

.slide {
    width: 200px;
    padding: 20px 30px; /* Ajuste sutil de padding para pantallas compactas */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Asegura que las imágenes de tus clientes no se deformen y sean responsivas */
.slide img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%); /* Efecto elegante: logos en gris */
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Al pasar el mouse, el logo de la empresa toma su color original */
.slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ANIMACIÓN CORREGIDA */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* CORRECCIÓN: Se debe desplazar la mitad exacta del ancho total (6 * 200px = 1200px) 
           para que el bucle sea perfectamente infinito y fluido sin saltos */
        transform: translateX(-1200px); 
    }
}


/* ==========================================================================
   MÓVIL / RESPONSIVE (Pantallas menores a 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .clients {
        padding: 40px 0; /* Reducimos espacio vertical en móviles */
    }
    
    /* Hacemos los logos un poco más pequeños en celular para que quepan mejor */
    .slide {
        width: 150px; 
        padding: 15px 20px;
    }
    
    .slide-track {
        /* Re-calculamos la pista para el nuevo tamaño de móvil (150px * 12) */
        width: calc(150px * 12); 
        animation: scroll-mobile 18s linear infinite; /* Un poco más rápido por ser menor distancia */
    }
    
    @keyframes scroll-mobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(-900px); } /* Mitad exacta en móvil (6 * 150px) */
    }
}


/* SECTIONS */

.feature-section,
.services{
padding:100px 8%;
}

.section-title,
.feature-section h2{
text-align:center;
margin-bottom:50px;
font-size:2rem;
}

.services-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

.card{
background:white;
padding:35px;
border-radius:18px;
text-align:center;
box-shadow:0 5px 20px rgba(0,0,0,.08);
transition:.3s;
}

.card:hover{
transform:translateY(-8px);
}

.dark{
background:#0f172a;
color:white;
}

.dark .card{
background:#1e293b;
color:white;
}

/* ==========================
   ENLACE DE TARJETA DE SERVICIO
========================== */

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%; /* Asegura que el enlace ocupe todo el alto disponible en el Grid */
}

.service-card-link .card {
    background: #ffffff; /* Asegura fondo blanco para que luzca la sombra */
    border-radius: 15px; /* Bordes redondeados corporativos */
    padding: 25px;       /* Espaciado interno para el contenido */
    height: 100%;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Alinea el contenido y empuja el 'Ver más' al fondo */
    justify-content: space-between;
}

/* Efecto interactivo al pasar el cursor sobre la tarjeta */
.service-card-link:hover .card {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 120, 212, 0.15); /* Sombra con acento azul Azure/SIACTI */
}

/* Pseudoelemento para el botón 'Ver más' */
.service-card-link .card::after {
    content: "Ver más →";
    display: block;
    margin-top: 15px;
    color: #0078D4; /* Azul Microsoft/Azure */
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    transition: transform 0.3s ease; /* Permite animar la flecha */
}

/* Detalle premium: La flecha se mueve ligeramente a la derecha en el hover */
.service-card-link:hover .card::after {
    transform: translateX(5px);
}




/* CONTACT */

.contact{
padding:100px 8%;
background:#0078D4;
}

.contact-box{
background:white;
max-width:700px;
margin:auto;
padding:50px;
border-radius:20px;
}

.contact-box h2{
margin-bottom:30px;
text-align:center;
}

form{
display:flex;
flex-direction:column;
gap:15px;
}

input,
textarea{
padding:15px;
font-size:16px;
border:1px solid #ccc;
border-radius:10px;
}

button{
padding:15px;
border:none;
background:#0078D4;
color:white;
border-radius:10px;
cursor:pointer;
}

/* FOOTER */

footer{
background:#0f172a;
color:white;
padding:40px;
text-align:center;
}

/* WHATSAPP */

.whatsapp{
position:fixed;
bottom:25px;
left:25px;
width:60px;
height:60px;
display:flex;
justify-content:center;
align-items:center;
border-radius:50%;
font-size:28px;
background:#25D366;
text-decoration:none;
color:white;
box-shadow:0 8px 20px rgba(0,0,0,.3);
}

/* MOBILE */

@media(max-width:768px){

.hero h1{
font-size:2.5rem;
}

.menu{
display:none;
position:absolute;
top:70px;
left:0;
width:100%;
background:white;
flex-direction:column;
padding:20px;
}

.menu.active{
display:flex;
}

.menu-toggle{
display:block;
}

.btn-nav{
display:none;
}

}

/* ===========================
   PAGINA NOSOTROS el bueno
=========================== */

.page-hero{
    position:relative;
    height:65vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
    linear-gradient(
        rgba(0,0,0,.65),
        rgba(0,0,0,.65)
    ),
    url('assets/images/about-banner.webp');

    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
}

.about-card{
    max-width:1000px;
    margin:auto;
    line-height:1.8;
}

.about-card p{
    margin-bottom:20px;
}

.page-hero .hero-content{
    max-width:900px;
    padding:20px;
    position:relative;
    z-index:2;
    color:#fff;
}

.page-hero h1{
    font-size:4rem;
    color:#fff;
    margin:20px 0;
}

.page-hero p{
    color:#fff;
    font-size:1.2rem;
}

.page-hero .badge{
    display:inline-block;
    padding:10px 20px;
    border-radius:30px;
    background:rgba(255,255,255,.15);
    color:#fff;
}

@media(max-width:768px){

    .page-hero{
        height:55vh;
        padding:20px;
    }

    .page-hero h1{
        font-size:2.5rem;
    }

    .about-card{
        padding:25px;
    }

}


/* ==========================
   EQUIPO DE TRABAJO
========================== */

.team-section {
    padding: 100px 8%;
    background: #f8fafc;
}

.team-grid {
    display: grid;
    /* Mantiene las 3 columnas perfectas en escritorio y se acomoda solo en móvil */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    transition: transform .3s ease, box-shadow .3s ease; /* Transición más suave */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra la imagen y el texto horizontalmente */
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 120, 212, 0.15); /* Sombra con acento azul Azure al pasar el cursor */
}

.team-card img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    margin-top: 20px;
    /* Soluciona fallos visuales en navegadores basados en Safari que a veces ignoran el overflow:hidden */
}

.team-content {
    padding: 25px;
}

.team-content h3 {
    color: #0f172a;
    font-size: 1.3rem; /* Tamaño de fuente estandarizado */
    margin-bottom: 8px;
    font-family: 'Segoe UI', sans-serif;
}

.team-position {
    display: block;
    color: #0078D4; /* Azul corporativo Azure/SIACTI */
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-family: 'Segoe UI', sans-serif;
}

.team-content p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==========================================================================
   RESPONSIVE / DISPOSITIVOS MÓVILES
   ========================================================================== */
@media (max-width: 768px) {
    .team-section {
        padding: 60px 5%; /* Reducimos el espaciado lateral para aprovechar más pantalla en móvil */
    }
    
    .team-card img {
        height: 84px; /* Reducción de la imagen para que no tome tanto espacio vertical */
    }
}

/* Optimización extra para celulares muy pequeños (ancho menor a 360px) */
@media (max-width: 360px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Evita que la tarjeta se desborde */
    }
    
    .team-content {
        padding: 15px; /* Más espacio para el texto */
    }
}


/* ==========================
   PAGINA SERVICIOS
========================== */

.services-hero{
    position:relative;
    height:65vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
    linear-gradient(
        rgba(0,0,0,.65),
        rgba(0,0,0,.65)
    ),
        
        url('assets/images/services-banner.webp');
        
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    );
}

.services-hero .hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
    color:white;
}

.services-hero h1{
    font-size:4rem;
    margin:20px 0;
    color:#ffffff;
}

.services-hero p{
    color:white;
    font-size:1.2rem;
}

.services-hero .badge{
    background:rgba(255,255,255,.15);
    color:white;
}

@media(max-width:768px){

    .services-hero{
        height:55vh;
        padding:20px;
    }

    .services-hero h1{
        font-size:2.5rem;
    }

}


/* ==========================
   MENU RESPONSIVE
========================== */

/* El botón inicia oculto en pantallas grandes */
.menu-toggle {
    display: none;
    background: #007bff; /* Tu color azul */
    border: none;        /* Corregido: "border:noe" */
    font-size: 32px;
    color: #ffffff;      /* Corregido código hexadecimal de color inválido */
    cursor: pointer;
    padding: 10px;       /* Añadido para que el botón azul respire */
    border-radius: 8px;  /* Añadido para mejor estética */
}

@media screen and (max-width: 768px) {

    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;  /* Corregido: "display:bock" */
    }

    .btn-nav {
        display: none;   /* Corregido: "isplay:none" */
    }

    .menu {
        display: none;
        width: 100%;
        margin-top: 15px;
        flex-direction: column;
        gap: 0;
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Corregido: "rgba" */
        overflow: hidden;
    }

    /* Muestra el menú cuando tiene la clase .active */
    .menu.active {
        display: flex;
    }

    .menu li {
        list-style: none;
    }

    .menu a {
        display: block;   /* Corregido: faltaba punto y coma */
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        color: #333;      /* Añadido color de texto visible sobre fondo blanco */
        text-decoration: none; /* Quita el subrayado de los enlaces */
    }

    /* Quita el borde inferior al último elemento para no romper las esquinas redondeadas */
    .menu li:last-child a {
        border-bottom: none;
    }

    .menu a:hover {
        background: #f5f7fa;
    }
}


/* =========================
    MENU MOBILE
==========================  */

/* ==========================
   DROPDOWN SERVICIOS
========================== */

.dropdown{
    position:relative;
}

.dropdown-menu{

    display:none;

    position:absolute;

    top:100%;
    left:0;

    min-width:250px;

    background:#ffffff;

    list-style:none;

    border-radius:12px;

    overflow:hidden;

    box-shadow:
        0 10px 25px rgba(0,0,0,.15);

    z-index:9999;
}

.dropdown-menu li{
    width:100%;
}

.dropdown-menu a{

    display:block;

    padding:12px 18px;

    color:#1e293b;

    text-decoration:none;

    background:#fff;

    transition:.3s;
}

.dropdown-menu a:hover{

    background:#f1f5f9;

    color:#0078D4;
}

.dropdown:hover .dropdown-menu{
    display:block;
}



/* ==========================
   HERO RESPONSIVE
========================== */

@media screen and (max-width:768px){

    .services-hero h1{
        font-size:2.5rem;
        line-height:1.2;
    }

    .services-hero p{
        font-size:1rem;
        padding:0 20px;
    }

    .section-title h2{
        font-size:2rem;
    }

}

/* ==========================
   GRID RESPONSIVE
========================== */
.services-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}


/* ==========================
   FOOTER RESPONSIVE
========================== */


@media screen and (max-width:768px){

    footer{
        padding:40px 20px;
    }

    footer p{
        font-size:14px;
    }

}

/* ==========================
   FOOTER MAIL INFO@SIACTI.COM.MX
========================== */

.footer-link{
    color:#ffffff;
    text-decoration:none;
    transition:.3s;
}

.footer-link:hover{
    color:#25D366;
}

/* ==========================
   NOSOTROS
========================== */

.nosotros-hero{
    height:65vh;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
    linear-gradient(
        rgba(0,0,0,.65),
        rgba(0,0,0,.65)
    ),
    linear-gradient(
        135deg,
        #0078D4,
        #005A9E,
        #002050
    );
}

.nosotros-hero .hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
    color:white;
}

.nosotros-hero h1{
    font-size:4rem;
    margin:20px 0;
}

.nosotros-hero p{
    color:white;
    font-size:1.2rem;
}

.nosotros-hero .badge{
    background:rgba(255,255,255,.15);
    color:white;
}

@media(max-width:768px){

    .nosotros-hero{
        height:55vh;
        padding:20px;
    }

    .nosotros-hero h1{
        font-size:2.5rem;
    }

    .nosotros-hero p{
        font-size:1rem;
    }

}


/* ==========================
   ADMINISTRACION TI HERO
========================== */

.administracion-ti-hero {
    position: relative;
    height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px; /* Evita que el texto toque los bordes en pantallas medianas */
    background: 
        linear-gradient(
            rgba(15, 23, 42, 0.7), /* Cambiado a tono oscuro azulado (Slate) acorde a Azure/SIACTI */
            rgba(15, 23, 42, 0.7)
        ),
        url('assets/images/administracion-ti-banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.administracion-ti-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #ffffff;
    /* Optimiza la nitidez y el suavizado del texto sobre el fondo oscuro */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.administracion-ti-hero h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.administracion-ti-hero p {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem; /* Ajuste sutil para mejorar legibilidad */
    color: #f1f5f9; /* Blanco suave Slate */
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   RESPONSIVE / DISPOSITIVOS MÓVILES
   ========================================================================== */
@media (max-width: 768px) {
    .administracion-ti-hero {
        height: 55vh;
    }

    .administracion-ti-hero h1 {
        font-size: 2.5rem;
    }

    .administracion-ti-hero p {
        font-size: 1.1rem;
    }
}

/* Optimización extra para teléfonos con pantallas muy angostas (menores a 380px) */
@media (max-width: 380px) {
    .administracion-ti-hero h1 {
        font-size: 2.2rem; /* Protege el título contra desbordes laterales */
    }
}



/* ==========================
   MANTENIMIENTO
========================== */

.mantenimiento-hero{
    position:relative;
    height:65vh;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
        linear-gradient(
            rgba(0,0,0,.65),
            rgba(0,0,0,.65)
        ),
        url('assets/images/mantenimiento-banner.webp');

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.mantenimiento-hero .hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
    color:white;
    text-shadow:
        0 2px 10px rgba(0,0,0,.5);
}

.mantenimiento-hero h1{
    font-size:4rem;
    color:#ffffff;
    margin:20px 0;
}

.mantenimiento-hero p{
    color:white;
    font-size:1.2rem;
    text-shadow:
        0 1px 5px rgba(0,0,0,.5);
}

.mantenimiento-hero .badge{
    display:inline-block;
    padding:10px 20px;
    border-radius:30px;
    background:rgba(255,255,255,.15);
    color:white;
    backdrop-filter:blur(5px);
}

@media(max-width:768px){

    .mantenimiento-hero{
        height:55vh;
        padding:20px;
    }

    .mantenimiento-hero h1{
        font-size:2.5rem;
    }

    .mantenimiento-hero p{
        font-size:1rem;
    }

}


/* ==========================
   ENSAMBLADO HERO
========================== */

.ensamblado-hero {
    position: relative;
    height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px; /* Evita que el texto pegue en los bordes en pantallas medianas */
    background: 
        linear-gradient(
            rgba(15, 23, 42, 0.7), /* Cambiado a un tono oscuro azulado (Slate) acorde a Azure/SIACTI */
            rgba(15, 23, 42, 0.7)
        ),
        url('assets/images/ensamblado-banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ensamblado-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #ffffff;
    /* Mejora la nitidez y el renderizado del texto sobre el fondo oscuro */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ensamblado-hero h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.ensamblado-hero p {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: #f1f5f9; /* Blanco suave para el párrafo */
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   RESPONSIVE / DISPOSITIVOS MÓVILES
   ========================================================================== */
@media (max-width: 768px) {
    .ensamblado-hero {
        height: 55vh;
    }

    .ensamblado-hero h1 {
        font-size: 2.5rem;
    }
    
    .ensamblado-hero p {
        font-size: 1.1rem;
    }
}

/* Optimización para pantallas de celulares muy pequeños (menores a 380px) */
@media (max-width: 380px) {
    .ensamblado-hero h1 {
        font-size: 2rem; /* Evita que la palabra 'Actualización' rompa la pantalla */
    }
}


/* ==========================
   MICROSOFT 365
========================== */

.m365-hero{
    position:relative;
    height:65vh;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
    linear-gradient(
        rgba(0,0,0,.65),
        rgba(0,0,0,.65)
    ),
        url('assets/images/microsoft365-banner.webp');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    );
}

.m365-hero .hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
    color:white;
}

.m365-hero h1{
    font-size:4rem;
    margin:20px 0;
}

.m365-hero p{
    color:white;
    font-size:1.2rem;
}

.m365-hero .badge{
    background:rgba(255,255,255,.15);
    color:white;
}

@media(max-width:768px){

    .m365-hero{
        height:55vh;
        padding:20px;
    }

    .m365-hero h1{
        font-size:2.5rem;
    }

    .m365-hero p{
        font-size:1rem;
    }
}


/* ==========================
   BACKUP
========================== */

.backup-hero{
    position:relative;
    height:65vh;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
        linear-gradient(
            rgba(0,0,0,.65),
            rgba(0,0,0,.65)
        ),
        url('assets/images/backup-banner.webp');

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.backup-hero .hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
    color:white;
    text-shadow:
        0 2px 10px rgba(0,0,0,.5);
}

.backup-hero h1{
    font-size:4rem;
    color:#ffffff;
    margin:20px 0;
}

.backup-hero p{
    color:white;
    font-size:1.2rem;
    text-shadow:
        0 1px 5px rgba(0,0,0,.5);
}

.backup-hero .badge{
    display:inline-block;
    padding:10px 20px;
    border-radius:30px;
    background:rgba(255,255,255,.15);
    color:white;
    backdrop-filter:blur(5px);
}

@media(max-width:768px){

    .backup-hero{
        height:55vh;
        padding:20px;
    }

    .backup-hero h1{
        font-size:2.5rem;
    }

    .backup-hero p{
        font-size:1rem;
    }

}


/* ==========================
   AZURE-CLOUD
========================== */

.azure-hero{
    position:relative;
    height:65vh;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
    linear-gradient(
        rgba(0,0,0,.65),
        rgba(0,0,0,.65)
    ),
        url('assets/images/azure-banner.webp');

    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
}

.azure-hero .hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
    color:white;
    text-shadow:
        0 2px 10px rgba(0,0,0,.5);
}

.azure-hero h1{
    font-size:4rem;
    color:#ffffff;
    margin:20px 0;
}

.azure-hero p{
    color:white;
    font-size:1.2rem;
    text-shadow:
        0 1px 5px rgba(0,0,0,.5);
}

.azure-hero .badge{
    display:inline-block;
    padding:10px 20px;
    border-radius:30px;
    background:rgba(255,255,255,.15);
    color:white;
    backdrop-filter:blur(5px);
}

@media(max-width:768px){

    .azure-hero{
        height:55vh;
        padding:20px;
    }

    .azure-hero h1{
        font-size:2.5rem;
    }

    .azure-hero p{
        font-size:1rem;
    }

}



/* ==========================
   CIBERSEGURIDAD
========================== */

.cyber-hero{
    position:relative;
    height:65vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
    linear-gradient(
        rgba(0,0,0,.70),
        rgba(0,0,0,.70)
    ),
    url('assets/images/ciberseguridad-banner.webp');

    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
}

.cyber-hero .hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
    padding:20px;
    color:white;
}

.cyber-hero h1{
    font-size:4rem;
    margin:20px 0;
    color:white;
    text-shadow:
        0 2px 10px rgba(0,0,0,.6);
}

.cyber-hero p{
    color:white;
    font-size:1.2rem;
    text-shadow:
        0 1px 5px rgba(0,0,0,.6);
}

.cyber-hero .badge{
    display:inline-block;
    padding:10px 20px;
    border-radius:30px;
    background:rgba(255,255,255,.15);
    color:white;
    backdrop-filter:blur(5px);
}

/* EFECTO OPCIONAL */

.cyber-hero::before{
    content:"";

    position:absolute;
    inset:0;

    background:
        radial-gradient(
            circle at center,
            rgba(14,165,233,.10),
            transparent 70%
        );

    pointer-events:none;
}



@media(max-width:768px){

    .cyber-hero{
        height:55vh;
        padding:20px;
    }

    .cyber-hero h1{
        font-size:2.5rem;
    }

    .cyber-hero p{
        font-size:1rem;
    }
}


/* ==========================
   HELPDESK
========================== */

.helpdesk-hero{
    position:relative;
    height:65vh;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
    linear-gradient(
        rgba(0,0,0,.70),
        rgba(0,0,0,.70)
    ),
    url('assets/images/helpdesk-banner.webp');

    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;

}

.helpdesk-hero .hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
    color:white;
}

.helpdesk-hero h1{
    font-size:4rem;
    margin:20px 0;
    color:white;
    text-shadow:0 2px 10px rgba(0,0,0,.5);
}

.helpdesk-hero p{
    color:white;
    font-size:1.2rem;
    text-shadow:0 1px 5px rgba(0,0,0,.5);
}

.helpdesk-hero .badge{
    display:inline-block;
    padding:10px 20px;
    border-radius:30px;
    background:rgba(255,255,255,.15);
    color:white;
    backdrop-filter:blur(5px);
}

@media(max-width:768px){

    .helpdesk-hero{
        height:55vh;
        padding:20px;
    }

    .helpdesk-hero h1{
        font-size:2.5rem;
    }

    .helpdesk-hero p{
        font-size:1rem;
    }

}


/* ==========================
   CONTACTO
========================== */

.contacto-hero{
    height:65vh;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
    linear-gradient(
        rgba(0,0,0,.65),
        rgba(0,0,0,.65)
    ),
        url('assets/images/contacto-banner.webp');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.contacto-hero .hero-content{
    position:relative;
    z-index:2;
    color:white;
    max-width:900px;
}

.contacto-hero h1{
    font-size:4rem;
    margin:20px 0;
}

.contacto-hero p{
    font-size:1.2rem;
    color:white;
}

.map-card{
    overflow:hidden;
    padding:0;
}

.contact-box select{
    width:100%;
    padding:15px;
    border:1px solid #dbe2ea;
    border-radius:10px;
    font-size:16px;
    background:#fff;
}

@media(max-width:768px){

    .contacto-hero{
        height:55vh;
        padding:20px;
    }

    .contacto-hero h1{
        font-size:2.5rem;
    }

    .contacto-hero p{
        font-size:1rem;
    }

}


/* ==========================
   MENU HAMBURGUESA
========================== */

/.menu-toggle{
    display:none;
    background:none;
    border:none;
    font-size:32px;
    color:#0078D4;
    cursor:pointer;
}

@media screen and (max-width:768px){

    .navbar{
        padding:15px 20px;
        flex-wrap:wrap;
    }

    .menu-toggle{
        display:block;
    }

    .btn-nav{
        display:none;
    }

    .menu{
        display:none;
        width:100%;
        margin-top:15px;

        flex-direction:column;

        background:#fff;

        border-radius:12px;

        overflow:hidden;

        box-shadow:
            0 10px 25px rgba(0,0,0,.10);
    }

    .menu.active{
        display:flex;
    }

    .menu li{
        width:100%;
        list-style:none;
    }

    .menu a{
        display:block;
        padding:15px 20px;
        border-bottom:1px solid #eee;
    }

    .menu a:hover{
        background:#f5f7fa;
    }

} 

/* ==========================
   honeypot
========================== */

.honeypot{
    display:none;
}

/* ==========================
   honeypot formulario
========================== */



.honeypot{
    display:none;
}

.error{
    color:#dc2626;
    font-size:14px;
    margin-top:5px;
}

.success{
    color:#16a34a;
    font-size:14px;
    margin-top:5px;
}


/* ==========================
   TESTIMONIOS
========================== */

.testimonials,
.success-cases{
    padding:100px 8%;
    background:#f8fafc;
}

.testimonial-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
}

.testimonial-card{
    background:#ffffff;
    padding:30px;
    border-radius:18px;
    box-shadow:0 6px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.testimonial-card:hover{
    transform:translateY(-5px);
}

/* ==========================
   lista-beneficios
========================== */


.lista-beneficios{
    text-align:left;
    padding-left:20px;
    margin-top:15px;
}

.lista-beneficios li{
    margin-bottom:10px;
}


/* ==========================
   lista-beneficios, tarjeta centrada
========================== */

.lista-beneficios{
    text-align:left;
    list-style:none;
    padding-left:0;
}

.lista-beneficios li{
    display:block;
    text-align:left;
    margin-bottom:10px;
}


/* ==========================
   REDES SOCIALES
========================== */

.social-section {
    padding: 100px 8%;
    background: #f8fafc;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.social-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    /* CORRECCIÓN: display block/flex asegura que todo el recuadro sea clickeable sin saltos de cursor */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #1e293b;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.social-card:hover {
    transform: translateY(-8px);
    /* MEJORA: Añadimos una sombra más pronunciada al hacer hover */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.social-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 35px;
    color: white;
    transition: transform 0.3s ease;
}

/* Efecto interactivo: El ícono gira levemente o escala cuando el usuario pasa el mouse sobre la tarjeta */
.social-card:hover .social-icon {
    transform: scale(1.08);
}

.facebook .social-icon {
    background: #1877F2;
}

.twitter .social-icon {
    background: #000000;
}

.linkedin .social-icon {
    background: #0A66C2;
}

.social-card h3 {
    margin-bottom: 10px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.3rem;
}

.social-card p {
    color: #64748b;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE / DISPOSITIVOS MÓVILES
   ========================================================================== */
@media(max-width:768px) {
    .social-section {
        padding: 60px 5%; /* Ajuste uniforme con las secciones anteriores (Team/Clients) */
    }
    
    .social-card {
        padding: 25px; /* Reducimos el espacio interno en móviles para no alargar la pantalla */
    }
    
    .social-icon {
        width: 70px;  /* Íconos ligeramente más pequeños en pantallas compactas */
        height: 70px;
        font-size: 30px;
    }
}

/* Optimización para celulares muy pequeños */
@media (max-width: 360px) {
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}




/* ==========================
   HERRAMIENTA SOPORTE REMOTO
========================== */

.remote-tools {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.remote-btn {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    color: #1e293b;
    text-align: center;
    min-width: 240px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
    
    /* Asegura el correcto comportamiento de bloque para los elementos internos */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.remote-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 120, 212, 0.15); /* Sombra con acento azul Azure/SIACTI */
}

.remote-btn img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform .3s ease; /* Permite animar el logo por separado */
}

/* Efecto visual premium: El logo de Windows o Mac flota un poco al pasar el mouse por la tarjeta */
.remote-btn:hover img {
    transform: scale(1.05);
}

.remote-btn h3 {
    color: #0078D4; /* Azul corporativo unificado */
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE / DISPOSITIVOS MÓVILES
   ========================================================================== */
@media(max-width:768px) {
    .remote-tools {
        flex-direction: column;
        gap: 20px; /* Reducimos la separación vertical en móviles */
    }

    .remote-btn {
        width: 100%;
        max-width: 320px;
        min-width: unset; /* CORRECCIÓN: Rompe la rigidez en pantallas inferiores a 320px */
        padding: 20px;    /* Optimización del espacio interno en celulares */
    }
    
    .remote-btn img {
        width: 90px; /* Reducción de imagen sutil para pantallas compactas */
        height: 90px;
    }
}


/* ==========================
   PARTNERS
========================== */

.partners {
    padding: 80px 8%;
    background: #ffffff;
}

.partners-grid {
    display: grid;
    /* Mantiene una distribución inteligente de las marcas según la pantalla */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 40px;
}

/* CORRECCIÓN: Le aplicamos el diseño y el efecto de escala al contenedor del ítem */
.partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 160px; /* Ajuste sutil para darles un área uniforme de visualización */
    height: 80px;     /* Forzamos una altura de bloque simétrica para todas las marcas */
    transition: transform .3s ease;
}

.partner-item img {
    max-width: 140px;
    width: 100%;
    height: auto;
    max-height: 60px; /* Evita que logos verticales (como el de VMware o Veeam) se vean gigantes */
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .6; /* Reducido un poco del .8 original para mejorar el contraste elegante de fondo */
    transition: filter .3s ease, opacity .3s ease; /* Transiciones suaves de color */
}

/* MEJORA: Cuando el usuario pasa el mouse sobre el contenedor, la imagen toma vida */
.partner-item:hover {
    transform: scale(1.08); /* El escalado se le aplica al bloque completo para evitar saltos raros */
}

.partner-item:hover img {
    filter: grayscale(0%); /* Remueve la escala de grises de forma limpia */
    opacity: 1;
}



    /* ===================================
    PARTNERS SLIDER -- REVISAR CONSULTA SLIDE CLIENTES
    ================================== */

.partner-slider {
    overflow: hidden;
    position: relative;
    margin-top: 30px;
    width: 100%;
}

/* Agregamos degradados sutiles a los lados para un acabado profesional */
.partner-slider::before,
.partner-slider::after {
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 100px;
    z-index: 2;
    pointer-events: none; /* Permite hacer clic a través del degradado */
}
.partner-slider::before { left: 0; top: 0; }
.partner-slider::after { right: 0; top: 0; transform: rotate(180deg); }



/* ==========================================================================
   RESPONSIVE / DISPOSITIVOS MÓVILES
   ========================================================================== */
@media(max-width: 768px) {
    .partners {
        padding: 60px 5%; /* Mantiene la misma simetría de espaciado que las secciones previas */
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); /* Logos más compactos en celulares */
        gap: 20px;
    }
    
    .partner-item img {
        max-width: 110px; /* Reducción proporcional del logo para pantallas móviles */
    }
}



/* ==========================
   TARJETAS EXPANDIBLES
========================== */

.service-card {
    position: relative;
    box-sizing: border-box;
}

.btn-more {
    margin-top: 15px;
    background: #0078D4; /* Azul Azure/SIACTI */
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 120, 212, 0.15);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-more:hover {
    background: #005A9E; /* Azul oscuro Microsoft */
    box-shadow: 0 6px 15px rgba(0, 90, 158, 0.25);
}

.btn-more:active {
    transform: scale(0.98); /* Pequeño efecto de hundimiento al hacer clic */
}

.hidden-content {
    max-height: 0;
    overflow: hidden;
    /* MEJORA: Añadimos opacidad para que las letras aparezcan de forma fluida */
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease, margin-top 0.3s ease;
    text-align: left;
    margin-top: 0;
}

/* UNIFICACIÓN: Funciona tanto si usas la clase 'active' como la clase 'show' */
.hidden-content.active,
.hidden-content.show {
    max-height: 500px; /* Ajusta este valor si tu lista llega a ser extremadamente larga */
    opacity: 1;
    margin-top: 15px;
}

/* Estilos limpios para tu lista de beneficios */
.hidden-content ul {
    list-style: none; /* Quitamos los puntos nativos para que luzcan tus emojis ✅ */
    padding-left: 0;   /* Alineación limpia a la izquierda */
    margin: 0;
}

.hidden-content ul li {
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: #475569; /* Gris Slate elegante */
    line-height: 1.6;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px; /* Separación perfecta entre el emoji y tu texto */
}

/* ==========================
   SERVICIOS MICROSOFT 365
========================== */

.service-icon{

    width:70px;
    height:70px;

    margin:0 auto 20px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    font-size:32px;

    color:#fff;
}

/* Migración */

.migration-card .service-icon{
    background:#2563eb;
}

/* Administración */

.administration-card .service-icon{
    background:#7c3aed;
}

/* Seguridad */

.security-card .service-icon{
    background:#dc2626;
}

/* Soporte */

.support-card .service-icon{
    background:#059669;
}

/* REDES */

.networking-card .service-icon{
    background:#2563eb;
}

/* Soporte 365 */

.support365-card .service-icon{
    background:#059669;
}

.service-card h3{
    text-align:center;
    margin-bottom:12px;
}

.service-card p{
    text-align:center;
    min-height:80px;
}

.service-card .btn-more{
    width:100%;
    margin-top:15px;
}

.accordion-content{

    max-height:0;

    overflow:hidden;

    transition:max-height .4s ease;

    text-align:left;
}

.accordion-content.active{

    max-height:500px;

    margin-top:15px;
}

.accordion-content ul{
    padding-left:20px;
}

.accordion-content li{
    margin-bottom:10px;
}



/* ==========================
   MICROSOFT 365 ACORDEON
========================== */

.accordion-btn{

    margin-top:15px;

    background:#0078D4;

    color:#ffffff;

    border:none;

    padding:12px 18px;

    border-radius:10px;

    cursor:pointer;

    font-weight:600;

    transition:.3s;
}

.accordion-btn:hover{

    background:#005A9E;

}

.accordion-content{

    max-height:0;

    overflow:hidden;

    transition:max-height .4s ease;

    text-align:left;
}

.accordion-content.active{

    max-height:500px;

    margin-top:15px;
}

.accordion-content ul{

    padding-left:20px;
}

.accordion-content li{

    margin-bottom:10px;
}


/* ==========================
   ADMINISTRACION TI ICONOS
========================== */

.server-card .service-icon{
    background:#2563eb;
}

.network-card .service-icon{
    background:#0891b2;
}

.cloud-card .service-icon{
    background:#7c3aed;
}

.security-card .service-icon{
    background:#dc2626;
}

.monitoring-card .service-icon{
    background:#0f766e;
}

.backup-card .service-icon{
    background:#059669;
}

.service-icon{
    width:72px;
    height:72px;

    margin:0 auto 20px;

    display:flex;
    justify-content:center;
    align-items:center;

    border-radius:50%;

    color:#fff;

    font-size:34px;

    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.service-card h3{
    text-align:center;
    margin-bottom:12px;
}

.service-card p{
    text-align:center;
    min-height:75px;
}

.service-card .btn-more{
    width:100%;
}

/* ==========================
   VIDEOS CORPORATIVOS
========================== */

.videos-section{
    padding:100px 8%;
    background:#f8fafc;
}

.videos-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(450px,1fr));
    gap:40px;
    margin-top:40px;
}

.video-card{
    background:#ffffff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.video-card h3{
    padding:20px 20px 10px;
    color:#0078D4;
}

.video-card p{
    padding:0 20px 25px;
}

.video-container{
    position:relative;
    width:100%;
}

.video-container::before{
    content:"";
    display:block;
    padding-top:56.25%;
}

.video-container iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:none;
}

/* RESPONSIVE */

@media(max-width:768px){

    .videos-grid{
        grid-template-columns:1fr;
    }

}

/* ==========================
   FOOTER PROFESIONAL (SIACTI)
========================== */

.footer {
    background: #0f172a;
    color: #ffffff;
    margin-top: 0;
    font-family: 'Segoe UI', sans-serif;
}

.footer-container {
    max-width: 1600px; /* CORRECCIÓN: Tamaño estándar para evitar dispersión */
    margin: 0 auto;
    padding: 15px 8%; /* CORRECCIÓN: Ajuste de padding para un diseño más compacto */
    display: grid;
    /* Distribuye las 4 columnas de forma exacta en escritorio */
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: start; /* Asegura que todas las columnas inicien al mismo nivel arriba */
}

.footer-column {
    text-align: left; /* CORRECCIÓN: Fuerza la alineación natural a la izquierda */
}

.footer-column h3,
.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-column p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.footer-column ul {
    list-style: none;
    padding: 0; /* CORRECCIÓN: Elimina el espacio fantasma que desalineaba los enlaces */
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block; /* Mejora el área de clic */
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #60a5fa; /* Tono azul Azure interactivo */
}

/* Redes Sociales del Footer */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 0;
}

.footer-social a {
    width: 38px;  /* Sutilmente más compactos */
    height: 38px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    background: #0078D4;
    transform: translateY(-3px);
}

.footer-social a img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: block;
}

/* Barra de Créditos Inferior */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .06);
    text-align: center;
    padding: 25px 20px;
    background: #0b111e; /* Un tono ligeramente más oscuro para dar profundidad */
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
}

/* ==========================================================================
   MOVIL / RESPONSIVE (Pantallas menores a 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Una columna por fila en celulares */
        gap: 35px;
        padding: 40px 20px;
        text-align: center; /* Centrado estético exclusivo para móviles */
    }

    .footer-column {
        text-align: center; /* Centra los bloques de texto en pantallas móviles */
    }

    .footer-social {
        justify-content: center; /* Centra los círculos de redes en móviles */
    }
}



/* ==========================
   AVISO DE PRIVACIDAD (CORREGIDO)
========================== */
.privacidad-hero {
    height:65vh;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
    linear-gradient(
        rgba(0,0,0,.65),
        rgba(0,0,0,.65)
    ),
        url('assets/images/hero-background.webp');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

/* ==========================
   FAQ (CORREGIDO Y UNIFICADO)
========================== */
.faq-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    border: 1px solid #e2e8f0;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: #ffffff;
    color: #0f172a;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
    color: #0078D4;
}

/* Indicador dinámico + / - con CSS */
.faq-question::after {
    content: '+';
    font-size: 22px;
    color: #64748b;
    transition: transform 0.3s ease;
}

/* Oculta las respuestas por defecto encogiendo la altura */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Despliega la respuesta cuando el script le añade la clase .active */
.faq-answer.active {
    max-height: 250px; /* Altura suficiente para los párrafos de SIACTI */
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    margin: 0;
    color: #475569;
    line-height: 1.6;
}



/* ==========================
   POLIZAS
========================== */

.polizas-hero{

    position:relative;

    height:65vh;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;

    background:
        linear-gradient(
            rgba(0,0,0,.65),
            rgba(0,0,0,.65)
        ),
        url('assets/images/polizas-banner.webp');

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.polizas-hero .hero-content{

    position:relative;
    z-index:2;

    max-width:900px;

    color:#ffffff;
}

.polizas-hero h1{

    font-size:4rem;

    margin-bottom:20px;
}

.polizas-hero p{

    font-size:1.2rem;
}

@media(max-width:768px){

    .polizas-hero{
        height:55vh;
    }

    .polizas-hero h1{
        font-size:2.5rem;
    }

    .polizas-hero p{
        font-size:1rem;
    }

}

/* ==========================
   DISEÑO PREMIUM DE TARJETAS DE PÓLIZAS
========================== */

.polizas-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch; /* Hace que todas las tarjetas midan lo mismo de alto */
    max-width: 1100px;
    margin: 0 auto;
}

.poliza-card {
    position: relative;
    background: #ffffff !important; /* Fuerza fondo blanco sobre el fondo oscuro de la sección */
    color: #1e293b !important;    /* Texto oscuro y legible */
    padding: 35px 25px !important;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poliza-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.poliza-header .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.poliza-header h3 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 5px;
}

.poliza-header .subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Formateo de la lista de beneficios */
.poliza-card .lista-beneficios {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.poliza-card .lista-beneficios li {
    font-size: 15px;
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

/* EFECTO INTERACTIVO AL PASAR EL MOUSE */
.poliza-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ==========================
   ESTILOS PARA LA TARJETA DESTACADA (EMPRESARIAL)
========================== */
.poliza-card.destacado {
    border: 2px solid #0078D4; /* Borde con el azul Azure corporativo */
    box-shadow: 0 10px 25px rgba(0, 120, 212, 0.15);
    transform: scale(1.03); /* Se ve ligeramente más grande que las demás */
}

.poliza-card.destacado:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 120, 212, 0.25);
}

/* Etiqueta superior de "Más Vendido" */
.poliza-card .ribbon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #0078D4;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Corrección para celulares (evita que se amontone el escalado) */
@media (max-width: 768px) {
    .poliza-card.destacado {
        transform: none;
    }
    .poliza-card.destacado:hover {
        transform: translateY(-5px);
    }
}


/* ==========================
   CATALOGO CORPORATIVO
========================== */

.catalog-download{
    padding:80px 8%;
    background:#f8fafc;
}

.catalog-box{
    max-width:900px;
    margin:auto;
    text-align:center;
    background:#ffffff;
    padding:50px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.catalog-box h2{
    margin-bottom:15px;
    color:#0f172a;
}

.catalog-box p{
    margin-bottom:30px;
    color:#64748b;
}

/* BOTON */

.catalog-btn{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    gap:12px;

    padding:16px 30px;

    background:#0078D4;

    color:#ffffff;

    text-decoration:none;

    border-radius:12px;

    font-weight:600;

    font-size:16px;

    transition:all .3s ease;

    box-shadow:
        0 8px 20px rgba(0,120,212,.25);
}

.catalog-btn:hover{

    background:#005A9E;

    transform:translateY(-4px);

    box-shadow:
        0 15px 35px rgba(0,90,158,.35);
}

.catalog-icon{

    font-size:24px;

    transition:.3s;
}

.catalog-btn:hover .catalog-icon{

    transform:translateY(2px);
}

.catalog-text{
    white-space:nowrap;
}

/* RESPONSIVE */

@media(max-width:768px){

    .catalog-box{
        padding:30px;
    }

    .catalog-btn{

        width:100%;

        padding:16px;

    }

}



/* ==========================================================================
   SECCIÓN BLOG TECNOLÓGICO (CORREGIDO Y GARANTIZADO)
   ========================================================================== */

.blog-section {
    padding: 80px 5%;
    background-color: #f8fafc !important; /* Fuerza el fondo gris claro Slate para contraste */
    width: 100%;
    box-sizing: border-box;
}

/* Fuerza el contenedor a desplegarse en columnas horizontales */
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    max-width: 1300px;
    margin: 40px auto 0 auto;
    padding: 0;
    list-style: none;
}


/* Contenedor de la imagen (recorta de forma fija la parte superior de la tarjeta) */
.blog-image {
    width: 100% !important;
    height: 180px !important; /* Altura estandarizada para que todas las tarjetas midan lo mismo */
    overflow: hidden !important;
    border-radius: 8px !important; /* Suaviza las esquinas de las imágenes */
    margin-bottom: 20px !important;
    background-color: #e2e8f0; /* Color gris de carga por si la imagen tarda en bajar */
}

/* Tratamiento responsivo premium para la fotografía */
.blog-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Ajusta la imagen de forma panorámica sin estirarla */
    transition: transform 0.4s ease !important; /* Suave zoom al pasar el mouse */
}


/* Convierte cada artículo en una tarjeta blanca con sombras sutiles */
.blog-card {
    background: #ffffff !important; /* Fondo blanco para resaltar sobre el gris */
    padding: 35px 25px !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    box-sizing: border-box;
    
}

/* Efecto de zoom exclusivo en la imagen al hacer hover en la tarjeta */
.blog-card:hover .blog-image img {
    transform: scale(1.06) !important;
}

/* Reajuste sutil al padding de la tarjeta para compensar la imagen */
.blog-card {
    padding: 20px !important; /* Reducido levemente para que luzca más compacto con la imagen */
}


/* Efecto interactivo premium al pasar el cursor */
.blog-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 25px rgba(0, 120, 212, 0.12) !important;
    border-color: #0078D4 !important; /* Cambia el contorno al azul de Microsoft */
}

/* Iconos o Emojis superiores */
.blog-icon {
    font-size: 40px !important;
    margin-bottom: 20px !important;
    display: block;
}

/* Títulos de los artículos */
.blog-card h3 {
    color: #0f172a !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
    font-family: 'Inter', sans-serif;
}

/* Párrafos descriptivos */
.blog-card p {
    color: #475569 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 0 25px 0 !important;
    flex-grow: 1; /* Hace que todos los textos empujen el botón al mismo nivel inferior */
}

/* Botón de acción "Leer artículo" */
.blog-link {
    color: #0078D4 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease, transform 0.2s ease !important;
    margin-top: auto;
}

.blog-link:hover {
    color: #005A9E !important;
    transform: translateX(5px) !important; /* Desplaza la flecha a la derecha sutilmente */
}

/* Adaptación para pantallas de teléfonos */
@media (max-width: 768px) {
    .blog-section {
        padding: 50px 20px;
    }
    .blog-grid {
        grid-template-columns: 1fr !important; /* Una sola tarjeta por fila en celular */
        gap: 20px !important;
    }
}


/* ==========================================================================
   DISEÑO DE ARTÍCULOS INDIVIDUALES DEL BLOG (COHERENCIA SIACTI)
   ========================================================================== */

.single-post-body {
    background-color: #f8fafc;
}

.post-hero {
    height: 50vh;
    min-height: auto;
    background: 
        linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
        url('assets/images/hero-background.webp');
    background-size: cover;
    background-position: center;
}

.post-meta {
    font-size: 14px;
    color: #cbd5e1;
    margin-top: 10px;
}

/* Contenedor en dos columnas */
.post-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 8fr 4fr; /* 8 partes para el texto, 4 para la barra lateral */
    gap: 40px;
    align-items: start;
}

/* Columna del Artículo */
.post-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.post-main-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
}

.post-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos de lectura */
.post-content .lead {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: #0f172a;
    margin-bottom: 25px;
}

.post-content h2 {
    font-size: 26px;
    color: #0f172a;
    margin: 35px 0 15px 0;
    font-weight: 700;
}

.post-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
}

.post-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.post-content ul li {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Cita destacada */
.post-content blockquote {
    border-left: 4px solid #0078D4;
    padding: 15px 20px;
    background: #f8fafc;
    margin: 30px 0;
    font-style: italic;
    font-size: 17px;
    color: #334155;
    border-radius: 0 8px 8px 0;
}

/* Mini CTA interno */
.post-footer-cta {
    background: #f1f5f9;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    border: 1px solid #e2e8f0;
}

.post-footer-cta h3 {
    margin-bottom: 10px;
    color: #0f172a;
}

/* Barra Lateral (Sidebar) */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 100px; /* Se queda fijo al hacer scroll descendente */
}

.sidebar-widget {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.sidebar-widget h4 {
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 700;
}

.sidebar-widget p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 15px;
}

.widget-link {
    color: #0078D4;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.widget-link:hover {
    color: #005A9E;
}

/* Adaptación responsiva móvil */
@media (max-width: 992px) {
    .post-container {
        grid-template-columns: 1fr; /* Una columna en tablets y celulares */
        gap: 30px;
    }
    .post-main-image {
        height: 240px;
    }
    .post-content {
        padding: 25px;
    }
    .post-sidebar {
        position: static;
    }
}


/* ==========================
   POLITICA DE COOKIES (UNIFICADO)
========================== */

.cookies-hero {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background:
        linear-gradient(
            rgba(0,0,0,.65),
            rgba(0,0,0,.65)
        ),
        url('assets/images/hero-background.webp');

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

/* Forzar que los textos del banner mantengan el color blanco */
.cookies-hero h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.cookies-hero p {
    color: #ffffff !important;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* FORMATO EDITORIAL PARA EL CONTENIDO LEGAL */
.legal-box {
    max-width: 900px;
    margin: 40px auto;
    padding: 50px 40px !important;
    text-align: left !important;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.legal-box h2 {
    font-size: 22px;
    color: #0f172a;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.legal-box p {
    font-size: 15.5px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
}

.legal-box .lista-beneficios {
    margin-bottom: 25px;
    list-style: none;
    padding: 0;
}

.legal-box .lista-beneficios li {
    font-size: 15px;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.last-update {
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    color: #64748b;
}

/* Adaptación para pantallas de teléfonos */
@media (max-width: 768px) {
    .cookies-hero h1 {
        font-size: 2.2rem;
    }
    .cookies-hero p {
        font-size: 1rem;
        padding: 0 15px;
    }
    .legal-box {
        padding: 30px 20px !important;
        margin: 20px 15px;
    }
}

/* ==========================================================================
   COOKIE BANNER (DISEÑO DELGADO Y FLOTANTE ANTI-BLOQUEO)
   ========================================================================== */

.cookie-banner {
    position: fixed;
    left: 50%; /* Centra la tarjeta flotante horizontalmente */
    bottom: 15px; /* La despega del suelo para no pisar el fondo */
    transform: translateX(-50%); /* Ajuste de precisión para el centrado */
    width: 90%; /* Toma un ancho elegante sin tocar las esquinas extremas */
    max-width: 1200px; /* Evita que se estire demasiado en pantallas gigantes */
    background: #0f172a;
    color: #ffffff;
    z-index: 99998; /* Un nivel por debajo de la Navbar pero libre en el fondo */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); /* Sombra más profunda tipo tarjeta premium */
    padding: 10px 25px; /* CORREGIDO: Más delgado arriba/abajo, respira a los lados */
    border-radius: 12px; /* Bordes redondeados consistentes con las tarjetas de SIACTI */
    box-sizing: border-box;
    border: 1px solid #334155; /* Suave borde perimetral para dar definición */
}

/* Clase de control que activa el JavaScript para mostrarlo */
.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.cookie-text {
    line-height: 1.5;
    font-size: 14px; /* Un cuarto de punto más pequeña para compactar el bloque */
}

.cookie-text a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.2s ease;
}

.cookie-text a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0; /* Evita que los botones se achiquen o deformen si el texto es largo */
}

.cookie-btn {
    border: none;
    cursor: pointer;
    padding: 8px 18px; /* CORREGIDO: Relleno compacto para hacer el botón más delgado */
    border-radius: 8px; /* Bordes suavizados premium */
    font-weight: 600;
    font-size: 13.5px;
    transition: background 0.3s ease, transform 0.1s ease;
}

.cookie-btn:active {
    transform: scale(0.97);
}

.cookie-btn.accept {
    background: #0078D4;
    color: #fff;
}

.cookie-btn.accept:hover {
    background: #005A9E;
}

.cookie-btn.reject {
    background: #334155; /* Cambiado a un tono más integrado para menor peso visual */
    color: #cbd5e1;
}

.cookie-btn.reject:hover {
    background: #475569;
    color: #fff;
}

.cookie-hidden {
    display: none;
}

/* ADAPTACIÓN MÓVIL RESPONSIVA */
@media (max-width: 768px) {
    .cookie-banner {
        width: 95%;
        bottom: 10px;
        padding: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1; /* Distribuye el espacio equitativamente en pantallas táctiles */
        padding: 11px;
    }
}