/* ═══════════════════════════════════════════
   GLOBAL DESIGN SYSTEM — CCL Energía en Movimiento
   Paleta exacta del Manual de Marca
   ═══════════════════════════════════════════ */

:root {
    /* Colores del manual */
    --naranja:      #F59F35;   /* Naranja Energía — principal */
    --rojo:         #E74419;   /* Rojo Fuego — acento */
    --gris-carbono: #575756;   /* Gris Carbono — texto secundario */
    --negro:        #1A1A1A;   /* Negro Profundo — texto principal */
    --gris-medio:   #9A9A9A;   /* Gris Medio — placeholders, muted */
    --blanco:       #ffffff;

    /* Fondos */
    --bg-page:      #ffffff;
    --bg-light:     #f8f7f5;   /* gris muy cálido, casi blanco */
    --bg-dark:      #1A1A1A;

    /* Utilidades */
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
    --shadow:     0 6px 24px rgba(0,0,0,0.10);
    --shadow-lg:  0 16px 48px rgba(0,0,0,0.14);
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --border:     1px solid rgba(87,87,86,0.15);
}

/* ═══ RESET & BASE ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-page);
    color: var(--negro);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }

/* ═══ UTILIDADES ═══ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 90px 0; position: relative; }

/*
 * JERARQUÍA TIPOGRÁFICA — Manual de Marca CCL (Pág. 12)
 * Montserrat: 300 Light | 400 Regular | 500 Medium | 600 SemiBold | 700 Bold | 800 ExtraBold
 *
 * H1 — Titular Principal   → 800 ExtraBold
 * H2 — Título de Sección   → 700 Bold
 * H3 — Subtítulo de página → 600 SemiBold
 * H4 — Texto Destacado     → 500 Medium
 * Cuerpo / párrafo         → 400 Regular
 * Labels, nav, etiquetas   → 600 SemiBold
 * Auxiliar / captions/pies → 300 Light
 */

h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
h4 { font-weight: 500; }
p, li, td, th { font-weight: 400; }
small, caption, figcaption, .text-aux { font-weight: 300; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;        /* SemiBold — labels y etiquetas */
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--naranja);
    margin-bottom: 14px;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--naranja);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;        /* Bold — H2 título de sección */
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--negro);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 400;        /* Regular — cuerpo de texto */
    color: var(--gris-carbono);
    max-width: 580px;
    line-height: 1.75;
}

/* Highlight = naranja sólido */
.highlight { color: var(--naranja); }

/* Pie de página / auxiliares → Light 300 */
.text-aux, .news-date, .breadcrumb, .footer-bottom p {
    font-weight: 300;
}

/* ═══ BOTONES ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}
.btn-primary {
    background: var(--naranja);
    color: var(--blanco);
}
.btn-primary:hover {
    background: var(--rojo);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(231,68,25,0.35);
}
.btn-secondary {
    background: transparent;
    color: var(--negro);
    border: 2px solid var(--negro);
}
.btn-secondary:hover {
    border-color: var(--naranja);
    color: var(--naranja);
}
.btn-white {
    background: var(--blanco);
    color: var(--negro);
}
.btn-white:hover {
    background: var(--naranja);
    color: var(--blanco);
}

/* ═══ NAVBAR ═══ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--blanco);
    border-bottom: 1px solid rgba(87,87,86,0.12);
    padding: 0;
    transition: box-shadow 0.3s;
}
.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}
.navbar-logo img { height: 76px; width: auto; }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.navbar-links > li > a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gris-carbono);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.navbar-links > li > a:hover,
.navbar-links > li > a.active {
    color: var(--naranja);
    border-bottom-color: var(--naranja);
}
.navbar-cta { display: flex; align-items: center; }
.navbar-cta .btn { padding: 10px 22px; font-size: 12px; border-radius: 4px; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--negro);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.mobile-nav-cta { display: none; }

/* ═══ SVG ICONS ═══ */
/* Iconos SVG dentro de .service-icon-wrap, .tech-icon, .sector-icon, .sf-icon, .mv-icon */
.service-icon-svg {
    width: 36px; height: 36px;
    display: block;
}
.tech-icon svg,
.sector-icon svg,
.sf-icon svg {
    width: 100%; height: 100%;
    display: block;
}
.service-icon-wrap svg { width: 36px; height: 36px; }
.tech-icon      { font-size: 0; }   /* elimina espacio de emoji fallback */
.sector-icon    { font-size: 0; }
.sf-icon        { font-size: 0; }
.mv-icon        { font-size: 0; }
/* Sectores: el contenedor del svg */
.sector-item .sector-icon {
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
}
.sector-item .sector-icon svg { width: 48px; height: 48px; }

/* ═══ REVEAL ANIMATIONS ═══ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══ FOOTER ═══ */
.footer {
    background: var(--negro);
    padding: 70px 0 36px;
    border-top: 3px solid var(--naranja);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img  { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p {
    color: var(--gris-medio);
    font-size: 14px;
    line-height: 1.8;
    max-width: 280px;
}
.footer-col h4 {
    color: var(--blanco);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li  { margin-bottom: 10px; }
.footer-col a   { color: var(--gris-medio); font-size: 14px; }
.footer-col a:hover { color: var(--naranja); }

.footer-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p { color: var(--gris-medio); font-size: 13px; }

.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    display: flex; align-items: center; justify-content: center;
    color: var(--gris-medio);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}
.footer-socials a:hover { background: var(--naranja); color: var(--blanco); }

/* ═══ RESPONSIVE — TABLET + MOBILE ═══ */
@media (max-width: 991px) {
    .container { padding: 0 20px; }
    .navbar-links { display: none; }
    .mobile-toggle { display: block; }
    .navbar-cta { display: none; }          /* ocultar CTA desktop, usar el del menú */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

    .navbar-links.active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 90px; left: 0; right: 0;
        height: calc(100vh - 90px);
        background: var(--blanco);
        z-index: 999;
        padding: 0 0 40px;
        overflow-y: auto;
        border-top: 1px solid var(--border);
        animation: slideDown 0.22s ease;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .navbar-links.active > li:not(.mobile-nav-cta) > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 17px 24px;
        font-size: 15px;
        font-weight: 600;
        color: var(--negro);
        border-bottom: 1px solid var(--border);
    }
    .navbar-links.active > li > a:hover { color: var(--naranja); }
    .navbar-links.active .mobile-nav-cta {
        display: block;
        padding: 20px 24px;
    }
    .navbar-links.active .mobile-nav-cta .btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 15px;
    }

    .section { padding: 64px 0; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .section { padding: 52px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
    .footer-brand p { max-width: 100%; }

    /* Botones full-width en mobile cuando están solos */
    .btn { font-size: 13px; padding: 13px 24px; }
}

@media (max-width: 400px) {
    .container { padding: 0 14px; }
    .navbar .container { height: 62px; }
    .navbar-logo img { height: 34px; }
}
