:root {
    --color-azul: #00609C;
    --color-naranja: #F47D30;
    --color-celeste: #00a8e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* HEADER */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: white;
    height: 80px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left { display: flex; align-items: center; gap: 20px; }
.logo { height: 50px; }
.separator { width: 1px; height: 30px; background: #ccc; }
.menu-trigger { background: none; border: none; color: var(--color-azul); cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; }
.email-box { color: var(--color-azul); font-weight: bold; display: flex; align-items: center; gap: 8px; }
.email-box a { text-decoration: none; color: inherit; }
.email-box i { color: var(--color-celeste); font-size: 20px; }

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0; left: 0; width: 300px; height: 100vh;
    background: white;
    z-index: 1001;
    padding: 40px 20px;
    transform: translateX(-100%);
    transition: 0.4s;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}
.sidebar.active { transform: translateX(0); }
.close-btn { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 24px; cursor: pointer; color: #666; }
.sidebar-logo { width: 80%; margin-bottom: 30px; }
.social-icons { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; }
.social-icons a { background: var(--color-azul); color: white; width: 35px; height: 35px; display: flex; justify-content: center; align-items: center; border-radius: 4px; text-decoration: none; }

/* SUBMENU */
.nav-links ul { list-style: none; }
.nav-links li { margin-bottom: 15px; }
.nav-links a { text-decoration: none; color: var(--color-azul); font-weight: 500; display: flex; align-items: center; justify-content: space-between; }
.submenu { max-height: 0; overflow: hidden; transition: 0.3s; background: #f9f9f9; padding-left: 15px; }
.submenu.show { max-height: 300px; padding-top: 10px; }
.submenu li a { font-size: 14px; color: #666; }

/* SLIDER */
.slider-container { position: relative; width: 100%; height: 80vh; overflow: hidden; }
.slider-track { display: flex; width: 300%; height: 100%; transition: 0.6s ease-in-out; }
.slide { width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding: 0 0 80px 5%; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); }
.hero-content { position: relative; color: white; z-index: 2; }
.hero-content h1 { font-size: 3rem; max-width: 700px; line-height: 1.1; }

.slider-dots { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 15px; }
.dot { width: 12px; height: 12px; border: 2px solid white; border-radius: 50%; cursor: pointer; }
.dot.active { background: white; transform: scale(1.3); }

.whatsapp-float { position: absolute; bottom: 30px; right: 30px; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 35px; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 10; }

/* SECCIÓN SOLUCIONES */
.solutions-section { padding: 80px 5%; }
.solutions-container { display: flex; gap: 50px; max-width: 1200px; margin: 0 auto; }
.solutions-text { flex: 1; }
.subtitle { color: var(--color-celeste); font-weight: bold; }
.title { color: var(--color-azul); font-size: 2.5rem; }
.orange-line { width: 50px; height: 4px; background: var(--color-naranja); margin: 15px 0; }
.description { color: #777; line-height: 1.6; }

.solutions-grid { flex: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution-card { border: 1px solid #eef; padding: 30px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: 0.3s; }
.solution-card:hover { border-color: var(--color-azul); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.icon-circle { width: 80px; height: 80px; border: 2px solid var(--color-celeste); border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; color: var(--color-celeste); font-size: 35px; }
.solution-card p { color: var(--color-azul); font-weight: 600; font-size: 14px; }

@media (max-width: 900px) {
    .solutions-container { flex-direction: column; }
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 2rem; }
}

/* --- SECCIÓN ESTADÍSTICAS --- */
.stats-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-image: url('logo-secram.webp'); /* Aquí va la foto de la oficina de fondo */
    background-attachment: fixed; /* Efecto Parallax */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 5%;
}

.stats-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 96, 156, 0.85); /* El azul de Secram con transparencia */
    z-index: 1;
}

.stats-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 1200px;
    gap: 30px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-icon {
    font-size: 50px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en lugar de 4 */
    }
    .stat-number {
        font-size: 2.5rem;
    }
}



/* --- SECCIÓN CASOS DE ÉXITO --- */
.partners-section {
    padding: 80px 5%;
    background-color: #ffffff;
    text-align: center;
}

.partners-header h2 {
    color: var(--color-azul);
    font-size: 2rem;
    margin-bottom: 10px;
}

.orange-line-center {
    width: 60px;
    height: 4px;
    background-color: var(--color-naranja);
    margin: 0 auto 50px auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columnas como en la foto */
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}

.partner-logo {
    padding: 40px 20px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    /* Eliminados los filtros de blanco y negro */
    transition: transform 0.4s ease;
}

/* Efecto suave al pasar el mouse */
.partner-logo:hover img {
    transform: scale(1.05); /* Un pequeño zoom para dar interactividad */
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablets */
    }
}

@media (max-width: 600px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en celulares */
    }
}


/* --- FOOTER --- */
.main-footer {
    background-color: #003354; /* El azul oscuro de la imagen */
    color: white;
    padding: 60px 5% 40px;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Tres columnas desiguales */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-line {
    width: 40px;
    height: 3px;
    background-color: var(--color-naranja);
    margin-bottom: 25px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 20px 0;
    color: #cbd5e0;
}

/* Redes Sociales Footer */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    background: white;
    color: #003354;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--color-naranja);
    color: white;
}

/* Enlaces de Soluciones */
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

/* Bloques de Contacto */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #00a8e8;
}

.contact-item .info span {
    display: block;
    font-size: 0.8rem;
    color: #00a8e8;
    text-transform: uppercase;
    font-weight: bold;
}

.contact-item .info p {
    font-size: 0.95rem;
    margin-top: 3px;
}

/* Botón Subir */
.scroll-top-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #003354;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

.whatsapp-fixed {
    position: fixed;        /* Lo mantiene fijo en la pantalla */
    bottom: 30px;           /* Distancia desde abajo */
    right: 30px;            /* Distancia desde la derecha */
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: white;
    border-radius: 50%;     /* Lo hace circular */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    text-decoration: none;
    z-index: 9999;          /* Asegura que siempre esté por encima de todo */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Efecto al pasar el mouse */
.whatsapp-fixed:hover {
    transform: scale(1.1); /* Crece un poquito */
    background-color: #20ba5a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Ajuste para celulares (opcional, para que no tape tanto) */
@media (max-width: 600px) {
    .whatsapp-fixed {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}

