/* ============================================================
   SACOT GRUPO EMPRESARIAL — Estilos Globales del Sitio
   Navbar · Footer · Base · Utilidades
   ============================================================ */

/* ── Variables de diseño ────────────────────────────────────── */
:root {
    --navy:          #0b1f3a;
    --navy-mid:      #163152;
    --navy-light:    #1a3d5c;
    --blue:          #0d6ebc;
    --blue-light:    #1a86db;
    --cyan:          #009ccc;
    --cyan-light:    #00bcd4;
    --cyan-glow:     rgba(0,156,204,.35);
    --gold:          #f0a500;
    --white:         #ffffff;
    --gray-50:       #f8fafc;
    --gray-100:      #f1f5f9;
    --gray-200:      #e2e8f0;
    --gray-400:      #94a3b8;
    --gray-500:      #64748b;
    --gray-700:      #334155;
    --gray-900:      #0f172a;
    --text:          #0f172a;
    --text-muted:    #64748b;
    --shadow-sm:     0 1px 4px rgba(0,0,0,.06);
    --shadow-md:     0 4px 16px rgba(0,0,0,.09);
    --shadow-lg:     0 10px 32px rgba(0,0,0,.12);
    --shadow-xl:     0 20px 56px rgba(0,0,0,.16);
    --radius-sm:     6px;
    --radius:        12px;
    --radius-lg:     20px;
    --ease:          cubic-bezier(.4,0,.2,1);
    --font:          'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Base del contenedor principal — padding lo controla cada página via py-5 o @push */
main.container {
    background: none;
    box-shadow: none;
    border-radius: 0;
    max-width: 1400px;
}

/* ── NAVBAR ──────────────────────────────────────────────────── */
.navbar-sacot {
    background: var(--white);
    padding: .6rem 0;
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
    z-index: 1040;
}

.navbar-sacot.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.09);
    border-bottom-color: transparent;
}

/* Brand */
.navbar-sacot .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 0;
}
.navbar-sacot .brand-logo {
    height: 44px;
    width: auto;
    transition: transform .3s var(--ease);
}
.navbar-sacot .brand-logo:hover { transform: scale(1.04); }
.navbar-sacot .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.navbar-sacot .brand-name {
    font-size: .82rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: .01em;
    white-space: nowrap;
}
.navbar-sacot .brand-sub {
    font-size: .62rem;
    font-weight: 500;
    color: var(--cyan);
    letter-spacing: .07em;
    text-transform: uppercase;
}

/* Links */
.navbar-sacot .nav-link {
    font-size: .85rem;
    font-weight: 500;
    color: var(--gray-500);
    padding: .5rem .8rem !important;
    position: relative;
    transition: color .2s var(--ease);
}
.navbar-sacot .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%; right: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    border-radius: 2px;
    transition: left .25s var(--ease), right .25s var(--ease);
}
.navbar-sacot .nav-link:hover,
.navbar-sacot .nav-link.active { color: var(--navy); }
.navbar-sacot .nav-link:hover::after,
.navbar-sacot .nav-link.active::after { left: .8rem; right: .8rem; }

/* CTA pill */
.navbar-sacot .nav-link.btn-nav-cta {
    background: var(--cyan);
    color: var(--white) !important;
    border-radius: 24px;
    padding: .42rem 1.15rem !important;
    font-weight: 600;
    font-size: .8rem;
    margin-left: .35rem;
    transition: background .2s var(--ease), transform .2s, box-shadow .2s;
}
.navbar-sacot .nav-link.btn-nav-cta::after { display: none; }
.navbar-sacot .nav-link.btn-nav-cta:hover {
    background: var(--blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,156,204,.4);
}

/* Dropdown */
.navbar-sacot .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    margin-top: .5rem !important;
    min-width: 210px;
    border-top: 3px solid var(--cyan);
    animation: dropdown-in .2s var(--ease);
}
@keyframes dropdown-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.navbar-sacot .dropdown-item {
    border-radius: var(--radius-sm);
    font-size: .83rem;
    font-weight: 500;
    color: var(--gray-700);
    padding: .6rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s, color .15s;
}
.navbar-sacot .dropdown-item:hover,
.navbar-sacot .dropdown-item.active {
    background: var(--gray-100);
    color: var(--navy);
}
.navbar-sacot .dropdown-item .dd-icon {
    width: 20px;
    text-align: center;
    color: var(--cyan);
    font-size: .78rem;
}

/* Toggler */
.navbar-sacot .navbar-toggler {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: .4rem .6rem;
}
.navbar-sacot .navbar-toggler:focus { box-shadow: none; }

/* Hover dropdown en desktop */
@media (min-width: 992px) {
    .navbar-sacot .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer-sacot {
    background: var(--navy);
    color: var(--gray-400);
    font-family: var(--font);
    position: relative;
    overflow: hidden;
}

/* Línea de color superior */
.footer-sacot::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan) 0%, var(--blue-light) 50%, var(--cyan-light) 100%);
}

/* Círculo decorativo de fondo */
.footer-sacot::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(0,156,204,.06) 0%, transparent 65%);
    pointer-events: none;
}

.footer-inner { padding: 4rem 0 2rem; }

/* Logo en footer */
.footer-logo {
    height: 42px;
    filter: brightness(0) invert(1);
    opacity: .8;
    margin-bottom: 12px;
    display: block;
}
.footer-brand-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    line-height: 1.3;
}
.footer-brand-desc {
    font-size: .78rem;
    line-height: 1.65;
    color: var(--gray-400);
    margin-bottom: 0;
}

/* Redes sociales */
.footer-socials {
    display: flex;
    gap: 9px;
    margin-top: 1.1rem;
}
.social-pill {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--gray-400);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .82rem;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.social-pill:hover {
    background: var(--cyan);
    color: var(--white);
    border-color: var(--cyan);
    transform: translateY(-2px);
}

/* Columnas */
.footer-col-title {
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--white);
    margin-bottom: .9rem;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--gray-400);
    text-decoration: none;
    padding: 3px 0;
    transition: color .2s, gap .2s;
}
.footer-nav-link::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--cyan);
    opacity: 0;
    flex-shrink: 0;
    transition: opacity .2s;
}
.footer-nav-link:hover {
    color: var(--cyan-light);
    gap: 8px;
}
.footer-nav-link:hover::before { opacity: 1; }

/* Contacto items */
.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .8rem;
    color: var(--gray-400);
    margin-bottom: 9px;
    line-height: 1.5;
}
.footer-info-item .fi-icon {
    color: var(--cyan);
    font-size: .75rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

/* Barra inferior */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1.2rem 0;
}
.footer-bottom p {
    font-size: .75rem;
    color: rgba(255,255,255,.3);
    margin: 0;
}

/* ── WHATSAPP FLOTANTE ───────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 999;
    width: 56px; height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    text-decoration: none;
    animation: wa-pulse 2.5s infinite;
    transition: transform .2s var(--ease), box-shadow .2s;
}
.whatsapp-float img { width: 30px; height: 30px; }
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 22px rgba(37,211,102,.5);
}
@keyframes wa-pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.4);
    }
    60% {
        box-shadow: 0 4px 16px rgba(37,211,102,.4), 0 0 0 14px rgba(37,211,102,0);
    }
}

/* ── Tipografía de sección (disponible en todas las páginas) ── */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--cyan);
    margin-bottom: .75rem;
}
.section-tag::before {
    content: '';
    display: inline-block;
    width: 20px; height: 2px;
    background: var(--cyan);
    border-radius: 2px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: .75rem;
}
.section-desc {
    font-size: .95rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ── ANIMACIÓN DE ENTRADA (scroll reveal) ───────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }
