/* Global Styles */
:root {
    --primary-color: #0056b3;
    /* Blue from logo */
    --secondary-color: #28a745;
    /* Green from logo */
    --accent-color: #ffffff;
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- ORIGINAL CLEAN HEADER RESTORATION --- */
/* Restoring the high-contrast white header that is guaranteed to be visible */

.main-header {
    background: #ffffff;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Stronger shadow for separation */
    position: sticky;
    /* Make it sticky so it stays visible */
    top: 0;
    z-index: 2000;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    padding: 5px;
}

/* Ensure Logo is Visible (Remove any filters) */
.logo {
    height: 80px;
    width: auto;
    filter: none !important;
    /* Force visibility */
    display: block;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

/* Standard readable buttons */
.btn {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background-color: #0056b3;
    /* Standard Blue */
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #28a745;
    /* Standard Green */
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* --- STANDARD NAVIGATION BAR --- */
/* Placed distinct from header for clarity */
/* --- STANDARD NAVIGATION BAR --- */
/* Placed distinct from header for clarity */
.main-nav {
    background: #333333;
    /* Dark grey bar for contrast */
    width: 100%;
    position: sticky;
    /* Sticky so it follows the header */
    top: 105px;
    /* Approximate height of main-header (80px logo + 25px padding) */
    z-index: 1999;
    border-top: 1px solid #444;
    display: block !important;
    /* Force visibility */
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-list li a {
    display: block;
    padding: 15px 25px;
    color: #e0e0e0;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.nav-list li a:hover,
.nav-list li a.active {
    background-color: #0056b3;
    /* Highlight color */
    color: white;
}

/* Remove fancy pseudo-elements that might break */
.nav-list li a::after,
.nav-list li a::before {
    display: none;
}

/* Mobile Toggle - Make it visible on dark bar */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Reset Margins for Sections - No massive top margins needed */
.hero-section,
.servicios-hero-premium,
.spectacular-hero,
.qs-hero-premium,
.contacto-hero,
.clientes-hero,
.consultoria-hero,
.links-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Responsive Defaults */
@media (max-width: 992px) {
    .header-buttons {
        display: none;
    }

    .logo {
        height: 60px;
    }

    .main-nav {
        background: #222;
    }

    .nav-container {
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        width: 100%;
        flex-direction: column;
        background: #222;
        position: absolute;
        top: 100%;
        left: 0;
    }

    .main-nav.active .nav-list {
        display: flex;
    }

    .nav-list li {
        width: 100%;
        text-align: left;
    }

    .nav-list li a {
        padding: 15px 20px;
        border-bottom: 1px solid #333;
    }

    .hero-section,
    .servicios-hero-premium,
    .qs-hero-premium,
    .contacto-hero,
    .clientes-hero,
    .consultoria-hero,
    .links-hero {
        margin-top: 0 !important;
    }
}


/* Hero Slider - CINEMATIC & SPECTACULAR */
.hero-section {
    position: relative;
    height: 100vh;
    /* Full screen impact */
    min-height: 700px;
    width: 100%;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s linear;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
}

/* Cinematic Ken Burns Effect */
.slide.active .slide-bg {
    animation: cinemaKenBurns 18s infinite alternate ease-in-out;
}

@keyframes cinemaKenBurns {
    0% {
        transform: scale(1.0) translate(0, 0);
    }

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

/* Cinematic Vignette Overlay */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

/* Slide Content - The Star of the Show */
.slide-content {
    position: relative;
    z-index: 10;
    max-width: 90%;
    padding: 0 20px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    /* Bigger and bolder */
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    letter-spacing: -2px;
}

.slide-title .highlight {
    color: var(--secondary-color);
    display: inline-block;
    position: relative;
    /* Innovative text effect: subtle glow */
    text-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
}

/* Cinematic Text Reveal Animation */
.slide.active .slide-title {
    animation: cinemaRevealTitle 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.5s;
}

@keyframes cinemaRevealTitle {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        letter-spacing: 10px;
        filter: blur(10px);
    }

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

.slide-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 30px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slide.active .slide-subtitle {
    animation: cinemaRevealSubtitle 1.5s ease-out forwards 1.2s;
}

@keyframes cinemaRevealSubtitle {
    0% {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 10px;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 4px;
    }
}


/* Slider Controls (Arrows & Dots) */
.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 30px;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: white;
    color: #000;
    transform: scale(1.1);
}

.slider-indicators {
    display: flex;
    gap: 15px;
}

.indicator {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.4);
}

.indicator.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary-color);
    animation: progressFill 5s linear forwards;
    /* Matches slide interval */
}

@keyframes progressFill {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}



/* Why Choose Us - Spectacular Redesign */
.why-choose-us-section {
    padding: 120px 0;
    position: relative;
    background: #f8faff;
    /* Very subtle blue-white */
    overflow: hidden;
}

/* Background decorative elements */
.why-choose-us-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.03), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.why-choose-us-section .container {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 70px;
    text-align: center;
    border: none;
}

.spectacular-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.1;
    position: relative;
    display: inline-block;
    border: none;
    background: none;
}

.spectacular-title::after,
.spectacular-title::before {
    display: none;
}

.highlight-text {
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

.highlight-text::after {
    display: none;
}

.section-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: #64748b;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

/* Why Choose Us - Spectacular Holographic Design */
.why-choose-us-section {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    overflow: hidden;
}

/* Animated Background Orbs */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatOrb 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.15), transparent 70%);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1), transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

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

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

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

/* 3D Grid Layout */
.features-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    perspective: 1000px;
    /* Enable 3D space */
}

/* 3D Feature Card */
.feature-card-3d {
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

/* Floating Animation */
.feature-card-3d {
    animation: floatCard 6s ease-in-out infinite;
}

.feature-card-3d:nth-child(2) {
    animation-delay: 1s;
}

.feature-card-3d:nth-child(3) {
    animation-delay: 2s;
}

.feature-card-3d:nth-child(4) {
    animation-delay: 3s;
}

@keyframes floatCard {

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

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

.card-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow:
        0 15px 35px rgba(0, 86, 179, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-3d:hover .card-content {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
    border-color: white;
    box-shadow:
        0 30px 60px rgba(0, 86, 179, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 0 0px rgba(255, 255, 255, 0);
    /* remove inset to feel "popped" */
}

/* Holographic Shine Effect */
.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.5s;
    pointer-events: none;
}

.feature-card-3d:hover .card-shine {
    left: 200%;
    transition: left 1s ease-in-out;
}

/* 3D Icon Wrapper */
.icon-wrapper-3d {
    width: 90px;
    height: 90px;
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(40, 167, 69, 0.1));
    border-radius: 24px;
    transform: rotate(45deg);
    transition: all 0.5s ease;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.1);
}

.feature-card-3d:hover .icon-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: rotate(225deg) scale(1.1);
    /* Spin and grow */
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.3);
}

.icon-wrapper-3d i {
    font-size: 2.2rem;
    color: var(--primary-color);
    z-index: 2;
    transition: all 0.5s ease;
}

.feature-card-3d:hover .icon-wrapper-3d i {
    color: white;
    transform: scale(1.2);
}

/* Typography */
.feature-card-3d h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1e293b;
    transition: color 0.3s;
}

.feature-card-3d:hover h3 {
    color: var(--primary-color);
}

.feature-card-3d p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Title Underline Animation */
.title-underline-anim {
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto 30px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.title-underline-anim::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, white, transparent);
    animation: shimmerLine 2s infinite;
}

@keyframes shimmerLine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Services Accordion Gallery - SPECTACULAR DESIGN */
#servicios-gallery {
    padding: 100px 0;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

#servicios-gallery .section-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.spectacular-title-dark {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.glitch-text {
    position: relative;
    color: var(--secondary-color);
}

/* Glitch Effect on Text Hover */
.glitch-text:hover::before,
.glitch-text:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text:hover::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text:hover::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(85px, 9999px, 90px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(15px, 9999px, 60px, 0);
    }

    100% {
        clip: rect(65px, 9999px, 10px, 0);
    }
}

.section-subtitle-dark {
    color: #a0a0a0;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Accordion Gallery Wrapper */
.accordion-gallery {
    display: flex;
    height: 600px;
    width: 100%;
    gap: 0;
}

/* Unique Accordion Item */
.accordion-item {
    flex: 1;
    position: relative;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Hover State - The "Opening" */
.accordion-item:hover {
    flex: 3.5;
    /* Expands significantly */
}

/* Overlay - Darkens non-hovered items */
.accordion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: background 0.4s ease;
}

.accordion-item:hover .accordion-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.0) 100%);
}

/* Content Wrapper - Absolute positioning */
.accordion-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    transform: translateY(0);
}

/* Icon - Floats and glows */
.accordion-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.accordion-item:hover .accordion-icon {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
    border-color: transparent;
}

/* Title - Rotates for vertical mode (desktop)? No, usually simpler to keep horizontal but fade */
.accordion-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
    white-space: nowrap;
    transition: all 0.4s ease;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.accordion-item:hover .accordion-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Details - Hidden by default, reveal on hover */
.accordion-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    width: 100%;
}

.accordion-item:hover .accordion-details {
    max-height: 200px;
    /* ample space */
    opacity: 1;
    margin-top: 10px;
}

.accordion-details p {
    color: #ddd;
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 500px;
}

/* Neon Button */
.btn-neon {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-neon:hover {
    color: white;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
    border-color: var(--secondary-color);
}

.btn-neon:hover::before {
    left: 0;
}

.btn-neon i {
    margin-left: 10px;
    transition: transform 0.3s;
}

.btn-neon:hover i {
    transform: translateX(5px);
}

/* Mobile Responsiveness for Accordion */
@media (max-width: 991px) {
    .accordion-gallery {
        flex-direction: column;
        height: auto;
    }

    .accordion-item {
        height: 250px;
        /* Stacked items */
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .accordion-item:hover {
        flex: none;
        height: 400px;
        /* Expand height instead of width */
    }

    .spectacular-title-dark {
        font-size: 2.5rem;
    }
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), #002a5c);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Banner */
.cta-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1), transparent 70%);
    z-index: 1;
    border-radius: 50%;
}

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

.cta-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.btn-light {
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.pulse-effect {
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

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

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .service-item.item-large,
    .service-item.item-wide {
        grid-column: span 2;
    }
}

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

    .service-item.item-large,
    .service-item.item-wide {
        grid-column: span 1;
    }

    .spectacular-title {
        font-size: 2.2rem;
    }
}

.info-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Gradient Borders/Accents via pseudo-element */
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), #00d2ff);
    transition: height 0.4s ease;
}

/* Specific accent for the second card */
.info-card-link:nth-child(2) .info-card::before {
    background: linear-gradient(90deg, var(--secondary-color), #a8ff78);
}

.info-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.info-card:hover::before {
    height: 10px;
}

.card-icon {
    width: 90px;
    height: 90px;
    background: rgba(0, 86, 179, 0.08);
    /* Light primary */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.info-card-link:nth-child(2) .card-icon {
    background: rgba(40, 167, 69, 0.08);
    /* Light secondary */
    color: var(--secondary-color);
}

.info-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.3);
}

.info-card-link:nth-child(2) .info-card:hover .card-icon {
    background: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.info-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
}

.info-card p {
    color: #666;
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Home Clients - Infinite River Spectacular (Refined) */
.home-clients-section {
    padding: 80px 0;
    background: #020617;
    position: relative;
    overflow: hidden;
}

/* Vignette / Fog Overlay */
.river-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    pointer-events: none;
    box-shadow: inset 100px 0 100px #020617, inset -100px 0 100px #020617;
}

.infinite-scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

/* Track: Uses plain block flow with inline-flex to simplify width calc */
.scroll-track {
    display: inline-flex;
    /* No flex gap, we use margins on items for perfect math */
    gap: 0;
    width: max-content;
    animation: infiniteScrollRefined 35s linear infinite;
}

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

/* Perfectly calculated half-width movement */
@keyframes infiniteScrollRefined {
    0% {
        transform: translateX(0);
    }

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

/* Spectacular Client Card */
.client-card {
    position: relative;
    width: 280px;
    /* Slightly wider */
    height: 160px;
    margin-right: 60px;
    /* The gap is now part of the item width */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(0px);
    /* Performance fix */
    cursor: pointer;
}

.client-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Make them visible and nice by default, no depressed gray */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
    opacity: 0.8;
    transition: all 0.4s ease;
}

/* Hover: Pop Effect */
.client-card:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    z-index: 20;
}

.client-card:hover img {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    opacity: 1;
    transform: scale(1.1);
}

/* Inner Glow Animation */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.6s ease;
    border-radius: 50%;
}

.client-card:hover .card-glow {
    width: 300px;
    height: 300px;
    opacity: 0.15;
}

/* Footer - Spectacular Design */
.main-footer {
    background: #0f172a;
    /* Deep dark blue */
    color: #94a3b8;
    padding: 80px 0 0;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 86, 179, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(40, 167, 69, 0.1) 0%, transparent 20%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-column h3 {
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Contact Column */
.contact-column address p {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.contact-column address i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-phone {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 25px;
}

.footer-phone i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Social Icons */
.footer-social {
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.4);
    border-color: transparent;
}

/* Links Lists */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links a:hover i {
    transform: translateX(3px);
    color: var(--primary-color);
}

/* Compact List for Consulting */
.compact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.compact-list li {
    margin-bottom: 5px;
}

.compact-list a {
    font-size: 0.9rem;
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    background: #020617;
    /* Darker shade */
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.3s;
}

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

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .consulting-column {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .consulting-column {
        grid-column: span 1;
    }

    .compact-list {
        grid-template-columns: 1fr;
    }
}

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

    .contact-overlay {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 90%;
        margin: 20px auto;
    }

    .hero-section {
        height: auto;
        flex-direction: column;
        padding-bottom: 40px;
    }

    .slider-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .slide-title {
        font-size: 2.5rem;
        margin-top: 40px;
    }
}

/* Quienes Somos - Premium Redesign */
.quienes-somos-section {
    width: 100%;
    background: #fff;
    padding-bottom: 0;
    /* Footer handles spacing */
}

.qs-hero-premium {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background-image: url('assets/images/quienes_somos_hero.png');
    background-attachment: fixed;
    /* Parallax effect */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qs-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 40, 90, 0.85), rgba(0, 86, 179, 0.7));
    z-index: 1;
}

.qs-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.qs-hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.qs-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

/* Stats Banner */
.qs-stats-banner {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    position: relative;
    z-index: 10;
    margin-top: -50px;
    /* Overlap hero */
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Content Sections */
.qs-section {
    padding: 100px 0;
}

.qs-section.light-bg {
    background: #f8f9fa;
}

.qs-split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.qs-text-col {
    flex: 1;
}

.qs-img-col {
    flex: 1;
    position: relative;
}

.qs-img-col img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.qs-img-col:hover img {
    transform: scale(1.02);
}

.section-label {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.qs-heading {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.2;
}

.qs-paragraph {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Features Grid */
.qs-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.qs-feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.qs-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-top-color: var(--secondary-color);
}

.qs-feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.qs-feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .qs-hero-title {
        font-size: 2.5rem;
    }

    .qs-split-layout {
        flex-direction: column;
    }

    .qs-split-layout.reverse {
        flex-direction: column-reverse;
    }

    .qs-stats-banner {
        margin-top: 0;
        padding: 40px 0;
    }
}

/* Animation Utilities */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Servicios Aduanales Section */
.servicios-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #eef2f3 100%);
    text-align: center;
}

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

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.3);
}

.section-title-dark {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.servicios-text {
    font-size: 1.3rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .qs-title {
        font-size: 3rem;
    }

    .qs-content {
        margin-top: 0;
        padding: 30px;
        border-radius: 0;
        box-shadow: none;
    }
}

/* Info Card Links */
.info-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.info-card-link .info-card {
    height: 100%;
    /* Ensure card fills the link area */
    max-width: none;
    /* Let the link container control width */
}

/* Servicios Page - Premium Redesign */

/* Hero Section */
.servicios-hero-premium {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    background-image: url('assets/images/logistica_slider.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.servicios-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 86, 179, 0.6));
    z-index: 1;
}

.servicios-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.servicios-title-large {
    font-size: 5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 1s ease-out;
}

.servicios-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

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

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

/* Intro Section */
.servicios-intro {
    padding: 80px 0;
    text-align: center;
    background: #fff;
}

.intro-heading {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Premium Services Grid */
.servicios-grid-section {
    padding: 0 0 100px;
    background: #f8f9fa;
}

.premium-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.premium-service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.premium-service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-image-header {
    height: 200px;
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.card-icon-large {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    right: -20px;
    bottom: -20px;
    transform: rotate(-15deg);
    transition: all 0.4s ease;
}

.premium-service-card:hover .card-icon-large {
    transform: rotate(0deg) scale(1.2);
    color: rgba(255, 255, 255, 0.3);
}

.card-icon-floating {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
    bottom: -35px;
    left: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.card-body {
    padding: 50px 30px 30px;
    /* Top padding for floating icon */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.card-body p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 20px;
    flex: 1;
}

.card-features {
    list-style: none;
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.card-features li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-features li i {
    color: var(--secondary-color);
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: white;
    text-align: center;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #004494);
    color: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.3);
    transform: rotate(45deg);
}

.step-icon i {
    transform: rotate(-45deg);
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 0.95rem;
    color: #666;
}

/* Call to Action */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #003366);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.btn-light {
    background: white;
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.3s;
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
    .servicios-title-large {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .servicios-hero-premium {
        height: 50vh;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-step {
        margin-bottom: 40px;
    }
}

/* Consultoria Page Styles */

.consultoria-hero {
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url('assets/images/comercio_exterior_slider.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    /* Connected to content */
}

.consultoria-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.consultoria-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.consultoria-content-section {
    padding: 80px 0 100px;
    background: #ffffff;
}

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

.intro-text p {
    font-size: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.feature-item {
    background: #f8f9fa;
    padding: 25px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.feature-item:hover {
    background: #ffffff;
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--secondary-color);
}

.feature-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-item:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.feature-item span {
    font-size: 1.1rem;
    color: #444;
    font-weight: 500;
}

/* Responsive for Consultoria */
@media (max-width: 768px) {
    .consultoria-hero {
        height: 350px;
    }

    .page-title {
        font-size: 2.5rem;
        /* Adjust for longer title */
        line-height: 1.2;
    }

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

/* Clientes Page Styles */

.clientes-hero {
    position: relative;
    width: 100%;
    height: 450px;
    background-image: url('assets/images/plataforma_virtual_slider.png');
    /* Using an existing image as base */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.clientes-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 86, 179, 0.8), rgba(40, 167, 69, 0.8));
    /* Brand colors gradient overlay */
    z-index: 1;
}

.clientes-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.clientes-content-section {
    padding: 80px 0 100px;
    background: #f4f7f6;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.client-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.client-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary-color);
}

.client-icon {
    width: 60px;
    height: 60px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.client-card:hover .client-icon {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1);
}

.client-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Links Page Styles */

.links-hero {
    position: relative;
    width: 100%;
    height: 400px;
    background-image: url('assets/images/quienes_somos_hero.png');
    /* Reusing a generic professional background */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.links-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 86, 179, 0.6));
    z-index: 1;
}

.links-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.links-content-section {
    padding: 100px 0;
    background: #ffffff;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
}

.link-card {
    text-decoration: none;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.link-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.link-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.link-image-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.link-card:hover .link-image-wrapper img {
    transform: scale(1.05);
}

.link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 86, 179, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.link-card:hover .link-overlay {
    opacity: 1;
}

.link-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.link-overlay span {
    font-weight: 600;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.link-card:hover .link-overlay i,
.link-card:hover .link-overlay span {
    transform: translateY(0);
}

.link-info {
    padding: 25px;
    text-align: center;
    border-top: 1px solid #eee;
}

.link-info h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.link-info p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Contacto Page Styles */

.contacto-hero {
    position: relative;
    width: 100%;
    height: 450px;
    background-image: url('assets/images/asesoria_legal_slider.png');
    /* Using a professional background */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.contacto-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 86, 179, 0.8), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.contacto-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.contacto-content-section {
    padding: 80px 0 100px;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Form Styles */
.contact-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.main-contact-form .form-group {
    margin-bottom: 25px;
}

.main-contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-contact-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fcfcfc;
    font-family: 'Outfit', sans-serif;
}

.main-contact-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
    background: #fff;
}

.btn-submit-large {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), #004494);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.3);
}

/* Info & Map Styles */
.contact-info-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.info-content p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.map-container {
    margin-top: auto;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

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

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

/* Home Clients Section - Alucinante */
.home-clients-section {
    padding: 150px 0;
    background: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle modern mesh gradient background */
.home-clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(40, 167, 69, 0.03), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(0, 86, 179, 0.03), transparent 40%);
    pointer-events: none;
}

.home-clients-section .spectacular-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    /* Huge impact */
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1;
    text-transform: none;
    /* More modern than uppercase */
    background: none;
    -webkit-text-fill-color: initial;
    border: none;
    position: relative;
    display: inline-block;
}

.home-clients-section .spectacular-title::after {
    display: none;
    /* No lines! */
}

/* Carousel Container */
.clients-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 80px 0;
    /* More space for big floating cards */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.clients-carousel-track {
    display: flex;
    width: max-content;
    /* Ensure it fits all items */
    animation: scrollClients 40s linear infinite;
    /* Faster, smoother flow */
}

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

.client-slide {
    width: 320px;
    /* Large */
    height: 180px;
    flex-shrink: 0;
    margin: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    /* Ultra premium shadow */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    filter: grayscale(100%);
    /* Start clean B&W */
    opacity: 0.7;
}

.client-slide:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    filter: grayscale(0%);
    /* Color on hover */
    opacity: 1;
    z-index: 10;
    border-color: rgba(0, 0, 0, 0.0);
}

.client-slide img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.client-slide:hover img {
    transform: scale(1.1);
}

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

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

    /* Assumes track has duplicate items */
}



/* Responsive adjustments for title */
@media (max-width: 768px) {
    .spectacular-title {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    .client-slide {
        width: 220px;
        height: 150px;
        margin: 0 20px;
    }

    .clients-carousel-track {
        width: calc(220px * 10 + 40px * 10);
        animation: scrollClientsMobile 40s linear infinite;
    }

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

        100% {
            transform: translateX(calc(-220px * 5 - 40px * 5));
        }
    }

    .clients-carousel-container::before,
    .clients-carousel-container::after {
        width: 80px;
        /* Smaller mask on mobile */
    }
}



.info-card-contact {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: rgba(40, 167, 69, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.detail-item p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    padding-top: 10px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
    height: 350px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Responsive for Contacto */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacto-hero {
        height: 350px;
    }
}

/* =========================================
   Mobile Responsive Styles & Menu
   ========================================= */

/* Mobile Menu Toggle Button (Hidden on Desktop) */
/* Mobile Menu Toggle Button (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
    align-items: center;
    /* Align text and icon */
    gap: 10px;
    /* Space between text and icon */
}

.menu-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    /* Optional: Add a subtle glow or gradient if desired, but clean is often more premium */
}

.mobile-menu-toggle:hover {
    color: var(--secondary-color);
}

.mobile-menu-toggle:hover .menu-label {
    color: var(--secondary-color);
}

/* Nav Container adjustments */
.nav-container {
    display: flex;
    justify-content: center;
    /* Center by default on desktop */
    align-items: center;
    position: relative;
}

/* Media Queries for Mobile/Tablet */
@media (max-width: 992px) {
    .header-content {
        padding: 15px 20px;
    }

    .page-title {
        font-size: 3.5rem;
    }

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

    .servicios-title-large {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {

    /* Header Adjustments */
    .main-header {
        padding: 10px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo {
        height: 60px;
    }

    .header-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    /* Navigation Mobile */
    .nav-container {
        justify-content: space-between;
        /* Space between toggle and potential logo if added */
        padding: 10px 20px;
    }

    .mobile-menu-toggle {
        display: flex;
        /* Changed to flex to align label and icon */
        margin: 0 auto;
        /* Center if it's the only thing */
    }

    .nav-list {
        display: none;
        /* Hidden by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #1a1a1a;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        padding-bottom: 20px;
    }

    .nav-list.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

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

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

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-list li a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-list li a::after {
        display: none;
        /* Remove underline effect on mobile */
    }

    /* Hero Section */
    /* Hero Section */
    .hero-section {
        height: auto;
        min-height: 100vh;
        /* Full screen height for mobile */
        flex-direction: column;
        padding-top: 0;
    }

    .slide-title {
        font-size: 3rem;
        /* Increased for better visibility on mobile */
        margin-top: 0;
    }
}

/* Tablet/iPad Specific Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .slide-title {
        font-size: 4rem;
        /* Larger font for tablets */
    }

    .page-title {
        font-size: 4rem;
    }

    .servicios-title-large {
        font-size: 4rem;
    }

    /* Hide contact overlay on tablets too */
    .contact-overlay {
        display: none;
    }
}

/* Mobile Specific (max-width: 768px) - Re-applying hidden overlay */
@media (max-width: 768px) {
    .contact-overlay {
        display: none;
    }


    /* Info Cards */
    .cards-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .info-card-link {
        width: 100%;
        max-width: 100%;
    }

    /* Clients Grid */
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        /* Smaller columns */
        gap: 15px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-column address p {
        justify-content: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .compact-list {
        grid-template-columns: 1fr;
    }

    /* General Typography */
    .page-title,
    .servicios-title-large,
    .qs-hero-title {
        font-size: 2.5rem;
    }

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

@media (max-width: 480px) {

    .page-title,
    .servicios-title-large,
    .qs-hero-title {
        font-size: 2rem;
    }

    .header-buttons {
        flex-direction: column;
        width: 100%;
    }

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

/* 404 Error Page Styles - Spectacular Design */
.error-page {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.error-container {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.glass-card-404 {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 40px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.glass-card-404::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.error-code {
    font-size: 12rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: float 6s ease-in-out infinite;
    font-family: 'Outfit', sans-serif;
}

.error-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.error-message {
    color: #94a3b8;
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.6;
    font-weight: 300;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-color), #004494);
    color: white;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-home:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.5);
    background: linear-gradient(135deg, #004494, var(--primary-color));
}

.btn-home i {
    transition: transform 0.3s ease;
}

.btn-home:hover i {
    transform: rotate(-10deg) scale(1.1);
}

/* Floating Shapes Background */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    animation: floatShape1 20s infinite alternate;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    bottom: -150px;
    right: -150px;
    animation: floatShape2 25s infinite alternate-reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #6366f1;
    /* Indigo accent */
    top: 40%;
    left: 60%;
    transform: translate(-50%, -50%);
    animation: floatShape3 18s infinite alternate;
    opacity: 0.3;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

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

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

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

    100% {
        transform: translate(-80px, -60px) scale(1.2);
    }
}

@keyframes floatShape3 {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-30%, -30%) scale(0.9);
    }
}

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

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

/* Responsive 404 */
@media (max-width: 768px) {
    .error-code {
        font-size: 8rem;
    }

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

    .glass-card-404 {
        padding: 50px 20px;
        margin: 0 15px;
    }

    .error-message {
        font-size: 1rem;
        max-width: 100%;
    }
}

/* =========================================
   Success Page Styles
   ========================================= */

.success-page-container {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem;
}

.glass-card-success {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Success Icon Animation */
.success-icon-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    animation: pulseRing 2s infinite;
}

.success-check {
    font-size: 4rem;
    color: #22c55e;
    z-index: 2;
    opacity: 0;
    transform: scale(0.5);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s forwards;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

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

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-45deg);
    }

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

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    opacity: 0;
}

.particle.p1 {
    top: 50%;
    left: 50%;
    animation: explode1 1s ease-out 0.6s forwards;
}

.particle.p2 {
    top: 50%;
    left: 50%;
    animation: explode2 1s ease-out 0.7s forwards;
}

.particle.p3 {
    top: 50%;
    left: 50%;
    animation: explode3 1s ease-out 0.5s forwards;
}

.particle.p4 {
    top: 50%;
    left: 50%;
    animation: explode4 1s ease-out 0.6s forwards;
}

.particle.p5 {
    top: 50%;
    left: 50%;
    animation: explode5 1s ease-out 0.8s forwards;
}

.particle.p6 {
    top: 50%;
    left: 50%;
    animation: explode6 1s ease-out 0.7s forwards;
}

@keyframes explode1 {
    to {
        transform: translate(-40px, -40px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }
}

@keyframes explode2 {
    to {
        transform: translate(40px, -40px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }
}

@keyframes explode3 {
    to {
        transform: translate(-40px, 40px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }
}

@keyframes explode4 {
    to {
        transform: translate(40px, 40px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }
}

@keyframes explode5 {
    to {
        transform: translate(0, -60px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }
}

@keyframes explode6 {
    to {
        transform: translate(0, 60px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }
}

/* Typography */
.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.success-message-box {
    margin-bottom: 2.5rem;
}

.success-text {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.success-subtext {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Redirect & Progress */
.redirect-info {
    margin-bottom: 2rem;
    color: #64748b;
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #22c55e;
    width: 0%;
    animation: progressFill 10s linear forwards;
}

@keyframes progressFill {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.btn-return {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.3);
}

.btn-return:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .success-title {
        font-size: 2rem;
    }

    .glass-card-success {
        padding: 2rem 1.5rem;
    }
}

/* Spectacular Button */
.btn-spectacular {
    position: relative;
    margin-top: 40px;
    padding: 18px 45px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    /* Start hidden */
    transform: translateY(20px);
    z-index: 100;
    backdrop-filter: blur(5px);
    display: inline-block;
    text-decoration: none;
}

/* Internal content wrapper */
.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Glow Effect Container */
.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}


/* Hover States - The magic happens here */
.btn-spectacular:hover {
    background: white;
    color: #000;
    border-color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5),
        0 0 60px rgba(0, 86, 179, 0.3);
    /* Blue glow matching brand */
}

/* Icon Animation on Hover */
.btn-spectacular:hover .btn-content i {
    transform: translateX(5px);
}

.btn-content i {
    transition: transform 0.3s ease;
}

/* Shine Animation Loop */
.slide.active .btn-spectacular .btn-glow {
    animation: shine 3s infinite 2s;
    /* Delay start */
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Entrance Animation */
.slide.active .btn-spectacular {
    animation: fadeInUpBtn 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards 1.8s;
    /* Appear last */
}

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

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