/*
Theme Name: Focus Theme
Theme URI: https://focusing.com.co/
Author: Lewis Gamboa
Author URI: https://focusing.com.co/
Description: Tema personalizado para FOCUS ING SAS, basado en el portafolio 2025.
Version: 1.1.11
*/

/* --- Paleta de Colores y Variables --- */
:root {
    --focus-dark-blue: #0A2240; /* Azul oscuro principal */
    --focus-green: #4CAF50;     /* Verde de acento */
    --focus-cta-blue: #0096D6;   /* Azul para el botón CTA */
    --focus-light-gray: #f4f7f6; /* Gris claro para fondos */
    --focus-text-dark: #333333; /* Texto principal */
    --focus-text-light: #ffffff; /* Texto sobre fondos oscuros */
}

/* --- Reseteo Básico y Estilos Globales --- */
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--focus-text-dark);
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased; /* Renderizado suave */
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
}

a {
    color: var(--focus-green);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--focus-dark-blue);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5em; /* Espaciado reducido por defecto */
    color: var(--focus-dark-blue);
    font-weight: 700;
}

p {
    margin-top: 0;
    margin-bottom: 1.25em; /* Espaciado estándar para párrafos */
}

p.lead {
    font-size: 1.15rem;
    color: #555;
    font-weight: 400;
    line-height: 1.7;
}

/* --- Listas con Estilo (Nuevas) --- */
ul.styled-list {
    list-style: none;
    padding-left: 0;
}
ul.styled-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
ul.styled-list li::before {
    content: '•';
    color: var(--focus-green);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}
/* Lista compacta para las 3 columnas */
ul.compact-list li {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

ul.check-list {
    list-style: none;
    padding-left: 0;
}
ul.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.check-icon {
    color: var(--focus-green);
    font-weight: 900;
    font-size: 1rem;
    position: absolute;
    left: 0;
    top: 4px;
}


/* --- Encabezado y Navegación --- */
.site-header {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-branding {
    flex-shrink: 0;
}
.site-branding .site-logo {
    max-height: 45px;
    width: auto;
    vertical-align: middle;
}

.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}
.main-navigation .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}
.main-navigation .menu li {
    margin: 0 18px;
}
.main-navigation .menu li a {
    color: var(--focus-text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.main-navigation .menu li a:hover,
.main-navigation .menu li.active a {
    color: var(--focus-green);
    border-bottom-color: var(--focus-green);
}

.header-cta {
    flex-shrink: 0;
}
.header-cta .button-instagram {
    background-color: transparent;
    color: var(--focus-text-dark);
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.header-cta .button-instagram:hover {
    background-color: #f4f4f4;
    color: #333;
    border-color: #ccc;
    transform: translateY(-2px);
}
.header-cta .button-instagram svg {
    width: 18px;
    height: 18px;
    color: #E4405F; /* Color de Instagram */
}

/* Botón de Menú Móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.mobile-menu-toggle .hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--focus-text-dark);
    position: relative;
    transition: background 0.2s ease-out;
}
.mobile-menu-toggle .hamburger-icon::before,
.mobile-menu-toggle .hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--focus-text-dark);
    left: 0;
    transition: transform 0.2s ease-out, top 0.2s ease-out;
}
.mobile-menu-toggle .hamburger-icon::before { top: -7px; }
.mobile-menu-toggle .hamburger-icon::after { top: 7px; }

/* Animación de hamburguesa a X */
.mobile-menu-toggle.active .hamburger-icon { background: transparent; }
.mobile-menu-toggle.active .hamburger-icon::before { transform: rotate(45deg); top: 0; }
.mobile-menu-toggle.active .hamburger-icon::after { transform: rotate(-45deg); top: 0; }


/* --- Banner Principal (Hero) --- */
.hero-banner {
    position: relative;
    height: 85vh; /* Un poco más alto */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--focus-text-light);
    background-image: url('https://i.postimg.cc/t4hwhMR9/En-FOCUS-ING-SAS-hemos-alcanzado-un-importante-logro-y-obtuvimos-la-certificaci-n-RUC-otorgada.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 34, 64, 0.7); /* Overlay translúcido */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--focus-text-light);
    line-height: 1.2; /* Ajustado para 2 líneas */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}
.hero-button {
    background-color: var(--focus-green);
    color: var(--focus-text-light);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.hero-button:hover {
    background-color: #45a049;
    color: var(--focus-text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}


/* --- Contenido de Secciones --- */
.content-section {
    padding: 80px 20px;
}
.content-section[id] {
    scroll-margin-top: 80px; /* Margen para anclas */
}

/* Fondo gris para secciones (NUEVO) */
.bg-light-section {
    background-color: var(--focus-light-gray);
    padding: 60px 20px;
    margin: 60px -20px 0 -20px; /* Expande al ancho completo */
    border-radius: 8px;
}
/* Asegura que el contenedor interno mantenga el padding */
.bg-light-section .container {
    padding: 0 20px;
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 50px;
    color: var(--focus-dark-blue);
    line-height: 0.9; /* Títulos compactos */
}
.subsection-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--focus-dark-blue);
    margin-top: 40px;
    margin-bottom: 25px;
    line-height: 1.0;
    text-align: center;
}

/* --- Estilos "Nosotros" y "Servicios" (Reutilizables) --- */

/* Wrapper principal para un bloque de contenido (Foto + Texto) */
.service-content-wrapper {
    padding: 20px 0;
}
/* El bloque que contiene la grilla de 2 columnas */
.service-content-block {
    display: flex;
    flex-wrap: wrap; /* Permite que se apile en móvil */
    gap: 40px;
    align-items: center; /* Alinea verticalmente */
}
.service-image-container,
.service-description-container {
    flex: 1; /* Ambas columnas toman 50% */
    min-width: 300px; /* Mínimo antes de apilar */
    box-sizing: border-box;
}
.service-description-container {
    text-align: left;
}
.service-description-container p {
    font-size: 1rem;
    color: #555;
}

/* Contenedor de imagen con altura fija */
.service-image-container.fixed-height {
    height: 450px; /* Altura fija para todas las imágenes */
    overflow: hidden;
    border-radius: 8px;
}
.service-image-container.fixed-height img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el contenedor sin distorsionarse */
    transition: transform 0.3s ease;
}
.service-image-container.fixed-height img:hover {
    transform: scale(1.05);
}


/* --- Página Nosotros (Específicos) --- */
.ruc-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    text-align: left;
}
.badge-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-weight: 500;
    color: var(--focus-dark-blue);
    display: flex;
    align-items: center;
    gap: 12px;
}
.badge-item i {
    color: var(--focus-green);
    font-size: 1.3rem;
    width: 25px; /* Ancho fijo para alinear texto */
    text-align: center;
}

/* Grid de Sectores */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}
.sector-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-weight: 700;
    color: var(--focus-dark-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 100px;
}
.sector-item i {
    font-size: 2rem;
    color: var(--focus-green);
}
.sector-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}


/* --- Página Servicios (Específicos) --- */
.service-category {
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}
.service-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.service-category .bg-light-section {
    padding-top: 40px;
    padding-bottom: 40px;
    margin-top: 40px;
}

.service-title {
    font-size: 2.2rem;
    color: var(--focus-dark-blue);
    margin-bottom: 40px;
    text-align: left;
    border-bottom: 3px solid var(--focus-green);
    padding-bottom: 10px;
    display: inline-block;
    line-height: 0.9;
}
.service-subsection h4 {
    line-height: 1.0;
}


/* Columnas de Disciplinas (Ing. Eléctrica, etc.) */
.service-disciplines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}
.discipline-item {
    background-color: #fff; /* Fondo blanco */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.discipline-title {
    font-size: 1.3rem;
    color: var(--focus-dark-blue);
    margin-top: 0;
    margin-bottom: 10px;
}
.discipline-item p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
}


/* --- Botón Flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 100;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}
.whatsapp-float img {
    width: 32px;
    height: 32px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--focus-dark-blue);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-info, .footer-contact {
    flex: 1;
    min-width: 280px;
}
.footer-content a {
    color: var(--focus-text-light);
    font-weight: 500;
}
.footer-content a:hover {
    color: var(--focus-green);
    text-decoration: underline;
}
.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
    /* filter: brightness(0) invert(1); */ /* Eliminado por problemas de renderizado */
    background-color: #ffffff; /* Fondo blanco para el logo oscuro */
    padding: 5px;
    border-radius: 4px;
    box-sizing: border-box; /* Para que el padding no afecte el tamaño */
}
.footer-contact h4 {
    color: var(--focus-text-light);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.footer-contact p {
    font-size: 1rem;
    line-height: 2;
}
.footer-contact strong {
    color: rgba(255, 255, 255, 0.9);
}
.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Media Queries para Responsividad --- */

/* Tablets (donde el menú aún es visible) */
@media (max-width: 992px) {
    .main-navigation {
        display: none; /* Ocultar menú normal */
    }
    .header-cta {
        display: none; /* Ocultar botón "Síguenos" */
    }
    .mobile-menu-toggle {
        display: block; /* Mostrar hamburguesa */
    }
    
    /* Menú desplegable */
    .main-navigation.toggled {
        display: block;
        position: absolute;
        top: 66px; /* Altura del header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .main-navigation .menu {
        flex-direction: column;
        padding: 10px 0;
    }
    .main-navigation .menu li {
        margin: 0;
        text-align: center;
    }
    .main-navigation .menu li a {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }
    .main-navigation .menu li:last-child a {
        border-bottom: none;
    }
    .main-navigation .menu li a:hover,
    .main-navigation .menu li.active a {
        background-color: var(--focus-light-gray);
        border-bottom-color: #f0f0f0; /* Quitar borde verde */
    }

    /* Ajuste de títulos para tablet */
    .hero-title {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .service-title {
        font-size: 1.8rem;
    }
}

/* Móviles */
@media (max-width: 768px) {
    /* Banner móvil */
    .hero-banner {
        height: 70vh;
        min-height: 400px;
        background-attachment: scroll; /* CORRECCIÓN IMPORTANTE para banner móvil */
    }
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1rem;
    }

    /* Secciones */
    .content-section {
        padding: 60px 20px;
    }
    .bg-light-section {
        margin: 40px -20px 0 -20px;
        padding: 40px 20px;
    }
    
    /* Títulos móviles */
    .section-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 30px;
    }
    .subsection-title {
        font-size: 1.5rem;
        line-height: 1.1;
    }
    .service-title {
        font-size: 1.6rem;
        line-height: 1.1;
    }

    /* Bloques de contenido (apilados) */
    .service-content-block {
        flex-direction: column;
        gap: 30px;
    }
    .service-description-container {
        text-align: left; /* Mantener texto justificado a la izquierda */
    }
    .service-image-container.fixed-height {
        height: 250px; /* Reducir altura de imagen en móvil */
        width: 100%;
    }

    /* Grids a 1 columna */
    .sectors-grid,
    .service-disciplines {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom {
        padding: 15px 10px;
        font-size: 0.8rem;
    }

    /* Botón WhatsApp más pequeño */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

