﻿/* ============================================
   GEST SISTEMAS A MEDIDA S.A.C.S.
   Hoja de estilos principal
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* --- Variables globales --- */
:root {
    /* Colores corporativos */
    --color-primario: #1c4673;
    --color-secundario: #2a3b44;
    --color-base: #FCFCFC;
    --color-acento: #2E7ABF;
    --color-neutro: #6B7B8D;
    /* Colores de texto */
    --texto-oscuro: #2a3b44;
    --texto-claro: #FCFCFC;
    --texto-secundario: #6B7B8D;
    --texto-parrafo: #4A5568;
    /* Bordes y fondos */
    --borde-claro: #E2E8F0;
    --fondo-gris: #F1F5F9;
    --fondo-oscuro: #2a3b44;
    /* Tipografía */
    --fuente-titulos: 'Poppins', sans-serif;
    --fuente-cuerpo: 'Inter', sans-serif;
    /* Espaciado de secciones */
    --seccion-padding: 80px 0;
    --seccion-padding-sm: 50px 0;
}

/* --- Reset y base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-cuerpo);
    font-size: 16px;
    line-height: 1.7;
    color: var(--texto-oscuro);
    background-color: var(--color-base);
    overflow-x: hidden;
}

/* --- Tipografía general --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    color: var(--texto-oscuro);
    line-height: 1.2;
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    font-family: var(--fuente-cuerpo);
    color: var(--texto-parrafo);
    margin-bottom: 1rem;
}

a {
    color: var(--color-primario);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--color-acento);
    }

/* --- Utilidades --- */
.text-primario {
    color: var(--color-primario);
}

.text-acento {
    color: var(--color-acento);
}

.text-neutro {
    color: var(--color-neutro);
}

.bg-primario {
    background-color: var(--color-primario);
}

.bg-secundario {
    background-color: var(--color-secundario);
}

.bg-base {
    background-color: var(--color-base);
}

.bg-gris {
    background-color: var(--fondo-gris);
}

.seccion {
    padding: var(--seccion-padding);
}

.seccion-titulo {
    font-family: var(--fuente-titulos);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--texto-oscuro);
    margin-bottom: 1rem;
}

.seccion-subtitulo {
    font-family: var(--fuente-cuerpo);
    font-size: 1.1rem;
    color: var(--texto-secundario);
    max-width: 600px;
}

.seccion-linea {
    width: 60px;
    height: 3px;
    background-color: var(--color-primario);
    margin-bottom: 1.5rem;
}

/* --- Botones --- */
.btn-gest-primario {
    font-family: var(--fuente-cuerpo);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--texto-claro);
    background-color: var(--color-primario);
    border: 2px solid var(--color-primario);
    padding: 12px 32px;
    border-radius: 0;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

    .btn-gest-primario:hover {
        background-color: var(--color-acento);
        border-color: var(--color-acento);
        color: var(--texto-claro);
    }

.btn-gest-outline {
    font-family: var(--fuente-cuerpo);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primario);
    background-color: transparent;
    border: 2px solid var(--color-primario);
    padding: 12px 32px;
    border-radius: 0;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

    .btn-gest-outline:hover {
        background-color: var(--color-primario);
        color: var(--texto-claro);
    }

.btn-gest-outline-light {
    font-family: var(--fuente-cuerpo);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--texto-claro);
    background-color: transparent;
    border: 2px solid rgba(252, 252, 252, 0.4);
    padding: 12px 32px;
    border-radius: 0;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

    .btn-gest-outline-light:hover {
        background-color: rgba(252, 252, 252, 0.15);
        border-color: rgba(252, 252, 252, 0.7);
        color: var(--texto-claro);
    }

.btn-gest-secundario {
    font-family: var(--fuente-cuerpo);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--texto-secundario);
    background-color: transparent;
    border: 1px solid var(--borde-claro);
    padding: 10px 24px;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

    .btn-gest-secundario:hover {
        border-color: var(--color-primario);
        color: var(--color-primario);
    }

/* --- Tarjetas de servicio --- */
.tarjeta-servicio {
    background-color: #fff;
    border: 1px solid var(--borde-claro);
    border-top: 3px solid var(--color-primario);
    border-radius: 0;
    padding: 28px 24px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .tarjeta-servicio:hover {
        border-top-color: var(--color-acento);
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(28, 70, 115, 0.1);
    }

    .tarjeta-servicio .icono-servicio {
        width: 48px;
        height: 48px;
        background-color: #EBF1F8;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 16px;
        border-radius: 0;
    }

        .tarjeta-servicio .icono-servicio i {
            font-size: 1.25rem;
            color: var(--color-primario);
        }

    .tarjeta-servicio h4 {
        font-family: var(--fuente-titulos);
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .tarjeta-servicio p {
        font-size: 0.9rem;
        color: var(--texto-secundario);
        flex-grow: 1;
    }

    .tarjeta-servicio .enlace-detalle {
        font-family: var(--fuente-cuerpo);
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--color-primario);
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .tarjeta-servicio .enlace-detalle:hover {
            color: var(--color-acento);
            gap: 10px;
        }

/* --- Footer --- */
.footer-gest {
    background-color: var(--color-primario);
    padding: 48px 0 0;
    color: var(--texto-claro);
}

    .footer-gest h5 {
        font-family: var(--fuente-titulos);
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--texto-claro);
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(252, 252, 252, 0.12);
    }

    .footer-gest p {
        font-size: 0.88rem;
        color: rgba(252, 252, 252, 0.6);
        line-height: 1.6;
    }

    /* Enlaces del footer */
    .footer-gest .footer-enlaces li {
        margin-bottom: 10px;
    }

    .footer-gest .footer-enlaces a {
        font-size: 0.88rem;
        color: rgba(252, 252, 252, 0.6);
        transition: all 0.3s ease;
        text-decoration: none;
    }

        .footer-gest .footer-enlaces a:hover {
            color: var(--texto-claro);
            padding-left: 4px;
        }

/* Contacto del footer */
.footer-contacto-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .footer-contacto-item > i {
        font-size: 1rem;
        color: var(--color-acento);
        margin-top: 3px;
        flex-shrink: 0;
    }

    .footer-contacto-item div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .footer-contacto-item div a,
        .footer-contacto-item div span {
            font-size: 0.82rem;
            color: rgba(252, 252, 252, 0.6);
            text-decoration: none;
            transition: color 0.3s ease;
            line-height: 1.5;
        }

            .footer-contacto-item div a:hover {
                color: var(--texto-claro);
            }

/* Redes sociales */
.footer-redes {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

    .footer-redes a {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(252, 252, 252, 0.2);
        color: rgba(252, 252, 252, 0.6);
        transition: all 0.3s ease;
        text-decoration: none;
    }

        .footer-redes a:hover {
            background-color: rgba(252, 252, 252, 0.1);
            border-color: rgba(252, 252, 252, 0.4);
            color: var(--texto-claro);
        }

        .footer-redes a i {
            font-size: 1rem;
        }

/* Línea inferior */
.footer-gest .footer-bottom {
    border-top: 1px solid rgba(252, 252, 252, 0.12);
    padding: 16px 0;
    margin-top: 40px;
}

    .footer-gest .footer-bottom p {
        font-size: 0.78rem;
        color: rgba(252, 252, 252, 0.35);
        margin: 0;
    }

/* Footer responsive */
@media (max-width: 575.98px) {
    .footer-gest {
        padding: 36px 0 0;
    }

        .footer-gest h5 {
            font-size: 0.95rem;
            margin-bottom: 14px;
            padding-bottom: 10px;
        }

    .footer-contacto-item div a,
    .footer-contacto-item div span {
        font-size: 0.78rem;
    }

    .footer-gest .footer-bottom {
        margin-top: 28px;
    }
}

/* --- Botón WhatsApp flotante --- */
.btn-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

    .btn-whatsapp:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }

    .btn-whatsapp i {
        font-size: 1.75rem;
        color: #fff;
    }

/* --- Responsive --- */
@media (max-width: 991.98px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .seccion {
        padding: var(--seccion-padding-sm);
    }

    .seccion-titulo {
        font-size: 1.75rem;
    }

    .navbar-gest .nav-link {
        padding: 10px 0;
    }

        .navbar-gest .nav-link.active::after {
            display: none;
        }

    .navbar-gest .navbar-collapse {
        padding: 16px 0;
        border-top: 1px solid rgba(252, 252, 252, 0.1);
    }

    .navbar-gest .btn-contacto-nav {
        display: inline-block;
        margin-top: 10px;
    }
}

@media (max-width: 575.98px) {
    h1 {
        font-size: 1.75rem;
    }

    .seccion {
        padding: 40px 0;
    }
}

/* --- Sección CTA (global - contacto rápido) --- */
.seccion-cta {
    background-color: var(--color-secundario);
    padding: 60px 0;
}

/* --- Banner superior de página interna --- */
.banner-pagina {
    position: relative;
    /* REEMPLAZAR: Cambiar el color por imagen de fondo:
       background: url('/Content/images/banner-empresa.jpg') center center / cover no-repeat; */
    background-color: var(--color-secundario);
    padding: 160px 0 60px;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 59, 68, 0.88);
    z-index: 1;
}

.banner-contenido h1 {
    font-family: var(--fuente-titulos);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--texto-claro);
    margin-bottom: 12px;
}

.banner-contenido p {
    font-size: 1.1rem;
    color: rgba(252, 252, 252, 0.7);
    max-width: 520px;
    margin-bottom: 20px;
}

/* Breadcrumb personalizado */
.breadcrumb-gest {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

    .breadcrumb-gest li {
        font-family: var(--fuente-cuerpo);
        font-size: 0.85rem;
        color: rgba(252, 252, 252, 0.5);
    }

        .breadcrumb-gest li a {
            color: rgba(252, 252, 252, 0.7);
            transition: color 0.3s ease;
        }

            .breadcrumb-gest li a:hover {
                color: var(--texto-claro);
            }

        .breadcrumb-gest li + li::before {
            content: '/';
            margin-right: 8px;
            color: rgba(252, 252, 252, 0.35);
        }

        .breadcrumb-gest li.activo {
            color: var(--color-acento);
        }

/* --- Imagen placeholder (temporal) --- */
.imagen-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fuente-cuerpo);
    font-size: 0.9rem;
    color: var(--texto-secundario);
    border: 2px dashed var(--borde-claro);
}

/* --- Badge --- */
.badge-gest {
    display: inline-block;
    font-family: var(--fuente-cuerpo);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primario);
    background-color: #EBF1F8;
    padding: 6px 14px;
    letter-spacing: 1px;
    border-radius: 0;
}

/* ============================================
   ANIMACIONES DE ENTRADA
   Agregar al final de site.css
   ============================================ */

.animar-entrada {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .animar-entrada.visible {
        opacity: 1;
        transform: translateY(0);
    }
