@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800;900&display=swap');

/* ============================================
   DESIGN SYSTEM — SERMINTEG PREMIUM
   ============================================ */

:root {
    /* Brand Colors */
    /* Brand Colors */
    --primary: #fe310d;
    --primary-dark: #d12208;
    --primary-glow: rgba(254, 49, 13, 0.15);
    --secondary: #0e0554;
    --secondary-light: #1a077e;
    --accent: #760028;

    /* New Nav Variables */
    --brand-red:    #fe310d;
    --brand-red-dk: #d12208;
    --brand-blue:   #0e0554;
    --text-dark:    #111827;
    --text-mid:     #374151;
    --nav-height:   72px;
    --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);

    /* Neutrals */
    --bg-body: #f8f8fa;
    --bg-white: #ffffff;
    --bg-subtle: #f0eff3;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --border-light: #f3f4f6;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 4px 20px rgba(254, 49, 13, 0.35);

    /* Layout */
    --container-max: 1200px;
    --section-padding: clamp(4rem, 8vw, 7rem);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Typography scale (fluid) */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
    --fs-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.9375rem);
    --fs-base: clamp(0.95rem, 0.9rem + 0.3vw, 1.0625rem);
    --fs-lg: clamp(1.05rem, 1rem + 0.3vw, 1.1875rem);
    --fs-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    --fs-2xl: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
    --fs-3xl: clamp(2.25rem, 1.8rem + 1.5vw, 3.25rem);
    --fs-hero: clamp(2.5rem, 2rem + 2vw, 4rem);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.165, 0.84, 0.44, 1);
    --duration: 0.35s;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-body);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: var(--fs-base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    max-width: 65ch;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   REUSABLE COMPONENTS
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease-out);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-sm);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(254, 49, 13, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Nav CTA — Estilo dinámico y orgánico corporativo */
.btn-nav {
    background: var(--primary);
    color: var(--bg-white) !important;
    box-shadow: 0 4px 15px rgba(254, 49, 13, 0.15);
    padding: 0.625rem 1.75rem;
    border-radius: 9999px;
    text-transform: none;
    font-weight: 700;
    font-size: var(--fs-sm);
    letter-spacing: normal;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s var(--ease-out);
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-nav svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s var(--ease-out);
}

.btn-nav:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--secondary);
    border-color: var(--bg-white);
}

/* Section Titles */
.section-eyebrow {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block !important;
    width: 100%;
}

.section-title {
    font-size: var(--fs-2xl);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.6;
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
/* ============================================
   HEADER & NAVEGACIÓN — SERMINTEG
   ============================================ */

#header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth);
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    outline-offset: 4px;
}

.logo img {
    height: 44px;
    width: auto;
    transition: transform 0.35s var(--ease-smooth),
                opacity  0.35s var(--ease-smooth);
}

.logo:hover img  { transform: scale(1.04); }
.logo:focus img  { opacity: 0.85; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
}

.nav-item {
    position: relative;
    padding: 0.35rem 0.9rem;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    letter-spacing: 0.01em;
    transition: color 0.25s ease,
                background 0.25s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 2px;
    height: 2px;
    background: var(--brand-red);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s var(--ease-smooth);
}

.nav-item:hover,
.nav-item.active {
    color: var(--brand-red);
    background: rgba(254, 49, 13, 0.05);
}

.nav-item:hover::after,
.nav-item.active::after {
    transform: scaleX(1);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 1rem;
    padding: 10px 24px;
    background: var(--brand-red);
    color: #fff !important;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(254, 49, 13, 0.15);
    transition: background 0.3s var(--ease-smooth),
                transform    0.3s var(--ease-smooth),
                box-shadow   0.3s var(--ease-smooth);
    white-space: nowrap;
}

.btn-nav:hover {
    background: var(--brand-red-dk);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-nav:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(254, 49, 13, 0.25);
}

.btn-nav svg {
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-smooth);
}

.btn-nav:hover svg {
    transform: translateX(4px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 6px;
    background: none;
    border: 1.5px solid rgba(14, 5, 84, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    z-index: 1010;
}

.mobile-toggle:hover {
    background: rgba(14, 5, 84, 0.05);
    border-color: rgba(14, 5, 84, 0.25);
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--brand-blue);
    border-radius: 2px;
    transition: transform 0.35s var(--ease-smooth),
                opacity   0.35s var(--ease-smooth),
                width     0.35s var(--ease-smooth);
    transform-origin: center;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: rgba(14, 5, 84, 0.30);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.35s var(--ease-smooth);
    z-index: 999;
    pointer-events: none;
}

.nav-overlay.visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1.5rem 1.25rem 2.5rem;
        background: #fff;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-smooth);
        overflow-y: auto;
        z-index: 1005;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links::before {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(0, 0, 0, 0.06);
        margin-bottom: 0.5rem;
        order: 4;
    }

    .nav-item {
        width: 100%;
        padding: 0.85rem 0.75rem;
        font-size: 16px;
        border-radius: 8px;
    }

    .nav-item::after {
        display: none;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
        margin: 1rem 0 0;
        padding: 13px 24px;
        font-size: 15px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(254, 49, 13, 0.28);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    color: var(--bg-white);
    padding-top: 72px;
    position: relative;
    overflow: hidden;
    background: var(--secondary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('./assets/images/serminteg-bg.jpeg') center/cover no-repeat;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(14, 5, 84, 0.92) 0%,
            rgba(26, 7, 126, 0.8) 50%,
            rgba(14, 5, 84, 0.88) 100%);
}

/* Decorative geometric shapes */
.hero-decor {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-decor::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(254, 49, 13, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-decor::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(118, 0, 40, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero .eyebrow {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    background: rgba(254, 49, 13, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(254, 49, 13, 0.2);
}

.hero h1 {
    font-size: var(--fs-hero);
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    max-width: 750px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: var(--fs-lg);
    max-width: 560px;
    margin-bottom: 2.5rem;
    opacity: 0.85;
    color: var(--bg-white);
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   TRUST BANNER — CLIENTS (Marquee)
   ============================================ */
.trust-banner {
    background: var(--bg-white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.trust-banner h3 {
    text-align: center;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 600;
}

.client-logos {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.client-logos-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: clients-scroll 30s linear infinite;
    flex-shrink: 0;
    padding-right: 4rem;
}

.client-logos-track img {
    height: 48px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s var(--ease-spring);
    flex-shrink: 0;
}

.client-logos-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

.client-logos:hover .client-logos-track {
    animation-play-state: paused;
}

@keyframes clients-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

/* SVG Decorative Pattern — About */
.about::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='150' cy='150' r='140' stroke='%23e5e7eb' stroke-width='1' fill='none'/%3E%3Ccircle cx='150' cy='150' r='100' stroke='%23e5e7eb' stroke-width='1' fill='none'/%3E%3Ccircle cx='150' cy='150' r='60' stroke='%23e5e7eb' stroke-width='1' fill='none'/%3E%3C/svg%3E") no-repeat;
    opacity: 0.5;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: var(--fs-base);
    line-height: 1.75;
}

.stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-box {
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary);
    flex: 1;
    transition: transform 0.3s var(--ease-spring);
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-box h4 {
    font-size: var(--fs-2xl);
    margin-bottom: 0.25rem;
    color: var(--primary);
    font-weight: 800;
}

.stat-box p {
    font-size: var(--fs-sm);
    margin: 0;
    color: var(--text-muted);
}

.about-visuals {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
}

.about-visuals::before {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(var(--text-muted) 2px, transparent 2px);
    background-size: 14px 14px;
    opacity: 0.25;
    z-index: 0;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    z-index: 1;
    background: var(--bg-subtle);
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s var(--ease-smooth);
}

.slider-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--bg-white);
    transform: scale(1.3);
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    left: -25px;
    background: var(--bg-white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 5;
    animation: float-badge 6s ease-in-out infinite;
    border: 1px solid var(--border-light);
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.badge-icon {
    width: 44px;
    height: 44px;
    background: rgba(254, 49, 13, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.badge-title {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .floating-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 85%;
        justify-content: center;
        animation: none;
    }
}

/* ============================================
   VALUE PROPOSITIONS
   ============================================ */
.value-props {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.value-props::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* SVG Grid Pattern — Value Props */
.value-props::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230e0554' fill-opacity='0.02'%3E%3Cpath d='M0 20 L20 0 L40 20 L20 40Z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
    z-index: 0;
}

.value-props>.container {
    position: relative;
    z-index: 1;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.value-card {
    padding: 2.5rem 2rem;
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-spring);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
    background: var(--bg-white);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card .icon {
    width: 56px;
    height: 56px;
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    transition: all 0.3s var(--ease-spring);
}

.value-card:hover .icon {
    background: var(--primary);
    color: var(--bg-white);
    transform: scale(1.05);
}

.value-card h3 {
    margin-bottom: 0.75rem;
    font-size: var(--fs-xl);
    font-weight: 700;
}

.value-card p {
    font-size: var(--fs-sm);
    line-height: 1.65;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

/* SVG Dots Pattern — Services */
.services::after {
    content: '';
    position: absolute;
    top: 60px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='%230e0554' fill-opacity='0.06'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--duration) var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary-light));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card .icon {
    width: 52px;
    height: 52px;
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
    transition: all 0.3s var(--ease-spring);
}

.service-card:hover .icon {
    background: var(--primary);
    color: var(--bg-white);
}

.service-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-card p {
    font-size: var(--fs-sm);
    line-height: 1.65;
}

/* Stagger reveal */
.service-card:nth-child(2) {
    transition-delay: 0.08s;
}

.service-card:nth-child(3) {
    transition-delay: 0.16s;
}

.service-card:nth-child(4) {
    transition-delay: 0.24s;
}

.service-card:nth-child(5) {
    transition-delay: 0.32s;
}

.service-card:nth-child(6) {
    transition-delay: 0.40s;
}

/* ============================================
   GALLERY / MARQUEE
   ============================================ */
.gallery {
    background: var(--secondary);
    overflow: hidden;
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.gallery .section-title,
.gallery .section-subtitle {
    color: var(--bg-white);
}

.gallery .section-subtitle {
    opacity: 0.65;
}

.gallery .section-eyebrow {
    background: rgba(254, 49, 13, 0.1);
    border: 1px solid rgba(254, 49, 13, 0.2);
    display: block !important;
    width: fit-content;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    margin-left: auto;
    margin-right: auto;
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 1.5rem;
    padding: 0.75rem 0;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 1.5rem;
    min-width: 100%;
}

.marquee-content img {
    height: 220px;
    width: 320px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    border: 2px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.marquee-content img:hover {
    transform: scale(1.04);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(254, 49, 13, 0.2);
    filter: brightness(0.85);
}

.track-right {
    animation: scroll-right 45s linear infinite;
}

.track-left {
    animation: scroll-left 45s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-right {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-left {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(14, 5, 84, 0.95);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
    animation: lightboxIn 0.3s var(--ease-out);
}

.close-lightbox {
    position: absolute;
    top: 24px;
    right: 32px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.close-lightbox:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

@keyframes lightboxIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   CTA DOWNLOAD / BROCHURE
   ============================================ */
.cta-download {
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-subtle) 100%);
    padding: var(--section-padding) 0;
    position: relative;
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.cta-flex::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.cta-flex .content {
    max-width: 500px;
}

.cta-flex .content h2 {
    font-size: var(--fs-2xl);
    margin-bottom: 0.75rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
}

.contact-info-card {
    background: var(--bg-body);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s var(--ease-spring);
}

.contact-info-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.contact-info-card h4 {
    margin-bottom: 0.75rem;
    font-size: var(--fs-base);
    font-weight: 700;
}

.contact-info-card p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: var(--fs-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--fs-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--bg-white);
    transition: all 0.3s var(--ease-smooth);
}

.form-group select {
    color: rgba(255, 255, 255, 0.9);
    color-scheme: dark;
}

.form-group select option {
    background: var(--secondary);
    color: #ffffff;
}

.form-group select option:checked {
    background: var(--primary);
    color: #ffffff;
}

.form-group select option[value=""][disabled] {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(254, 49, 13, 0.25), 0 0 16px rgba(254, 49, 13, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

/* Submit button send state */
.contact-form .btn-primary {
    transition: all 0.4s var(--ease-spring);
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(254, 49, 13, 0.5);
}

.contact-form .btn-primary.sending {
    background: var(--secondary-light);
    box-shadow: none;
    pointer-events: none;
    opacity: 0.8;
}

.contact-form .btn-primary.sent {
    background: #16a34a;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.35);
}

.contact-box {
    background: var(--secondary);
    color: var(--bg-white);
    padding: clamp(2rem, 3vw, 3rem);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(14, 5, 84, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-box h3 {
    color: var(--bg-white) !important;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #080336;
    color: var(--bg-white);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* Accent line top */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary-light));
}

/* Decorative Pattern — Cubes PNG for Dark Sections */
footer::after,
.gallery::after,
.mission-vision::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("assets/cubes.png") repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

footer .container,
.gallery > *,
.mission-vision > * {
    position: relative;
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 42px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-text {
    opacity: 0.75;
    margin-bottom: 1.5rem;
    max-width: 360px;
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease-spring);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.footer-links h4 {
    margin-bottom: 1.25rem;
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--bg-white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-sm);
}

.footer-links a {
    display: inline-block;
    padding: 4px 0; /* Buen área táctil sin afectar tanto la altura visual */
    opacity: 0.75;
    font-size: var(--fs-sm);
    transition: all var(--duration);
    color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-xs);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   MISSION & VISION (nosotros.html)
   ============================================ */
.mission-vision {
    background: var(--secondary);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}


.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    position: relative;
}

/* Vertical separator between columns */
.mission-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
}

.mission-grid h2 {
    position: relative;
    display: inline-block;
}

/* Red accent underline under h2 */
.mission-grid h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .mission-grid::before {
        display: none;
    }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s var(--ease-spring);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: all 0.7s var(--ease-spring);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(24px);
    transition: all 0.7s var(--ease-spring);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   RESPONSIVE — TABLET (992px)
   ============================================ */
@media (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-img::after {
        display: none;
    }

    .value-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-flex {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .cta-flex::before {
        width: 100%;
        height: 3px;
        left: 0;
        top: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* ============================================
   RESPONSIVE — MOBILE (768px)
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: right 0.4s var(--ease-out);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        padding: 1rem 0;
        font-size: var(--fs-lg);
        border-bottom: 1px solid var(--border-light);
        width: 100%;
    }

    .nav-links a:not(.btn)::after {
        display: none;
    }

    .nav-links .btn {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Mobile overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .section-title {
        font-size: var(--fs-2xl);
    }

    .stats {
        flex-direction: column;
    }

    .hero h1 {
        font-size: var(--fs-3xl);
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .marquee-content img {
        height: 180px;
        width: 260px;
    }

    .contact-box {
        padding: 1.5rem;
    }

    .client-logos-track {
        gap: 2.5rem;
        padding-right: 2.5rem;
    }

    .client-logos-track img {
        height: 36px;
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
    .hero {
        min-height: 90vh;
    }

    .marquee-content img {
        height: 150px;
        width: 220px;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .stat-box {
        padding: 1.25rem;
    }
}

/* ============================================
   MOBILE STICKY CTA BUTTON
   ============================================ */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 997;
        background: rgba(8, 3, 54, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 0.75rem 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        transform: translateY(100%);
        transition: transform 0.4s var(--ease-out);
    }

    .mobile-sticky-cta.visible {
        transform: translateY(0);
    }

    .mobile-sticky-cta a {
        flex: 1;
        max-width: 400px;
        text-align: center;
        padding: 0.85rem 1.5rem;
        background: var(--primary);
        color: #fff;
        font-weight: 700;
        font-size: 15px;
        border-radius: 12px;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(254, 49, 13, 0.3);
        transition: all 0.3s var(--ease-out);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .mobile-sticky-cta a:active {
        transform: scale(0.97);
    }

    /* Prevent footer being hidden behind sticky CTA */
    footer {
        padding-bottom: 5rem;
    }
}

/* ============================================
   HERO SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    animation: scroll-pulse 2.5s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator__mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 13px;
    position: relative;
}

.scroll-indicator__mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

@keyframes scroll-wheel {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 1.5rem;
    }

    .scroll-indicator__mouse {
        width: 22px;
        height: 34px;
    }
}