/* ══════════════════════════════════════
   NS QUELL — styles.css
   Tema: Light por defecto / Dark toggle
══════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ══════════════════════════
   VARIABLES POR TEMA
══════════════════════════ */

/* LIGHT (defecto) */
:root,
[data-theme="light"] {
    --blue: #003A70;
    --red: #DA291C;
    --orange: #FF8200;
    --white: #ffffff;
    --dark: #f4f6f9;
    --dark2: #eaedf2;
    --dark3: #ffffff;
    --text-primary: #0d1929;
    --text-secondary: #2c3e55;
    --gray: rgba(20, 40, 70, 0.6);
    --nav-bg: rgba(255, 255, 255, 0.97);
    --nav-border: #e8f0fb;
    --nav-shadow: 0 1px 12px rgba(0, 58, 112, 0.08);
    --nav-btn-border: rgba(0, 58, 112, 0.2);
    --nav-btn-color: #003A70;
    --nav-btn-hover-bg: rgba(0, 58, 112, 0.07);
    --nav-btn-hover-shadow: 0 0 0 3px rgba(255, 130, 0, 0.12);
    --nav-sep: rgba(0, 58, 112, 0.1);
    --card-bg: #ffffff;
    --card-border: rgba(0, 58, 112, 0.12);
    --card-hover-bg: #f0f4fa;
    --servicio-bg: #ffffff;
    --servicio-grid-bg: rgba(0, 58, 112, 0.08);
    --cliente-bg: rgba(0, 58, 112, 0.04);
    --cliente-border: rgba(0, 58, 112, 0.1);
    --cliente-hover-bg: rgba(255, 130, 0, 0.08);
    --cliente-logo-filter: brightness(0) opacity(0.4);
    --cliente-logo-hover-filter: brightness(1) opacity(1);
    --tl-line: rgba(0, 58, 112, 0.12);
    --tl-dot-bg: rgba(0, 58, 112, 0.1);
    --tl-dot-border: rgba(0, 58, 112, 0.2);
    --input-bg: rgba(0, 58, 112, 0.04);
    --input-border: rgba(0, 58, 112, 0.15);
    --input-color: #0d1929;
    --placeholder-color: rgba(0, 58, 112, 0.3);
    --footer-bg: #0a1929;
    --card-shadow: 0 2px 16px rgba(0, 58, 112, 0.08);
}

/* DARK */
[data-theme="dark"] {
    --blue: #003A70;
    --red: #DA291C;
    --orange: #FF8200;
    --white: #ffffff;
    --dark: #0a0f1a;
    --dark2: #06111f;
    --dark3: #0d1929;
    --text-primary: #ffffff;
    --text-secondary: #e0e8f0;
    --gray: rgba(255, 255, 255, 0.55);
    --nav-bg: rgba(0, 58, 112, 0.92);
    --nav-border: #FF8200;
    --nav-shadow: none;
    --nav-btn-border: rgba(255, 255, 255, 0.25);
    --nav-btn-color: rgba(255, 255, 255, 0.8);
    --nav-btn-hover-bg: rgba(255, 255, 255, 0.1);
    --nav-btn-hover-shadow: 0 0 0 3px rgba(255, 130, 0, 0.18);
    --nav-sep: rgba(255, 255, 255, 0.15);
    --card-bg: var(--dark3);
    --card-border: rgba(255, 130, 0, 0.15);
    --card-hover-bg: #111e30;
    --servicio-bg: var(--dark3);
    --servicio-grid-bg: rgba(255, 130, 0, 0.12);
    --cliente-bg: rgba(255, 255, 255, 0.03);
    --cliente-border: rgba(255, 255, 255, 0.08);
    --cliente-hover-bg: rgba(255, 130, 0, 0.07);
    --cliente-logo-filter: brightness(0) invert(1) opacity(0.55);
    --cliente-logo-hover-filter: brightness(1) invert(0) opacity(1);
    --tl-line: rgba(255, 255, 255, 0.08);
    --tl-dot-bg: rgba(255, 255, 255, 0.1);
    --tl-dot-border: rgba(255, 255, 255, 0.2);
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-color: #ffffff;
    --placeholder-color: rgba(255, 255, 255, 0.2);
    --footer-bg: #020810;
    --card-shadow: none;
}

/* ══════════════════════════
   BASE
══════════════════════════ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background 0.35s, color 0.35s;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 3px;
}

/* ══════════════════════════
   NAV
══════════════════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 72px;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    border-bottom: 2px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

    .nav-logo img {
        height: 70px;
        object-fit: contain;
    }

/* Logos condicionales */
[data-theme="light"] .logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: block;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

.nav-logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

[data-theme="light"] .nav-logo-text {
    color: #003A70;
}

[data-theme="dark"] .nav-logo-text {
    color: #ffffff;
}

.nav-logo-text span {
    color: var(--orange);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

    .nav-links a {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        text-decoration: none;
        transition: color 0.2s;
        position: relative;
        padding-bottom: 2px;
    }

[data-theme="light"] .nav-links a {
    color: #2c3e55;
}

[data-theme="dark"] .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s;
}

[data-theme="light"] .nav-links a:hover {
    color: #003A70;
}

[data-theme="dark"] .nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--orange) !important;
    color: var(--white) !important;
    padding: 7px 18px;
    border-radius: 2px;
}

    .nav-cta:hover {
        background: var(--red) !important;
    }

    .nav-cta::after {
        display: none !important;
    }

.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ══════════════════════════
   BOTONES NAV — base unificada
   (.intranet-link, .theme-toggle, #langBtn, .hamburger)
══════════════════════════ */
.nav-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1.5px solid var(--nav-btn-border);
    background: transparent;
    color: var(--nav-btn-color);
    cursor: pointer;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

    .nav-btn svg {
        width: 17px;
        height: 17px;
        pointer-events: none;
        flex-shrink: 0;
    }

    .nav-btn i {
        font-size: 16px;
        pointer-events: none;
    }

    .nav-btn:hover {
        background: var(--nav-btn-hover-bg);
        border-color: var(--orange);
        color: var(--orange);
        box-shadow: var(--nav-btn-hover-shadow);
    }

/* Separador entre grupos */
.nav-sep {
    width: 1px;
    height: 22px;
    background: var(--nav-sep);
    flex-shrink: 0;
    margin: 0 2px;
}

/* Hamburger: 3 líneas dentro del cuadrado */
.hamburger {
    flex-direction: column;
    gap: 4px;
    display: none;
}

    .hamburger span {
        display: block;
        width: 16px;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
        pointer-events: none;
    }

/* Íconos del toggle tema */
.theme-toggle .icon-dark {
    display: none;
}

.theme-toggle .icon-light {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-dark {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-light {
    display: none;
}

/* ══════════════════════════
   HERO CON CARRUSEL
══════════════════════════ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .carousel-slide.active {
        opacity: 1;
    }

.hero-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(1px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-accent-line {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 60%;
    background: linear-gradient(to bottom, var(--orange), var(--red));
    border-radius: 0 2px 2px 0;
    z-index: 4;
}

.hero-inner {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 5%;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
    max-width: 700px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.indicator {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .indicator.active {
        background: var(--orange);
        width: 60px;
    }

    .indicator:hover {
        background: rgba(255, 130, 0, 0.8);
    }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.2s forwards;
}

    .hero-tag::before {
        content: '';
        display: block;
        width: 36px;
        height: 2px;
        background: var(--orange);
    }

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.6rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.35s forwards;
    color: white;
}

    .hero-title .line-accent {
        color: var(--orange);
    }

    .hero-title .line-orange {
        color: var(--red);
    }

.hero-sub {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    max-width: 500px;
    line-height: 1.75;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.5s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.65s forwards;
}

.btn-primary {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    padding: 13px 30px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 0.2s, transform 0.2s;
}

    .btn-primary:hover {
        background: #e67300;
        transform: translateY(-2px);
    }

.btn-secondary {
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    text-decoration: none;
    padding: 13px 30px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: border-color 0.2s, transform 0.2s;
}

    .btn-secondary:hover {
        border-color: var(--white);
        transform: translateY(-2px);
    }

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeUp 0.7s 0.8s forwards;
}

.stat-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-top: 4px;
}

.hero-right-logo {
    display: flex;
    justify-content: center;
}

    .hero-right-logo img {
        height: 80px;
        object-fit: contain;
        filter: brightness(1.1);
    }

.hero-img-frame:hover .hero-img-right {
    transform: scale(1.03);
}

.hero-img-badge {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    background: rgba(0, 20, 50, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 130, 0, 0.3);
    border-radius: 3px;
    padding: 0.6rem 1rem;
}

.badge-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--orange);
    display: block;
    line-height: 1;
}

.badge-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 2px;
}

/* ══════════════════════════
   COMMON
══════════════════════════ */
section {
    padding: 2rem 5%;
}

.section-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

    .section-tag::before {
        content: '';
        display: block;
        width: 28px;
        height: 2px;
        background: var(--orange);
    }

    .section-tag.centered {
        justify-content: center;
    }

        .section-tag.centered::before {
            display: none;
        }

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

    .section-title .accent {
        color: var(--orange);
    }

.section-desc {
    font-size: 0.98rem;
    font-weight: 300;
    color: var(--gray);
    line-height: 1.8;
    max-width: 560px;
}

    .section-desc.centered {
        text-align: center;
        margin: 0 auto;
    }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* ══════════════════════════
   NOSOTROS
══════════════════════════ */
#nosotros {
    background: var(--dark2);
    transition: background 0.35s;
}

.nosotros-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nosotros-img-wrap {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.nosotros-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.nosotros-img-wrap:hover .nosotros-img {
    transform: scale(1.03);
}

.chips-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 130, 0, 0.1);
    border: 1px solid rgba(255, 130, 0, 0.3);
    border-radius: 2px;
    padding: 6px 12px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
}

[data-theme="light"] .chip {
    background: rgba(255, 130, 0, 0.08);
    border-color: rgba(255, 130, 0, 0.35);
}

.mvv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mvv-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 3px;
    padding: 1.4rem;
    box-shadow: var(--card-shadow);
    transition: background 0.35s;
}

[data-theme="light"] .mvv-card {
    background: #f0f5fb;
    border-color: rgba(0, 58, 112, 0.14);
}

[data-theme="dark"] .mvv-card {
    background: linear-gradient(135deg, var(--blue), #001d3d);
    border-color: rgba(255, 130, 0, 0.15);
}

.mvv-icon {
    width: 36px;
    height: 36px;
    color: var(--orange);
    margin-bottom: 0.8rem;
}

    .mvv-icon svg {
        width: 100%;
        height: 100%;
    }

.mvv-card h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--orange);
    margin-bottom: 0.4rem;
}

.mvv-card p {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.65;
}

/* ══════════════════════════
   SERVICIOS
══════════════════════════ */
#servicios {
    background: var(--dark);
    transition: background 0.35s;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5px;
    background: var(--servicio-grid-bg);
    border: 1.5px solid var(--servicio-grid-bg);
    border-radius: 4px;
    overflow: hidden;
}

.servicio-card {
    background: var(--servicio-bg);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    box-shadow: var(--card-shadow);
}

    .servicio-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--orange);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.35s;
        z-index: 2;
    }

    .servicio-card:hover {
        background: var(--card-hover-bg);
    }

        .servicio-card:hover::before {
            transform: scaleX(1);
        }

.servicio-img-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #0a1520;
}

    .servicio-img-wrap.no-img {
        height: 0;
    }

.servicio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
    filter: brightness(0.85);
}

.servicio-card:hover .servicio-img {
    transform: scale(1.05);
    filter: brightness(0.95);
}

.servicio-body {
    padding: 1.8rem 1.6rem;
}

.servicio-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 130, 0, 0.12);
    line-height: 1;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

[data-theme="light"] .servicio-num {
    color: rgba(0, 58, 112, 0.08);
}

.servicio-card:hover .servicio-num {
    color: rgba(255, 130, 0, 0.22);
}

.servicio-icon {
    width: 40px;
    height: 40px;
    color: var(--orange);
    margin-bottom: 1rem;
}

.servicio-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.servicio-desc {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ══════════════════════════
   CLIENTES
══════════════════════════ */
#clientes {
    background: var(--dark2);
    text-align: center;
    transition: background 0.35s;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.cliente-card {
    background: var(--cliente-bg);
    border: 1px solid var(--cliente-border);
    border-radius: 3px;
    padding: 1.4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.25s, background 0.25s;
    cursor: default;
}

    .cliente-card:hover {
        border-color: rgba(255, 130, 0, 0.4);
        background: var(--cliente-hover-bg);
    }

.cliente-logo {
    height: 36px;
    max-width: 100px;
    object-fit: contain;
    filter: var(--cliente-logo-filter);
    transition: filter 0.25s;
}

.cliente-card:hover .cliente-logo {
    filter: var(--cliente-logo-hover-filter);
}

.cliente-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    transition: color 0.25s;
}

[data-theme="light"] .cliente-name {
    color: rgba(0, 30, 70, 0.6);
}

.cliente-card:hover .cliente-name {
    color: var(--orange);
}

.cliente-sub {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.25s;
}

.cliente-card:hover .cliente-sub {
    color: var(--text-secondary);
}

.sectores-wrap {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.sector-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.6rem;
    border: 1.5px solid var(--card-border);
    border-radius: 60px;
    background: var(--cliente-bg);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: all 0.25s;
    cursor: default;
}

[data-theme="light"] .sector-pill {
    color: rgba(0, 30, 70, 0.6);
}

.sector-pill:hover {
    border-color: var(--orange);
    background: rgba(255, 130, 0, 0.1);
    color: var(--text-primary);
}

.sector-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

/* ══════════════════════════
   CERTIFICACIONES
══════════════════════════ */
#certificaciones {
    transition: background 0.35s;
}

[data-theme="light"] #certificaciones {
    background: linear-gradient(180deg, #e8eef6 0%, #d0dcea 100%);
}

[data-theme="dark"] #certificaciones {
    background: linear-gradient(180deg, var(--dark) 0%, var(--blue) 100%);
}

.cert-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.cert-values {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.cert-value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

[data-theme="light"] .cert-value-item {
    color: #2c3e55;
}

.cert-value-item svg {
    width: 18px;
    height: 18px;
    color: var(--orange);
    flex-shrink: 0;
}

.cert-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cert-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: background 0.35s;
}

[data-theme="light"] .cert-card {
    background: #ffffff;
    border-color: rgba(0, 58, 112, 0.14);
}

[data-theme="dark"] .cert-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 130, 0, 0.2);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--orange), var(--red));
}

.cert-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.cert-logo {
    height: 40px;
    object-fit: contain;
}

[data-theme="light"] .cert-logo {
    filter: brightness(0) opacity(0.7);
}

[data-theme="dark"] .cert-logo {
    filter: brightness(0) invert(1) opacity(0.8);
}

.cert-badge-big {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 130, 0, 0.18);
    line-height: 1;
}

.cert-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.cert-card-body {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.65;
}

/* ══════════════════════════
   HISTORIA / TIMELINE
══════════════════════════ */
#historia {
    background: var(--dark2);
    transition: background 0.35s;
}

.historia-layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 2rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.historia-piezas-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

    .historia-piezas-col.left {
        padding-top: 2rem;
    }

    .historia-piezas-col.right {
        padding-top: 6rem;
    }

.pieza-img-wrap {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

    .pieza-img-wrap img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        display: block;
        filter: brightness(0.75) saturate(0.8);
        transition: filter 0.3s, transform 0.4s;
    }

    .pieza-img-wrap:hover img {
        filter: brightness(0.9) saturate(1);
        transform: scale(1.04);
    }

    .pieza-img-wrap.tall img {
        height: 220px;
    }

.pieza-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(to top, rgba(0, 20, 50, 0.9), transparent);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 70px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--tl-line);
    }

.timeline-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.6rem 0;
    position: relative;
    cursor: default;
}

.tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tl-dot-bg);
    border: 2px solid var(--tl-dot-border);
    flex-shrink: 0;
    margin-top: 4px;
    position: absolute;
    left: 64px;
    z-index: 2;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.timeline-item:hover .tl-dot {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 12px rgba(255, 130, 0, 0.5);
}

.tl-year {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gray);
    width: 55px;
    flex-shrink: 0;
    text-align: right;
    line-height: 1.2;
    padding-top: 1px;
    transition: color 0.25s;
}

[data-theme="light"] .tl-year {
    color: rgba(0, 30, 70, 0.3);
}

.timeline-item:hover .tl-year {
    color: var(--orange);
}

.tl-current .tl-dot {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 12px rgba(255, 130, 0, 0.4);
}

.tl-current .tl-year {
    color: var(--orange);
}

.tl-content {
    padding-left: 2.5rem;
}

    .tl-content h4 {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 1.05rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--text-secondary);
        margin-bottom: 0.4rem;
        transition: color 0.25s;
    }

[data-theme="light"] .tl-content h4 {
    color: rgba(0, 30, 70, 0.65);
}

.timeline-item:hover .tl-content h4 {
    color: var(--text-primary);
}

.tl-content p {
    font-size: 0.86rem;
    color: var(--gray);
    line-height: 1.7;
    transition: color 0.25s;
}

[data-theme="light"] .tl-content p {
    color: rgba(0, 30, 70, 0.45);
}

.timeline-item:hover .tl-content p {
    color: var(--gray);
}

/* ══════════════════════════
   MAQUINARIA
══════════════════════════ */
#maquinaria {
    background: var(--dark);
    transition: background 0.35s;
}

.maquinaria-layout {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 2rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.maq-pieza-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

.maq-center {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.maq-table-wrap {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: background 0.35s;
}

.maq-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.maq-table {
    width: 100%;
    border-collapse: collapse;
}

    .maq-table th {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--gray);
        padding: 0.7rem 1.5rem;
        text-align: left;
    }

    .maq-table td {
        font-size: 0.9rem;
        color: var(--text-secondary);
        padding: 0.6rem 1.5rem;
        border-top: 1px solid var(--card-border);
    }

[data-theme="light"] .maq-table td {
    color: #2c3e55;
}

.maq-table tbody tr:hover td {
    background: rgba(255, 130, 0, 0.05);
}

.maq-tooling-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.maq-tool-card {
    background: rgba(255, 130, 0, 0.06);
    border: 1px solid rgba(255, 130, 0, 0.18);
    border-radius: 3px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--orange);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s;
}

[data-theme="light"] .maq-tool-card {
    background: rgba(255, 130, 0, 0.05);
    border-color: rgba(255, 130, 0, 0.22);
    box-shadow: var(--card-shadow);
}

.maq-tool-card:hover {
    background: rgba(255, 130, 0, 0.12);
}

/* ══════════════════════════
   CONTACTO
══════════════════════════ */
#contacto {
    background: var(--dark2);
    transition: background 0.35s;
}

.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: start;
}

.contacto-info h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contacto-info p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contacto-data {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cd-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cd-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 130, 0, 0.1);
    border: 1px solid rgba(255, 130, 0, 0.2);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    flex-shrink: 0;
}

    .cd-icon svg {
        width: 16px;
        height: 16px;
    }

.cd-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

[data-theme="light"] .cd-link {
    color: #2c3e55;
}

.cd-link:hover {
    color: var(--orange);
    text-decoration: underline;
}

.cd-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

[data-theme="light"] .cd-item span {
    color: #2c3e55;
}

.contacto-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: background 0.35s;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.2rem;
}

    .form-group label {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--gray);
    }

[data-theme="light"] .form-group label {
    color: rgba(0, 30, 70, 0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 2px;
    padding: 11px 13px;
    color: var(--input-color);
    font-family: 'Barlow', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s, background 0.35s;
    resize: none;
    -webkit-appearance: none;
}

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: var(--placeholder-color);
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--orange);
    }

    .form-group select option {
        background: var(--card-bg);
        color: var(--input-color);
    }

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 2px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: 0.5rem;
}

    .btn-submit:hover {
        background: #e67300;
        transform: translateY(-2px);
    }

.form-notice {
    font-size: 0.73rem;
    color: var(--gray);
    text-align: center;
    margin-top: 1rem;
}

/* ══════════════════════════
   FOOTER
══════════════════════════ */
footer {
    background: var(--footer-bg);
    border-top: 2px solid rgba(255, 130, 0, 0.2);
    padding: 2rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    transition: background 0.35s;
}

.footer-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    line-height: 1.1;
}

    .footer-brand span {
        color: var(--orange);
    }

.footer-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    font-weight: 400;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.25);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

    .footer-links a {
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.35);
        text-decoration: none;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            color: var(--orange);
        }

/* ══════════════════════════
   ANIMACIONES
══════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media (max-width: 1100px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clientes-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .historia-layout {
        grid-template-columns: 1fr;
    }

    .historia-piezas-col {
        display: none;
    }

    .maquinaria-layout {
        grid-template-columns: 1fr;
    }

    .maq-pieza-col {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-image-col {
        display: none;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cert-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contacto-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .mvv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(0, 58, 112, 0.98);
        padding: 1.5rem 5% 2rem;
        gap: 1.2rem;
        border-bottom: 2px solid var(--orange);
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .maq-tooling-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-stats {
        gap: 1.2rem;
    }

    section {
        padding: 4rem 5%;
    }

    .timeline::before {
        left: 55px;
    }

    .tl-dot {
        left: 49px;
    }

    .nav-btn {
        width: 34px;
        height: 34px;
    }

    .nav-sep {
        display: none;
    }
}

@media (max-width: 480px) {
    .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ══════════════════════════
   CARRUSEL INDICADORES
══════════════════════════ */
.carousel-indicators {
    bottom: 15px;
}

.indicator {
    width: 25px;
}

    .indicator.active {
        width: 35px;
    }

.machinery-carousel{
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.machinery-slide{
    z-index: 1;
}

.machinery-slide.active{
    opacity: 1;
    z-index: 2;
}