/* 1. CONFIGURACIÓN GLOBAL */
:root {
    --azul-oscuro: #042455;      /* Tu color principal */
    --azul-claro: #00aeff;       /* Color de acento para botones */
    --blanco: #ffffff;
    --gris-fondo: #f8fafd;
    --fuente-principal: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    background-color: var(--gris-fondo);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. DISEÑO DEL MENÚ (HEADER) */
header {
    background-color: var(--blanco);
    padding: 10px 0; /* Reducimos un poco el padding vertical ya que el logo es alto */
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ajuste de tamaño para el Logo */
.logo img {
    height: 200px; /* Antes era 60px, lo subimos a 90px para que destaque */
    width: auto;  /* Mantiene la proporción original */
    display: block;
    transition: transform 0.5s ease; /* Efecto sutil al pasar el mouse */
}

.logo img:hover {
    transform: scale(5.03); /* Crece un poquito al pasar el mouse */
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--azul-oscuro);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--azul-claro);
}

/* Botón B2B Destacado */
.btn-b2b {
    background-color: var(--azul-oscuro);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-b2b:hover {
    background-color: var(--azul-claro) !important;
}

/* DISEÑO DEL SLIDER */
.slider-container {
    position: relative;
    width: 100%;
    height: 80vh; 
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex; /* Para centrar contenido */
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.slide-content {
    z-index: 2;
    color: white;
}

.slide-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 15px 0;
}

.slide-content h1 span {
    color: var(--azul-claro);
}

.slide-content .tag {
    background: var(--azul-claro);
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Botones de Navegación */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: 0.3s;
}

.prev:hover, .next:hover {
    background: var(--azul-claro);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Animación de entrada */
@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.btn-main {
    display: inline-block;
    background: var(--azul-claro);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 25px;
    transition: 0.3s;
}

.btn-main:hover {
    background: white;
    color: var(--azul-oscuro);
}


/* ESTILOS FASE 3: SERVICIOS */
.servicios {
    padding: 80px 0;
}

.servicios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide en dos columnas */
    gap: 60px;
    align-items: center;
}

.subtitulo {
    color: var(--azul-claro);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.servicios-texto h2 {
    font-size: 2.5rem;
    color: var(--azul-oscuro);
    line-height: 1.2;
    margin: 15px 0;
}

.servicios-texto h2 span {
    color: var(--azul-claro);
}

/* Tarjetas de servicios */
.servicios-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(4, 36, 85, 0.05); /* Sombra suave */
    transition: transform 0.3s ease;
    border-left: 5px solid transparent;
}

.card-item:hover {
    transform: translateX(10px);
    border-left: 5px solid var(--azul-claro);
}

.card-item i {
    font-size: 1.8rem;
    color: var(--azul-oscuro);
    background: #f0f4f8;
    padding: 20px;
    border-radius: 12px;
    margin-right: 20px;
}

.card-info h4 {
    color: var(--azul-oscuro);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.card-info p {
    color: #666;
    font-size: 0.95rem;
}

/* Adaptación para móviles */
@media (max-width: 992px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
}

/* ESTILOS FASE 4: MOSAICO */
.infraestructura {
    padding: 80px 0;
}

.titulo-galeria {
    text-align: center;
    margin-bottom: 40px;
}

.separador {
    width: 50px;
    height: 4px;
    background: var(--azul-claro);
    margin: 15px auto;
}

.mosaico-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

.mosaico-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.mosaico-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Tamaños especiales del mosaico */
.grande {
    grid-column: span 2;
    grid-row: span 2;
}

.ancho {
    grid-column: span 2;
}

/* Efecto al pasar el mouse */
.mosaico-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(4, 36, 85, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: 0.4s;
}

.mosaico-item:hover .mosaico-overlay {
    opacity: 1;
}

.mosaico-item:hover img {
    transform: scale(1.1);
}

.mosaico-overlay span {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive para tablets y móviles */
@media (max-width: 768px) {
    .mosaico-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grande, .ancho {
        grid-column: span 2;
    }
}


/* ESTILOS FASE 5: BANNER B2B */
.banner-b2b {
    background: var(--azul-oscuro);
    padding: 60px 0;
    color: white;
    margin: 40px 0;
}

.b2b-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.b2b-info h2 span {
    color: var(--azul-claro);
}

.btn-b2b-large {
    background: white;
    color: var(--azul-oscuro);
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    transition: 0.3s;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-b2b-large:hover {
    background: var(--azul-claro);
    color: white;
    transform: translateY(-5px);
}

/* ESTILOS FASE 5: FORMULARIO */
.contacto-seccion {
    padding: 80px 0;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(4, 36, 85, 0.05);
}

.lista-datos {
    list-style: none;
    margin-top: 30px;
}

.lista-datos li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.lista-datos i {
    color: var(--azul-claro);
    font-size: 1.2rem;
}

.formulario input, .formulario textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background: #f9f9f9;
    font-family: inherit;
}

.formulario textarea {
    height: 120px;
}

.btn-enviar-form {
    width: 100%;
    background: var(--azul-oscuro);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-enviar-form:hover {
    background: var(--azul-claro);
}

/* Responsive */
@media (max-width: 768px) {
    .b2b-wrapper, .contacto-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

/* ESTILOS SOCIOS COMERCIALES */
.slider-socios {
    width: 100%;
    overflow: hidden; /* Corta lo que sobresale de la pantalla */
    position: relative;
    padding: 20px 0;
}

.slider-track {
    display: flex; /* Alinea las imágenes una al lado de la otra */
    width: calc(250px * 10); /* El ancho de cada logo multiplicado por el total */
    animation: scroll 30s linear infinite;
}

.slide-socio {
    flex-shrink: 0; /* EVITA QUE LAS IMÁGENES SE ENCOJAN O SE APILEN */
    width: 250px; /* Ancho fijo para cada espacio de logo */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-socio img {
    max-width: 160px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.3s;
}

.slide-socio img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ANIMACIÓN */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); } /* Se mueve la mitad del total */
}

/* ESTILOS MAPA */
.map-container {
    box-shadow: 0 -10px 30px rgba(4, 36, 85, 0.05);
    border-top: 5px solid var(--azul-claro);
    transition: filter 0.3s ease;
}

.map-container:hover {
    filter: grayscale(0%) contrast(1); /* El mapa cobra color al pasar el mouse */
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr !important; /* En celular se pone uno arriba del otro */
    }
    .sucursal-card {
        margin-bottom: 30px;
    }
}

/* ESTILOS ESTADÍSTICAS */
.estadisticas-quifa {
    background-color: #042455; /* El azul oscuro de Quifamesa */
    padding: 80px 0;
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item i {
    font-size: 2.5rem;
    color: #00aeff; /* Azul claro para los iconos */
    margin-bottom: 15px;
}

.number-container {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}
/* ESTILOS SEGMENTOS PROFESIONALES */
.segmentos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.segmento-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.segmento-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.segmento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.segmento-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(4, 36, 85, 0.9), rgba(4, 36, 85, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 30px;
    color: white;
    transition: background 0.4s ease;
}

.segmento-info i {
    font-size: 2.5rem;
    color: #00aeff;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.segmento-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

/* Efectos Hover */
.segmento-card:hover img {
    transform: scale(1.1);
}

.segmento-card:hover .segmento-info {
    background: linear-gradient(to top, rgba(0, 174, 255, 0.7), rgba(4, 36, 85, 0.1));
}

.segmento-card:hover i {
    transform: translateY(-10px);
}

/* Responsive */
@media (max-width: 992px) {
    .segmentos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .segmentos-grid { grid-template-columns: 1fr; }
}

footer a:hover {
    color: #00aeff !important;
    padding-left: 5px;
}

/* ESTILOS REQUISITOS */
.requisitos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.requisito-item {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.requisito-item:hover {
    transform: translateY(-10px);
}

.requisito-img-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
}

.requisito-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f4f8;
}

.step-number {
    position: absolute;
    top: 0;
    right: 0;
    background: #042455;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid white;
}

.requisito-item h3 {
    font-size: 1.2rem;
    color: #042455;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.requisito-item p {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.4;
}

.btn-requisitos:hover {
    background: #042455;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,174,255,0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .requisitos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .requisitos-grid { grid-template-columns: 1fr; }
}

/* Agrega esto a estilos.css */
.valor-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,174,255,0.2);
}

@media (max-width: 768px) {
    .container div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    .container div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ESTILOS LÍNEA DE TIEMPO */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #042455;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* Círculos en la línea */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid #00aeff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-item:nth-child(even)::after { left: -10px; }

.timeline-date {
    font-weight: 800;
    font-size: 1.5rem;
    color: #00aeff;
    margin-bottom: 5px;
}

.timeline-content {
    padding: 20px;
    background-color: #f4f7f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.timeline-content h3 {
    color: #042455;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Responsive para celulares */
@media screen and (max-width: 600px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; text-align: left !important; }
    .timeline-item::after { left: 21px !important; }
    .timeline-item:nth-child(even) { left: 0%; }
}