/* ======== Variables y reset ======== */
:root {
    --primary-color: #db3434;       /* Azul principal de ApropiaTIC */
    --secondary-color: #502c2c;     /* Azul oscuro secundario */
    --accent-color: #f37712;        /* Naranja para acentos y CTA */
    --text-color: #333333;          /* Color general para texto */
    --light-text: #ffffff;          /* Texto claro para fondos oscuros */
    --light-bg: #fff5f5;            /* Fondo claro para secciones alternas */
    --dark-bg: #fff5f5;             /* Fondo oscuro para header/footer */
    --border-radius: 5px;           /* Radio de bordes estándar */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);  /* Sombra estándar */
    --transition: all 0.3s ease;    /* Transición suave estándar */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #ffffff;
    /* background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(219, 52, 52, 0.05) 100%); */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

p{
    text-align: justify;
}

a:hover {
    color: var(--accent-color);
}

ul, ol {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
}

button, .btn {
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;

    align-items: center;
    align-content: center;
    align-self: center;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* ======== Tipografía ======== */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
}

h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subheading {
    color: var(--primary-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* ======== Botones ======== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.btn-accent:hover {
    background-color: #e67e22;
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* ======== Layout utilitarios ======== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
}

.col-12 {
    width: 100%;
}

.col-6 {
    width: 50%;
}

.col-4 {
    width: 33.33%;
}

.col-3 {
    width: 25%;
}

/* ======== Fondos ======== */
.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.bg-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* ======== Preloader ======== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 5px solid var(--primary-color);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Media Queries para adaptación responsive */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
        padding-top: 60px;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
    }

    .nav-menu li a {
        padding: 15px 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-toggle {
        display: flex;
        z-index: 1000;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 8px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px);
    }

    .body-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 998;
        display: none;
    }

    .body-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .top-info {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        margin-bottom: 8px;
    }

    .social-media {
        margin-top: 5px;
    }
}

/* ======== Banner / Hero Section ======== */
#banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
}

.banner-slider {
    height: 100%;
    width: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85));
    z-index: 100;
}

/* Fix: Centrar contenido verticalmente */
.banner-slide .container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 101;
}

.banner-content {
    position: relative;
    z-index: 102;
    max-width: 800px;
    padding: 0 15px;
    /* top: 50%; transform: translateY(-50%);  <-- Eliminado por causar problemas de visibilidad */
    color: var(--light-text);
    text-align: center;
    width: 100%;
}

.banner-content h1 {
    color: var(--light-text);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.banner-buttons .btn-outline {
    border-color: var(--light-text);
    color: var(--light-text);
}

.banner-buttons .btn-outline:hover {
    background-color: var(--light-text);
    color: var(--secondary-color);
}

/* Indicadores de posición */
.banner-indicators {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 12px;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Flechas de navegación */
.banner-arrows {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
}

.arrow-prev,
.arrow-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--light-text);
    font-size: 1.5rem;
}

.arrow-prev:hover,
.arrow-next:hover {
    background-color: var(--primary-color);
}

/* Wave divider */
.banner-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 4;
    line-height: 0;
}

.banner-wave svg {
    width: 100%;
    height: auto;
}

/* Responsive styles */
@media (max-width: 992px) {
    .banner-content h1 {
        font-size: 2.8rem;
    }
    
    .banner-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    #banner {
        height: 80vh;
    }
    
    .banner-content h1 {
        font-size: 2.2rem;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .banner-arrows {
        padding: 0 15px;
    }
    
    .arrow-prev,
    .arrow-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .banner-indicators {
        bottom: 80px;
    }
}

/* ======== Sección Descripción del Servicio ======== */


        .section-padding {
            padding: 80px 0;
        }

        .section-subheading {
            color: var(--primary-color);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 0.9rem;
        }

        /*Imagen principal con thumbnails */
        .main-image-container {
            position: relative;
            height: 400px;
            border-radius: 15px;
            overflow: hidden;
            margin-bottom: 15px;
        }

        .main-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .thumbnails {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .thumbnail {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .thumbnail:hover,
        .thumbnail.active {
            border-color: var(--primary-color);
            transform: scale(1.1);
        }

        .thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Estilos generales */
        .image-container {
            position: relative;
            height: 450px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--box-shadow);
        }

        .main-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .lil{
            width: 32vh;
            height: 32vh;
            align-items: center;
            align-content: center;
        }
        
        .little{
            position: relative;
            top: 0;
            
            width: 100%;
            max-height: auto;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: auto;
            padding: 2vh;
        }

        .floating-badge {
            position: absolute;
            bottom: 20px;
            left: 20px;
            background-color: var(--accent-color);
            color: var(--light-text);
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            z-index: 3;
            font-size: 0.9rem;
        }

        .feature-item {
            display: flex;
            margin-bottom: 25px;
            padding: 15px;
            border-radius: 10px;
            transition: var(--transition);
        }

        .feature-item:hover {
            background-color: rgba(52, 152, 219, 0.05);
            transform: translateX(5px);
        }

        .feature-icon {
            flex: 0 0 50px;
            height: 50px;
            background-color: rgba(52, 152, 219, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
        }

        .feature-icon i {
            color: var(--primary-color);
            font-size: 20px;
        }
        
        
/* Estilos generales de la sección */
#descripcion-servicio {
    position: relative;
    overflow: hidden;
    background: transparent;
}

#descripcion-servicio .lead {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
}

#descripcion-servicio .descripcion-geom {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%; /* Reducido para asegurar que no toque el texto (col-lg-6 es 50%) */
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#descripcion-servicio .geom-shape {
    position: absolute;
}

#descripcion-servicio .geom-square {
    width: 140px;
    height: 140px;
    transform: rotate(45deg);
    border-radius: 20px;
    
    /* Efecto de hueco en la pantalla (Neumorphism pressed/inset) */
    background: #f5f5f5; /* Ligeramente más oscuro que el fondo blanco */
    box-shadow: 
        inset 8px 8px 16px rgba(163, 177, 198, 0.4), 
        inset -8px -8px 16px rgba(255, 255, 255, 0.8),
        0 1px 2px rgba(0,0,0,0.05); /* Sutil borde exterior */
    
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#descripcion-servicio .geom-square:hover {
    transform: rotate(45deg) scale(1.02);
    /* Efecto más profundo al hover */
    box-shadow: 
        inset 12px 12px 24px rgba(163, 177, 198, 0.5), 
        inset -12px -12px 24px rgba(255, 255, 255, 1);
    background: #eeeeee;
}

/* Distribución densa y variada en el lado derecho */
/* Grandes */
#descripcion-servicio .descripcion-geom .s1 { top: 5%; right: 10%; width: 140px; height: 140px; opacity: 1; }
#descripcion-servicio .descripcion-geom .s2 { top: 25%; right: 45%; width: 110px; height: 110px; opacity: 0.9; }
#descripcion-servicio .descripcion-geom .s3 { top: 50%; right: 5%; width: 180px; height: 180px; opacity: 1; }
#descripcion-servicio .descripcion-geom .s4 { top: 75%; right: 35%; width: 130px; height: 130px; opacity: 0.9; }
#descripcion-servicio .descripcion-geom .s5 { top: 90%; right: 72%; width: 90px; height: 90px; opacity: 0.8; } /* Borde izquierdo */

/* Medianos */
#descripcion-servicio .descripcion-geom .s6 { top: 22%; right: 5%; width: 80px; height: 80px; opacity: 0.85; }
#descripcion-servicio .descripcion-geom .s7 { top: 38%; right: 15%; width: 95px; height: 95px; opacity: 0.9; }
#descripcion-servicio .descripcion-geom .s8 { top: 32%; right: 5%; width: 60px; height: 60px; opacity: 0.7; }
#descripcion-servicio .descripcion-geom .s9 { top: 62%; right: 55%; width: 75px; height: 75px; opacity: 0.8; }
#descripcion-servicio .descripcion-geom .s10 { top: 85%; right: 15%; width: 85px; height: 85px; opacity: 0.85; }
#descripcion-servicio .descripcion-geom .s11 { top: 45%; right: 70%; width: 65px; height: 65px; opacity: 0.75; } /* Borde izquierdo */
#descripcion-servicio .descripcion-geom .s12 { top: 92%; right: 45%; width: 70px; height: 70px; opacity: 0.8; }

/* Pequeños dispersos */
#descripcion-servicio .descripcion-geom .s13 { top: 80%; right: 64%; width: 40px; height: 40px; opacity: 0.6; }
#descripcion-servicio .descripcion-geom .s14 { top: 22%; right: 25%; width: 45px; height: 45px; opacity: 0.65; }
#descripcion-servicio .descripcion-geom .s15 { top: 58%; right: 35%; width: 35px; height: 35px; opacity: 0.6; }

/* Tiny fillers */
#descripcion-servicio .descripcion-geom .t1 { top: 42%; right: 30%; width: 50px; height: 50px; opacity: 0.7; }
#descripcion-servicio .descripcion-geom .t2 { top: 70%; right: 20%; width: 45px; height: 45px; opacity: 0.7; }
#descripcion-servicio .descripcion-geom .t3 { top: 2%; right: 5%; width: 55px; height: 55px; opacity: 0.6; }
#descripcion-servicio .descripcion-geom .t4 { top: 52%; right: 50%; width: 30px; height: 30px; opacity: 0.5; }
#descripcion-servicio .descripcion-geom .t5 { top: 95%; right: 5%; width: 40px; height: 40px; opacity: 0.6; }
#descripcion-servicio .descripcion-geom .t6 { top: 68%; right: 75%; width: 30px; height: 30px; opacity: 0.5; }

.descripcion-content {
    margin-top: 50px;
}

/* Columna de texto */
.descripcion-text {
    padding-right: 30px;
}

.descripcion-text h3 {
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
}

.descripcion-text h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Items de características */
.feature-item {
    display: flex;
    margin-bottom: 30px;
    transition: var(--transition);
    padding: 15px;
    border-radius: var(--border-radius);
}

.feature-item:hover {
    background-color: rgba(52, 152, 219, 0.05);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    flex: 0 0 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background-color: var(--primary-color);
}

.feature-icon i {
    font-size: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-item:hover .feature-icon i {
    color: var(--light-text);
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.feature-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #666;
}

/* CTA Box */
.cta-box {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

/* Columna de imagen - CORREGIDA CON !important */
.descripcion-image {
    position: relative !important;
    left: 0 !important; /* Forzar que no tenga desplazamiento */
    transform: none !important; /* Anular cualquier transformación */
    padding-left: 30px;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 450px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(44, 62, 80, 0.4) 100%);
    z-index: 1;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-small {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-right {
    top: 30px;
    right: 30px;
}

.bottom-left {
    bottom: 30px;
    right: 30px;
}

/* Estilos responsivos */
@media (max-width: 991px) {
    .descripcion-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .descripcion-image {
        padding-left: 0;
    }
    
    .image-container {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .image-container {
        height: 300px;
    }
}

/* ======== Sección de Características y Tecnología ======== */

/* Estilos generales de la sección */
#caracteristicas {
    position: relative;
    overflow: hidden;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Cajas de características */
.features-container {
    margin-bottom: 60px;
}

.feature-item {
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .feature-item {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .feature-item {
        width: 100%;
    }
}

.feature-box {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    opacity: 0.05;
    transition: all 0.5s ease;
    z-index: -1;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box:hover:before {
    height: 100%;
}

.feature-icon {
    margin-bottom: 20px;
    display: inline-block;
}

.feature-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.feature-box:hover .feature-icon i {
    transform: scale(1.2);
}

.feature-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.feature-box:hover .feature-content h3 {
    color: var(--primary-color);
}

.feature-content p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Sección de tecnologías */
.tech-showcase {
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px -15px 0;
}

.tech-icon {
    padding: 0 15px;
    text-align: center;
    margin-bottom: 30px;
    width: 25%;
}

@media (max-width: 992px) {
    .tech-icon {
        width: 33.33%;
    }
}

@media (max-width: 768px) {
    .tech-icon {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .tech-icon {
        width: 100%;
    }
}

.tech-icon img {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
    transition: var(--transition);
    filter: grayscale(20%);
}

.tech-icon:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.tech-icon p {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Margen para el botón */
.mt-50 {
    margin-top: 50px;
}

/* ======== Sección de Tipos de Sistemas ======== */
.tipos-sistemas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.sistema-card {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sistema-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.sistema-icon {
    width: 100%;
    height: 120px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.sistema-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8) 0%, rgba(44, 62, 80, 0.8) 100%);
}

.sistema-icon i {
    font-size: 3rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.sistema-card:hover .sistema-icon i {
    transform: scale(1.2);
}

.sistema-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sistema-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.sistema-content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.sistema-content p {
    margin-bottom: 20px;
    color: #666;
    flex-grow: 1;
}

.sistema-features {
    margin-bottom: 25px;
}

.sistema-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.sistema-features li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.sistema-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Modal de detalles del sistema */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 800px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.4s ease;
    position: relative;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.modal-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.modal-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-info {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.modal-info-item {
    flex: 0 0 50%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.modal-info-item i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.modal-description {
    margin-bottom: 25px;
    line-height: 1.7;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Responsive adaptations */
@media (max-width: 992px) {
    .tipos-sistemas-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 15% auto;
        padding: 20px;
    }
    
    .modal-info-item {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .tipos-sistemas-container {
        grid-template-columns: 1fr;
    }
    
    .sistema-icon {
        height: 100px;
    }
    
    .sistema-icon i {
        font-size: 2.5rem;
    }
}

/* ======== Sección de Beneficios ======== */

.section-description {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #666;
}

.beneficios-contenedor {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.beneficio-card {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.beneficio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.beneficio-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.beneficio-card:hover:before {
    width: 100%;
    height: 5px;
}

.beneficio-icon {
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.beneficio-card:hover .beneficio-icon {
    background-color: var(--primary-color);
}

.beneficio-icon i {
    color: var(--primary-color);
    font-size: 32px;
    transition: var(--transition);
}

.beneficio-card:hover .beneficio-icon i {
    color: var(--light-text);
}

.beneficio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.beneficio-content p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.7;
}

.beneficios-cta {
    margin-top: 60px;
}

.beneficios-cta-text {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Responsive para sección de beneficios */
@media (max-width: 992px) {
    .beneficios-contenedor {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .beneficios-contenedor {
        grid-template-columns: 1fr;
    }
    
    .beneficio-card {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* ======== Estilos para la sección de Galería ======== */

/* Estilos para el contenedor de la galería */
.section-description {
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;
}

/* Filtros de la galería */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    margin: 0 8px 10px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Contenedor de items de la galería */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Item de la galería */
.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

/* Overlay de la galería */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    padding: 20px;
    color: var(--light-text);
    transform: translateY(20px);
    transition: var(--transition);
    width: 100%;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h4 {
    color: var(--light-text);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.gallery-info p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-zoom {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    transition: var(--transition);
}

.gallery-zoom:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

/* Estilos para el Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 50px;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    text-align: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: zoom 0.5s ease;
}

@keyframes zoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.lightbox-caption {
    margin: auto;
    width: 80%;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Animación para los items */
.gallery-item.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.gallery-item.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media screen and (max-width: 992px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .filter-btn {
        padding: 6px 15px;
        margin: 0 5px 8px;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-info h4 {
        font-size: 1.1rem;
    }
}

/* Proceso de instalación */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
    padding-right: 50%;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-date {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -20px;
}

/* Testimonios */
.testimonios-slider {
    padding: 40px 0;
}

.testimonio-item {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 15px;
    text-align: center;
}

.cliente-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.cliente-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
}

.cliente-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cliente-nombre {
    font-weight: 700;
    font-size: 1.1rem;
}

.cliente-cargo {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.testimonio-texto {
    position: relative;
    padding: 20px 0;
}

.testimonio-texto:before,
.testimonio-texto:after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonio-texto:before {
    top: 0;
    left: 0;
}

.testimonio-texto:after {
    bottom: 0;
    right: 0;
}

/* FAQ */
.accordion {
    margin-top: 30px;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.accordion-header {
    background-color: #fff;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
}

.accordion-header:after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.accordion-header.active:after {
    transform: translateY(-50%) rotate(180deg);
}

.accordion-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.accordion-content {
    padding: 20px;
}

/* CTA */
#cta {
    text-align: center;
}

#cta h2 {
    color: var(--light-text);
}

#cta h2:after {
    background-color: var(--light-text);
}

/* Contacto */
.contact-info {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.contacto-form {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
#footer {
    background-color: var(--dark-bg);
    color: #bdc3c7;
    padding: 60px 0 0;
}

.footer-about,
.footer-links,
.footer-contact,
.footer-newsletter {
    margin-bottom: 40px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 15px;
}

.footer-title {
    color: var(--light-text);
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99;
}

.whatsapp-float a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.8rem;
    transition: var(--transition);
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

/* ======== Media Queries ======== */
@media (max-width: 991px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .banner-content h1 {
        font-size: 3rem;
    }
    
    .col-md-6 {
        width: 50%;
    }
    
    .col-md-12 {
        width: 100%;
    }
    
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 0 0 0 60px;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 0;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .col-sm-6 {
        width: 50%;
    }
    
    .col-sm-12 {
        width: 100%;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        flex-direction: column;
        padding: 40px 0;
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
        text-align: center;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 575px) {
    .container {
        width: 95%;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .banner-content h1 {
        font-size: 2.2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .col-xs-12 {
        width: 100%;
    }
    
    .btn {
        padding: 10px 25px;
    }
}

/* ======== Estilos para la sección FAQ ======== */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.faq-question {
    padding: 20px 25px;
    position: relative;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
    padding-right: 30px;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--primary-color);
}

.faq-question:hover {
    background-color: rgba(52, 152, 219, 0.05);
    border-left: 4px solid var(--primary-color);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p, .faq-answer ul {
    margin-bottom: 15px;
}

.faq-answer ul {
    padding-left: 20px;
    list-style-type: disc;
}

.faq-answer ul li {
    margin-bottom: 8px;
    position: relative;
}

.faq-answer ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 0.8rem;
    position: absolute;
    left: -20px;
    top: 5px;
}

.faq-item.active .faq-answer {
    padding: 5px 25px 25px;
    max-height: 1000px; /* Valor suficientemente grande para mostrar todo el contenido */
}

.faq-item.active .faq-question {
    border-left: 4px solid var(--primary-color);
    background-color: rgba(52, 152, 219, 0.08);
}

.faq-item.active .faq-question i {
    transform: translateY(-50%) rotate(180deg);
}

.faq-cta {
    margin-top: 40px;
    background-color: rgba(52, 152, 219, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.faq-cta p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Animación para el icono de chevron */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

.faq-item:hover .faq-question i:not(.active i) {
    animation: bounce 1s ease infinite;
}

/* Responsive para FAQs */
@media screen and (max-width: 768px) {
    .faq-container {
        padding: 0 15px;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 5px 20px 20px;
    }
    
    .faq-cta {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-question i {
        right: 15px;
    }
}

/* ======== Sección de Contacto ======== */
#contacto {
    position: relative;
    overflow: hidden;
}

#contacto .section-description {
    max-width: 700px;
    margin: 0 auto 40px;
}

.contact-wrapper {
    margin-bottom: 60px;
}

/* Columna de información de contacto */
.contact-info {
    margin-bottom: 30px;
}

.contact-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transition: var(--transition);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.85);
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.icon-box i {
    color: #ffffff;
    font-size: 1.2rem;
}

.info-box h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.info-box p {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #666;
}

/* Redes sociales */
.social-media {
    margin-top: 30px;
}

.social-media h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Formulario de contacto */
.contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.contact-form {
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1rem;
    z-index: 1;
}

.form-group textarea ~ .form-icon {
    top: 20px;
    transform: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-color);
    background-color: #f9f9f9;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    outline: none;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: flex-start;
    padding-left: 0;
}

.form-check input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 4px;
}

.form-check label {
    font-size: 0.9rem;
    color: #666;
}

.btn-block {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-block i {
    margin-right: 8px;
}

#form-message {
    text-align: center;
    padding: 10px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    display: none;
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mapa */
.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* ===== FOOTER ====== */
  footer {
    background-color: #0e1620;
    color: white;
    padding: 60px 0 20px;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
  }
  
  .footer-column ul {
    list-style: none;
  }
  
  .footer-column li {
    margin-bottom: 10px;
  }
  
  .footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-column a:hover {
    color: #ff5a5a;
  }
  
  .footer-column p {
    color: #ccc;
    margin-bottom: 15px;
  }
  
  .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
  }
  
  .social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
  }
  
  .social-icons a:hover {
    background-color: #c00000;
  }
  
  .copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
  }

/* Responsive */
@media (max-width: 768px) {
    .col-md-6 {
        width: 100%;
    }
    
    .contact-form-wrapper {
        margin-top: 30px;
    }
}

/* Animaciones adicionales para los elementos de contacto */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.icon-box i {
    animation: pulseIcon 2s infinite;
}

/* Efecto de focus para los inputs */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    animation: borderPulse 1.5s ease-out;
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

/* SOLUCIÓN ALTERNATIVA - Agregar al final del CSS */
#descripcion-servicio .descripcion-image {
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Si necesitas forzar el grid de Bootstrap */
#descripcion-servicio .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

#descripcion-servicio .col-12,
#descripcion-servicio .col-md-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

#descripcion-servicio .col-lg-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

@media (max-width: 991px) {
    #descripcion-servicio {
        background: transparent;
    }

    #descripcion-servicio .descripcion-geom {
        /* display: none; - Permitir que las figuras se vean si caben, o ajustar */
        opacity: 0.5; /* Reducir opacidad en móvil para no interferir con texto */
    }

    #descripcion-servicio .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}


/* ======== Botones de Pánico Flotantes en Contacto (Lateral Derecho) ======== */
.contact-panic-container {
    padding: 26px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--accent-color);
    position: relative;
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.panic-title {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 22px;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.panic-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.panic-floating-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 24px;
    padding: 10px 0;
}

.panic-float-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.panic-float-item.float-item-1 {
    animation: floatPanicAnim1 3.8s ease-in-out infinite;
}

.panic-float-item.float-item-2 {
    animation: floatPanicAnim2 4.2s ease-in-out infinite 0.6s;
}

.panic-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.panic-float-item:hover .panic-img {
    transform: scale(1.12);
    filter: drop-shadow(0 14px 26px rgba(219, 52, 52, 0.35));
}

.panic-badge {
    margin-top: 10px;
    display: inline-block;
    padding: 5px 14px;
    background: rgba(219, 52, 52, 0.1);
    color: var(--primary-color);
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

@keyframes floatPanicAnim1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

@keyframes floatPanicAnim2 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-14px) rotate(-2deg);
    }
}

/* Layout Responsivo para Sección de Contacto (3 Columnas con Lateral Derecho) */
.contact-wrapper {
    margin-bottom: 60px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.contact-col {
    box-sizing: border-box;
}

.contact-col-form .contact-form-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 992px) {
    .contact-wrapper {
        display: grid;
        grid-template-columns: 1fr 1.35fr 0.95fr;
        gap: 25px;
        align-items: stretch;
    }

    .contact-wrapper > .contact-col {
        padding: 0;
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
    }

    .contact-col-panic .contact-panic-container {
        margin-top: 0;
        height: 100%;
    }

    .contact-col-panic .panic-floating-wrapper {
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 10px 0;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .contact-wrapper {
        display: grid;
        grid-template-columns: 1fr 1.15fr;
        gap: 25px;
        align-items: start;
    }

    .contact-col {
        padding: 0;
    }

    .contact-col-panic {
        grid-column: span 2;
    }

    .contact-col-panic .contact-panic-container {
        margin-top: 15px;
        height: auto;
    }

    .contact-col-panic .panic-floating-wrapper {
        flex-direction: row;
        justify-content: space-around;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .contact-wrapper {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .contact-col {
        width: 100%;
        padding: 0;
    }

    .contact-col-panic .contact-panic-container {
        margin-top: 10px;
        height: auto;
    }

    .contact-col-panic .panic-floating-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .panic-img {
        width: 90px;
        height: 90px;
    }
}


/* ======== Showcase Cámara Inteligente 3D (Cámara Completa Superpuesta & Canvas Extendido 64%) ======== */
.camera-showcase-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 820px;
    margin: 20px auto 30px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 1. Tarjeta superior (Centrada arriba del círculo) */
.camera-spec-pos {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 4;
}

.camera-spec-top {
    margin-bottom: 20px;
}

/* 2. Tarjeta inferior (Centrada abajo del círculo) */
.camera-spec-bottom {
    margin-top: 20px;
}

/* Fila central: 2 a la izquierda, cámara en el centro, 2 a la derecha */
.camera-showcase-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

/* Columnas laterales con separación vertical simétrica para formar el círculo */
.camera-specs-col {
    display: flex;
    flex-direction: column;
    gap: 100px;
    position: relative;
    z-index: 4;
}

.camera-specs-left {
    align-items: center;
}

.camera-specs-right {
    align-items: center;
}

/* Estilo limpio tipo flyer / infografía (Sin cuadro contenedor) */
.cam-spec-card {
    display: flex;
    flex-direction: column; /* Icono SVG sobre el texto */
    align-items: center;
    text-align: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0;
    cursor: default;
    position: relative;
    z-index: 4;
    opacity: 0;
    filter: blur(2px);
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.45s ease,
                filter 0.45s ease;
}

.cam-spec-card.is-visible {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
}

.cam-spec-card:hover {
    transform: translateY(-4px);
}

/* Iconos Vectoriales SVG puros flotando sobre el texto */
.cam-spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0 0 8px 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cam-spec-card:hover .cam-spec-icon {
    transform: scale(1.15) rotate(4deg);
}

.cam-spec-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 2.15;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.08));
    transition: stroke 0.3s ease, filter 0.3s ease;
}

/* Colores SVG específicos según imagen de referencia */
/* 1. Verde Esmeralda - Completamente Seguro */
.cam-icon-seguro svg {
    stroke: #10b981;
}
.cam-spec-card:hover .cam-icon-seguro svg {
    filter: drop-shadow(0 4px 10px rgba(16, 185, 129, 0.45));
}

/* 2. Azul Eléctrico - Encriptación de Video */
.cam-icon-encriptacion svg {
    stroke: #2563eb;
}
.cam-spec-card:hover .cam-icon-encriptacion svg {
    filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.45));
}

/* 3. Rojo Carmesí - Video a CAI Cercanos */
.cam-icon-cai svg {
    stroke: #dc2626;
}
.cam-spec-card:hover .cam-icon-cai svg {
    filter: drop-shadow(0 4px 10px rgba(220, 38, 38, 0.45));
}

/* 4. Naranja Ámbar - Integración con Terceros */
.cam-icon-terceros svg {
    stroke: #f59e0b;
}
.cam-spec-card:hover .cam-icon-terceros svg {
    filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.45));
}

/* 5. Púrpura / Violeta - Para Cámaras IP Multimarcas */
.cam-icon-multimarcas svg {
    stroke: #8b5cf6;
}
.cam-spec-card:hover .cam-icon-multimarcas svg {
    filter: drop-shadow(0 4px 10px rgba(139, 92, 246, 0.45));
}

/* 6. Celeste / Cian - Almacenamiento en Nube */
.cam-icon-nube svg {
    stroke: #0ea5e9;
}
.cam-spec-card:hover .cam-icon-nube svg {
    filter: drop-shadow(0 4px 10px rgba(14, 165, 233, 0.45));
}

.cam-spec-body {
    width: 100%;
}

.cam-spec-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-align: center;
    max-width: 165px;
    margin: 0 auto;
}

/* Contenedor central de la cámara: Extendido a 64% x 64% de visualización amplia */
.camera-center-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 6; /* Superpuesta sobre los textos */
    margin: -70px -85px; /* Desborde holgado sin alterar la posición de los textos */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.camera-center-stage.is-visible {
    opacity: 1;
}

.camera-stage-canvas {
    width: 512px; /* 64% del ancho del showcase (800px * 0.64) */
    height: 480px; /* Altura suficiente para revelar la cámara completa sin cortes */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: auto; /* Permite arrastrar la cámara en 3D */
    overflow: visible;
}

.camera-stage-canvas dahua-camera-3d {
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
    filter: drop-shadow(0 18px 36px rgba(15, 23, 42, 0.16));
}

@media (max-width: 992px) {
    .camera-showcase-wrapper {
        max-width: 100%;
        padding: 10px;
    }
    .camera-showcase-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .camera-center-stage {
        order: -1;
        margin: 10px 0;
        pointer-events: auto;
    }
    .camera-stage-canvas {
        width: 100%;
        max-width: 380px;
        height: 350px;
    }
    .camera-specs-col {
        gap: 16px;
        flex-direction: row;
        justify-content: center;
    }
    .camera-spec-top, .camera-spec-bottom {
        margin: 8px 0;
    }
}
