/* 1. CONFIGURACIÓN BASE */
:root {
    --azul-bci: #0062cc;
    --verde-wsp: #25d366;
    --oscuro: #0a1626;
    --texto: #333;
    --blanco: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: var(--blanco); color: var(--texto); line-height: 1.6; }

/* 2. HEADER FIJO */
.main-header {
    background: var(--blanco);
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box img { height: 50px; width: auto; }

.nav-list { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-list a { text-decoration: none; color: var(--oscuro); font-weight: 500; font-size: 0.9rem; }
.nav-list a.active { color: var(--azul-bci); }

.btn-wsp-header {
    background: var(--verde-wsp);
    color: white !important;
    padding: 8px 15px;
    border-radius: 50px;
}

/* 3. SLIDER - CORRECCIÓN CRÍTICA (Screenshot 34) */
.slider-container {
    position: relative;
    width: 100%;
    height: 70vh; /* Define altura real para que no colapse */
    background: #000;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la imagen se deforme */
    opacity: 0.6;
}

.slide-content {
    position: absolute; /* Superpone el texto sobre la imagen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    z-index: 10;
}

.slide-content h1 { font-size: 2.5rem; margin-bottom: 15px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }

/* 4. SECCIONES INFERIORES - EMPUJE CORRECTO */
.section-padding {
    padding: 80px 0;
    position: relative; /* Asegura que respete el flujo */
    clear: both;
}

/* footer-grid redefinido en sección FOOTER */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-bci {
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.btn-bci {
    display: inline-block;
    padding: 12px 30px;
    background: var(--azul-bci);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
}

/* 5. SLIDER ARROWS & DOTS */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.3); border: none;
    color: white; font-size: 1.2rem; cursor: pointer;
    z-index: 20; transition: background 0.3s;
}
.slider-arrow:hover { background: rgba(255,255,255,0.6); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 20; }
.slider-dots .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s;
}
.slider-dots .dot.active, .slider-dots .dot:hover { background: white; }

/* 6. SECTION TITLE */
.section-title { text-align: center; font-size: 2rem; color: var(--oscuro); margin-bottom: 20px; }

/* 7. BENEFICIOS (Inicio) */
.beneficios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.beneficio-card { background: rgba(0,98,204,0.06); padding: 40px 30px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: left; }
.beneficio-icon { width: 55px; height: 55px; background: rgba(0,98,204,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--azul-bci); font-size: 1.4rem; }
.beneficio-card h3 { color: var(--oscuro); margin-bottom: 12px; font-size: 1.2rem; font-weight: 700; }
.beneficio-card p { color: #5a6c7d; margin-bottom: 18px; font-size: 0.95rem; line-height: 1.6; }
.beneficio-link { color: var(--azul-bci); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.beneficio-link:hover { text-decoration: underline; }
.beneficio-link i { margin-left: 5px; font-size: 0.8rem; }

/* 8. CTA SECTION */
.cta-section { background: var(--azul-bci); color: white; padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: 2rem; margin-bottom: 15px; }
.cta-section p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.95; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-cta { padding: 14px 35px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.btn-cta-primary { background: white; color: var(--azul-bci); }
.btn-cta-primary:hover { background: #f0f0f0; transform: translateY(-2px); }
.btn-cta-secondary { background: transparent; color: white; border: 2px solid white; }
.btn-cta-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* 9. CLIENTES */
.clientes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.cliente-card { background: #f5f5f5; padding: 30px; border-radius: 12px; text-align: center; box-shadow: 0 3px 15px rgba(0,0,0,0.05); transition: transform 0.3s; }
.cliente-card:hover { transform: translateY(-5px); }
.cliente-inicial { width: 60px; height: 60px; background: var(--azul-bci); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 1.5rem; font-weight: 700; }
.cliente-card p { font-size: 0.9rem; color: #333; }
.testimonios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.testimonio-card { background: white; padding: 35px; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.08); text-align: left; position: relative; }
.testimonio-icon { color: var(--azul-bci); font-size: 2rem; margin-bottom: 15px; opacity: 0.7; }
.testimonio-texto { font-style: italic; color: #555; margin-bottom: 20px; line-height: 1.7; }
.testimonio-autor { font-size: 0.95rem; }
.testimonio-autor strong { display: block; color: var(--oscuro); margin-bottom: 3px; }
.testimonio-estrellas { color: #f4c430; font-size: 1rem; margin-top: 15px; letter-spacing: 2px; }

/* 10. PROYECTOS */
.proyectos-filtros { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.btn-filtro { padding: 10px 25px; border: 1px solid #ddd; background: white; border-radius: 50px; cursor: pointer; font-weight: 500; transition: all 0.3s; }
.btn-filtro:hover, .btn-filtro.active { background: var(--azul-bci); color: white; border-color: var(--azul-bci); }
.proyectos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.proyecto-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.08); transition: transform 0.3s; }
.proyecto-card:hover { transform: translateY(-8px); }
.proyecto-img { height: 220px; overflow: hidden; background: #e8e8e8; }
.proyecto-img img { width: 100%; height: 100%; object-fit: cover; }
.proyecto-info { padding: 25px; }
.proyecto-info h3 { color: var(--oscuro); margin-bottom: 8px; font-size: 1.2rem; }
.proyecto-info p { color: var(--azul-bci); font-size: 0.9rem; }
.proyecto-info i { margin-right: 6px; }

/* 11. SERVICIOS */
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.servicio-card { background: white; padding: 35px 30px; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.08); text-align: left; transition: transform 0.3s; }
.servicio-card:hover { transform: translateY(-5px); }
.servicio-icon { width: 50px; height: 50px; background: var(--azul-bci); color: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.2rem; }
.servicio-card h3 { color: var(--oscuro); margin-bottom: 12px; font-size: 1.15rem; }
.servicio-card p { color: #666; font-size: 0.95rem; line-height: 1.6; }

/* 12. NOSOTROS */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image img { width: 100%; border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.valores-list { list-style: none; }
.valores-list li { padding: 12px 0; border-bottom: 1px solid #eee; color: #555; }
.valores-list li:last-child { border-bottom: none; }
.stats-section { background: #f8f9fa; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-card { background: white; padding: 40px 25px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.stat-icon { width: 70px; height: 70px; background: var(--azul-bci); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--azul-bci); margin-bottom: 5px; }
.stat-label { font-size: 0.95rem; color: #666; }
.timeline { max-width: 700px; margin: 0 auto; }
.timeline-item { padding: 25px 0; border-left: 3px solid var(--azul-bci); padding-left: 35px; margin-left: 15px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -9px; top: 28px; width: 15px; height: 15px; background: var(--azul-bci); border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 2px var(--azul-bci); }
.timeline-year { color: var(--azul-bci); font-weight: 700; margin-right: 15px; font-size: 1.1rem; }
.timeline-text { color: #555; }

/* 13. CONTACTO */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact-info-card, .contact-form-card { background: white; padding: 40px; border-radius: 15px; box-shadow: 0 5px 30px rgba(0,0,0,0.08); }
.contact-info-card h3, .contact-form-card h3 { color: var(--oscuro); margin-bottom: 25px; font-size: 1.3rem; }
.contact-item { display: flex; gap: 20px; margin-bottom: 25px; align-items: flex-start; }
.contact-icon { width: 45px; height: 45px; min-width: 45px; background: rgba(0,98,204,0.1); color: var(--azul-bci); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.contact-item strong { display: block; margin-bottom: 3px; }
.horario-card { background: #f8f9fa; padding: 25px; border-radius: 12px; margin-top: 30px; }
.horario-card h4 { color: var(--oscuro); margin-bottom: 15px; font-size: 1.1rem; }
.horario-card p { margin: 8px 0; color: #555; font-size: 0.95rem; }
.horario-card .emergencias { color: var(--azul-bci) !important; margin-top: 15px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.btn-block { width: 100%; text-align: center; border: none; cursor: pointer; padding: 14px; font-size: 1rem; }
.btn-block i { margin-right: 8px; }

/* 14. RECLAMACIONES */
.reclamaciones-info-banner { background: rgba(0,98,204,0.08); padding: 30px 40px; border-radius: 12px; margin-bottom: 40px; }
.reclamaciones-info-banner h3 { color: var(--azul-bci); margin-bottom: 15px; }
.reclamaciones-info-banner p { color: #555; line-height: 1.7; }
.reclamaciones-grid { display: grid; grid-template-columns: 350px 1fr; gap: 40px; align-items: start; }
.reclamaciones-proceso, .reclamaciones-form-card { background: white; padding: 40px; border-radius: 15px; box-shadow: 0 5px 30px rgba(0,0,0,0.08); }
.reclamaciones-proceso h3, .reclamaciones-form-card h3 { color: var(--oscuro); margin-bottom: 25px; }
.proceso-lista { list-style: none; counter-reset: paso; }
.proceso-lista li { position: relative; padding: 20px 0 20px 60px; border-bottom: 1px solid #eee; color: #555; line-height: 1.6; }
.proceso-lista li:last-child { border-bottom: none; }
.proceso-lista li span { position: absolute; left: 0; top: 18px; width: 35px; height: 35px; background: var(--azul-bci); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }

/* 15. FOOTER */
.footer { background: var(--oscuro); color: rgba(255,255,255,0.9); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-col p, .footer-col ul { font-size: 0.95rem; line-height: 1.8; opacity: 0.9; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col .libro-item { margin-top: 15px; }
.footer-col .link-libro { display: block; position: relative; width: 170px; text-decoration: none; overflow: hidden; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); transition: all 0.3s; }
.footer-col .link-libro:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,98,204,0.5); }
.footer-col .libro-imagen { display: block; position: relative; height: 120px; background: var(--azul-bci); padding: 6px; }
.footer-col .libro-imagen img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.footer-col .libro-texto { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); padding: 10px 8px; background: transparent; color: var(--oscuro) !important; font-size: 0.9rem; font-weight: 700; text-align: center; text-shadow: 0 1px 2px rgba(255,255,255,0.8); }
.footer-col .link-libro:hover .libro-texto { background: transparent; color: #0a1626 !important; }
.footer-col a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer-col a:hover { color: white; text-decoration: underline; }
/* Iconos de contacto en footer: color azul para resaltar */
.footer-contact p { display: flex; align-items: center; gap: 8px; }
.footer-contact p i { color: var(--azul-bci) !important; }
.footer-contact p a i { color: var(--azul-bci) !important; }
.footer-contact p a,
.footer-contact p { word-break: break-all; }
/* Logo en el footer: colores originales, dentro de un cuadro blanco */
.footer-logo-box { background: white; padding: 12px 20px; border-radius: 8px; display: inline-block; margin-bottom: 20px; }
.footer-logo { height: 50px; width: auto; object-fit: contain; display: block; filter: none; }
.footer-bottom { margin-top: 50px; padding: 25px 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.9rem; opacity: 0.8; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 40px; height: 40px; background: var(--azul-bci); color: white !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.social-links a:hover { background: #004a99; color: white !important; text-decoration: none; opacity: 0.9; }

/* 16. WHATSAPP FLOATING */
.btn-wsp-float { position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; background: var(--verde-wsp); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; z-index: 999; box-shadow: 0 4px 20px rgba(37,211,102,0.5); transition: transform 0.3s; }
.btn-wsp-float:hover { transform: scale(1.1); color: white; }

/* RESPONSIVE */
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-list.active { display: flex; }
    .slider-container { height: 50vh; }
    .slide-content h1 { font-size: 1.8rem; }
    .beneficios-grid { grid-template-columns: 1fr; }
    .clientes-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonios-grid { grid-template-columns: 1fr; }
    .proyectos-grid { grid-template-columns: repeat(2, 1fr); }
    .servicios-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .reclamaciones-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
}

@media (max-width: 768px) {
    .clientes-grid { grid-template-columns: 1fr; }
    .proyectos-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}