/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES (MODERN SPOTLIGHT & 3D GLASS THEME)
   ========================================================================== */
:root {
    /* Color Palette based on pitch black and Logo accents */
    --color-bg-dark: #000000;           /* Pitch Black Background */
    --color-accent-blue: #5B9BD5;       /* Core light blue from logo waves */
    --color-accent-glow: #00b4d8;       /* High-tech cyan glow */
    --color-supporting-slate: #8E9AA8;  /* Slate blue-grey from logo */
    
    /* Text colors (Very bright, high contrast) */
    --color-text-white: #FFFFFF;        /* Pure white for headers */
    --color-text-clear: #F0F4F8;        /* Clear icy white for general text */
    --color-text-muted: #CFD8E3;        /* Readable light grey */
    
    /* Premium Frosted Glass Textures */
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
    --glass-border: rgba(255, 255, 255, 0.16); /* Marked crisp border */
    
    /* ------------------------------------------------------------------
   HERO SECTION LIGHTING & BACKGROUND
   ------------------------------------------------------------------ */

/* Real brand background for Hero section with a dark polarized glass filter */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('../assets/logo.jpeg') center center / min(85vw, 75vh, 750px) no-repeat;
    filter: invert(1) brightness(0.65) contrast(1.15) saturate(0.85);
    mix-blend-mode: screen;
    opacity: 0.8;
    pointer-events: none;
    z-index: -4;
}

/* Polarized glass sheet overlay between the background image and the viewer */
.hero-bg-glass {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(3, 5, 10, 0.88) 50%, 
        rgba(0, 0, 0, 0.94) 100%
    );
    backdrop-filter: blur(2px) saturate(110%);
    -webkit-backdrop-filter: blur(2px) saturate(110%);
    pointer-events: none;
    z-index: -3;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.95);
}

.hero-bg-glow {
    position: absolute;
    top: 0;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translateX(-50%);
    background: radial-gradient(circle at 50% 20%, rgba(255,255,255,0.12), transparent 60%);
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
}

/* Team section organigram image */
.team-visual-image {
    width: 100%;
    max-width: 620px;
    margin: 18px auto 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.team-org-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: invert(1) brightness(0.9); /* invert so white bg becomes dark to match site theme */
    border-radius: 16px;
}

/* Contacto section background image */
.contacto-bg-image {
    position: absolute;
    inset: 0;
    background: url('../assets/image4.png') center center / cover no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}

/* Ensure sections take full viewport without margin/padding */
section, footer {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;  /* needed for absolute children like bg overlays */
}

/* Body dark theme with subtle gradient */
body {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #f0f0f0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden; /* enforced for desktop, overridden for mobile */
}

/* Container adjustments – safe vertical space and no overflow */
.container {
    max-height: 92vh; /* increased to fit more content */
    overflow-y: auto;
    padding-top: var(--header-height, 60px);
    padding-bottom: 40px;
    position: relative;
}
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-special: 'Orbitron', sans-serif; /* Special font ONLY for main hero title */
    --font-tech: 'Share Tech Mono', monospace;  /* Monospace font for metrics */
    
    /* Transitions & Spacing */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 50px;
    --container-max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Fixed Spotlight Background */
body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-clear);
    line-height: 1.5; /* Tightened slightly for perfect fitting */
    overflow-x: hidden;
    position: relative;
}

/* Realistic TOP-DOWN Spotlight Cone */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Soft white/blue spotlight originating from the top center */
    background: radial-gradient(
        ellipse at 50% 0%, 
        rgba(91, 155, 213, 0.42) 0%, 
        rgba(91, 155, 213, 0.15) 25%, 
        rgba(255, 255, 255, 0.02) 45%, 
        rgba(0, 0, 0, 0) 70%,
        #000000 90%
    );
    z-index: -10;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000000;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-blue);
}

/* Typography Base Rules */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-white);
    font-weight: 700;
}

p {
    color: var(--color-text-muted);
}

strong {
    color: var(--color-text-white);
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.font-tech {
    font-family: var(--font-tech);
}

/* ==========================================================================
   3D FLOATING GLASSMORPHIC CUBES (CUBOS TRANSLÚCIDOS DE TEXTURA DE VIDRIO)
   ========================================================================== */
.glass-cube,
.about-card,
.benefit-card,
.activities-list li,
.metric-card,
.safety-panel,
.resource-card,
.team-member-card,
.value-card,
.contacto-form-column {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-radius: 20px; /* Rectangular Rounded Corners */
    
    /* Powerful 3D Float effect: outer drop shadows + inner highlights */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),                 /* Deep dark shadows underneath */
        inset 0 1.5px 0px rgba(255, 255, 255, 0.22),    /* Top bright highlight (reflection) */
        inset 0 -1.5px 0px rgba(0, 0, 0, 0.5);          /* Bottom dark edge for thickness */
        
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.6s ease-out,
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
    
    transform: translate3d(0, 160px, 0); /* Initial state: translated down */
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Class triggered by customized step slider in JS */
.arrived-card {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Floating Lift Hover State (Desktop only) */
@media screen and (min-width: 769px) {
    .glass-cube.arrived-card:hover,
    .about-card.arrived-card:hover,
    .benefit-card.arrived-card:hover,
    .activities-list li.arrived-card:hover,
    .metric-card.arrived-card:hover,
    .safety-panel.arrived-card:hover,
    .resource-card.arrived-card:hover,
    .team-member-card.arrived-card:hover,
    .value-card.arrived-card:hover,
    .contacto-form-column.arrived-card:hover {
        transform: translateY(-6px) scale(1.012) !important; /* Extremely subtle float to prevent layout jumps */
        border-color: rgba(255, 255, 255, 0.3);
        
        box-shadow: 
            0 20px 45px rgba(0, 0, 0, 0.8), 
            0 0 25px rgba(91, 155, 213, 0.18),             
            inset 0 1.5px 0px rgba(255, 255, 255, 0.35);
    }
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px; /* Highly compact */
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-primary);
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-blue), #4582C0);
    color: #000000;
    box-shadow: 0 4px 15px rgba(91, 155, 213, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #70ADE5, var(--color-accent-blue));
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(91, 155, 213, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.btn-glow:hover::after {
    left: 120%;
    opacity: 1;
    transition: all 0.6s ease-in-out;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.82rem;
    border-radius: 6px;
    margin-top: 6px;
}

.text-accent {
    color: var(--color-accent-blue) !important;
}

/* ==========================================================================
   HEADER / NAVIGATION BAR (PITCH BLACK / GLASS)
   ========================================================================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    border-bottom: none;
    z-index: 1000;
    transition: var(--transition-smooth);
}

/* Navbar inner layout */
.navbar-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px !important;
    margin: 0 !important;
}

/* Logo aligned to left corner */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
}

.nav-logo {
    height: 38px;
    width: 38px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo {
    height: 44px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--color-text-white);
}

.brand-subtitle {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-supporting-slate);
}

#main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border-radius: 4px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background-color: var(--color-accent-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-nav-cta {
    padding: 8px 18px;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-white);
    border-radius: 6px;
    margin-left: 8px;
}

.btn-nav-cta:hover {
    background: var(--color-text-white);
    color: #000000;
    border-color: var(--color-text-white);
    transform: translateY(-1px);
}

/* Hamburger Menu Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 100px 30px 40px;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
}

.mobile-nav-overlay.open {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    display: block;
    padding: 8px 0;
}

.mobile-link:hover {
    color: var(--color-text-white);
    padding-left: 8px;
}

.btn-mobile-cta {
    width: 100%;
    margin-top: 15px;
    background: var(--color-text-white);
    color: #000000;
}

/* ==========================================================================
   SECTION HEADER COMMON (COMPACT RULES)
   ========================================================================== */
.section-header {
    margin-bottom: 16px; /* Greatly compacted margin */
}

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

.section-subtitle {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--color-accent-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 4px;
}

.section-title {
    font-size: 1.95rem; /* Highly compact and neat headers */
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: var(--color-text-white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.title-underline {
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-glow));
    margin: 0 auto 8px;
    border-radius: 2px;
}

.sm-underline {
    margin: 0 auto 6px;
}

.section-lead {
    font-size: 0.98rem; /* Medium clear text */
    color: var(--color-text-clear); 
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}

/* ==========================================================================
   PRESENTATION DECK LAYOUT (DESKTOP ONLY)
   JS controls all slide positioning via inline styles.
   CSS only: lock overflow, style container, and set card initial states.
   ========================================================================== */
@media screen and (min-width: 769px) {
    html, body {
        overflow: hidden !important;
        height: 100% !important;
    }

    /* Footer desktop override — JS positions it as a slide */
    footer {
        background-color: #000000 !important;
        border-top: none !important;
        padding: 0 !important;
    }

    /* Container: safe vertical centering inside 100vh, with navbar offset */
    .container {
        height: 100%;
        max-height: 100vh !important;
        max-width: 1400px !important; /* Widens container from 1200px to 1400px for a spacious premium feel */
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden !important;
        padding-top: 80px !important; /* Clears floating navbar (50px) + comfortable 30px margin */
        padding-bottom: 40px !important; /* Comfortable 40px margin at the bottom */
        padding-left: 30px !important; /* Balanced 30px side margins as requested */
        padding-right: 30px !important; /* Balanced 30px side margins as requested */
    }

    /* Make all section headers and subtitles left-aligned on desktop */
    .section-header {
        text-align: left !important;
        margin-bottom: 15px !important;
    }
    .section-header .title-underline {
        margin: 0 auto 8px 0 !important; /* Left-aligned title underline */
    }
    .section-lead {
        margin-left: 0 !important;
        margin-right: auto !important;
        text-align: left !important;
    }
    
    /* Perfect Desktop Grids to fit everything on a single screen without scrolling */
    .capacity-dashboard {
        display: grid !important;
        grid-template-columns: 5fr 6fr !important;
        gap: 30px !important;
        margin-top: 10px !important;
    }
    
    .metrics-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .resources-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
        margin-top: 10px !important;
    }
    
    .resources-grid .span-two-cols {
        grid-column: span 1 !important;
    }
    
    .team-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
        margin-top: 10px !important;
    }
    
    .contacto-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
        margin-top: 10px !important;
    }
    
    .footer-container {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 40px !important;
        margin-bottom: 15px !important;
    }

    /* Card initial state: invisible, translated down — JS adds .arrived-card to reveal */
    .about-card,
    .benefit-card,
    .service-info-column,
    .service-activities-column,
    .activities-list li,
    .metric-card,
    .safety-panel,
    .resource-card,
    .team-member-card,
    .value-card,
    .contacto-form-column,
    .contacto-info-column,
    .footer-container,
    .footer-bottom {
        transform: translate3d(0, 80px, 0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.55s ease-out,
                    border-color 0.4s ease,
                    box-shadow 0.4s ease;
    }
}

/* ==========================================================================
   SECTION 1: HERO PORTADA
   ========================================================================== */
#hero {
    position: relative;
    overflow: hidden;
}

.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
    background-attachment: fixed;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 14px;
    border-radius: 30px;
    color: var(--color-text-white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.hero-badge i {
    color: var(--color-accent-blue);
    animation: flash 2s infinite alternate;
}

/* SPECIAL FONT ONLY FOR THE HERO START TITLE */
.hero-title {
    font-family: var(--font-special);
    font-size: 4.8rem; /* Marginally smaller for better screen fitting */
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(180deg, var(--color-text-white) 40%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.15));
}

.hero-tagline {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-text-white);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.hero-description {
    font-size: 1.12rem; 
    color: var(--color-text-clear); 
    font-weight: 400;
    max-width: 700px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 35px;
}

/* Hero Stats Bar in Glassmorphism */
.hero-quick-stats {
    width: 100%;
    max-width: 800px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(120%);
    border-radius: 16px;
    padding: 16px 40px; /* Marginally tighter */
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 20px 45px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.15);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-family: var(--font-tech);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--color-accent-blue);
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 0 12px rgba(91, 155, 213, 0.4);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
    animation: bounce 2s infinite;
    transition: color 0.3s;
}

/* ==========================================================================
   SECTION 2: QUIÉNES SOMOS & CLIENTE (COMPACTED CARDS)
   ========================================================================== */
/* Card Content Wrappers for Horizontal Switch on Expand */
.card-main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-body, .resource-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 10px;
}

@media screen and (min-width: 769px) {
    .about-grid {
        display: flex !important;
        gap: 30px !important;
        margin-top: 10px !important;
        width: 100% !important;
    }
    
    .about-card {
        flex: 1 !important;
        transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
        cursor: pointer !important;
    }
    
    .about-card.expanded {
        flex: 2.1 !important;
        border-color: rgba(91, 155, 213, 0.4) !important;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(91, 155, 213, 0.18) !important;
    }
    
    .about-card.expanded .card-main-content {
        flex-direction: row !important;
        gap: 24px !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    .about-card.expanded .about-body {
        flex: 1 !important;
        order: 1 !important;
    }
    
    .about-card.expanded .card-visual-image {
        width: 240px !important;
        height: 140px !important;
        flex-shrink: 0 !important;
        order: 2 !important;
        margin: 0 !important;
    }
    
    .about-card.shrunk {
        flex: 0.6 !important;
        opacity: 0.55 !important;
    }
    
    /* Resources grid flex layout on desktop for expanding accordion cards */
    .resources-grid {
        display: flex !important;
        gap: 20px !important;
        margin-top: 10px !important;
        width: 100% !important;
    }
    
    .resource-card {
        flex: 1 !important;
        transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
        cursor: pointer !important;
    }
    
    .resource-card.expanded {
        flex: 1.8 !important;
        border-color: rgba(91, 155, 213, 0.4) !important;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(91, 155, 213, 0.18) !important;
    }
    
    .resource-card.expanded .card-main-content {
        flex-direction: row !important;
        gap: 24px !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    .resource-card.expanded .resource-body {
        flex: 1 !important;
        order: 1 !important;
    }
    
    .resource-card.expanded .card-visual-image {
        width: 240px !important;
        height: 140px !important;
        flex-shrink: 0 !important;
        order: 2 !important;
        margin: 0 !important;
    }
    
    .resource-card.shrunk {
        flex: 0.6 !important;
        opacity: 0.55 !important;
    }
}

/* Card Extra Details (Collapsible accordion text) */
.card-extra-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.expanded .card-extra-details {
    max-height: 350px !important;
    opacity: 1 !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Blinking interactive hints */
.card-interactive-hint {
    font-size: 0.78rem;
    color: var(--color-accent-blue);
    opacity: 0.8;
    margin-top: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-tech);
    animation: pulseHint 2s infinite alternate;
}

.expanded .card-interactive-hint {
    display: none !important;
}

@keyframes pulseHint {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.about-card {
    padding: 25px 30px; /* Reduced paddings */
    display: flex;
    flex-direction: column;
}

.card-tech-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-icon {
    font-size: 1.8rem;
    color: var(--color-accent-blue);
    filter: drop-shadow(0 0 10px rgba(91, 155, 213, 0.35));
}

.card-badge {
    font-family: var(--font-tech);
    font-size: 0.72rem;
    color: var(--color-text-white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.badge-efe {
    color: var(--color-accent-blue);
    background: rgba(91, 155, 213, 0.08);
    border-color: rgba(91, 155, 213, 0.2);
}

.about-card .card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.about-card .card-desc {
    font-size: 0.95rem; /* Highly readable compact size */
    color: var(--color-text-clear); 
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-bullets {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-bullets li {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-clear);
    display: flex;
    align-items: center;
    gap: 8px;
}

.efe-brand-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-white);
}

/* ==========================================================================
   SECTION 3: SERVICIOS INTERACTIVOS (TAB CONTROLS & ACTIVIDADES)
   ========================================================================== */
/* Tab Switcher Display Rules */
.tab-pane {
    display: none !important;
}

.tab-pane.active {
    display: block !important;
}

/* Service Info Top Row & Visual Card Styles */
.service-top-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.service-visual-card {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-visual-card:hover .service-visual-img {
    transform: scale(1.08);
}
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    gap: 10px;
}

.tab-btn i {
    font-size: 1.05rem;
}

.services-wrapper {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 30px;
}

.service-purpose-card {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.service-purpose-text {
    font-size: 1.02rem;
    line-height: 1.5;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-card {
    padding: 12px 18px;
    gap: 12px;
}

.benefit-icon {
    font-size: 1.35rem;
}

.benefit-card h5 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.benefit-card p {
    font-size: 0.85rem;
    line-height: 1.4;
}

@media screen and (min-width: 769px) {
    /* Split layout: 50% Left (Introduction, Tabs, and Text Info) & 50% Right (Activities viewport) */
    #servicios .container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto 1fr !important; /* Forces row tracks to fit viewport strictly */
        gap: 15px 40px !important;
        align-items: start !important;
        height: 100% !important;
        max-height: 100vh !important;
        max-width: 1400px !important; /* Widens container from 1200px to 1400px */
        padding-top: 80px !important; /* Clears navbar (50px) + comfortable 30px margin */
        padding-bottom: 40px !important; /* Comfortable 40px margin at the bottom */
        padding-left: 30px !important; /* Balanced 30px side margins as requested */
        padding-right: 30px !important; /* Balanced 30px side margins as requested */
    }
    
    /* Make tab-pane and wrapper transparent to the grid container */
    .tab-pane {
        display: none !important;
    }
    .tab-pane.active {
        display: contents !important;
    }
    .services-wrapper {
        display: contents !important;
    }
    
    /* Left Column Components */
    .section-header {
        grid-column: 1 !important;
        grid-row: 1 !important;
        text-align: left !important;
        margin-bottom: 0 !important;
    }
    .section-header .title-underline {
        margin: 0 0 8px 0 !important; /* Left-aligned underline */
    }
    #servicios .section-lead {
        font-size: 0.86rem !important; /* Shrunk description lead text to save height */
        line-height: 1.4 !important;
        margin-top: 4px !important;
    }
    
    .tabs-container {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-content: flex-start !important;
        margin-top: 4px !important;
        margin-bottom: 4px !important;
        gap: 8px !important;
    }
    .tab-btn {
        padding: 8px 16px !important; /* Shrunk tab buttons padding */
        font-size: 0.82rem !important; /* Shrunk font size to prevent bottom cut-offs */
        border-radius: 6px !important;
    }
    
    .service-info-column {
        grid-column: 1 !important;
        grid-row: 3 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important; /* Elegant vertical spacing */
        width: 100% !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .service-purpose-card {
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 14px 18px !important; /* Restored generous, premium card padding */
        height: auto !important;
    }
    
    .service-purpose-text {
        font-size: 0.9rem !important; /* Restored elegant text size */
        line-height: 1.5 !important;
    }
    
    .service-visual-card {
        width: 100% !important;
        height: 240px !important; /* Made the image majestically giant as requested */
        max-height: 240px !important;
        margin: 0 !important;
    }
    
    .benefits-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        flex-direction: row !important;
        gap: 8px !important;
        height: auto !important;
        width: 100% !important;
    }
    
    .benefit-card {
        height: auto !important;
        padding: 8px 10px !important; /* Shrunk padding to guarantee benefits are 100% visible */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        text-align: left !important;
        gap: 4px !important;
    }
    
    .benefit-icon {
        font-size: 1rem !important; /* Slightly smaller premium icons */
        margin: 0 !important;
    }
    
    .benefit-card h5 {
        font-size: 0.78rem !important; /* Slightly smaller titles */
        margin-bottom: 2px !important;
    }
    
    .benefit-card p {
        font-size: 0.68rem !important; /* Highly compact descriptions */
        line-height: 1.25 !important;
    }
    
    /* Right Column Component (Activities grid viewport - Spans full height) */
    .service-activities-column {
        grid-column: 2 !important;
        grid-row: 1 / span 3 !important; /* Spans from top to bottom */
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important; /* Title at the top, grid stretched to the bottom */
        gap: 10px !important; /* Reduced vertical gap */
        position: relative !important;
        overflow: hidden !important; /* VIEWPORT */
        max-height: none !important;
        padding-right: 0 !important;
        align-self: stretch !important; /* Stretches height fully */
        opacity: 1 !important;
        transform: none !important;
    }
    
    .service-activities-column > .info-label {
        margin-top: 0 !important;
        margin-bottom: 4px !important; /* Reduced margin */
        text-align: left !important; /* Left-aligned like the left column headers */
        font-family: var(--font-tech) !important;
        font-size: 0.84rem !important; /* Slightly smaller aligned title */
        letter-spacing: 2px !important;
        color: var(--color-accent-blue) !important;
    }
    
    .activities-list {
        display: grid !important;
        grid-template-rows: repeat(2, 1fr) !important;
        grid-auto-flow: column !important;
        grid-auto-columns: calc((100% - 12px) / 2) !important; /* Synchronized with 12px gap */
        gap: 12px !important; /* Shrunk gap to save critical height */
        width: 100% !important;
        flex: 1 !important; /* Automatically stretches to fill available vertical space */
        height: auto !important;
        min-height: 0 !important;
        direction: ltr !important; /* Left to Right sliding flow */
        transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
        will-change: transform !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .activities-list li {
        padding: 12px 16px !important; /* Perfectly compact padding to prevent taskbar overlaps */
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important; /* Reduced internal card gap */
        height: 100% !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        box-sizing: border-box !important;
    }
    
    .activity-num {
        font-size: 0.8rem !important; /* Slightly smaller number badge */
        padding: 2px 6px !important; /* Shrunk padding */
        background: rgba(91, 155, 213, 0.15) !important;
        border: 1px solid rgba(91, 155, 213, 0.3) !important;
        border-radius: 4px !important;
        font-family: var(--font-tech) !important;
        color: var(--color-accent-blue) !important;
        margin: 0 !important;
    }
    
    .activity-text {
        font-size: 0.82rem !important; /* Shrunk description font size */
        line-height: 1.35 !important; /* Comfortable high-end tight line height */
    }
    
    .activity-text strong {
        display: block !important;
        font-size: 0.9rem !important; /* Shrunk title font size */
        margin-bottom: 3px !important;
        color: var(--color-text-white) !important;
    }
}

.activities-list {
    gap: 10px;
}

.activities-list li {
    padding: 12px 18px;
    gap: 14px;
}

.activity-num {
    font-size: 1rem;
    padding: 3px 6px;
}

.activity-text {
    font-size: 0.88rem; 
    line-height: 1.4;
}

.activity-text strong {
    margin-bottom: 2px;
    font-size: 0.95rem;
}

/* ==========================================================================
   SECTION 4: CAPACIDAD OPERACIONAL & SEGURIDAD
   ========================================================================== */
.capacity-dashboard {
    gap: 30px;
    margin-top: 10px;
}

.metrics-grid {
    gap: 16px;
}

.metric-card {
    padding: 24px 20px;
}

.metric-value {
    font-size: 3rem;
    margin-bottom: 4px;
}

.metric-title {
    font-size: 1.08rem;
    margin-bottom: 6px;
}

.metric-desc {
    font-size: 0.85rem;
    line-height: 1.4;
}

.total-metric-wrapper {
    gap: 20px;
}

.total-metric .metric-value {
    font-size: 3.2rem;
}

.safety-panel {
    padding: 24px 30px;
}

.safety-icon-wrapper {
    margin-bottom: 12px;
}

.safety-glow-icon {
    font-size: 2.5rem;
}

.safety-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.safety-text {
    font-size: 0.92rem; 
    line-height: 1.5;
    margin-bottom: 12px;
}

.cap-tag {
    font-size: 0.75rem;
    padding: 5px 10px;
}

/* ==========================================================================
   SECTION 5: RECURSOS OPERACIONALES Y FLOTA (SLIDE 6)
   ========================================================================== */
.resources-grid {
    gap: 24px;
    margin-top: 10px;
}

.resource-card {
    padding: 25px;
}

.resource-visual {
    margin-bottom: 15px;
}

.resource-large-icon {
    font-size: 2.2rem;
}

.resource-qty {
    font-size: 1.6rem;
    padding: 3px 10px;
}

.resource-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.resource-text {
    font-size: 0.92rem; 
    line-height: 1.5;
}

.tools-bullets-grid {
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
}

.tools-list {
    gap: 8px;
}

.tools-list li {
    font-size: 0.85rem;
    line-height: 1.4;
}

.tools-list li i {
    font-size: 0.95rem;
}

/* ==========================================================================
   SECTION 5.1: EQUIPO DE GESTIÓN (SLIDE 7)
   ========================================================================== */
.team-grid {
    gap: 24px;
    margin-top: 15px;
}

.team-member-card {
    padding: 30px 20px;
}

.member-role-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.member-name {
    font-size: 1.15rem;
}

.role-subtitle {
    font-size: 0.78rem;
}

.member-divider {
    width: 30px;
    margin: 10px 0 14px;
}

.member-responsibilities-title {
    font-size: 0.7rem;
    margin-bottom: 10px;
}

.member-tasks {
    gap: 6px;
}

.member-tasks li {
    font-size: 0.85rem; 
    line-height: 1.3;
}

/* ==========================================================================
   SECTION 6: PROPUESTA DE VALOR PARA EFE (SLIDE 8 - STUNNING 4-COLUMN GRID)
   ========================================================================== */
@media screen and (min-width: 769px) {
    #propuesta-valor .container {
        overflow: hidden !important;
    }
    
    .value-grid {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-template-rows: repeat(2, 185px) !important;
        grid-template-columns: none !important;
        grid-auto-columns: calc((100% - 40px) / 3) !important;
        gap: 20px !important;
        margin-top: 10px;
        transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform;
    }
    
    .span-last-value {
        grid-column: auto !important;
    }
    
    .value-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.value-card {
    padding: 24px;
}

.value-index {
    margin-bottom: 8px;
}

.value-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.value-text {
    font-size: 0.85rem; 
    line-height: 1.4;
}

/* ==========================================================================
   SECTION 7: CONTACT & FORM (SLIDE 9)
   ========================================================================== */
.contacto-wrapper {
    gap: 40px;
    margin-top: 10px;
}

.contacto-main-title {
    font-size: 1.95rem;
    margin-bottom: 12px;
}

.contacto-lead-text {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.contacto-sub-text {
    font-size: 0.92rem; 
    line-height: 1.5;
    margin-bottom: 15px;
}

.conclusiones-bullets {
    gap: 10px;
    margin-bottom: 20px;
}

.conclusiones-bullets li {
    font-size: 0.9rem; 
    line-height: 1.4;
}

.conclusiones-bullets li i {
    font-size: 1rem;
}

.contacto-brand-badge {
    padding: 10px 16px;
    gap: 12px;
}

.brand-badge-logo {
    width: 36px;
    height: 36px;
}

.contacto-brand-badge h4 {
    font-size: 0.9rem;
}

.contacto-brand-badge p {
    font-size: 0.68rem;
}

/* Compact Glass Form */
.contacto-form-column {
    padding: 30px;
    position: relative !important;  /* needed for absolute feedback overlay */
    overflow: hidden;
}

.form-header-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.form-header-subtitle {
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    font-size: 0.78rem;
    margin-bottom: 4px;
    display: block;
    color: rgba(220, 230, 245, 0.75);
    letter-spacing: 0.03em;
    font-weight: 600;
}

#tech-contact-form .form-group input,
#tech-contact-form .form-group select,
#tech-contact-form .form-group textarea {
    padding: 9px 13px;
    font-size: 0.88rem;
    width: 100%;
    box-sizing: border-box;
    background: rgba(10, 20, 38, 0.92) !important;
    background-color: rgba(10, 20, 38, 0.92) !important;
    border: 1px solid rgba(91, 155, 213, 0.28) !important;
    border-radius: 8px !important;
    color: #e8f0ff !important;
    font-family: var(--font-primary);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none;
}

#tech-contact-form .form-group input::placeholder,
#tech-contact-form .form-group textarea::placeholder {
    color: rgba(160, 180, 210, 0.45) !important;
}

#tech-contact-form .form-group input:focus,
#tech-contact-form .form-group select:focus,
#tech-contact-form .form-group textarea:focus {
    border-color: rgba(91, 155, 213, 0.7) !important;
    background: rgba(14, 28, 52, 0.97) !important;
    background-color: rgba(14, 28, 52, 0.97) !important;
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.14) !important;
}

#tech-contact-form .form-group select option {
    background: #0e1c34 !important;
    background-color: #0e1c34 !important;
    color: #e8f0ff !important;
}

#tech-contact-form .form-group textarea {
    resize: vertical;
    min-height: 90px;
}

/* Override browser autofill background on dark inputs */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(10, 20, 38, 0.95) inset !important;
    -webkit-text-fill-color: #e8f0ff !important;
    border-color: rgba(91, 155, 213, 0.4) !important;
    caret-color: #e8f0ff;
}


/* ==========================================================================
   ANIMATED SUBMIT BUTTON & FORM VALIDATION STYLES
   ========================================================================== */

/* Wrapper that gets translated by JS for the escape/follow animation */
.submit-btn-wrapper {
    position: relative;
    width: 100%;
    will-change: transform;
    transition: none; /* JS controls movement via RAF */
    z-index: 10;
    user-select: none;
}

/* Error bar – slides down into view */
.form-error-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(220, 50, 50, 0.15);
    border: 1px solid rgba(220, 70, 70, 0.45);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: #ff8080;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.form-error-bar.visible {
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: shake-bar 0.42s ease;
}

@keyframes shake-bar {
    0%   { transform: translateX(0); }
    18%  { transform: translateX(-6px); }
    36%  { transform: translateX(7px); }
    54%  { transform: translateX(-5px); }
    72%  { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.form-error-bar i {
    font-size: 1rem;
    flex-shrink: 0;
    animation: pulse-icon 1.4s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

/* When form is NOT ready: button appears slightly dimmer and cursor shows "not-allowed" */
.submit-btn-wrapper.form-not-ready #btn-submit {
    opacity: 0.62;
    cursor: not-allowed;
    background: linear-gradient(135deg, #3a6080, #2a4a65);
    box-shadow: none;
}

/* When form IS ready: button is vibrant and has a ready glow */
.submit-btn-wrapper.form-ready #btn-submit {
    opacity: 1;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-accent-blue), #4582C0);
    box-shadow: 0 0 22px rgba(91, 155, 213, 0.5), 0 4px 14px rgba(0,0,0,0.4);
    animation: ready-pulse 2.2s ease-in-out infinite;
}

@keyframes ready-pulse {
    0%, 100% { box-shadow: 0 0 22px rgba(91, 155, 213, 0.45), 0 4px 14px rgba(0,0,0,0.4); }
    50%       { box-shadow: 0 0 38px rgba(91, 155, 213, 0.75), 0 6px 18px rgba(0,0,0,0.5); }
}

/* Success / Feedback overlay – hidden by default, shown on .active */
.form-feedback-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 26, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.94);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16,1,0.3,1);
    z-index: 20;
}

.form-feedback-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.feedback-content {
    text-align: center;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feedback-content h4 {
    font-size: 1.3rem;
    font-family: var(--font-tech);
    letter-spacing: 0.08em;
    color: #ffffff;
    margin: 0;
}

.feedback-content p {
    font-size: 0.9rem;
    color: rgba(200, 215, 235, 0.8);
    margin: 0;
    line-height: 1.5;
}

.feedback-sub-text {
    font-size: 0.82rem !important;
    color: rgba(160, 185, 215, 0.65) !important;
}

.feedback-success-icon {
    font-size: 3.2rem;
    color: #5BC4A0;
    margin-bottom: 6px;
    display: block;
    animation: pop-icon 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes pop-icon {
    0%   { transform: scale(0.2) rotate(-25deg); opacity: 0; }
    100% { transform: scale(1)   rotate(0deg);   opacity: 1; }
}

/* ==========================================================================
   FOOTER SECTION (STANDALONE DESKTOP SLIDE)
   ========================================================================== */
.footer-container {
    gap: 40px;
    margin-bottom: 25px; 
}

.footer-brand-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-top: 15px;
}

.footer-links h4,
.footer-info h4 {
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.footer-links ul {
    gap: 10px;
}

.footer-links a,
.footer-info p {
    font-size: 0.88rem;
}

.footer-info i {
    font-size: 0.95rem;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom p,
.tech-timestamp {
    font-size: 0.72rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES (RESTORES STANDARD SCROLL ON MOBILE)
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-tagline {
        font-size: 1.6rem;
    }
    
    .about-grid {
        gap: 25px;
    }
    
    .services-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .capacity-dashboard {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .span-two-cols {
        grid-column: span 1;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .span-last-value {
        grid-column: span 2;
    }
    
    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 900px) {
    #main-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    /* Mobile viewports override: restore natural normal scrolling & static layouts */
    body {
        overflow-y: auto !important;
    }
    
    section {
        height: auto !important;
        width: auto !important;
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: none !important;
    }
    
    footer {
        height: auto !important;
        width: auto !important;
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: none !important;
        padding: 60px 0 0 !important;
    }
    
    .navbar-container {
        padding: 0 20px !important;
    }
    
    .container {
        max-height: none !important;
        padding-top: 70px !important;
    }
    
    .about-card,
    .benefit-card,
    .service-info-column,
    .service-activities-column,
    .activities-list li,
    .metric-card,
    .safety-panel,
    .resource-card,
    .team-member-card,
    .value-card,
    .contacto-form-column,
    .contacto-info-column,
    .footer-container,
    .footer-bottom {
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .section-title {
        font-size: 2.2rem;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-tagline {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-quick-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 35px 24px;
    }
    
    .tabs-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
        font-size: 1rem;
    }
    
    .service-purpose-card {
        padding: 24px;
    }
    
    .service-purpose-text {
        font-size: 1.05rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .total-metric {
        grid-column: span 1;
    }
    
    .total-metric-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .safety-panel {
        padding: 24px;
    }
    
    .tools-bullets-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile falls back to 1 column */
    .value-grid {
        grid-template-columns: 1fr !important;
    }
    
    .span-last-value {
        grid-column: span 1 !important;
    }
    
    .contacto-main-title {
        font-size: 2rem;
    }
    
    .contacto-form-column {
        padding: 30px 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-bottom p {
        text-align: center;
    }
}

/* Card Visual Image Styling */
.card-visual-image {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-card:hover .card-img,
.resource-card:hover .card-img {
    transform: scale(1.06);
}

/* ==========================================================================
   DIGITAL GLITCH NOISE & 3D TELECOM ANTENNA OVERLAY
   ========================================================================== */

#noise-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s linear;
}

#glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: radial-gradient(circle at 30% 50%, rgba(10, 10, 10, 0.94) 0%, rgba(0, 0, 0, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    pointer-events: none;
}

#glitch-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.glitch-text-col {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    z-index: 10;
    pointer-events: none;
    text-align: left;
}

.glitch-title-1 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    font-size: 5.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-text-white);
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.05;
}

.glitch-title-2 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    font-size: 4.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-accent-blue);
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.05;
}

#glitch-overlay.show-text-1 .glitch-title-1 {
    opacity: 1;
    transform: translateY(0);
}

#glitch-overlay.show-text-2 .glitch-title-2 {
    opacity: 1;
    transform: translateY(0);
}

#three-container {
    width: 55%;
    height: 80vh;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(80px) scale(0.92);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#glitch-overlay.show-model #three-container {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Make sure glitch elements display correctly in mobile (disabled, but robust) */
@media (max-width: 768px) {
    #noise-canvas, #glitch-overlay {
        display: none !important;
    }
}

/* 3D Technical Support Truck Styles */
#truck-3d-canvas {
    z-index: 9999;
    pointer-events: none;
}

#truck-3d-canvas.fixed-animating {
    position: fixed !important;
    transition: top 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                left 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                width 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#truck-3d-canvas.embedded-card {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: auto;
    transition: none !important;
}

/* Custom extra-large sizing for the 3D truck card (both normal and expanded states) on desktop */
@media screen and (min-width: 769px) {
    #admin-cars-card .card-visual-image {
        width: 380px !important;
        height: 220px !important;
        max-width: 100% !important;
        flex-shrink: 0 !important;
        margin-top: 10px !important;
        margin-bottom: 15px !important;
    }
    #admin-cars-card.expanded .card-visual-image {
        order: 2 !important; /* Keep it on the right side when expanded */
        margin: 0 !important;
    }
}

