* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animación WhatsApp - Cambiado a azul */
@keyframes wave {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(33, 150, 243, 0.5), 0 0 20px rgba(33, 150, 243, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(33, 150, 243, 0.6), 0 0 30px rgba(33, 150, 243, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
    }
}

/* WhatsApp button - Cambiado a azul */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366; /* AZUL en lugar de verde */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    z-index: 1000;
    animation: wave 1s infinite ease-out;
    transition: all 0.3s;
}

.whatsapp-button:hover {
    background-color: #1976D2; /* Azul más oscuro */
    animation: none;
    transform: scale(1.05);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER - CAMBIADO A BLANCO */
header {
    background-color: #000; /* BLANCO en lugar de negro */
    color: #333;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 70px;
    border-bottom: 1px solid #e0e0e0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
}

/* Logo con imagen */
.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    max-height: 100%;
}

/* Texto del logo - ahora azul */
.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #2196F3; /* AZUL */
}

.logo-text span {
    color: #1565C0; /* Azul más oscuro */
}

/* NAVEGACIÓN - TEXTOS AZULES */
.main-nav {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    height: 100%;
    align-items: center;
}

.nav-links a {
    color: #2196F3; /* AZUL en lugar de blanco */
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1565C0; /* Azul oscuro para hover */
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #1565C0; /* Azul más oscuro al hover */
}

/* BOTÓN MENÚ MÓVIL - AZUL */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #2196F3; /* AZUL */
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* ========== SLIDER HERO CORREGIDO ========== */
.slider-hero {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.slider-container {
    width: 100%;
    max-width: 1600px; /* Límite máximo de ancho */
    height: 100%;
    position: relative;
    margin: 0 auto;
    overflow: hidden; /* Evitar desbordamiento */
}

.slider-track {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.slide {
    min-width: 100%;
    max-width: 100%; /* Forzar límite de ancho */
    width: 100%;
    height: auto;
    position: relative;
    flex-shrink: 0;
    display: block;
    overflow: hidden; /* Evitar desbordamiento por slide */
    line-height: 0; /* Eliminar espacios en blanco debajo de la imagen */
}

.slide-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Mostrar imagen completa */
    object-position: center;
    display: block;
    position: relative;
}

/* Para SVG que puedan ser muy anchos */
.slide-img[src$=".svg"] {
    max-width: calc(100vw - 40px) !important;
    max-height: calc(100vh - 150px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transform: scale(1) !important;
}

/* Para fotos JPG/PNG mantener aspect ratio */
.slide-img[src$=".jpg"],
.slide-img[src$=".png"],
.slide-img[src$=".jpeg"] {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* SERVICIOS */
.services-section {
    padding: 80px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.subtitle {
    color: #2196F3; /* AZUL */
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 36px;
    margin-top: 10px;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #2196F3; /* AZUL */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: #2196F3; /* AZUL */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* TECNOLOGÍA */
.tech-section {
    padding: 80px 0;
    background-color: #f5f9ff; /* Fondo azul muy claro */
}

.tech-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.tech-info {
    flex: 1;
}

.tech-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.canon {
    color: #2196F3; /* AZUL */
}

.tech-info p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #555;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    margin-bottom: 15px;
    font-size: 18px;
    color: #444;
}

.tech-list i {
    color: #2196F3; /* AZUL */
    margin-right: 10px;
}

.tech-visual {
    flex: 1;
}

.tech-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: auto;
}

/* NOSOTROS */
.about-section {
    padding: 60px 0;
    background-color: #2196F3; /* AZUL como fondo principal */
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    color: white; /* Blanco para destacar */
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-item p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* CONTACTO */
.contact-section {
    padding: 80px 0;
    background-color: white;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info-box {
    flex: 1;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    border-left: 4px solid #2196F3; /* AZUL */
}

.contact-info-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.contact-info-box > p {
    color: #666;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    color: #2196F3; /* AZUL */
    font-size: 20px;
    margin-right: 15px;
    margin-top: 5px;
    min-width: 20px;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.info-item p {
    color: #666;
}

.map-box {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    border: 2px solid #2196F3; /* Borde azul */
}

.map-box iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* FOOTER */
footer {
    background-color: #1565C0; /* Azul oscuro */
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* ========== RESPONSIVE CORREGIDO ========== */
@media (max-width: 1600px) {
    .slider-container {
        padding: 0 20px; /* Espacio en los lados */
    }
}

@media (max-width: 992px) {
    .tech-container {
        flex-direction: column;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .slider-hero {
        height: 70vh;
    }
}

/* VERSIÓN MÓVIL CORREGIDA */
@media (max-width: 768px) {
    /* MENÚ MÓVIL CORREGIDO - BLANCO con textos azules */
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #ffffff; /* BLANCO */
        padding: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        height: auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        height: auto;
        padding: 20px 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        color: #2196F3; /* AZUL */
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links a:hover {
        background-color: rgba(33, 150, 243, 0.1); /* Azul muy claro */
        color: #1565C0; /* Azul oscuro */
    }
    
    /* SLIDER MÓVIL CORREGIDO */
    .slider-hero {
        height: 60vh;
        min-height: 300px;
        margin-top: 70px;
    }
    
    .image-container {
        padding: 10px;
    }
    
    .slider-indicators {
        bottom: 20px;
    }
    
    /* SERVICIOS MÓVIL */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    /* TECNOLOGÍA MÓVIL */
    .tech-info h2 {
        font-size: 30px;
    }
    
    .tech-info p {
        font-size: 16px;
    }
    
    /* CONTACTO MÓVIL */
    .contact-info-box {
        padding: 25px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .info-item i {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .map-box {
        min-height: 300px;
    }
    
    .map-box iframe {
        min-height: 300px;
    }
    
    /* WHATSAPP MÓVIL */
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .slider-hero {
        height: 50vh;
        min-height: 250px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .stat-item h3 {
        font-size: 36px;
    }
    
    .slider-indicators {
        bottom: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    /* HEADER MÓVIL PEQUEÑO */
    header {
        height: 60px;
    }
    
    .slider-hero {
        margin-top: 60px;
        height: calc(100vh - 60px);
    }
    
    .main-nav {
        top: 60px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    /* Logo más pequeño en móvil */
    .logo-img {
        height: 35px;
    }
    
    /* Ajuste para imágenes en móvil */
    .image-container {
        padding: 5px;
    }
}

/* ORIENTACIÓN LANDSCAPE */
@media (max-height: 500px) and (orientation: landscape) {
    .slider-hero {
        height: 80vh;
    }
    
    .main-nav {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .image-container {
        padding: 10px;
    }
}