/* ============================================
   CYTCO MAQUINARIA - Premium Website v3
   Palette: Blue #2B4C9B + Orange #E8841E
   Theme: Bright Corporate Authority (Light)
   ============================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
    --primary: #E8841E;
    --primary-dark: #C46D10;
    --primary-light: #F5A64A;
    --brand-blue: #2B4C9B;
    --brand-blue-dark: #1E3A7A;
    --brand-blue-light: #3D62B8;
    --secondary: #ffffff;
    --secondary-light: #f8f9fa;
    --accent: #2B4C9B;
    --dark: #F4F6F9;
    --dark-2: #E2E8F0;
    --dark-3: #CBD5E1;
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-dark: #111827;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(43,76,155,0.15);
    --shadow-glow-orange: 0 0 30px rgba(232,132,30,0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Scroll Reveal Animations ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal="delay-1"] { transition-delay: 0.1s; }
[data-reveal="delay-2"] { transition-delay: 0.2s; }
[data-reveal="delay-3"] { transition-delay: 0.3s; }
[data-reveal="delay-4"] { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

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

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

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

/* ---- Section Headers (reusable) ---- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    padding: 6px 18px;
    border: 1px solid rgba(232,132,30,0.3);
    border-radius: var(--radius-xl);
    background: rgba(232,132,30,0.06);
}

.section-tag.light {
    color: var(--primary-light);
    border-color: rgba(255,213,79,0.3);
    background: rgba(255,213,79,0.08);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--brand-blue-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    margin: 0 auto;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--brand-blue-dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
    font-size: 0.8rem;
    position: relative;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 24px;
}

.top-bar-contact a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    opacity: 0.8;
}

.top-bar-contact a:hover {
    color: var(--primary);
    opacity: 1;
}

.top-bar-contact a i {
    font-size: 0.7rem;
    color: var(--white);
}

.top-bar-right {
    display: flex;
    gap: 14px;
}

.top-bar-right a {
    color: var(--gray-500);
    font-size: 0.8rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.top-bar-right a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(232,132,30,0.1);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(43, 76, 155, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(30, 58, 122, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.header.scrolled .logo {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: brightness(1.1);
}

.logo:hover .logo-img {
    filter: brightness(1.25);
}

.footer-logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
    margin-bottom: 6px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-link i {
    font-size: 0.6rem;
    transition: var(--transition);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white) !important;
    font-weight: 700;
    border-radius: var(--radius-xl);
    padding: 10px 24px;
    margin-left: 8px;
    box-shadow: 0 2px 10px rgba(232,132,30,0.25);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,132,30,0.35);
}

.nav-cta.active::after {
    display: none;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 480px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-md);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.dropdown-item {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.dropdown-item:hover {
    color: var(--primary);
    background: rgba(232,132,30,0.08);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.nav-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13,13,26,0.85) 0%,
        rgba(13,13,26,0.6) 40%,
        rgba(13,13,26,0.3) 70%,
        rgba(13,13,26,0.15) 100%
    );
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 0 80px;
    max-width: 700px;
    animation: slideUp 0.8s ease-out;
}

.slide.active .slide-content {
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
    padding: 8px 20px;
    border: 1px solid rgba(232,132,30,0.4);
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
    background: rgba(232,132,30,0.08);
}

.slide-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.slide-description {
    font-size: 1.1rem;
    color: var(--gray-200);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 14px 36px;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(232,132,30,0.3);
}

.slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232,132,30,0.45);
}

.slide-btn i {
    transition: var(--transition);
}

.slide-btn:hover i {
    transform: translateX(4px);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 10;
    pointer-events: none;
}

.slider-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    pointer-events: auto;
    cursor: pointer;
}

.slider-arrow:hover {
    background: rgba(232,132,30,0.2);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover {
    background: rgba(255,255,255,0.4);
}

.dot.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(232,132,30,0.5);
    transform: scale(1.2);
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories {
    padding: 50px 0 40px;
    position: relative;
    background: linear-gradient(175deg, #F4F6F9 0%, #EBF0F7 40%, #F4F6F9 100%);
    overflow: hidden;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,132,30,0.2), transparent);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--secondary);
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(232,132,30,0.2);
    box-shadow: var(--shadow-glow);
}

.category-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.category-card:hover .category-image img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.95), transparent 50%);
    z-index: 1;
}

.category-content {
    position: relative;
    padding: 24px;
    z-index: 2;
    margin-top: -40px;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(232,132,30,0.3);
}

.category-content h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.category-content p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 18px;
    line-height: 1.6;
}

.category-btn {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.category-btn:hover {
    color: var(--primary-light);
    gap: 12px;
}

/* ============================================
   BRANDS CAROUSEL
   ============================================ */
.brands-section {
    padding: 80px 0 120px; /* Extra bottom padding for overlapping card */
    background: url('images/fondo_piedra.png') center/cover no-repeat;
    position: relative;
    z-index: 10; /* Ensures overflowing beam paints over the next section */
    overflow: visible; /* Allow card to overlap into next section */
}

.brands-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, #F4F6F9 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Steel beam separator at the bottom */
.brands-section::after {
    content: '';
    position: absolute;
    bottom: -50px; /* Centered exactly on the dividing line */
    left: 0;
    right: 0;
    height: 100px; /* Taller height to ensure the beam fits well */
    background-image: url('images/viga.png');
    background-repeat: repeat-x;
    background-position: center center;
    background-size: contain; /* Guarantees no cropping */
    z-index: 4; /* Below the showcase box (z-index 5) */
    box-shadow: 0 20px 30px rgba(0,0,0,0.5); /* Stronger shadow */
    pointer-events: none;
}

.brand-showcase {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 960px;
    margin: 0 auto;
    padding: 40px;
    background: 
        linear-gradient(125deg, 
            rgba(255,255,255,0.15) 0%, 
            rgba(255,255,255,0.02) 15%, 
            rgba(255,255,255,0.05) 25%, 
            rgba(255,255,255,0.0) 30%, 
            rgba(255,255,255,0.03) 100%),
        linear-gradient(180deg, #2d313a 0%, #1c1e24 100%);
    border: 1px solid rgba(0,0,0,0.6);
    border-top: 1px solid rgba(255,255,255,0.2);
    border-left: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.1),
        inset 0 -2px 6px rgba(0,0,0,0.6),
        0 25px 50px rgba(0,0,0,0.5),
        0 10px 20px rgba(10, 20, 45, 0.6);
}

/* Metallic Glare Effect */
.brand-showcase::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.0) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.0) 70%,
        transparent 100%
    );
    transform: skewX(-35deg);
    animation: metallicGlare 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes metallicGlare {
    0% { left: -100%; }
    15% { left: 150%; }
    30% { left: -100%; }
    100% { left: -100%; }
}

.brand-showcase-logo {
    flex-shrink: 0;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sunward-logo {
    max-width: 180px;
    filter: brightness(1.4) drop-shadow(0 2px 10px rgba(255,255,255,0.15));
}

.brand-name-big {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 4px;
}

.brand-showcase-text h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin: 12px 0 16px;
}

.brand-showcase-text p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    font-size: 0.95rem;
}

.brand-showcase-text .section-tag {
    color: var(--primary-light);
    border-color: rgba(232,132,30,0.4);
    background: rgba(232,132,30,0.12);
}

/* ============================================
   STAGE CAROUSEL (Pedestal Spotlight)
   ============================================ */
.stage-wrapper {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
}

.stage-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    height: 100%;
    position: relative;
    width: max-content;
}

/* Each machine item in the stage */
.stage-item {
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
    min-width: 300px;
    height: 350px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    padding-bottom: 40px;
}

.stage-item img {
    max-height: 220px;
    max-width: 260px;
    object-fit: contain;
    filter: saturate(0.3) contrast(0.8);
    transform: scale(0.7);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 2;
}

/* THE ACTIVE / CENTER MACHINE */
.stage-item.active {
    flex: 0 0 400px;
    width: 400px;
    max-width: 400px;
    min-width: 400px;
    z-index: 10;
}

.stage-item.active img {
    max-height: 300px;
    max-width: 360px;
    filter: brightness(1) saturate(1) drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    transform: scale(1);
    animation: stageFloat 4s ease-in-out infinite;
}

@keyframes stageFloat {
    0%, 100% { transform: scale(1) translateY(0px); }
    50% { transform: scale(1) translateY(-18px); }
}

/* Ground shadow only on active */
.stage-item .stage-shadow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) scaleX(0.4);
    width: 65%;
    height: 10px;
    background: radial-gradient(ellipse, rgba(43,76,155,0.15), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.stage-item.active .stage-shadow {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
    animation: stageShadowPulse 4s ease-in-out infinite;
}

@keyframes stageShadowPulse {
    0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.7; }
    50% { transform: translateX(-50%) scaleX(0.65); opacity: 0.3; }
}

/* Neighbors (1 step away) */
.stage-item.neighbor {
    opacity: 0.55;
}

.stage-item.neighbor img {
    filter: saturate(0.6) contrast(0.9);
    transform: scale(0.8);
}

/* Far items */
.stage-item.far {
    opacity: 0.2;
}

.stage-item.far img {
    filter: saturate(0.3) contrast(0.7);
    transform: scale(0.55);
}

/* Background Dynamic text behind machines */
.stage-ghost {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(8rem, 20vw, 25rem);
    font-weight: 900;
    color: var(--brand-blue);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    user-select: none;
    text-transform: uppercase;
    transition: var(--transition-slow);
}

/* Arrows */
.stage-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--brand-blue);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stage-arrow-left { left: 0; }
.stage-arrow-right { right: 0; }

.stage-arrow:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue-light);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(43,76,155,0.4);
}

/* Info Panel below the stage */
.stage-info {
    text-align: center;
    padding: 10px 0;
    min-height: 100px;
}

.stage-model {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: opacity 0.3s;
}

.stage-specs {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.stage-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(232,132,30,0.3);
}

.stage-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232,132,30,0.45);
}

.stage-cta i {
    transition: var(--transition);
}

.stage-cta:hover i {
    transform: translateX(4px);
}

/* Actions row */
.stage-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stage-cta-secondary {
    background: transparent;
    color: var(--brand-blue);
    border: 2px solid rgba(43,76,155,0.3);
    box-shadow: none;
}

.stage-cta-secondary:hover {
    background: rgba(43,76,155,0.08);
    border-color: var(--brand-blue);
    box-shadow: 0 4px 20px rgba(43,76,155,0.15);
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.12);
    border: 2px solid rgba(0,0,0,0.15);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue-light);
    box-shadow: 0 0 10px rgba(43,76,155,0.4);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .stage-wrapper { height: 320px; }
    .stage-item { flex: 0 0 200px; width: 200px; min-width: 200px; max-width: 200px; }
    .stage-item.active { flex: 0 0 280px; width: 280px; min-width: 280px; max-width: 280px; }
    .stage-item.active img { max-height: 220px; }
    .stage-pedestal { width: 250px; }
    .stage-model { font-size: 1.5rem; }
    .stage-arrow { width: 40px; height: 40px; font-size: 0.85rem; }
}




/* ============================================
   PROMOTIONS SECTION
   ============================================ */
.promotions {
    position: relative;
    padding: 120px 0;
    background:
        url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&h=600&fit=crop') center/cover no-repeat;
    background-attachment: fixed; /* Parallax effect */
    overflow: hidden;
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.75) 0%,
        rgba(15, 23, 42, 0.85) 60%,
        #0b1220 100% /* Exact background color of the Services section */
    );
}

.promo-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    padding: 8px 20px;
    border: 1px solid rgba(232,132,30,0.3);
    border-radius: var(--radius-xl);
    background: rgba(232,132,30,0.1);
    margin-bottom: 20px;
    animation: promoGlow 2s infinite;
}

@keyframes promoGlow {
    0% { box-shadow: 0 0 0 0 rgba(232,132,30,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(232,132,30,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,132,30,0); }
}

.promo-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.15;
}

.promo-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.7;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 16px 40px;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(43,76,155,0.3);
}

.promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(43,76,155,0.45);
}

.promo-btn i {
    transition: var(--transition);
}

.promo-btn:hover i {
    transform: translateX(4px);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 100px 0;
    background: #0b1220;
    position: relative;
    overflow: hidden;
}

.services::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
    max-width: 95%;
    background: url('images/sunward_logo.png') center/contain no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,132,30,0.2), transparent);
}

.services-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.02);
    filter: saturate(1.05) contrast(1.05) brightness(0.55);
}

.services-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(900px 320px at 50% 0%, rgba(232, 132, 30, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.78));
}

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

.services .section-title {
    color: #fff;
}

.services .section-tag {
    color: #fff;
    border-color: rgba(232,132,30,0.35);
    background: rgba(232,132,30,0.12);
}

.services .section-divider {
    opacity: 0.9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    justify-content: center;
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto;
}

/* Hidden on desktop, shown in mobile @media query */
.services-swipe-hint {
    display: none;
}

.service-card {
    background: rgba(255, 255, 255, 0.96);
    border: none;
    border-left: 4px solid transparent;
    border-radius: var(--radius-md);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
}

.service-card:hover {
    transform: translateY(-8px);
    border-left-color: var(--primary);
    box-shadow: 0 20px 40px rgba(43,76,155,0.12), 0 4px 12px rgba(232,132,30,0.08);
}

.service-icon-wrapper {
    margin-bottom: 24px;
}

.service-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232,132,30,0.1), rgba(232,132,30,0.02));
    border: 1px solid rgba(232,132,30,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(232,132,30,0.35);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-btn {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid rgba(232,132,30,0.2);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.service-btn:hover {
    background: rgba(232,132,30,0.1);
    border-color: var(--primary);
}

/* ============================================
   ABOUT / STATS SECTION
   ============================================ */
.about-stats {
    position: relative;
    padding: 100px 0;
    background: url('images/hero_develon.png') center/cover no-repeat;
    background-attachment: fixed; /* Parallax effect */
    overflow: visible; /* Changed from hidden to allow seal to overlap */
}

/* Floating Logo Seal */
.section-seal {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 -3px 0 var(--primary);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.1);
}

.seal-logo {
    height: 35px; /* Adjust based on actual logo proportions */
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(30,58,122,0.82) 50%, rgba(11,18,32,0.92) 100%);
}

.stats-content {
    position: relative;
    z-index: 2;
}

.stats-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.stats-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.stats-text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 36px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.stat-item:hover {
    border-color: rgba(232,132,30,0.5);
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================
   BRANCHES SECTION
   ============================================ */
.branches {
    padding: 100px 0;
    background: var(--secondary-light);
    position: relative;
}

.branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,132,30,0.15), transparent);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

.branch-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    padding: 32px 16px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.branch-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232,132,30,0.25);
    box-shadow: var(--shadow-glow);
}

.branch-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(232,132,30,0.08);
    border: 1px solid rgba(232,132,30,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 14px;
    transition: var(--transition);
}

.branch-card:hover .branch-icon {
    background: var(--primary);
    color: var(--white);
    border-color: transparent;
    transform: scale(1.1);
}

.branch-card h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.branch-card p {
    font-size: 0.78rem;
    color: var(--gray-500);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #111827;
    position: relative;
    color: rgba(255,255,255,0.7);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,132,30,0.2), transparent);
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.footer-logo .logo-tmr {
    font-size: 1.5rem;
}

.footer-logo .logo-subtitle {
    font-size: 0.5rem;
}

.footer-col > p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: rgba(232,132,30,0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-contact-item span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-content p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-bottom-content a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-bottom-content a:hover {
    color: var(--primary);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.55);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 0 10px rgba(37,211,102,0.1);
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: var(--text-primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    box-shadow: var(--shadow-md);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
        justify-content: center;
    }

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

    .branches-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .brand-card {
        flex: 0 0 calc((100% - 48px) / 4);
    }

    .slide-content {
        padding: 0 50px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Kill backdrop-filter on mobile: it creates a stacking context that
       traps position:fixed children (nav-menu) inside header bounds */
    .header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        display: flex;
        background: #1E3A7A;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--transition);
        z-index: 1000;
    }

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

    .logo-img {
        height: 42px;
        padding: 3px 8px;
    }

    .nav-link {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 12px;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        min-width: auto;
        max-width: 340px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        margin-top: 4px;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

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

    .hero-slider {
        height: 70vh;
        min-height: 450px;
    }

    .slide-content {
        padding: 0 24px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-description {
        font-size: 0.95rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Foolproof Mobile Carousel for Services */
    .services-grid {
        display: flex;
        justify-content: flex-start; /* OVERRIDE desktop center alignment to fix left clipping */
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden; /* Prevent unwanted vertical scroll */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 20px;
        scrollbar-width: none;
    }
    .services-grid::-webkit-scrollbar {
        display: none;
    }

    /* Mobile swipe hint (only visible inside this media query) */
    .services-swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: var(--primary);
        font-family: var(--font-heading);
        font-size: 0.8rem;
        font-weight: 700;
        margin-top: 10px;
        opacity: 0.85;
    }
    .services-swipe-hint i {
        animation: swipeArrow 1.4s ease-in-out infinite;
    }
    @keyframes swipeArrow {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(6px); }
    }

    .service-card {
        /* On mobile, card is nearly full width but leaves a peek */
        flex: 0 0 calc(100% - 30px); 
        scroll-snap-align: start;
        margin-bottom: 0;
    }



    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

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

    .brand-card {
        flex: 0 0 calc((100% - 32px) / 3);
    }

    .promotions {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .categories,
    .services,
    .about-stats,
    .branches {
        padding: 70px 0;
    }
}

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

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

    .brand-card {
        flex: 0 0 calc((100% - 16px) / 2);
    }

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

    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
}

/* ============================================
   DYNAMIC CATALOG SYSTEM
   ============================================ */
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(232,132,30,0.3);
    color: var(--gray-600);
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: rgba(232,132,30,0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.catalog-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.catalog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(232,132,30,0.3);
    box-shadow: var(--shadow-glow);
}
.catalog-card-img {
    height: 200px;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}
.catalog-card-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-slow);
}
.catalog-card:hover .catalog-card-img img {
    transform: scale(1.05);
}
.catalog-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.catalog-card-tag {
    font-size: 0.72rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.catalog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.catalog-card-specs {
    font-size: 0.88rem;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.6;
}
.catalog-card-btn {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(232,132,30,0.4);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}
.catalog-card:hover .catalog-card-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(232,132,30,0.3);
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.product-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.product-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.product-modal-content {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}
.product-modal-backdrop.active .product-modal-content {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}
.modal-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 500px;
}
.modal-gallery {
    background: var(--dark);
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.modal-gallery::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(232,132,30,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.modal-gallery img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.2));
    position: relative;
    z-index: 2;
}
.modal-details {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
}
.modal-category {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
}
.modal-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 35px;
    line-height: 1.1;
}
.modal-specs-table {
    margin-bottom: 50px;
    flex-grow: 1;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}
.spec-label {
    color: var(--gray-600);
    font-weight: 500;
}
.spec-value {
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
    width: 65%;
}
.modal-quote-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(232,132,30,0.3);
}
.modal-quote-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232,132,30,0.45);
}

/* ============================================
   LEAD FORM SECTION
   ============================================ */
.lead-section {
    background: 
        linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.95)),
        url('images/hero_develon.png') center/cover no-repeat fixed;
    padding: 100px 24px;
    position: relative;
}
.lead-split-container {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background: var(--white);
    position: relative;
    isolation: isolate;
    transform: translateZ(0);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5), 0 15px 35px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 6px solid var(--primary);
}
.lead-img-panel {
    background-image: url('https://images.unsplash.com/photo-1579978135243-7f72236a2818?w=1000&q=80'); /* Excavator Placeholder */
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lead-img-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%);
}
.lead-img-overlay {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.6);
    padding: 50px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--primary);
    max-width: 450px;
}
.lead-img-overlay h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}
.lead-img-overlay p {
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 1.05rem;
}
.lead-form-panel {
    padding: 60px 50px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-width: 0;
}
.lead-form-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(232,132,30,0.04), transparent 60%);
    pointer-events: none;
}
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    width: 100%;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 600;
    transition: var(--transition);
}
.form-group:focus-within label {
    color: var(--primary);
    transform: translateX(4px);
}
.form-group input,
.form-group textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(232,132,30,0.25), inset 0 3px 6px rgba(0,0,0,0.04);
    outline: none;
    transform: translateY(-3px);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.lead-submit-btn {
    box-sizing: border-box;
    width: 100%;
    margin-top: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(232,132,30,0.3);
    animation: leadBtnPulse 3s infinite alternate;
}
@keyframes leadBtnPulse {
    0% { box-shadow: 0 4px 15px rgba(232,132,30,0.2); }
    100% { box-shadow: 0 8px 25px rgba(232,132,30,0.5); }
}
.lead-submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    animation: none;
    box-shadow: 0 10px 30px rgba(232,132,30,0.4);
}
.form-response {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 14px;
    display: none;
}
.form-response.success {
    display: block;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.form-response.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ============================================
   PDF MODAL VIEW
   ============================================ */
.modal-pdf-wrapper {
    height: 80vh;
    padding: 30px;
    display: flex;
    flex-direction: column;
}
.pdf-modal-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
}
.pdf-mobile-image {
    text-align: center;
    margin-bottom: 20px;
}
.pdf-mobile-image img {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.pdf-iframe-box {
    flex: 1;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}
.pdf-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.pdf-download-btn, .pdf-quote-btn {
    flex: 1;
    max-width: 350px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
}
.pdf-download-btn {
    background-color: #e74c3c;
    color: white;
}
.pdf-download-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}
.pdf-quote-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
}
.pdf-quote-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .modal-split, .lead-split-container {
        grid-template-columns: 1fr;
    }
    .modal-gallery {
        padding: 40px 20px;
        min-height: 300px;
    }
    .modal-details {
        padding: 40px 30px;
    }
    .lead-section {
        padding: 60px 15px; /* Reduce padding to prevent overflow */
    }
    .lead-img-panel {
        padding: 40px 20px;
    }
    .lead-form-panel {
        padding: 40px 20px;
    }
    .brand-showcase {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px;
    }
    .modal-pdf-wrapper {
        height: auto;
        min-height: auto;
        padding: 20px 15px;
    }
    .pdf-action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .pdf-download-btn, .pdf-quote-btn {
        max-width: 100%;
        width: 100%;
    }
}

/* Teléfonos Pequeños (iPhone, Android) */
@media (max-width: 768px) {
    .catalog-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 5px 15px 15px 15px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px 10px -20px;
    }
    .filter-btn {
        flex-shrink: 0;
    }
    .catalog-filters::-webkit-scrollbar {
        height: 4px;
    }
    .catalog-filters::-webkit-scrollbar-thumb {
        background: rgba(232,132,30,0.5);
        border-radius: 4px;
    }

    /* Formulario: evitar desbordamiento en pantallas pequeñas */
    .lead-section {
        padding: 40px 10px;
        overflow: hidden; /* Prevent horizontal scroll */
    }
    .lead-split-container {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .lead-img-overlay {
        padding: 30px 20px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .lead-img-overlay h2 {
        font-size: 1.6rem;
        word-wrap: break-word;
    }
    .lead-form-panel {
        padding: 30px 15px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .form-group input,
    .form-group textarea {
        padding: 14px 12px;
        font-size: 0.95rem;
    }
    .form-group input:focus,
    .form-group textarea:focus {
        transform: none;
    }
    .lead-submit-btn {
        padding: 16px 12px;
        font-size: 0.95rem;
    }
}

/* ============================
   Excavadoras: Group badge
   ============================ */
.stage-group-badge {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 5;
    pointer-events: none;
    gap: 8px;
}
.stage-group-badge.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================
   Excavadoras: submenú por grupo
   ============================ */
.catalog-submenu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 15;
    margin: 0;
    pointer-events: none; /* Let clicks pass through empty areas */
}
.submenu-btn {
    appearance: none;
    pointer-events: auto; /* Re-enable clicks on buttons */
    border: 1px solid rgba(30, 41, 59, 0.18);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #0f172a;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}
.submenu-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.10);
}
.submenu-btn.active {
    background: rgba(232, 132, 30, 0.12);
    border-color: rgba(232, 132, 30, 0.35);
    color: #0b1220;
}

@media (max-width: 768px) {
    .catalog-submenu {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0 20px; /* Just horizontal padding for scroll */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .catalog-submenu::-webkit-scrollbar {
        display: none;
    }
    .submenu-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* ============================
   Aditamentos: PDF CTA
   ============================ */
.attachments-cta {
    margin-top: 24px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: transparent;
    border: none;
}
.attachments-cta-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border: none;
    box-shadow: none;
    max-width: 1100px;
    margin: 0 auto;
}
.attachments-cta-text h3 {
    margin: 10px 0 6px 0;
    font-size: 1.25rem;
    color: #0f172a;
}
.attachments-cta-text p {
    margin: 0;
    color: rgba(15, 23, 42, 0.75);
    max-width: 56ch;
}
.attachments-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(232, 132, 30, 0.12);
    border: 1px solid rgba(232, 132, 30, 0.25);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}
.attachments-cta-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-shrink: 0;
}
.attachments-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
    box-shadow: 0 8px 24px rgba(232, 132, 30, 0.28);
}
.attachments-cta-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 12px 30px rgba(232, 132, 30, 0.35);
}
.attachments-cta-link {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.4);
    transition: color 160ms ease, border-color 160ms ease;
}
.attachments-cta-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

@media (max-width: 768px) {
    .stage-group-badge {
        top: 12px;
        font-size: 0.72rem;
        padding: 9px 14px;
    }
    .attachments-cta-inner {
        grid-template-columns: 1fr;
        justify-items: stretch;
        padding: 18px 16px;
    }
    .attachments-cta-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================
   Accent Bar on Dark Section Titles
   ============================ */
.services .section-header,
.about-stats .stats-text {
    position: relative;
    padding-left: 20px;
}
.services .section-header::before,
.about-stats .stats-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    box-shadow: 0 0 12px rgba(232,132,30,0.4);
}

/* ============================
   Brand Showcase Overlap Into Next Section
   ============================ */
.brand-showcase {
    position: relative;
    z-index: 5;
    margin-bottom: -50px; /* Overlap into the promotions section */
}

/* ============================
   Section Intersection Shadows (Franjas de profundidad)
   ============================ */
.services-bg-overlay::after,
.about-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

/* ============================
   Parallax Disable on Mobile (iOS fix)
   ============================ */
@media (max-width: 768px) {
    .promotions,
    .about-stats {
        background-attachment: scroll !important;
    }
    .brand-showcase {
        margin-bottom: -30px;
    }
    .brands-section {
        padding-top: 40px;
        padding-bottom: 80px;
    }
    .services .section-header,
    .about-stats .stats-text {
        text-align: left;
    }
}
