/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    background: #000000;
}

/* ========================================
   NAVIGATION HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
}

/* Logo - Top Left */
.logo-container {
    position: absolute;
    top: 30px;
    left: 40px;
    pointer-events: auto;
}

/* Hide Hamburger on Desktop */
.hamburger {
    display: none;
}

.site-logo {
    height: 110px;
    width: auto;
    display: block;
    /* Golden/yellow light glow behind the PNG logo */
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    transition: all 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

/* Navigation Menu - Top Right */
.main-nav {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    background: rgba(185, 28, 28, 0.1);
    color: #B91C1C;
    transform: translateY(-2px);
}

/* Scrolled Header State (triggered by JS) */
body.scrolled-header .nav-link {
    color: #FFFFFF;
}

body.scrolled-header .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

body.scrolled-header .logo-container {
    background: transparent;
    border-radius: 15px;
    padding: 5px 20px;
    box-shadow: none;
    top: 25px;
    transition: all 0.3s ease;
}

/* On Nosotros page, remove the white logo background (redundant now but kept for specificity) */
body.nosotros-page .logo-container {
    background: transparent;
    box-shadow: none;
    border: none;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    background: transparent;
    border: none;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.lang-btn:hover {
    opacity: 1;
    color: #B91C1C;
}

.lang-btn.active {
    opacity: 1;
    color: #B91C1C;
    position: relative;
}

.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #B91C1C;
    border-radius: 50%;
}

body.scrolled-header .lang-btn {
    color: #FFFFFF;
}

body.scrolled-header .lang-btn.active, 
body.scrolled-header .lang-btn:hover {
    color: #FFFFFF;
}

body.scrolled-header .lang-btn.active::after {
    background: #FFFFFF;
}

body.scrolled-header .lang-switcher {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mobile Adjustments for Switcher */
@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 30px;
        justify-content: center;
        width: 100%;
        display: flex;
        gap: 15px;
    }
    
    .lang-btn {
        font-size: 1rem;
        padding: 8px 16px;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 4px;
        min-width: 60px;
        text-align: center;
    }

    .lang-btn.active {
        background: #B91C1C;
        border-color: #B91C1C;
        color: white;
    }

    .lang-btn.active::after {
        display: none; /* Hide the dot in mobile menu as we use background instead */
    }
}

/* ========================================
   PRELOADER
   ======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    /* Dark Mode */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
    /* Prevent shake scrollbars */
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.loader-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    /* Increased size */
    color: #FFFFFF;
    /* White Text */
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.progress-container {
    width: 400px;
    /* Wider container for balance */
    margin: 0 auto;
}

.progress-bar-track {
    width: 100%;
    height: 2px;
    background: #333;
    /* Darker track */
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: #B91C1C;
    /* Red fill */
    transition: width 0.1s linear;
}

.loading-percentage {
    font-family: 'Inter', sans-serif;
    color: #aaa;
    /* Lighter Gray for visibility on black */
    font-size: 0.9rem;
    font-weight: 600;
}

/* Bullet Impacts in Preloader */
#preloader .bullet-impact {
    position: absolute;
    width: 150px;
    height: 150px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    /* Hidden initially */
    transform: scale(0.5);
    display: block;
    /* Override any previous none */
}

#preloader .bullet-impact img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Specific Positions for Impacts */
/* Specific Positions for Impacts */
#impact-1 {
    top: 5%;
    left: 5%;
    transform: rotate(-15deg) scale(0.8);
}

#impact-2 {
    bottom: 5%;
    right: 5%;
    transform: rotate(10deg) scale(0.9);
}

#impact-3 {
    top: 10%;
    right: 5%;
    /* Moved to right side to avoid center */
    left: auto;
    transform: rotate(5deg) scale(1);
}

/* Shake Animation Class */
.shake-animation {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-4px, -4px, 0);
    }

    20%,
    80% {
        transform: translate3d(6px, 6px, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-8px, -8px, 0);
    }

    40%,
    60% {
        transform: translate3d(8px, 8px, 0);
    }
}



/* ========================================

   HERO SECTION (NEW VIDEO HERO)
   ======================================== */
#video-hero {
    position: fixed;
    /* Fixed to create reveal effect */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 1;
    /* Behind the next section */
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    /* opacity: 0.6; Removed for full brightness */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

#hero-blindaje {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #fff;
    z-index: 5;
    margin-top: 100vh;
    /* Push down to reveal fixed hero initially */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}



.sticky-container {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}



/* Black Section */
#black-section {
    position: relative;
    z-index: 20;
    /* Higher than hero */
    /* background-color: #000000; Removed solid black */
    background-color: #000000;
    /* Restoration for letterboxing */
    background-image: url('./assets/section-background-4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Move content to the right */
    padding: 4rem;
    padding-right: 10%;
    /* Add some padding from the right edge */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    /* Shadow to separate layers */
    /* margin-bottom: 90vh; REMOVED REVEAL EFFECT */
}

.content-wrapper {
    max-width: 500px;
    /* Constrain width */
    text-align: right;
    /* Right align text */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align everything to the right */
}

.scroll-logo {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.scroll-badge {
    margin-bottom: 2rem;
    animation: none;
    /* Already visible */
    opacity: 1;
}

.content-wrapper h2 {
    font-family: Georgia, 'Times New Roman', serif;
    /* Match Section 1 */
    font-size: 3rem;
    font-weight: 400;
    /* Regular weight like Section 1 */
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    /* Solid white */
    /* Removed gradient for cleaner look matching request */
}

.content-wrapper p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #cccccc;
}

/* Bullet Impacts */
.bullet-impact {
    position: absolute;
    width: 200px;
    /* Adjust size as needed */
    height: 200px;
    z-index: 25;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.5);
    /* mix-blend-mode: screen; Removed: Using transparent asset now */
}

.bullet-impact img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)) invert(1);
    /* Invert to make black cracks white */
}

#impact-1 {
    top: 35%;
    /* Aligned with title B */
    right: 42%;
    /* Left of text */
    left: auto;
    transform: rotate(-15deg) scale(0.5);
}

#impact-2 {
    top: 40%;
    right: 45%;
    /* Further left, to the side of text */
    transform: rotate(10deg) scale(0.5);
}

#impact-3 {
    top: 42%;
    /* Close to others */
    right: 40%;
    left: auto;
    transform: rotate(45deg) scale(0.5);
}

/* ========================================
   CANVAS
   ======================================== */
#heroCanvas {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

/* ========================================
   CANVAS INTRO OVERLAY (Logo + Badge)
   ======================================== */
.canvas-intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align to right */
    justify-content: center;
    padding-right: 8%;
    /* Spacing from edge (Aligned with Hero Title) */
    z-index: 10;
    pointer-events: none;
    /* Allow scroll through */
}

.intro-logo {
    width: 160px;
    /* Increased size */
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
}

.intro-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align text right */
    opacity: 1;
    animation: none;
    text-align: right;
}

.intro-badge .badge-years {
    font-size: 5rem;
    /* Increased size significantly */
    color: #B91C1C;
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
}

.intro-badge .badge-text {
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    /* Increased size */
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========================================
   HERO TITLES - BOTH SIDES
   ======================================== */
.hero-title-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    transition: opacity 0.5s ease;
}

.hero-title-left {
    left: 8%;
}

.hero-title-right {
    right: 8%;
    text-align: right;
}

.hero-main-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4rem;
    /* Reduced from 5rem */
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    text-transform: capitalize;
    opacity: 0;
    /* Animated in via JS if needed, or set to 1 */
    animation: fadeInMoveUp 1s ease forwards 0.5s;
}

.hero-separator-line {
    width: 100%;
    height: 4px;
    background-color: #B91C1C;
    /* Red Accent */
    margin: 10px 0;
    transform: scaleX(0);
    /* Animate width */
    transform-origin: left;
    animation: expandLine 1s ease forwards 1s;
}

.hero-sub-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 8px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInMoveUp 1s ease forwards 1.5s;
}

.hero-cta-btn {
    display: none; /* Hidden by default (Desktop) */
    background-color: #B91C1C;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 15px 40px;
    border-radius: 4px;
    margin-top: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.3);
}

.hero-cta-btn:hover {
    background-color: #991B1B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.4);
}

@keyframes fadeInMoveUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    to {
        transform: scaleX(1);
    }
}

/* Staggered animation for each word with smooth elegant timing */
.hero-title-word.word-1 {
    animation: wordFadeInSmooth 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

.hero-title-word.word-2 {
    animation: wordFadeInSmooth 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.4s forwards;
}

.hero-title-word.word-3 {
    animation: wordFadeInSmooth 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

.hero-title-word.word-4 {
    animation: wordFadeInSmooth 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.4s forwards;
}

@keyframes wordFadeInSmooth {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(3px);
    }

    60% {
        filter: blur(0px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

/* ========================================
   HERO LOGO - LEFT SIDE
   ======================================== */
.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0;
    animation: logoFadeIn 1s ease 0.3s forwards;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   EXPERIENCE BADGE - RIGHT SIDE
   ======================================== */
.experience-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 20px;
    opacity: 0;
    animation: badgeFadeIn 1s ease 0.5s forwards;
}

.badge-years {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #B91C1C;
    line-height: 1;
    margin-bottom: 4px;
}

.badge-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.4;
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge separator line */
.badge-separator {
    width: 60px;
    height: 2px;
    background: #B91C1C;
    margin: 12px 0 16px auto;
    opacity: 0;
    animation: separatorFadeIn 0.8s ease 1s forwards;
}

@keyframes separatorFadeIn {
    from {
        opacity: 0;
        width: 0;
    }

    to {
        opacity: 1;
        width: 60px;
    }
}

/* ========================================
   HOTSPOTS
   ======================================== */
.hotspot {
    position: absolute;
    opacity: 0;
    transform: scale(0.5);
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hotspot:hover {
    transform: scale(1.1);
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
}

/* Hotspot dot with pulse animation */
.hotspot-dot {
    width: 24px;
    height: 24px;
    background: #B91C1C;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 4px 20px rgba(185, 28, 28, 0.6);
    }
}

/* ========================================
   CALLOUT SYSTEM
   ======================================== */
.hotspot-callout {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hotspot.active .hotspot-callout {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Connector line */
.callout-line {
    position: absolute;
    width: 2px;
    background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.3) 100%);
    transform-origin: top;
    animation: lineGrow 0.3s ease forwards;
}

@keyframes lineGrow {
    from {
        height: 0;
    }

    to {
        height: var(--line-height, 60px);
    }
}

/* Callout box */
.callout-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(185, 28, 28, 0.2);
    width: 300px;
    /* Reduced from 400px */
    max-width: 90vw;
    /* Responsive constraint */
    animation: calloutFadeIn 0.4s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(-10px);
}

@keyframes calloutFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.callout-box h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.3;
}

/* New styles for image content in hotspots */
.img-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.img-container img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.img-container span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    text-align: center;
}

/* Positioning for each hotspot */

/* Posición cristales - al lado izquierdo */
#hotspot-cristales .callout-line {
    top: 24px;
    left: 12px;
    --line-height: 80px;
}

#hotspot-cristales .callout-box {
    position: absolute;
    top: 104px;
    left: -150px;
    /* Center of 300px */
}

/* Posición puertas - al lado izquierdo */
#hotspot-puertas .callout-line {
    top: 24px;
    left: 12px;
    --line-height: 70px;
}

#hotspot-puertas .callout-box {
    position: absolute;
    top: 94px;
    left: -150px;
}

/* Posición suspensión - ARRIBA (Inverted to show above) */
#hotspot-suspension .callout-line {
    bottom: 24px;
    /* Start from top of dot */
    left: 12px;
    top: auto;
    transform-origin: bottom;
    --line-height: 90px;
}

#hotspot-suspension .callout-box {
    position: absolute;
    bottom: 114px;
    /* Position above the dot */
    top: auto;
    left: -150px;
}

/* ========================================
   HOTSPOT POSITIONING
   ======================================== */
#hotspot-cristales {
    top: 30%;
    left: 45%;
}

#hotspot-puertas {
    top: 40%;
    left: 45%;
}

#hotspot-suspension {
    top: 68%;
    left: 65%;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    #heroCanvas {
        max-height: 70vh;
    }

    .hotspot-dot {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }

    .tooltip-title {
        font-size: 0.65rem;
    }

    .tooltip-description {
        font-size: 0.75rem;
    }

    .hotspot-tooltip {
        padding: 10px 14px;
    }

    .hero-title-word {
        font-size: 2.5rem;
    }

    .hero-title-container {
        left: 5%;
    }
}

@media (max-width: 480px) {
    #hero-blindaje {
        height: 350vh;
    }

    #heroCanvas {
        max-height: 60vh;
    }

    .loading-text {
        font-size: 0.875rem;
    }

    .hotspot-dot {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   ARMOR CAROUSEL
   ======================================== */
#armor-carousel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 15;
    /* Behind hotspots (25) */
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    /* Hide overflow */
    pointer-events: none;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    padding-left: 0;
    /* Start on-screen */
    width: max-content;
    /* Allow full width of items */
    will-change: transform;
}

.carousel-item {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Shielding Level Selector Section --- */
#shielding-selector {
    position: relative;
    /* Restored to relative */
    /* bottom: 0; */
    /* left: 0; */
    z-index: 5;
    /* Above Hero (1), Below Black (20) */
    width: 100%;
    height: 90vh;
    min-height: 600px;
    max-height: none;
    overflow: hidden;

    /* Initial State: Visible */
    opacity: 1;
    pointer-events: auto;
    /* transition: opacity 0.5s ease; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: #111;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0px;
    /* Connects smoothly to next section */
    padding-top: 40px;
}

/* Background Layers */
.shielding-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shielding-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.shielding-bg.active {
    opacity: 1;
    z-index: 2;
}

/* Initial Background */
#shielding-bg-layer-1 {
    background-image: url('./assets/bg_level_2.png');
    /* Default Nivel 2 */
}

/* Overlay */
.shielding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

/* Content Container */
.shielding-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: row;
    /* Changed to row for side-by-side layout (Text left, Car right) */
    align-items: center;
    justify-content: space-between;
    position: relative;
    /* Ensure it's the reference for absolute children */
}

/* Tabs Navigation */
.shielding-tabs {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 0;
    z-index: 20;
    padding-right: 20px;
    /* Spacing from edge */
}

.shielding-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50%;
    /* Round buttons */
    transition: all 0.3s ease;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SHIELDING PRESENTATION (REDESIGN)
   ======================================== */
#shielding-presentation {
    background-color: #ffffff;
    /* Modificado: Fondo blanco */
    color: #111;
    /* Modificado: Texto oscuro */
    position: relative;
    padding: 6rem 0 0;
    width: 100%;
    z-index: 2;
    display: flow-root;
    /* Contains child margins */
}

/* Levels Strip */
.levels-strip-container {
    padding: 0 5%;
    margin-bottom: 250px;
    text-align: center;
}

.levels-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    color: #B91C1C;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.levels-track {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.level-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    /* For animation */
    transform: translateY(20px);
}

.shield-icon {
    width: 60px;
    height: 70px;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Shield Shape via Clip Path */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.shield-icon span {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.level-item:hover .shield-icon {
    background: #B91C1C;
    transform: scale(1.1);
}

.level-name {
    font-size: 0.8rem;
    color: #333;
    /* Modificado: Color oscuro para fondo blanco */
    text-transform: uppercase;
    font-weight: 600;
}

/* ========================================
   4 VERTICAL VIDEOS SECTION (Hover Expand)
   ======================================== */
.levels-videos-section {
    display: flex;
    width: 100%;
    height: 70vh;
    /* Altura de la sección de videos */
    overflow: hidden;
    background: #ffffff;
    /* Modificado: Fondo blanco en lugar de negro */
    margin-top: 50px;
    /* Separación solicitada respecto a la barra de niveles */
}

/* ========================================
   VIDEO MODAL
   ======================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-content video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10000;
}

.close-modal:hover {
    color: #ccc;
}

.level-video-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border-right: 2px solid #ffffff;
    /* Modificado: color de borde separador a blanco */
}

.level-video-item:last-child {
    border-right: none;
}

.level-video-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    transition: filter 0.4s;
}

.level-video-item .level-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: all 0.4s;
}

/* Caliber badge on level videos (Primary Title) */
.level-caliber {
    display: inline-block;
    background: #B91C1C;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
    transition: transform 0.3s ease;
}

.level-video-item h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.level-video-item p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #ddd;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* HOVER STATES */
.level-video-item:hover {
    flex: 2.5;
    /* Se expande al hacer hover */
}

.level-video-item:hover video {
    filter: brightness(0.9);
}

.level-video-item:hover p {
    opacity: 1;
    max-height: 100px;
    margin-top: 10px;
}

/* ========================================
   CERTIFICACIONES SECUNDARIAS (Debajo de Niveles)
   ======================================== */
.certificaciones-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0 80px;
    width: 100%;
}

.cert-bottom-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    /* Coincide con .levels-title */
    color: #000;
    /* Modificado: Ahora en negro */
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
    /* Coincide con .levels-title */
    text-transform: uppercase;
}

.cert-separator-line {
    width: 350px;
    height: 4px;
    background: #B91C1C;
    margin: 0 auto 30px auto;
    position: relative;
    border-radius: 2px;
}

.cert-bottom-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #444;
    max-width: 900px;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 60px;
    padding: 0 20px;
}

.cert-bottom-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    /* Mas espacio entre filas */
    width: 100%;
    max-width: 1300px;
}

.cert-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    /* Mas espacio entre logos */
    flex-wrap: wrap;
}

.cert-row img {
    height: 160px;
    /* Logos AÚN MÁS grandes */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cert-row img:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .shielding-content {
        flex-direction: column-reverse;
    }

    .shielding-car-container {
        height: 300px;
        width: 100%;
    }

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

    .levels-videos-section {
        flex-direction: column;
        /* Apilados verticalmente en móviles */
        height: 120vh;
        /* Darle más altura en móviles para que quepan */
    }

    .level-video-item {
        border-right: none;
        border-bottom: 2px solid #ffffff;
        /* Modificado: blanco para móviles */
    }

    /* En hover móvil no animamos expansión agresiva horizontal */
    .level-video-item:hover {
        flex: 1.5;
        /* Pequeño expansión vertical */
    }

    #shielding-selector {
        height: auto;
        min-height: 600px;
        padding-bottom: 40px;
    }

    .shielding-tabs {
        gap: 10px;
    }

    .shielding-tab {
        padding: 8px 15px;
        font-size: 0.75rem;
    }

    .shielding-title {
        font-size: 1.8rem;
    }

    .certificaciones-bottom {
        padding: 40px 0 60px;
    }

    .cert-bottom-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .cert-separator-line {
        width: 40px;
        margin-bottom: 25px;
    }

    .cert-bottom-text {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .cert-bottom-logos {
        gap: 30px;
    }

    .cert-row {
        gap: 20px;
    }

    .cert-row img {
        height: 100px;
        /* Logos mas grandes en movil tambien */
    }

    .shielding-content {
        margin-bottom: 20px;
    }
}

/* ========================================
   SERVICES VIDEO SECTION (DIAGONAL)
   ======================================== */
#services-videos {
    display: flex;
    width: 100%;
    height: 80vh;
    /* Adjust height as needed */
    overflow: hidden;
    background: #000;
    position: relative;
    z-index: 20;
    /* Adjust height as needed */
    overflow: hidden;
    background: #000;
    position: relative;
    z-index: 20;
}

#black-section {
    background-color: #000000;
    position: relative;
    z-index: 30;
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin-top: -1px;
}

.section-bg-video {
    display: none;
    /* Hide on desktop */
}

/* ========================================
   BLACK SECTION YOUTUBE VIDEO
   ======================================== */
.black-section-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Optional: limit width on large screens */
    margin: 40px auto 0; /* Center and add space from text */
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px; /* Smooth corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Deep shadow */
}

.black-section-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.service-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    /* Diagonal effect using skew */
    transform: skewX(-10deg);
    border-right: 2px solid #000;
    /* Separator line */
    margin-right: -1px;
    /* Prevent gaps */
}

/* Fix first and last items to fill edges */
.service-item:first-child {
    margin-left: -5%;
    /* Extend to left */
    padding-left: 5%;
    border-left: none;
}

.service-item:last-child {
    margin-right: -5%;
    /* Extend to right */
    padding-right: 5%;
    border-right: none;
}

/* ========================================
   CONTACT SECTION (Fondo Negro)
   ======================================== */
.contact-section {
    position: relative;
    z-index: 20;
    /* Ensures it sits above the fixed hero background */
    background-color: #0d0d0d;
    /* Fondo negro profundo */
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #222;
    /* Sutil separación superior si es necesario */
}

.contact-container {
    width: 100%;
    max-width: 800px;
    background: #151515;
    /* Un poco más claro que el fondo para destacar el form */
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #222;
}

.contact-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    color: #fff;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.contact-separator {
    width: 60px;
    height: 3px;
    background-color: #B91C1C;
    margin: 0 auto 30px auto;
}

.contact-text {
    font-family: 'Inter', sans-serif;
    color: #aaa;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #ddd;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    width: 100%;
    padding: 15px;
    background-color: #080808;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #B91C1C;
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    background-color: #B91C1C;
    color: #fff;
    border: none;
    padding: 16px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    background-color: #991b1b;
    transform: translateY(-2px);
}

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

/* Remove skew for inner content so text/video isn't distorted */
.service-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    /* Make wider to cover skew */
    height: 100%;
    object-fit: cover;
    transform: skewX(10deg);
    /* Counter skew */
    left: -25%;
    /* Center after making wider */
    filter: brightness(0.6);
    transition: filter 0.4s;
}

.service-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: skewX(10deg);
    /* Counter skew */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Text at bottom */
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0.8;
    transition: opacity 0.4s;
}

/* Extra padding for proper alignment on first item due to skew/margin */
.service-item:first-child .overlay {
    padding-left: 18%;
    /* Increased from 10% to prevent cut-off */
}

.service-item h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-item p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #ddd;
    max-width: 0;
    /* Hide by default/animate width or height */
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    white-space: nowrap;
    /* Keep on one line if desired, or allow wrap */
}

/* HOVER STATES */
.service-item:hover {
    flex: 3;
    /* Expand item */
}

.service-item:hover video {
    filter: brightness(0.8);
}

.service-item:hover p {
    opacity: 1;
    max-width: 500px;
    /* Reveal text */
    margin-top: 10px;
    white-space: normal;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    #services-videos {
        flex-direction: column;
        height: 100vh;
        /* Full screen height for the widget */
        overflow: hidden;
    }

    .service-item {
        flex: 1;
        /* Start equal */
        width: 100%;
        height: auto;
        transform: none;
        /* Reset desktop skewX */
        border-right: none;
        margin: 0;

        /* Vertical Diagonal Effect */
        transform: skewY(-5deg);
        margin-top: -30px;
        /* Overlap to hide gaps */
        margin-bottom: -30px;

        transition: flex 0.5s ease, height 0.5s ease;
        border-top: 2px solid #000;
        border-bottom: 2px solid #000;
        overflow: hidden;
    }

    /* Fix first and last items to cover edges */
    .service-item:first-child {
        margin-top: -50px;
        /* Extend up */
        padding-top: 50px;
        margin-left: 0;
        padding-left: 0;
    }

    .service-item:last-child {
        margin-bottom: -50px;
        /* Extend down */
        padding-bottom: 50px;
        margin-right: 0;
        padding-right: 0;
    }

    /* Counter-skew content so it looks straight */
    /* Counter-skew content so it looks straight */
    /* Counter-skew content so it looks straight */
    .service-item video,
    .service-item .overlay {
        transform: skewY(5deg) scale(1.1);
        /* Scale up slightly to cover edges */
        width: 100%;
        height: 100%;
        object-fit: cover;
        left: 0;
    }

    /* STATIC LAYOUT (No Expansion) */
    .service-item {
        flex: 1;
        /* Equal height */
    }

    /* Reset desktop skew specific styles */
    .service-item video {
        left: 0;
    }

    .service-item .overlay {
        transform: skewY(5deg);
        padding: 1rem;
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Center content vertically */
        align-items: center;
        text-align: center;
    }

    /* Text Always Visible */
    .service-item p {
        max-height: none;
        opacity: 1;
        margin-top: 5px;
        white-space: normal;
        font-size: 0.9rem;
    }

    .service-item h3 {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }

    .service-item:first-child .overlay {
        padding-left: 1rem;
    }

    /* No expansion on mobile, or maybe just slight */

    .service-item p {
        opacity: 1;
        max-width: 100%;
        white-space: normal;
    }

    .service-item h3 {
        font-size: 1.4rem;
    }
}

/* ========================================
/* ========================================
   LOGOS CERTIFICACIONES (HERO)
   ======================================== */
.hero-cert-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 35px;
    justify-content: flex-start;
    /* Alineados a la izquierda (desde la B de Blindaje) */
}

.hero-cert-logos img {
    height: 45px;
    /* Logos más grandes */
    width: auto;
    object-fit: contain;
    background-color: #fff;
    padding: 4px 10px;
    /* Espacio extra blanco alrededor del logo */
    border-radius: 4px;
    /* Bordes ligeramente redondeados */
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-cert-logos img:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .hero-cert-logos {
        display: none;
    }
}

/* ========================================
   MINIMALIST FOOTER
   ======================================== */
#site-footer {
    position: relative;
    /* Ensure stacking context */
    z-index: 40;
    /* Higher than hero (30) */
    background-color: #050505;
    /* Almost black */
    color: #FFFFFF;
    padding: 6rem 8% 2rem;
    /* Matches existing side padding */
    font-family: Georgia, 'Times New Roman', serif;
    border-top: 1px solid #1a1a1a;
}

/* Ensure the section before footer also covers the hero */
#shielding-presentation {
    position: relative;
    z-index: 40;
    background-color: #ffffff;
    /* Solid white to hide hero */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Brand Column */
.brand-col .footer-logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.brand-col .footer-tagline {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-logo-img {
    height: 110px;
    width: auto;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: transparent;
    border-radius: 12px;
    padding: 8px 0px;
    box-shadow: none;
    /* Golden/yellow light glow behind the PNG logo */
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

/* Links Column */
.links-col h5,
.contact-col h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #CCC;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #B91C1C;
    /* Red Accent */
    padding-left: 5px;
}

/* Contact Column */
.contact-col p {
    color: #CCC;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.contact-col a {
    color: #CCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-col a:hover {
    color: #B91C1C;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p,
.footer-bottom a {
    color: #555;
    font-size: 0.85rem;
}

.footer-bottom a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #CCC;
}


/* ========================================
   RESPONSIVE STYLES (TABLET & MOBILE)
   ======================================== */

@media (max-width: 1024px) {
    /* Tablet Adjustments */
    .hero-main-title {
        font-size: 4rem;
    }

    .hero-sub-title {
        font-size: 1.8rem;
    }

    #heroCanvas {
        width: 100vw;
        height: 100vh;
        object-fit: contain;
    }

    .nosotros-main-title-new {
        font-size: 2.2rem;
    }

    .nosotros-header-text {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* --- NAVIGATION --- */
    .site-header {
        height: 80px;
        top: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(5px);
        pointer-events: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
    }

    .logo-container {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        padding: 0;
        display: flex;
        align-items: center;
    }

    /* Hamburger Button */
    .hamburger {
        display: block;
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        z-index: 2000;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 2px;
        background-color: white;
        margin: 3px 0; /* Reduced margin slightly */
        transition: 0.4s;
    }

    /* Animation for Hamburger to X */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .site-logo {
        height: 50px; /* Reduced from 57px to balance with hamburger icon */
    }

    /* Fullscreen Menu Overlay */
    .main-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s ease;
        padding: 0;
        gap: 30px;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.8rem;
        color: white;
        font-weight: 400;
        letter-spacing: 1px;
    }

    /* Language Switcher in Mobile Menu */
    .lang-switcher {
        margin-top: 20px;
        display: flex;
        gap: 20px;
    }

    .lang-btn {
        padding: 10px 20px;
        font-size: 1rem;
        border: 1px solid rgba(255,255,255,0.3);
    }

    /* --- PRELOADER MOBILE --- */
    .progress-container {
        width: 90%;
    }

    .loader-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* --- HERO --- */
    #video-hero {
        height: 90vh; /* Better for mobile viewports */
    }

    .hero-main-title {
        font-size: 2.2rem;
        padding: 0 10%;
        white-space: normal; /* Allow wrapping to prevent overflow */
        line-height: 1.2;
    }

    .hero-sub-title {
        font-size: 1.1rem;
    }

    .hero-cert-logos {
        display: none;
    }

    .hero-title-container {
        width: 100% !important;
        text-align: center;
        top: 55%;
        left: 50% !important;
        right: auto !important; /* Reset desktop right: 8% */
        transform: translate(-50%, -50%);
        padding: 0;
    }

    .hero-separator-line {
        margin: 15px auto;
        width: 40px;
        /* Smaller line */
        height: 1px;
    }

    .hero-sub-title {
        font-size: 1rem;
        font-weight: 300;
        letter-spacing: 4px;
        margin-bottom: 30px;
        display: block;
    }

    .hero-cta-btn {
        display: inline-block; /* Show on mobile */
        width: 80%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    /* --- CANVAS SECTION --- */
    #hero-blindaje {
        background-color: #F0F0F0;
        /* Match image background */
        margin-bottom: 0;
        height: 100vh;
        height: 100dvh;
        /* Layout fix for mobile address bar */
    }

    .canvas-intro-overlay {
        /* Make container full screen to allow free positioning of children */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        /* Click through */
        display: block;
        /* Disable flex centering */
    }

    /* Dark Text for Light Background */
    .badge-years,
    .badge-text,
    .intro-badge {
        color: #000000;
        text-shadow: none;
    }

    #heroCanvas {
        width: 100vw;
        height: 100vh;
        object-fit: contain;
        transform: scale(1.35);
        /* Make car bigger */
        transform-origin: center center;
    }

    .intro-logo {
        position: absolute;
        top: 15%;
        /* Lowered further */
        right: 5%;
        width: 100px;
        /* Smaller size */
        filter: invert(1);
        z-index: 20;
        /* Ensure it stays above */
    }

    .intro-badge {
        position: absolute;
        bottom: 5%;
        /* Kept at bottom */
        left: 0;
        width: 100%;
        /* Full width */
        transform: none;
        /* Remove translateX centering that was causing issues */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 10px;
        /* Safety padding */
        z-index: 20;
        /* Ensure it stays above */
    }

    .badge-years {
        font-size: 2.5rem;
        line-height: 1;
    }

    .badge-text {
        font-size: 0.7rem;
    }

    /* Hotspot Adjustments - Square & Image Focus */
    .hotspot-callout {
        position: absolute;
        width: 100px;
        /* Fixed small width */
        height: auto;
        min-height: 100px;
        /* Square-ish aspect */
        left: 50%;
        transform: translateX(-50%);
        top: 35px;
        background: rgba(255, 255, 255, 0.95);
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .callout-line {
        display: none;
    }

    .callout-box {
        text-align: center;
        color: #000000;
        font-weight: 600;
        font-size: 0.6rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        width: 100%;
        /* Reset Desktop Styles */
        background: none;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        animation: none;
        opacity: 1;
        transform: none;
        padding: 0;
    }

    .img-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    /* Force the span text to be visible and styled */
    .img-container span {
        display: block;
        line-height: 1.1;
    }

    .callout-box img {
        width: 50px;
        /* BIG Icon */
        height: auto;
        filter: invert(1);
        margin: 0;
        display: block;
    }

    /* Realign Mobile Hotspots for Zoomed Car */
    /* Point 1 (Cristales) was too high/left. Moving Down & Right */
    #hotspot-cristales {
        top: 42% !important;
        left: 40% !important;
    }

    #hotspot-puertas {
        top: 55% !important;
        left: 60% !important;
    }

    #hotspot-suspension {
        top: 62% !important;
        left: 80% !important;
    }

    /* Reset ID-specific positioning from desktop */
    #hotspot-cristales .callout-box,
    #hotspot-puertas .callout-box,
    #hotspot-suspension .callout-box {
        position: static;
        width: 100%;
        margin: 0;
        transform: none;
        left: auto;
        top: auto;
    }

    /* --- BLACK SECTION --- */
    #black-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .content-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 2rem;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {


    /* --- Contact Section Responsive --- */
    .contact-section {
        padding: 50px 15px;
    }

    .contact-container {
        padding: 30px 20px;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    #black-section .content-wrapper h2 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
        text-align: center !important;
        width: 100%;
    }

    #black-section .content-wrapper p {
        text-align: center !important;
        margin-top: 0.5rem;
        font-size: 1rem;

        /* Reset any width weirdness */
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* --- BLACK SECTION --- */
    .content-wrapper {
        grid-template-columns: 1fr;
        padding-top: 4rem;
        gap: 2rem;
    }

    .content-wrapper h2 {
        font-size: 2.5rem;
        text-align: center;
    }

    .content-wrapper p {
        text-align: center;
        padding: 0 10px;
    }

    /* --- VIDEO SECTION --- */
    .video-section {
        height: auto;
        padding: 4rem 1rem;
    }

    .video-container {
        width: 100% !important;
        /* Override GSAP width for mobile */
        height: 300px;
    }

    .hero-video-bg {
        object-fit: cover;
    }

    /* --- SERVICES --- */
    .services-grid {
        grid-template-columns: 1fr;
        /* Stack 1 column */
        gap: 30px;
    }

    .service-card {
        padding: 30px;
        height: auto;
    }

    /* --- FOOTER --- */
    #site-footer {
        padding: 4rem 5%;
    }

    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

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

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 1.8rem;
        /* Even smaller for phones */
    }

    .main-nav {
        width: 95%;
        padding: 12px 15px;
        gap: 15px;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    /* Strict Mobile Impact Positioning */
    #impact-1 {
        top: 15% !important;
        left: 10% !important;
        transform: scale(0.6) !important;
    }

    #impact-2 {
        bottom: 15% !important;
        right: 10% !important;
        transform: scale(0.6) !important;
    }

    #impact-3 {
        top: 20% !important;
        right: 10% !important;
        left: auto !important;
        transform: scale(0.6) !important;
    }
}

/* ========================================
   NEW NOSOTROS CAROUSEL HERO (Light Theme)
   ======================================== */
.new-nosotros-hero {
    background-color: #E2E2E2;
    /* Light grey requested by user */
    color: #333333;
    /* Dark text */
    padding-top: 210px;
    /* Space for fixed header, increased to separate from menu */
    padding-bottom: 60px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 5%;
    margin-bottom: 60px;
    gap: 40px;
}

.nosotros-main-title-new {
    flex: 1;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.title-line-1 {
    display: block;
    padding-bottom: 20px;
}

.title-line-2 {
    display: block;
    padding-top: 20px;
}

.nosotros-red-line {
    width: 70px;
    height: 4px;
    background-color: #B91C1C;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.4);
}

.nosotros-header-text {
    flex: 0 0 35%;
    /* Right column width */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nosotros-header-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.scroll-indicator {
    margin-top: 10px;
    font-size: 1.5rem;
    color: #000;
    animation: moveRight 1.5s infinite alternate ease-in-out;
}

@keyframes moveRight {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(10px);
    }
}

/* Horizontal Carousel - CSS Marquee */
.hero-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0 30px 0;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 55s linear infinite;
    will-change: transform;
}

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

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 8px)); /* adjust loop with margin */
    }
}

.carousel-slide {
    flex-shrink: 0;
    width: 440px;
    /* Fixed width per image */
    height: 55vh;
    min-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-right: 16px;
    /* Spacing as margin, not gap, so -50% aligns perfectly */
}

/* Make header text dark on this specific page */
body.nosotros-page .nav-link {
    color: #333;
}

body.nosotros-page .nav-link:hover {
    color: #B91C1C;
    background: rgba(185, 28, 28, 0.1);
}

body.nosotros-page .hamburger .bar {
    background-color: #333;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-header-split {
        flex-direction: column;
    }

    .nosotros-header-text {
        flex: 1;
        width: 100%;
    }

    .carousel-slide {
        width: 60vw;
    }
}

@media (max-width: 768px) {
    .nosotros-main-title-new {
        font-size: 2.2rem;
    }

    .carousel-slide {
        width: 85vw;
        height: 50vh;
    }

    .scroll-indicator {
        display: none;
        /* Hide arrow on mobile as swiping is intuitive */
    }
}

/* ========================================
   NOSOTROS - VIDEO + TEXT SECTION
   ======================================== */
.nosotros-about-sec {
    background-color: #000;
    padding: 100px 5%;
}

.nosotros-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nosotros-about-video {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.nosotros-about-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.nosotros-about-text {
    color: #fff;
}

.nosotros-about-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.nosotros-about-line {
    width: 60px;
    height: 4px;
    background-color: #B91C1C;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(185, 28, 28, 0.5);
}

.nosotros-about-text p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.nosotros-about-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .nosotros-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nosotros-about-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nosotros-about-sec {
        padding: 60px 5%;
    }

    .nosotros-about-title {
        font-size: 2rem;
        text-align: center;
    }

    .nosotros-about-line {
        margin-left: auto;
        margin-right: auto;
    }

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

/* ========================================
   NOSOTROS - BLINDAJE & ACCORDION
   ======================================== */
.nosotros-blindaje-sec {
    background-color: #fff;
    padding: 100px 5%;
}

.blindaje-intro-text {
    max-width: 1000px;
    margin-bottom: 60px;
}

.blindaje-intro-text p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

/* Accordion Styles */
.blindaje-accordion {
    max-width: 1200px;
    border-top: 1px solid #ddd;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    padding-left: 10px;
}

.accordion-level {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.accordion-icon {
    font-size: 1.8rem;
    color: #B91C1C;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f9f9f9;
}

.accordion-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ac-col {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

.ac-col strong {
    color: #000;
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.ac-full {
    grid-column: 1 / -1;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
    margin-top: 10px;
}

.ac-full strong {
    color: #B91C1C;
}

@media (max-width: 768px) {
    .nosotros-blindaje-sec {
        padding: 50px 5%;
    }

    .blindaje-intro-text {
        text-align: center;
        margin-bottom: 40px;
    }

    .accordion-level {
        font-size: 1.1rem;
    }

    .accordion-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* Split Layout for Blindaje Section */
.blindaje-split-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .blindaje-split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blindaje-intro-text {
        max-width: 100%;
    }
}

/* ========================================
   NOSOTROS - VIDEO PARALLAX SECTION
   ======================================== */
.nosotros-video-parallax-sec {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.parallax-video-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.parallax-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.6);
    /* Initial scale */
    transition: none;
    /* Let GSAP handle transition */
}

@media (max-width: 768px) {
    .nosotros-video-parallax-sec {
        height: 60vh;
    }
}

/* ========================================
   HOME - FINAL VIDEO SCROLL SECTION
   ======================================== */
.home-video-parallax-sec {
    width: 100%;
    height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 30;
    /* Higher than #video-hero and #black-section */
    overflow: hidden;
    padding: 80px 0;
    /* Add some padding so it doesn't immediately touch the next section */
}

.home-video-container {
    width: 55%;
    /* Initial width */
    height: 80vh;
    /* Fixed height or aspect ratio based */
    border-radius: 20px;
    /* Initial rounded corners for a premium feel */
    overflow: hidden;
    /* GSAP will animate width to 100%, height to 100vh, and border-radius to 0px */
}

.home-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darken factor */
    z-index: 1;
}

.video-text-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 800px;
    text-align: center;
    color: #fff;
    z-index: 2;
}

.parallax-video-title {
    font-family: Georgia, serif;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.video-text-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
    .home-video-container {
        width: 75%;
    }
}

@media (max-width: 768px) {
    .home-video-parallax-sec {
        height: auto;
        padding: 50px 0;
    }

    .home-video-container {
        width: 90%;
        height: 50vh;
    }
}

/* ========================================
   FLOATING WHATSAPP BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}

/* ========================================
   SERVICIOS PAGE STYLES
   ======================================== */
.servicios-page {
    background-color: #000;
}

/* Hero Section */
.servicios-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.servicios-hero .hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.servicios-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.servicios-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 20px;
}

.servicios-title {
    font-family: Georgia, serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 15px;
    letter-spacing: 4px;
}

.servicios-red-line {
    width: 80px;
    height: 4px;
    background-color: #B91C1C;
    margin: 0 auto 30px;
}

.servicios-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    opacity: 0.9;
    font-weight: 300;
}

/* Container */
.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Categories Section */
.servicios-categories {
    padding: 100px 0;
    background-color: #fff;
    color: #000;
}

.services-intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.services-intro-text h2 {
    font-family: Georgia, serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.services-detailed-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-detail-item.inverted {
    direction: rtl;
}

.service-detail-item.inverted .service-info-box {
    direction: ltr;
}

.service-video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-info-box h3 {
    font-family: Georgia, serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #B91C1C;
}

.service-info-box p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #444;
}

/* Proceso Section */
.servicios-proceso {
    padding: 100px 0;
    background-color: #f7f7f7;
    color: #000;
}

.proceso-header {
    text-align: center;
    margin-bottom: 100px;
}

.proceso-header h2 {
    font-family: Georgia, serif;
    font-size: 3rem;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

/* Vertical Timeline Structure */
.proceso-timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 0, 0, 0.1);
    transform: translateX(-50%);
}

.line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #B91C1C;
    transition: height 0.1s linear;
}

.proceso-timeline {
    position: relative;
    z-index: 2;
}

.timeline-step {
    position: relative;
    width: 50%;
    margin-bottom: 80px;
    padding: 0 60px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-step.left {
    left: 0;
    text-align: right;
}

.timeline-step.right {
    left: 50%;
    text-align: left;
}

.step-dot {
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #ddd;
    border-radius: 50%;
    z-index: 5;
    transition: all 0.4s ease;
}

.timeline-step.left .step-dot {
    right: -8px;
}

.timeline-step.right .step-dot {
    left: -8px;
}

.timeline-step.active .step-dot {
    border-color: #B91C1C;
    background: #B91C1C;
    box-shadow: 0 0 15px rgba(185, 28, 28, 0.5);
    transform: scale(1.2);
}

.step-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.step-num {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: #B91C1C;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.step-content h4 {
    font-family: Georgia, serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #111;
}

.step-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

@media (max-width: 992px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-step {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 80px;
        padding-right: 20px;
    }

    .timeline-step.left .step-dot,
    .timeline-step.right .step-dot {
        left: 22px;
        right: auto;
    }
}

/* Ventajas Section */
.servicios-ventajas {
    padding: 100px 0;
    background-color: #fff;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ventajas-intro h2 {
    font-family: Georgia, serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #000;
}

.ventajas-intro p {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 40px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-tags span {
    background-color: #F3F4F6;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #B91C1C;
    border: 1px solid #E5E7EB;
}

/* Discrecion Section */
.servicios-discrecion {
    padding: 100px 0;
    background-color: #000;
    color: #fff;
}

.discrecion-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    padding: 80px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discrecion-text h2 {
    font-family: Georgia, serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.discrecion-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.discrecion-text ul {
    list-style: none;
    padding: 0;
}

.discrecion-text li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-left: 30px;
}

.discrecion-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #B91C1C;
    font-weight: bold;
}

.discrecion-icon-grid {
    display: flex;
    justify-content: center;
}

.disc-icon-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
}

.disc-icon-item span {
    display: block;
    margin-top: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-detail-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ventajas-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .discrecion-box {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .servicios-hero {
        height: 50vh;
    }

    .services-intro-text h2,
    .proceso-header h2,
    .ventajas-intro h2 {
        font-size: 2rem;
    }

    .servicios-container {
        padding: 0 20px;
    }
}

/* Diagonal Hero Section Specific */
.diagonal-hero {
    display: flex;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    background: #000;
    position: relative;
    z-index: 10;
}

.diagonal-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    transform: skewX(-10deg);
    border-right: 2px solid #000;
    margin-right: -1px;
    z-index: 1;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.diagonal-item:hover {
    flex: 1.5;
    /* Expand on hover */
    z-index: 5;
}

.diagonal-item:first-child {
    margin-left: -5%;
    padding-left: 5%;
    border-left: none;
}

.diagonal-item:last-child {
    margin-right: -5%;
    padding-right: 5%;
    border-right: none;
}

.diagonal-item video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    /* Extra width to compensate for skew */
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) skewX(10deg);
    /* Un-skew video */
}

.diagonal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.servicios-hero-content-diagonal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: #fff;
    width: 90%;
}

@media (max-width: 768px) {
    .diagonal-hero {
        flex-direction: column;
        height: auto;
    }

    .diagonal-item {
        transform: none;
        height: 30vh;
        border-right: none;
        border-bottom: 2px solid #000;
        margin: 0;
        padding: 0;
    }

    .diagonal-item:first-child,
    .diagonal-item:last-child {
        margin: 0;
        padding: 0;
    }

    .diagonal-item video {
        width: 100%;
        transform: translate(-50%, -50%);
        /* No skew on mobile */
    }
}

/* ========================================
   SERVICES GRID (2+1) LAYOUT
   ======================================== */
.services-grid-wrap {
    background-color: #0f0f0f;
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.services-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    align-content: start;
    justify-items: stretch;
}




.service-grid-card {
    position: relative;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    margin: 0 !important;
    padding: 0 !important;
    align-self: start;
    top: 0;
}





.service-grid-card.full-width {
    grid-column: span 2;
    height: 500px;
}

/* Expansion Logic */
.service-grid-card.expanded {
    height: auto;
    min-height: 450px;
}

.service-grid-card.full-width.expanded {
    min-height: 500px;
}

.service-grid-card video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: transform 0.8s ease, opacity 0.5s ease, filter 0.5s ease;
}

.service-grid-card.expanded video {
    filter: brightness(0.4) blur(3px);
    transform: scale(1.1);
}


.service-grid-card:hover video {
    opacity: 1;
    transform: scale(1.05);
    transition: opacity 0.5s ease, transform 0.8s ease;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 60%);
    color: #fff;
    pointer-events: none;
    transition: background 0.5s ease, height 0.5s ease, padding 0.5s ease;
}

.service-grid-card.expanded .card-overlay {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.7); /* Darker overlay for better text readability */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.5s ease, height 0.5s ease;
}


.card-content {
    max-width: 800px;
    transition: all 0.6s ease;
}

.card-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.service-grid-card.expanded .card-description {
    max-height: 300px;
    opacity: 1;
    margin-top: 25px;
}

.card-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.card-num {
    display: inline-block;
    color: #B91C1C;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.click-hint {
    position: absolute;
    top: 40px;
    right: 40px;
    background: rgba(185, 28, 28, 0.8);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.service-grid-card:hover .click-hint {
    opacity: 1;
    transform: scale(1.1);
    background: #B91C1C;
}

.service-grid-card.expanded .click-hint {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.service-grid-card h3 {
    font-family: Georgia, serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.1;
    color: #fff;
    transition: all 0.5s ease;
}

.service-grid-card.expanded h3 {
    font-size: 3rem;
}

.service-grid-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    transition: opacity 0.5s ease;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-grid-card.full-width {
        grid-column: span 1;
    }

    .service-grid-card {
        min-height: 400px;
    }
    
    .service-grid-card.expanded {
        height: auto;
    }
    
    .service-grid-card.expanded h3 {
        font-size: 2.2rem;
    }
}
/* ========================================
   MUSIC TOGGLE BUTTON
   ======================================== */
.music-toggle {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    padding: 0;
}

.music-toggle:hover {
    background-color: rgba(185, 28, 28, 0.8); /* Armored Red on hover */
    transform: scale(1.1);
    border-color: rgba(185, 28, 28, 0.5);
}

.music-toggle svg {
    width: 20px;
    height: 20px;
    fill: white;
    transition: transform 0.3s ease;
}

.music-toggle.muted svg {
    opacity: 0.6;
}

.music-toggle .icon-on {
    display: block;
}

.music-toggle .icon-off {
    display: none;
}

.music-toggle.muted .icon-on {
    display: none;
}

.music-toggle.muted .icon-off {
    display: block;
}

@media (max-width: 768px) {
    .music-toggle {
        bottom: 90px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
    
    .music-toggle svg {
        width: 18px;
        height: 18px;
    }
}
