/* Base Styles */
:root {
    --primary-color: #0066ff;
    --primary-light: #3a8cff;
    --primary-dark: #001a33;
    --accent-color: #00d2ff;
    --secondary-color: #0055d4;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --primary-gradient: linear-gradient(135deg, #0066ff 0%, #001a33 100%);
    --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Outfit', sans-serif;
    --transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                  opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                  background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                  color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                  box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                  border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #001a33 100%);
    --gradient-accent: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

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

a:hover {
    color: var(--primary-dark);
}

.mobile-only {
    display: none !important;
}

ul {
    list-style: none;
}

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

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

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2 span {
    color: var(--primary-color);
}

.section-header p {
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.text-center {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(10, 35, 81, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(10, 35, 81, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

.section-header.small h3 {
    font-size: 28px;
    text-transform: uppercase;
}

/* Brands Section */
.brands-section {
    padding: 60px 0;
    background-color: var(--white);
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    overflow: hidden;
}

.brands-slider {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.brands-track {
    display: flex;
    width: calc(250px * 96);
    /* 24 marcas únicas * 4 repeticiones */
    animation: scroll 110s linear infinite;
}

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

.brand-item {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.brand-item img {
    max-width: 150px;
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

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

    100% {
        transform: translateX(calc(-250px * 22));
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 10px 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    flex-shrink: 1;
}

.logo-img {
    height: 45px;
    width: auto;
    margin-right: 12px;
    object-fit: contain;
}

.logo span {
    line-height: 1.1;
}

.logo strong {
    color: var(--primary-color);
    display: block;
    font-size: 1.1em;
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
}

.navbar .nav-links li {
    margin-left: 30px;
}

.navbar .nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.navbar .nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar .nav-links a:hover:after,
.navbar .nav-links a.active:after {
    width: 100%;
}

.navbar .nav-links a.active {
    color: var(--primary-color);
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 40px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

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

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

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

/* Dark Header Page adjustments (for pages with dark Hero backgrounds) */
.dark-header-page .header:not(.scrolled) {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, transparent 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.dark-header-page .header:not(.scrolled) .logo,
.dark-header-page .header:not(.scrolled) .nav-links a,
.dark-header-page .header:not(.scrolled) .sidebar-toggle {
    color: var(--white);
}

.dark-header-page .header:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1);
}

.dark-header-page .header:not(.scrolled) .logo strong {
    color: var(--accent-color);
}

.dark-header-page .header:not(.scrolled) .nav-links a:hover,
.dark-header-page .header:not(.scrolled) .nav-links a.active {
    color: var(--accent-color);
}

.dark-header-page .header:not(.scrolled) .nav-links a:after {
    background-color: var(--accent-color);
}

.dark-header-page .header:not(.scrolled) .hamburger span {
    background-color: var(--white);
}

/* Hero Section Redesign */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background-color: var(--dark-color);
    display: flex;
    align-items: center;
}

.hero-tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.scan-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 210, 255, 0.2), transparent);
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { top: -100px; }
    100% { top: 100%; }
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
}

.slide:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 2;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-bg:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.2) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding-top: 80px;
    width: 100%;
}

.hero-glass-card {
    background: rgba(15, 23, 42, 0.02);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 25px;
    border-radius: 35px;
    max-width: 650px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-glass-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shine 4s infinite linear;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-glass-card h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--white);
    letter-spacing: -2px;
}

.text-gradient {
    background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-glass-card h2 {
    font-size: 24px;
    color: var(--light-gray);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-glass-card p {
    font-size: 17px;
    color: rgba(248, 250, 252, 0.9);
    margin: 0 auto 30px;
    max-width: 550px;
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

.slider-controls-wrap {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

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

.slider-controls button {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.slider-controls button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background: var(--accent-color);
    width: 50px;
}

@media (max-width: 991px) {
    .hero-glass-card {
        padding: 40px 25px;
        margin: 0 15px;
        border-radius: 25px;
    }
    
    .hero-glass-card h1 {
        font-size: 38px;
    }
    
    .slider-controls-wrap {
        right: 20px;
        bottom: 30px;
    }
}

/* About Section */
.about-section {
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.experience-badge {
    position: absolute;
    bottom: -60px;
    right: -10px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 20px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(10, 35, 81, 0.2);
    border: 4px solid var(--white);
}

.experience-badge span {
    font-size: 36px;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge p {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-vision {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.mv-item {
    flex: 1;
    min-width: 250px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.mv-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.mv-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mv-item h4 {
    color: var(--primary-color);
    font-size: 20px;
}

.values-section {
    margin-top: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.value-item {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--accent-color);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.value-item:hover .value-icon {
    background: var(--gradient-accent);
}

.value-item:hover .value-icon i {
    color: var(--white);
}

.value-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner1.jpg') center/cover no-repeat;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

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

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 64px;
    font-weight: 800;
    font-family: var(--font-secondary);
    margin-bottom: 10px;
    display: block;
    background: linear-gradient(to bottom, var(--white) 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-number::after {
    content: '+';
    font-size: 40px;
    margin-left: 5px;
    vertical-align: top;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.9;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--light-gray);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-hover);
    border-color: transparent;
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: var(--light-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.service-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
    transform: scale(0.8);
}

.service-card:hover .service-icon:after {
    opacity: 1;
    transform: scale(1);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-icon i {
    font-size: 40px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.btn-service {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

/* Projects Section */
.projects-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--light-gray);
    color: var(--dark-color);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}
@media (min-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 35, 81, 0.95), rgba(58, 123, 213, 0.4));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
    transform: translateY(20px);
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: left;
    font-weight: 700;
}

.project-overlay p {
    text-align: left;
    margin-bottom: 20px;
    font-size: 15px;
    opacity: 0.9;
}

.btn-view {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-view:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Philosophy Section */
.philosophy-section {
    padding: 100px 0;
    background: var(--primary-gradient);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.philosophy-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('../images/pattern.png'); */ /* Pattern overlay if exists */
    opacity: 0.1;
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.philosophy-content .quote-icon {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    display: block;
}

.philosophy-quote {
    font-size: 28px;
    line-height: 1.5;
    font-weight: 600;
    font-family: var(--font-secondary);
    font-style: italic;
    margin: 0;
}

.philosophy-quote strong {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .philosophy-quote {
        font-size: 20px;
    }
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-color);
}

.testimonials-slider {
    max-width: 800px;
    margin: 40px auto;
    position: relative;
    min-height: 250px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-content {
    position: relative;
    margin-bottom: 20px;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 40px;
    color: rgba(0, 145, 255, 0.1);
    z-index: 0;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
    font-style: italic;
    font-size: 16px;
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-weight: 700;
    color: var(--primary-color);
}

.client-position {
    font-size: 14px;
    color: var(--gray-color);
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 145, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.contact-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-form-container {
    flex: 1.2;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--box-shadow-hover);
    border: 1px solid var(--light-gray);
}

.modern-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
}

.modern-form .form-group {
    flex: 1;
    margin-bottom: 25px;
}

.modern-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--light-color);
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition);
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    background-color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(10, 35, 81, 0.05);
}

.btn-block {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    padding: 18px;
    border-radius: 12px;
    font-size: 18px;
}

/* Clients Section */
.clients-section {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.clients-carousel {
    margin-top: 40px;
    position: relative;
    width: 100%;
}

.clients-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.client-logo {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

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

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Map Section */
.map-section {
    padding: 100px 0;
    background: var(--light-color);
}

.presence-map-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow-hover);
    border: 1px solid var(--light-gray);
    background: var(--white);
}

.presence-map {
    width: 100%;
    height: auto;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(10, 35, 81, 0.05), transparent);
    pointer-events: none;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
}

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

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo strong {
    color: var(--primary-color);
}

.footer p {
    margin-bottom: 20px;
    opacity: 0.8;
}

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

.footer ul li a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

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

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

.copyright {
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
}

/* Navigation Contact Items (Integrated into Menu) */
.nav-contact-item {
    margin-top: 15px !important;
}

.nav-btn-whatsapp, .nav-btn-email {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px !important;
    border-radius: 8px;
    font-weight: 700 !important;
    color: var(--white) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-bottom: 5px;
}

.nav-btn-whatsapp {
    background-color: #25d366;
}

.nav-btn-email {
    background: var(--gradient-primary);
}

.nav-btn-whatsapp:hover, .nav-btn-email:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Schedule (Horarios) */
.footer-schedule h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.schedule-list {
    list-style: none;
    padding: 0;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.schedule-list li span:last-child {
    color: var(--accent-color);
    font-weight: 600;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 400px !important;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -150px; /* Slightly lower to hide completely */
    left: 0;
    width: 100%;
    background: rgba(10, 35, 81, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 0;
    z-index: 9999;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .cookie-banner {
        backdrop-filter: none; /* Optimize mobile performance */
        background: #0a2351;
        padding: 20px 0;
    }
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
}

.btn-cookie {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-cookie:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 28px;
}

.modal-body p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .slide-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 70px;
    }

    .logo {
        font-size: 20px;
    }

    .logo-img {
        height: 35px;
    }

    .header, .header .container, .navbar {
        overflow: visible !important;
    }

    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--light-gray);
        z-index: 1100;
    }

    .navbar .nav-links.active {
        display: flex;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar .nav-links li {
        margin: 10px 0;
    }

    .nav-extra {
        margin-left: 15px;
        gap: 15px;
        position: relative;
        z-index: 1200;
    }

    .hamburger {
        display: flex;
        z-index: 1300;
        position: relative;
        padding: 5px;
        cursor: pointer;
    }

    .hero {
        margin-top: 70px;
        min-height: 500px;
    }

    .slide-content {
        padding: 0 20px;
        left: 50%;
        width: 100%;
        max-width: 100%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .slide-content h1 {
        font-size: 36px;
    }

    .slide:after {
        background: rgba(0, 26, 51, 0.7);
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .experience-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin: -20px auto 0;
        max-width: 200px;
        padding: 15px;
        border-radius: 15px;
    }

    .experience-badge span {
        font-size: 30px;
    }

    .contact-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .social-links {
        justify-content: center;
    }

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

    .footer-logo {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

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

    .services-grid,
    .projects-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .training-card {
        width: 100%;
    }
}

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

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .hero {
        min-height: 400px;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

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

    .mobile-only {
        display: block !important;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 400px !important;
        right: 25px;
    }

    .responsive-logo-SubJernelOlart {
        max-width: 100%;
        width: 450px;
        /* Tamaño mediano base */
        height: auto;
        display: block;
        margin: 0 auto;
        animation: fadeIn 2s ease-out forwards;
    }

    /* Añade al final de tu CSS */
    .form-success {
        background: #4CAF50;
        color: white;
        padding: 15px;
        border-radius: 4px;
        margin-top: 20px;
        transition: opacity 0.5s;
    }

    /* Efecto parallax para banners */
    .slide {
        background-attachment: fixed;
    }

    @media (max-width: 768px) {
        .slide {
            background-attachment: scroll !important;
        }
    }

    /* Mejora para testimonios */
    .testimonials-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
    }

    .testimonial-card {
        scroll-snap-align: start;
        flex: 0 0 80%;
        min-width: 300px;
    }

    /* Transición mejorada */
    .slide {
        transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
        /* Curva Bézier personalizada */
    }

    /* Opcional: Efecto de zoom sutil */
    .slide.active {
        animation: subtleZoom 10s linear infinite;
    }

    @keyframes subtleZoom {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.02);
        }

        100% {
            transform: scale(1);
        }
    }


    @keyframes bounce {
        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }
    }
}

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

.nav-links li.dropdown > a i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1100;
    border: 1px solid var(--light-gray);
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

.submenu li {
    margin: 0 !important;
    width: 100%;
}

.submenu li a {
    display: block;
    padding: 12px 25px !important;
    font-size: 14px !important;
    color: var(--gray-color) !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.submenu li a:hover {
    background: var(--light-color);
    color: var(--primary-color) !important;
    padding-left: 30px !important;
}

.submenu li a::after {
    display: none !important;
}

@media (max-width: 480px) {
    .submenu {
        position: relative !important;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 10px 0 15px 25px;
        background: rgba(0, 0, 0, 0.03);
        transform: none;
        border: none;
        border-left: 3px solid var(--secondary-color);
        margin-top: 10px;
    }

    .dropdown.active .submenu {
        display: block !important;
    }

    .nav-links li.dropdown > a i,
    .nav-links li.mega-menu-item > a i {
        float: right;
        margin-top: 5px;
    }

    /* Mobile Mega Menu */
    .mega-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(10, 35, 81, 0.5);
        padding: 0;
        box-shadow: none;
        border: none;
    }

    .mega-menu-item.active .mega-menu {
        display: block;
    }

    .mega-menu-container {
        display: block;
        padding: 0;
    }

    .mega-menu-sidebar {
        border: none;
        padding: 0;
    }

    .mega-categories {
        display: none;
    }

    .mega-menu-content {
        padding: 10px 20px;
    }

    .mega-category-panel {
        display: block;
        margin-bottom: 20px;
    }

    .mega-panel-header h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .mega-services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mega-service {
        padding: 10px;
        font-size: 0.95rem;
    }

    .dropdown.active > a i {
        transform: rotate(180deg);
    }
}

/* Projects Catalog Page Styles */
.projects-hero {
    position: relative;
    padding: 180px 0 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

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

.projects-hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 24px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.projects-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    color: var(--white);
}

.projects-hero h1 span {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.projects-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px;
}

.featured-slider-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.project-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
}

.project-main-slider {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow-hover);
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

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

.project-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.project-slide-info {
    background: linear-gradient(to top, rgba(10, 35, 81, 0.95) 0%, rgba(10, 35, 81, 0.4) 100%);
    color: var(--white);
    padding: 40px;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.project-slide.active .project-slide-info {
    transform: translateY(0);
}

.project-slide-info .category {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.project-slide-info h3 {
    font-size: 32px;
    margin-bottom: 10px;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.project-meta i {
    color: var(--accent-color);
    margin-right: 8px;
}

.project-slider-controls {
    position: absolute;
    top: 50%;
    width: calc(100% + 120px);
    left: -60px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    color: var(--primary-color);
    font-size: 18px;
}

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

/* Multi-Gallery Styles */
.multi-gallery-section {
    padding: 100px 0;
    overflow: hidden;
}

.multi-gallery-marquee {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 20px 0;
}

.multi-marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}

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

.multi-card {
    width: 400px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    flex-shrink: 0;
}

.multi-card:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-hover);
}

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

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

@media (max-width: 768px) {
    .multi-card {
        width: 300px;
        height: 225px;
    }
}

@media (max-width: 1100px) {
    .project-slider-controls {
        width: 100%;
        left: 0;
        top: auto;
        bottom: -70px;
        justify-content: center;
        gap: 20px;
        transform: none;
    }
}

@media (max-width: 768px) {
    .project-main-slider {
        height: 400px;
    }
    
    .project-slide-info h3 {
        font-size: 24px;
    }
}

/* Training & Normativity Section Styles */
.training-section {
    padding: 100px 0;
    background-color: var(--white);
}

.alliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--light-color);
    padding: 10px 25px;
    border-radius: 50px;
    margin-bottom: 25px;
    border: 1px solid var(--light-gray);
}

.alliance-badge i {
    color: var(--secondary-color);
    font-size: 20px;
}

.alliance-badge p {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--primary-color);
}

.training-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
    color: var(--gray-color);
}

.training-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.training-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    height: auto;
    width: calc(33.333% - 20px);
    min-width: 320px;
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--secondary-color);
}

.training-logo {
    height: 60px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.training-logo img {
    height: 100%;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.training-info-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.training-info-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.training-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.training-card p {
    font-size: 15px;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.training-card ul {
    margin-top: auto;
}

.training-card ul li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.training-card ul li i {
    color: var(--secondary-color);
    font-size: 12px;
}

@media (max-width: 768px) {
    .training-grid {
        grid-template-columns: 1fr;
    }
    
    .alliance-badge {
        padding: 10px 15px;
    }
    
    .alliance-badge p {
        font-size: 12px;
    }
}
/* MEGA MENU STYLES */
.mega-menu-item {
    position: static !important;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 35, 81, 0.98);
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 1000;
    padding: 30px 0;
}

.mega-menu-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    padding: 0 20px;
}

.mega-menu-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 20px;
}

.mega-categories {
    margin-bottom: 25px;
    list-style: none;
    padding: 0;
}

.mega-categories li {
    padding: 12px 20px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
}

.mega-categories li:hover, .mega-categories li.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateX(5px);
}

.mega-categories li.active {
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.view-all-services {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding-left: 20px;
    transition: var(--transition);
}

.view-all-services:hover {
    color: var(--white);
    gap: 15px;
}

.mega-menu-content {
    min-height: 350px;
}

.mega-category-panel {
    display: none;
    animation: fadeInMega 0.4s ease;
}

.mega-category-panel.active {
    display: block;
}

@keyframes fadeInMega {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.mega-panel-header h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mega-panel-header h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.mega-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mega-service {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
}

.mega-service i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 8px;
}

.mega-service:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Mobile Mega Menu Adjustments */
@media (max-width: 991px) {
    .nav-links li.mega-menu-item > a i {
        float: right;
        margin-top: 5px;
        transition: transform 0.3s ease;
    }

    .mega-menu-item.active > a i {
        transform: rotate(180deg);
        color: var(--primary-color);
    }

    .mega-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(10, 35, 81, 0.5);
        padding: 0;
        box-shadow: none;
        border: none;
    }

    .mega-menu-item.active .mega-menu {
        display: block;
    }

    .mega-menu-container {
        display: block;
        padding: 0;
    }

    .mega-menu-sidebar {
        border: none;
        padding: 0;
    }

    .mega-categories {
        display: none;
    }

    .mega-menu-content {
        padding: 10px 20px;
        min-height: auto;
    }

    .mega-category-panel {
        display: block;
        margin-bottom: 25px;
    }

    .mega-panel-header h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .mega-services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mega-service {
        padding: 10px;
        font-size: 0.95rem;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp:hover {
    background-color: #1ebe57;
    color: #FFF;
    transform: scale(1.1);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 30px;
        bottom: 20px;
        left: 20px;
    }
}

/* ==========================================================================
   Sequential Logo Preloader (Premium Version)
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

.preloader-sequence {
    position: relative;
    width: 450px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.p-logo {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.p-final-wrap {
    position: absolute;
    width: 400px;
    opacity: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.p-final-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: logoShine 2s infinite;
    animation-delay: 1.4s;
}

@keyframes logoShine {
    0% { left: -150%; }
    30%, 100% { left: 150%; }
}

/* Base animation phases */
@keyframes phaseBlue {
    0%, 25% { opacity: 1; transform: scale(1); }
    26%, 100% { opacity: 0; transform: scale(1.05); }
}

@keyframes phaseBlack {
    0%, 25% { opacity: 0; }
    27%, 50% { opacity: 1; transform: scale(1); }
    51%, 100% { opacity: 0; }
}

@keyframes phaseWine {
    0%, 50% { opacity: 0; }
    52%, 75% { opacity: 1; transform: scale(1); }
    76%, 100% { opacity: 0; }
}

/* SPRING EFFECT: Elastic entry for final logo */
@keyframes phaseFinalSpring {
    0%, 75% { 
        opacity: 0; 
        transform: translateY(20px) scale(0.9); 
    }
    82% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }
    88% {
        transform: translateY(2px) scale(0.99);
    }
    95%, 100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.p-blue { animation: phaseBlue 0.7s forwards; }
.p-black { animation: phaseBlack 0.7s forwards; }
.p-wine { animation: phaseWine 0.7s forwards; }
.p-final-wrap { 
    animation: phaseFinalSpring 0.7s forwards; 
    z-index: 2;
}
.p-final { width: 100%; position: relative; }

.preloader-bar-wrap {
    width: 250px;
    height: 3px;
    background: #f1f5f9;
    margin-top: 40px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#preloader.fade-out .preloader-bar-wrap {
    opacity: 0;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    animation: barProgress 0.7s forwards;
}

@keyframes barProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* STAGGERED REVEAL SYSTEM */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

body.is-loaded .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

body.is-loaded .reveal-item:nth-child(1) { transition-delay: 0.1s; }
body.is-loaded .reveal-item:nth-child(2) { transition-delay: 0.15s; }
body.is-loaded .reveal-item:nth-child(3) { transition-delay: 0.2s; }
body.is-loaded .reveal-item:nth-child(4) { transition-delay: 0.25s; }
body.is-loaded .reveal-item:nth-child(5) { transition-delay: 0.3s; }
