/* ============================================
   ENCABEZADO Y PIE DE PÁGINA GEST-TO
   ============================================ */

/* Reset mínimo para el header/footer (aislado) */
.gestto-main-header *,
.gestto-main-footer * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---- ENCABEZADO ---- */
.gestto-main-header {
    font-family: 'Inter', 'Uni Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #FFFFFF;
    border-bottom: 1px solid #e0ecee;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.header-logo {
    flex-shrink: 0;
    display: block;
}
.header-logo img {
    height: 50px;
    width: auto;
    display: block;
}
.header-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}
.header-nav .nav-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: #4a5b60;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}
.header-nav .nav-link:hover,
.header-nav .nav-link.active {
    color: #0093AD;
}
.header-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #20A537;
    transition: width 0.3s ease;
}
.header-nav .nav-link:hover::after,
.header-nav .nav-link.active::after {
    width: 100%;
}

/* Acciones del header (botones) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-clientes {
    background: transparent;
    color: #0093AD;
    border: 2px solid #0093AD;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-clientes:hover {
    background: #0093AD;
    color: white;
    transform: translateY(-1px);
}
.header-cta {
    background: #20A537;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
    font-size: 0.9rem;
}
.header-cta:hover {
    background: #16802b;
    transform: translateY(-1px);
}

/* Botón hamburguesa */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: #0093AD;
    border-radius: 3px;
    transition: 0.3s;
}

/* ---- PIE DE PÁGINA ---- */
.gestto-main-footer {
    font-family: 'Inter', 'Uni Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #F9FCFC;
    border-top: 1px solid #e0ecee;
    padding: 60px 0 0;
    color: #4a5b60;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: space-between;
}
.footer-col {
    flex: 1 1 220px;
    min-width: 200px;
}
.footer-col h3 {
    color: #0093AD;
    font-family: 'Inter', 'Poppins', 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-col p,
.footer-col li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 0.95rem;
}
.footer-logo {
    margin-bottom: 16px;
    height: 40px;
    width: auto;
}
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 1.5rem;
}
.footer-social a {
    text-decoration: none;
    transition: transform 0.2s;
}
.footer-social a:hover {
    transform: scale(1.2);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li a {
    text-decoration: none;
    color: #4a5b60;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: #0093AD;
}
.footer-bottom {
    text-align: center;
    padding: 24px 24px;
    margin-top: 40px;
    border-top: 1px solid #e0ecee;
    font-size: 0.85rem;
}
.footer-bottom a {
    color: #20A537;
    font-weight: 600;
    text-decoration: none;
}
.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 24px;
        border-bottom: 2px solid #0093AD;
    }
    .header-nav.active {
        display: flex;
    }
    .header-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    .header-actions {
        display: none; /* Se oculta en móvil; se puede mostrar dentro del menú si se requiere */
    }
    .mobile-menu-toggle {
        display: block;
    }
    .footer-container {
        gap: 32px;
    }
}