/* ===================================
   TRABOSA - Military Gondolas Website
   Modern, Responsive, Military-Themed
   =================================== */

/* CSS Variables - Color Palette from Uploaded Images */
:root {
    /* Military Green Palette */
    --military-green-dark: #2d3e2f;
    --military-green: #5a6b4f;
    --military-green-light: #7a8d70;

    /* Accent Yellow/Gold */
    --accent-yellow: #f4b942;
    --accent-gold: #d4a22a;
    --accent-yellow-light: #ffd66b;

    /* Neutrals */
    --bg-dark: #1a1d1a;
    --bg-light: #fffae5;
    --text-dark: #1f2d22;
    --text-light: #ffffff;
    --text-gray: #6b7268;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Rajdhani', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1440px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    width: 100%;
    position: relative;
}

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    width: 100%;
    padding: 0 20px;
}

/* Section Styles */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* ==================
   HEADER / NAVIGATION
   ================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-smooth);
}

.header.scrolled {
    background: rgba(26, 29, 26, 0.95);
    /* Increased opacity slightly for better contrast with colored logo if needed */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(244, 185, 66, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header.scrolled .nav-link,
.header.scrolled .language-selector {
    color: var(--text-light);
}

.header.scrolled .mobile-menu-toggle span {
    background-color: var(--text-light);
}

/* Ensure contact button keeps its dark text on white background */
.header.scrolled .nav-link.nav-btn {
    color: var(--military-green-dark);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    transition: transform var(--transition-fast);
}

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

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: width var(--transition-smooth);
}

.nav-link:hover {
    color: var(--accent-yellow);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.nav-btn {
    background: #ffffff;
    color: var(--military-green-dark);
    padding: 8px 22px;
    border-radius: 50px;
    margin-left: 10px;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-link.nav-btn:hover {
    background: var(--accent-yellow);
    color: var(--military-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nav-link.nav-btn::after {
    display: none;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 5px 0;
    margin-left: 20px;
    /* Separate from links */
}

.language-selector:hover {
    color: var(--accent-yellow);
}

.lang-icon {
    width: 20px;
    height: 20px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1100;
    background: rgba(26, 29, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 185, 66, 0.2);
    border-radius: 4px;
    padding: 5px 0;
    min-width: 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.language-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 8px 15px;
    color: var(--text-light);
    text-decoration: none;
    transition: background var(--transition-fast);
    text-align: center;
    font-size: 0.875rem;
}

.lang-option:hover {
    background: rgba(244, 185, 66, 0.2);
    color: var(--accent-yellow);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all var(--transition-smooth);
}

/* ==================
   HERO SECTION
   ================== */
.hero-section {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -50px;
    /* Bleed for movement */
    background-image:
        linear-gradient(rgba(45, 62, 47, 0.4), rgba(13, 15, 13, 0.7)),
        url('../assets/background_gondolas_militares_trabosa.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: kenBurnsHero 40s linear infinite alternate;
}

/* Specific background for Sobre Trabosa Hero - No darkening gradient as requested */
.sobre-trabosa-hero-bg {
    background-image: url('../assets/sobre-trabosa-bg.jpg');
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(244, 185, 66, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    position: relative;
    padding: 0 20px;
    width: 100%;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 4px;
    margin-bottom: 30px;
    line-height: 1.1;
    text-align: center;
    width: 100%;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-separator {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-gold));
    margin: 0 auto 30px;
    border-radius: 2px;
    animation: fadeInUp 1s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-yellow);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-yellow);
    border-radius: 50%;
    animation: scrollDot 2s infinite;
}

/* ==================
   SOBRE TRABOSA
   ================== */
.sobre-trabosa {
    background: var(--bg-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-gold));
    border-radius: 2px;
}

.section-title.light {
    color: var(--text-light);
}

.lead-text {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.lead-text.light {
    color: var(--text-light);
    /* Assuming var(--text-light) is white or light color */
}

.body-text {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: justify;
    line-height: 1.8;
}

.body-text.light {
    color: rgba(255, 255, 255, 0.9);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 60px;
    font-weight: 400;
}

/* .caracteristicas-section .body-text rule removed to restore default margin */

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.8);
}

/* ==================
   CARACTERÍSTICAS (Hotspots)
   ================== */
.caracteristicas-section {
    background: url('../assets/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.caracteristicas-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 29, 26, 0.7);
    pointer-events: none;
}

.hotspot-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.vehicle-model {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vehicle-model img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    transform: translate(-50%, -50%);
}

.hotspot-pulse {
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-yellow);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hotspot-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--accent-yellow);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.hotspot:hover .hotspot-icon {
    transform: scale(1.2);
    background: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(244, 185, 66, 0.6);
}

/* Modal/Lightbox */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--bg-light);
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
}

.modal-text {
    padding: 40px;
}

.modal-text h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.modal-text p {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Mobile Hotspots List - Hidden by default */
.hotspots-mobile-list {
    display: none;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
    width: 100%;
}

.mobile-hotspot-btn {
    width: 100%;
    padding: 18px 25px;
    background: var(--military-green-dark);
    color: var(--text-light);
    border: 1px solid rgba(244, 185, 66, 0.3);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-hotspot-btn::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-yellow);
}

.mobile-hotspot-btn:hover,
.mobile-hotspot-btn:active {
    background: var(--military-green);
    border-color: var(--accent-yellow);
    transform: translateY(-2px);
}

/* ==================
   VERSATILIDAD (Carousel)
   ================== */
.versatilidad-section {
    background: var(--bg-light);
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    /* Removed horizontal padding */
}

.versatilidad-header {
    display: flex;
    justify-content: center;
    /* Changed from space-between to center */
    align-items: center;
    /* Changed from flex-start to center */
    gap: 80px;
    /* Increased gap */
    margin-bottom: 60px;
    padding: 0 40px;
    max-width: 1400px;
    /* Added max-width to constrain content */
    margin-left: auto;
    /* Centering container */
    margin-right: auto;
    /* Centering container */
}

.section-title.left-align {
    text-align: right;
    margin-bottom: 0;
    flex: 1;
    max-width: 500px;
    line-height: 1.0;
}

.section-title.left-align::after {
    left: auto;
    /* reset left */
    right: 0;
    /* Align line to right */
    transform: none;
}

.versatilidad-text-content {
    flex: 1;
    max-width: 600px;
}

.section-subtitle.left-align {
    text-align: left;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.body-text.left-align {
    text-align: justify;
    margin: 0;
    max-width: 100%;
}


@media (max-width: 900px) {
    .versatilidad-header {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }

    .section-title.left-align {
        max-width: 100%;
        text-align: center;
    }

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

    .section-description {
        text-align: center;
        max-width: 100%;
    }
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform var(--transition-slow);
}

.carousel-item {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
    background: var(--accent-yellow);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    transition: transform var(--transition-smooth);
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item-image {
    width: 100%;
    height: 350px;
    /* Increased height for better aspect ratio in 1-slide mode */
    object-fit: cover;
    position: relative;
    overflow: hidden;
}

.carousel-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.carousel-item:hover .carousel-item-image img {
    transform: scale(1.1);
}

.carousel-item-content {
    padding: 30px 45px;
}

.carousel-item-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--military-green-dark);
    margin-bottom: 15px;
    line-height: 1.1;
}

.carousel-item-description {
    font-size: 1rem;
    color: var(--military-green);
    line-height: 1.7;
    font-weight: 500;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    /* Better visibility on white/light bg */
    z-index: 20;
    /* Above scaled items */
    transition: all var(--transition-fast);
}

.carousel-arrow:hover {
    color: var(--accent-yellow);
    transform: translateY(-50%) scale(1.2);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    /* Thicker stroke for better visibility without background */
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 20px 0;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* Carousel Responsive Breakpoints */
@media (max-width: 768px) {
    .container-full {
        padding: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .carousel-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .carousel-container {
        width: 100% !important;
        overflow: hidden !important;
        padding: 0 10px !important;
    }

    .versatilidad-header {
        padding: 0 20px;
    }

    .carousel-track {
        gap: 20px !important;
    }

    .carousel-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 12px !important;
    }

    .carousel-item-content {
        padding: 30px 20px !important;
        /* Reduced padding for wider text */
    }

    .carousel-item-image {
        width: 100% !important;
    }
}

/* ==================
   FILLER SECTION
   ================== */
.filler-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--military-green) 0%, var(--military-green-dark) 100%);
    background-image:
        linear-gradient(rgba(45, 62, 47, 0.85), rgba(26, 29, 26, 0.85)),
        url('../assets/gondola_militar_trabosa_fondo.jpg');
    background-size: cover, 110% auto;
    background-position: center, center 50%;
    background-repeat: no-repeat;
    overflow: hidden;
}

.filler-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(244, 185, 66, 0.15) 0%, transparent 50%);
}

.filler-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.filler-content-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 40px;
}

.filler-text-side {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.filler-text-side .section-title.left-align {
    margin-bottom: 30px;
    text-align: left !important;
}

.filler-text-side .section-title.left-align::after {
    left: 0 !important;
    transform: none !important;
}

.filler-image-side {
    flex: 1.3;
}

.filler-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(244, 185, 66, 0.2);
}



.filler-text-content {
    max-width: 100% !important;
}

@media (max-width: 1100px) {
    .filler-section {
        background-size: cover, cover;
        background-attachment: scroll;
    }

    .filler-content-layout {
        flex-direction: column;
        gap: 40px;
    }

    .filler-text-side {
        align-items: center;
        text-align: center;
    }

    .filler-text-side .section-title.left-align {
        text-align: center !important;
    }

    .filler-text-side .section-title.left-align::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* ==================
   CONFIGURADOR
   ================== */
.configurador-section {
    background: url('../assets/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    position: relative;
}

.configurador-section .section-title {
    color: var(--text-light);
}

.configurador-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 29, 26, 0.7);
    /* Dark overlay for readability */
    pointer-events: none;
}

.configurador-section .container-full {
    position: relative;
    z-index: 10;
}

.configurador-wrapper {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 60px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px 0;
}

.configurador-visual {
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none;
    overflow: visible;
}

.vehicle-3d {
    position: relative;
    width: 100%;
    max-width: 1200px;
}

.vehicle-3d img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

#componentLayers {
    position: absolute;
    inset: 0;
}

.component-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.component-layer.active {
    opacity: 1;
}

.configurador-controls {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 185, 66, 0.2);
}

.controls-header h3 {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-yellow);
}

.controls-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.components-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.component-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.component-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(244, 185, 66, 0.3);
}

.component-item.active {
    border-color: var(--accent-yellow);
    background: rgba(244, 185, 66, 0.1);
}

.component-info {
    flex: 1;
}

.component-name {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.component-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.component-toggle {
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    position: relative;
    transition: background var(--transition-fast);
}

.component-item.active .component-toggle {
    background: var(--accent-yellow);
}

.component-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--text-light);
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.component-item.active .component-toggle::after {
    transform: translateX(24px);
}

/* ==================
   BENEFICIOS
   ================== */
.beneficios-section {
    position: relative;
    overflow: hidden;
}

.beneficios-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--military-green-dark) 0%, var(--military-green) 50%, var(--military-green-light) 100%);
    opacity: 0.95;
}

.beneficios-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.beneficios-section .container {
    position: relative;
    z-index: 10;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.benefit-item {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 185, 66, 0.2);
    transition: all var(--transition-smooth);
}

.benefit-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-yellow);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: transform var(--transition-smooth);
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-icon svg {
    width: 40px;
    height: 40px;
}

.benefit-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
}

.benefit-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* ==================
   CERTIFICADOS QHSE
   ================== */
.qhse-box .section-title {
    line-height: 1.2;
    text-align: left;
    padding-bottom: 0;
    margin-bottom: 20px;
}

.qhse-box .section-title::after {
    display: none;
}

.title-underline-yellow {
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-gold));
    border-radius: 2px;
    margin-bottom: 25px;
}

/* ==================
   FOOTER
   ================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(244, 185, 66, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 45px;
    width: auto;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-legal {
    font-style: italic;
}

/* ==================
   ANIMATIONS
   ================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

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

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 0;
        top: 10px;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        top: 30px;
    }
}

@keyframes kenBurnsHero {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-2%, -1%);
    }
}

/* Simple AOS-like animations */
[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-40px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(40px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ==================
   BROCHURE SECTION
   ================== */
.brochure-section {
    background: linear-gradient(135deg, var(--military-green-dark), #1a1d1a);
    padding: 80px 0;
}

.brochure-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.brochure-info {
    flex: 1;
}

.brochure-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.brochure-info .section-title::after {
    left: 0;
    transform: none;
}

.brochure-info .section-subtitle {
    text-align: left;
    margin-bottom: 0;
}

.btn-modern-download {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    color: var(--military-green-dark);
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    transition: all var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.btn-modern-download:hover {
    background: var(--accent-yellow);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(244, 185, 66, 0.3);
}

.btn-modern-download .btn-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-fast);
}

.btn-modern-download:hover .btn-icon {
    transform: translateY(3px);
}

@media (max-width: 900px) {
    .brochure-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .brochure-info .section-title {
        text-align: center;
    }

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

    .brochure-info .section-subtitle {
        text-align: center;
    }
}

/* ==================
   CONTACTO SECTION
   ================== */
.contacto-section {
    background: var(--bg-light);
}

.contacto-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(45, 62, 47, 0.1);
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--military-green-dark);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background: #fdfdfd;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.1);
}

.btn-submit {
    align-self: flex-start;
    padding: 15px 40px;
    background: var(--military-green-dark);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-smooth);
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--military-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 62, 47, 0.3);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.btn-submit:hover .btn-icon {
    transform: translate(3px, -3px);
}

@media (max-width: 600px) {
    .contacto-wrapper {
        padding: 30px 20px;
    }

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

    .form-group.full-width {
        grid-column: span 1;
    }
}

/* ==================
   RESPONSIVE DESIGN
   ================== */
@media (max-width: 1200px) {
    :root {
        --section-padding: 80px;
    }

    .configurador-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .container,
    .container-full {
        padding: 0 20px;
    }

    .header-container {
        padding: 15px 20px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 20px;
        transition: right var(--transition-smooth);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link.nav-btn {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        background-color: var(--text-light);
        display: block;
        width: 30px;
        height: 3px;
        margin-bottom: 5px;
        border-radius: 2px;
        transition: all var(--transition-smooth);
    }

    .header.scrolled .mobile-menu-toggle.active span {
        background-color: var(--text-light) !important;
        /* Keep white when menu is open on light header */
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }

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

    .carousel-container {
        padding: 0 45px;
        /* Reserve space for arrows on both sides */
    }

    .carousel-track {
        gap: 15px;
    }

    .carousel-item {
        flex: 0 0 100%;
        min-width: 0;
        border-radius: 15px;
        /* Slightly more rounded for modern feel */
    }

    .carousel-arrow {
        width: 45px;
        height: 45px;
    }

    .carousel-arrow-left {
        left: 0;
    }

    .carousel-arrow-right {
        right: 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

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

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-text {
        padding: 30px 20px;
    }

    /* Mobile Hotspots Overrides */
    .hotspot {
        display: none !important;
    }

    .hotspots-mobile-list {
        display: flex;
    }

    /* Language Selector Mobile Fix */
    .language-selector {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding-left: 20px;
        display: flex;
        gap: 15px;
    }

    .lang-option {
        display: inline-block;
        padding: 5px 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
}

/* ==================
   FOOTER
   ================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-logo img {
    height: 60px;
    /* Further reduced from 90px */
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand-separator {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-address {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.footer-address strong {
    color: var(--text-light);
    margin-bottom: 3px;
    display: block;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: row;
    /* Horizontal links */
    gap: 30px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-brand {
        flex-direction: column;
        gap: 20px;
    }

    .footer-brand-separator {
        width: 40px;
        height: 1px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

/* ==================
   QHSE SECTION
   ================== */
.qhse-section {
    padding: 80px 0;
    overflow: hidden;
    background: var(--bg-light);
}

.qhse-container {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 60px;
}

.qhse-content-side {
    flex: 1;
    position: relative;
    z-index: 2;
}

.qhse-box {
    max-width: 100%;
    width: 100%;
}

.title-underline-yellow {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-gold));
    border-radius: 2px;
    margin: 15px 0 25px;
}

.qhse-content-side .section-title {
    color: var(--text-dark);
    text-align: left;
    margin-bottom: 0;
}

.qhse-content-side .body-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-gray);
    text-align: justify;
}

.qhse-footer {
    margin-top: 25px;
}

.pecan-badge-img-wrapper {
    margin-bottom: 20px;
}

.pcal-badge-img {
    height: 100px;
    width: auto;
    display: block;
}

.qhse-logo-placeholder {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-gray);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
}

.qhse-image-side {
    flex: 1.8;
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.qhse-image-wrapper {
    width: 100%;
    height: 100%;
}

.qhse-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1100px) {
    .qhse-container {
        flex-direction: column;
    }

    .qhse-content-side {
        clip-path: none;
        padding: 40px 30px;
    }

    .qhse-image-side {
        margin-right: 0;
        height: 250px;
    }
}

/* ==================
   KPIS SECTION (INTERNAL)
   ================== */
.kpis-container.internal {
    margin-top: 60px;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    /* Centering to bring them closer */
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    /* Reduced gap to bring them closer */
}

.kpi-item {
    flex: 0 1 auto;
    /* Don't force them to spread too much */
    width: auto;
    min-width: 200px;
    /* Slightly smaller min-width */
    text-align: center;
    position: relative;
    padding: 0 40px;
    /* Add padding to creates space for dividers */
}

/* Add dividers between items except the last one */
.kpi-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .kpi-item:not(:last-child)::after {
        display: none;
    }

    .kpis-container.internal {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .kpi-item {
        padding: 0;
    }
}

.kpi-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kpi-number {
    font-family: var(--font-display);
    font-size: 4rem;
    /* Reduced from 5rem */
    font-weight: 500;
    /* Reduced weight from 800 */
    color: var(--military-green-dark);
    /* Dark green for light background */
    line-height: 1;
    margin-bottom: 5px;
}

.kpi-label {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    max-width: 250px;
}

/* ==================
   STACKED FEATURES (POSVENTA)
   ================== */
.stacked-features {
    width: 100%;
}

.stacked-feature-item {
    position: relative;
    height: 50vh;
    /* Reduced from 70vh */
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 5%;
    /* Side padding */
}

/* Default Centered/Generic Overlay (fallback) */
.stacked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Alignment Variants */
.stacked-feature-item.align-left {
    justify-content: flex-start;
    text-align: left;
}

.stacked-feature-item.align-left .stacked-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
}

.stacked-feature-item.align-left .stacked-content {
    text-align: left;
    margin-left: 5%;
}

.stacked-feature-item.align-left .stacked-separator {
    margin: 0 0 30px 0;
    /* Left align separator */
}


.stacked-feature-item.align-right {
    justify-content: flex-end;
    text-align: right;
}

.stacked-feature-item.align-right .stacked-overlay {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
}

.stacked-feature-item.align-right .stacked-content {
    text-align: right;
    margin-right: 5%;
}

.stacked-feature-item.align-right .stacked-separator {
    margin: 0 0 30px auto;
    /* Right align separator */
}

.stacked-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax-like effect */
    z-index: 1;
    transform: scale(1.1);
    /* Slight zoom for cleaner edges */
}

.stacked-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
    max-width: 600px;
    /* Limit width to not cover full image */
}

.stacked-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
    /* Reduced line height */
}

.stacked-separator {
    width: 80px;
    height: 4px;
    background: var(--accent-yellow);
    margin: 0 auto 30px;
}

.stacked-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 768px) {
    .stacked-feature-item {
        height: 50vh;
        /* Reduced from 60vh */
        min-height: 400px;
        justify-content: center !important;
        /* Force center on mobile */
        text-align: center !important;
    }

    .stacked-feature-item .stacked-content {
        text-align: center !important;
        margin: 0 !important;
        max-width: 100%;
    }

    .stacked-feature-item .stacked-separator {
        margin: 0 auto 30px auto !important;
    }

    .stacked-feature-item .stacked-overlay {
        background: rgba(0, 0, 0, 0.6) !important;
        /* Uniform dark overlay on mobile */
    }

    .stacked-bg {
        background-attachment: scroll;
        /* Disable fixed bg on mobile for performance */
    }
}

.stacked-feature-item.compact-stacked {
    height: auto;
    min-height: 450px;
    padding: 100px 5%;
}

@media (max-width: 768px) {
    .stacked-feature-item.compact-stacked {
        min-height: 500px;
        padding: 80px 5%;
    }
}

/* ==================
   INNOVACION SECTION (Sobre Trabosa)
   ================== */
.innovacion-section {
    background: var(--bg-light);
}

.innovacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.innovacion-item {
    text-align: center;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(45, 62, 47, 0.1);
    transition: all var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.innovacion-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-yellow);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.innovacion-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-smooth);
    border: 1px solid rgba(244, 185, 66, 0.3);
}

.innovacion-item:hover .innovacion-icon {
    transform: scale(1.1);
    background: var(--accent-yellow);
}

.innovacion-icon img {
    width: 45px;
    height: auto;
    object-fit: contain;
}

.innovacion-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--military-green-dark);
    margin-bottom: 15px;
}

.innovacion-text {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ==================
   BENEFIT ICONS FIX
   ================== */
.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    /* Defined size */
    height: 120px;
    background-color: var(--accent-yellow);
    /* The yellow sphere */
    border-radius: 50%;
    /* Make it round */
    margin: 0 auto 20px;
    /* Center horizontally */
    box-shadow: 0 5px 15px rgba(244, 185, 66, 0.3);
    /* Optional: adds depth */
}

.benefit-icon img {
    width: 55%;
    /* Icon size relative to sphere */
    height: auto;
    object-fit: contain;
}

.filler-section.light-mode {
    background: var(--bg-light);
}

.filler-section.light-mode .filler-overlay {
    display: none;
}

.filler-section.light-mode .section-title,
.filler-section.light-mode .body-text {
    color: var(--text-dark) !important;
}

/* ==================
   STICKY BACKGROUND TIMELINE
   ================== */
.timeline-sticky-section {
    position: relative;
    width: 100%;
    /* Ensure minimal height so it scrolls */
    min-height: 100vh;
    background-color: var(--bg-dark);
    /* Remove any overflow issues that might break sticky */
    overflow: visible;
}

.timeline-bg-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

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

.timeline-bg.active {
    opacity: 1;
}

.timeline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darken overall but keep left side more focused - increased intensity for readability */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Scroll Container that moves over the sticky background */
.timeline-scroll-container {
    position: relative;
    z-index: 2;
    margin-top: -100vh;
    /* Pull content up to start over the first sticky image */
    padding-bottom: 20vh;
    /* Reduced padding as we have a final snap point now */
}

/* Re-enable pointer events for actual content */
.timeline-header-block,
.timeline-row {
    pointer-events: auto;
}

/* Header Styling */
.timeline-header-block {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center horizontally */
    padding: 0 15%;
    width: 100%;
    /* Full width */
    max-width: none;
    /* Remove max-width constraint */
    text-align: center;
    /* Center text */
}

.timeline-main-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.timeline-header-separator {
    width: 60px;
    height: 4px;
    background-color: var(--accent-yellow);
    margin-bottom: 30px;
}

.timeline-main-subtitle {
    font-size: 1.25rem;
    color: white;
    /* Changed to white as requested */
    line-height: 1.6;
    max-width: 800px;
}

/* Timeline Rows */
.timeline-row {
    position: relative;
    /* For line/dot positioning */
    display: flex;
    align-items: center;
    min-height: 100vh;
    /* Each year takes full screen height */
    padding: 0 15%;
    box-sizing: border-box;
    opacity: 0.3;
    /* Dimmed by default */
    transition: opacity 0.5s ease;
}

.timeline-row.active {
    opacity: 1;
    /* Highlight active year */
}

/* Vertical Line */
.timeline-row::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(15% + 240px);
    /* Increased from 220px to add more margin (200px year + 40px half-gap) */
    width: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

/* White Dot */
.timeline-row::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(15% + 235px);
    /* Adjusted: Line left - 5px */
    width: 12px;
    height: 12px;
    background-color: white;
    /* White dot */
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: all 0.3s ease;
}

/* Active State for Dot */
.timeline-row.active::after {
    transform: translateY(-50%) scale(1.5);
    /* Make it bigger when active */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Timeline Navigation Wrapper */
.t-year-nav {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin-right: 80px;
    position: relative;
    /* Lower opacity when row is not active */
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.timeline-row.active .t-year-nav {
    opacity: 1;
}

/* Context Years (Previous/Next) */
.t-year-context {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-light);
    opacity: 0.3;
    font-weight: 600;
    transition: all 0.4s ease;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.t-year-context.prev {
    margin-bottom: 5px;
}

.t-year-context.next {
    margin-top: 5px;
}

/* Main Year */
.t-year {
    font-family: var(--font-display);
    font-size: 5rem;
    /* Larger as per reference */
    color: var(--text-light);
    font-weight: 700;
    position: relative;
    text-align: right;
    /* Align numbers to the line */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1;
    /* Animation props */
    transform: scale(0.9);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy scale */
}

.timeline-row.active .t-year {
    transform: scale(1.1);
    /* Subtle scale up when active */
}

.t-year::after {
    display: none;
    /* Removed the yellow underline to match reference */
}

/* Right - Content */
.t-content {
    flex: 1;
    max-width: 600px;
    background: transparent;
    /* Clean look from reference */
    padding: 0 0 0 40px;
    /* Spacing from line */
    border-left: none;
    /* Removed border */
    border-radius: 0;
}

.t-content p {
    font-size: 1.5rem;
    /* Larger text */
    line-height: 1.4;
    color: var(--text-light);
    margin: 0;
    font-family: var(--font-body);
    /* Ensure readability */
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    /* Better contrast against image */
}

/* Headings in content if any */
.t-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
}


/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .timeline-main-title {
        font-size: 2.5rem;
    }

    .timeline-row {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-height: 60vh;
        gap: 20px;
        padding-left: 20px;
        /* More space for the left line */
    }

    /* Adjust Line for Mobile - Move to left edge */
    .timeline-row::before {
        left: 20px;
    }

    .timeline-row::after {
        left: 15px;
        /* Centered on line line */
    }

    .t-year {
        font-size: 3rem;
        flex: 0 0 auto;
        margin-right: 0;
        text-align: left;
        padding-left: 30px;
        /* Space from line */
    }

    .t-content {
        width: 100%;
        padding: 0 0 0 30px;
        /* Space from line */
        background: transparent;
    }
}

/* ==================
   NUESTROS CLIENTES
   ================== */
.clientes-section {
    background: #ffffff;
    padding: 60px 0;
    /* Reduced from 100px */
    overflow: hidden;
}

.clientes-section .section-title {
    margin-bottom: 40px;
    /* Specific margin for this section */
}

.logo-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-slider-container {
    overflow: hidden;
    width: 100%;
}

.logo-track {
    display: flex;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-slide {
    flex: 0 0 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    height: 180px;
    /* Increased for larger logos */
    transition: all var(--transition-smooth);
    filter: grayscale(100%);
    opacity: 0.6;
}

.logo-slide:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.logo-slide img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .logo-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 600px) {
    .logo-slide {
        flex: 0 0 100%;
        filter: grayscale(0%);
        opacity: 1;
    }

    .logo-slider-wrapper {
        padding: 0 20px;
    }
}

/* Old styles to be removed - this chunk will be replaced */

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-top: 60px;
}

.cliente-item {
    width: 100%;
    max-width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    filter: grayscale(100%);
    opacity: 0.6;
}

.cliente-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.cliente-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cliente-placeholder {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--military-green-dark);
    text-transform: uppercase;
    text-align: center;
    padding: 20px;
    border: 2px solid rgba(45, 62, 47, 0.1);
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .clientes-section {
        padding: 60px 0;
    }

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

    .cliente-item {
        max-width: 140px;
        height: 100px;
        filter: grayscale(0%);
        opacity: 1;
    }
}

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    padding: 24px 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner.hiding {
    transform: translateY(100%);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.cookie-banner-text a {
    color: #f5c518;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-banner-text a:hover {
    color: #ffd84d;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #f5c518;
    color: #111;
    border: 2px solid #f5c518;
}

.cookie-btn-accept:hover {
    background: #ffd84d;
    border-color: #ffd84d;
}

.cookie-btn-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.cookie-btn-reject:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 0;
    }

    .cookie-banner-content {
        flex-direction: column;
        padding: 0 20px;
        text-align: center;
        gap: 16px;
    }

    .cookie-banner-text {
        font-size: 13px;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}