:root {
    /* Color Palette */
    --primary: #01316f;
    --primary-dark: #00214a;
    --secondary: #01316f;
    --accent: #ffd700;
    --text-main: #012b62;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #01316f;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Spacing & Shadows */
    --container-width: 1200px;
    --section-padding: 100px 0;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

.text-accent {
    color: var(--accent) !important;
    display: inline-block; /* Asegura que se aplique bien en el flujo del texto */
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: var(--section-padding);
}

.alternate-bg {
    background-color: var(--bg-white);
}

/* Typography Helpers */
.subtitle {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: #012b62; /* Un marino un pelín más claro */
    border-color: var(--accent); /* Borde amarillo al pasar el ratón */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: white;
    color: white;
}

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

.btn-nav {
    background-color: var(--accent);
    color: var(--secondary) !important;
    padding: 10px 24px !important;
}

/* Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}


#main-header.scrolled {
    background: var(--accent);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#main-header.scrolled .nav-links a {
    color: var(--secondary);
}

#main-header.scrolled .logo-text {
    color: var(--secondary);
}

#main-header.scrolled .mobile-menu-btn {
    color: var(--secondary);
}

#main-header.scrolled .btn-nav {
    background-color: var(--secondary);
    color: white !important;
}

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

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

.logo-scrolled {
    display: none;
}

#main-header.scrolled .logo-main {
    display: none;
}

#main-header.scrolled .logo-scrolled {
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

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

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

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

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

.hero-text-box {
    max-width: 700px;
}

.badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(3.5rem, 12vw, 6.5rem);
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1.75rem, 3vw, 3rem);
    font-weight: 500;
    margin-bottom: 40px;
    opacity: 1;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

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

.read-more {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

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

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent);
    color: var(--secondary);
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.75rem;
    font-weight: 600;
}

.features-list {
    margin: 30px 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
}

.features-list i {
    color: var(--accent);
}

/* Sectors Section */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.sector-item {
    background: var(--bg-white);
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.sector-item:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.sector-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.sector-item h4 {
    font-size: 1rem;
}

/* Fleet Section */
.fleet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.fleet-card {
    height: 300px;
    background: var(--secondary);
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    position: relative;
    overflow: hidden;
    color: white;
}

.fleet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(1, 49, 111, 0.9), transparent);
    z-index: 1;
}

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

/* Network Section */
.network-map-container {
    margin-top: 50px;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.network-map {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2);
}

/* Contact Section */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--secondary);
    border-radius: 30px;
    overflow: hidden;
    color: white;
}

.contact-info {
    padding: 60px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #012b62 100%);
}

.contact-info h2 {
    margin-bottom: 20px;
}

.info-items {
    margin-top: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 45px;
    height: 45px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.info-item h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.contact-form {
    padding: 60px;
    background: white;
    color: var(--text-main);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: white;
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.25rem;
}

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

.footer-brand-logo {
    width: 256px;
    height: 256px;
    object-fit: contain;
    margin-top: 20px;
    display: block;
}

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

.footer-col ul li a {
    opacity: 0.7;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--accent);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--accent);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 10px;
    color: white;
}

.newsletter-form button {
    background: var(--accent);
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    color: var(--secondary);
    font-weight: 700;
    cursor: pointer;
}

.footer-bottom {
    padding: 30px 0;
    background-color: var(--accent);
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -50vw;
    right: -50vw;
    background-color: var(--accent);
    z-index: -1;
}

.footer-bottom p {
    color: var(--secondary);
    margin-bottom: 5px;
}

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

.footer-bottom-links a {
    color: var(--secondary);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    opacity: 1;
    text-decoration: underline;
}
/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.loader-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(56, 189, 248, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations & Hover Effects */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Tilt & Glow Hover Effects */
.service-card, .sector-item, .fleet-card, .sector-card-detailed {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.5s ease, 
                border-color 0.5s ease;
    border: 1px solid rgba(56, 189, 248, 0.1);
    position: relative;
    z-index: 1;
}

.service-card:hover, .sector-item:hover, .sector-card-detailed:hover {
    transform: translateY(-10px) rotateX(4deg) rotateY(2deg);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15), 
                0 0 20px rgba(56, 189, 248, 0.1);
    border-color: var(--primary);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(56, 189, 248, 0.15) 0%, 
                transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: -1;
}

.service-card:hover::after {
    opacity: 1;
}

/* Infinite Logos Carousel */
.partners-section {
    padding: 100px 0;
    background: var(--bg-white);
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
}

.partners-section .section-header h2 {
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.partners-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.logos-slider {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    padding: 0;
    margin: 0;
}

.logos-slider:hover {
    animation-play-state: paused;
}

.logo-group {
    display: flex;
    align-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 180px; /* Espaciado aumentado para un aire más premium */
    flex: 0 0 auto;
    filter: grayscale(1) opacity(0.5);
    transition: var(--transition);
}

.logo-item:hover {
    filter: grayscale(0) opacity(1);
}

/* Logos base */
.logo-item img {
    height: 130px; 
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: var(--transition);
}

/* Logos destacados: DHL y Geodis (y Finsa por su clase logo-xl) */
.logo-item.logo-large img,
.logo-item.logo-xl img {
    height: 160px; /* DHL, Geodis y Finsa destacados */
    max-width: 320px;
}

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

/* Parallax Effect Classes */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-carousel .carousel-slide img {
    transform: scale(1.1);
    transition: transform 10s linear;
}

.carousel-slide.active img {
    transform: scale(1);
}

/* Carousel Styles */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Background Section */
.video-bg-section {
    position: relative;
    padding: 180px 0;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(1.2);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(1, 49, 111, 0.3) 0%, rgba(1, 49, 111, 0.7) 100%);
    z-index: 0;
}

.video-glass-box {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.video-glass-box h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: white;
}

.video-glass-box p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.video-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Internal Pages Styles */

.page-banner {
    padding: 160px 0 80px;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(1, 49, 111, 0.2);
    z-index: -1;
}

.page-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.bg-image-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}
.bg-image-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(248, 250, 252, 0.65);
    z-index: -1;
}

.legal-content {
    max-width: 900px;
    margin: 40px auto;
}

.legal-content h2 {
    margin: 30px 0 15px;
    color: var(--secondary);
}

.legal-content p, .legal-content ul {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Detailed Services & Sectors */
.services-detailed, .sectors-detailed-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-detail-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    align-items: flex-start;
}

.service-detail-icon {
    font-size: 3rem;
    color: var(--accent);
}

.sectors-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sector-card-detailed {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.sector-card-detailed i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Nosotros Page Detailed Styles */
.history-text {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.history-text h2 {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 25px;
    position: relative;
}

.history-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.history-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 20px;
    max-width: 900px;
}

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

.value-item {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    text-align: center;
}

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

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

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

.value-item h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--secondary);
}

.value-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Nosotros Carousel */
.nosotros-carousel {
    overflow: hidden;
    margin-top: 60px;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

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

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

.nosotros-carousel-item {
    width: 450px;
    height: 350px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.nosotros-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

@media (max-width: 768px) {
    .nosotros-carousel-item {
        width: 300px;
        height: 250px;
    }
}

/* Map Section */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
}

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

/* Floating Contact */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.contact-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.contact-icon.call { 
    background: var(--accent); 
    color: var(--secondary);
}
.contact-icon.whatsapp { background: #25d366; animation-delay: 0.5s; }

.contact-icon:hover {
    transform: scale(1.1) rotate(15deg);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 30px;
    max-width: 480px;
    background: rgba(1, 49, 111, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 30px;
    border-radius: 24px 24px 0 0;
    z-index: 3000;
    transform: translateY(110%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.4);
}

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

.cookie-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.cookie-header i {
    font-size: 1.8rem;
    color: var(--accent);
}

.cookie-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: white;
}

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

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

.cookie-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btns .btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px;
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 0;
        right: 0;
        max-width: none;
        padding: 20px 20px 30px;
        border-radius: 20px 20px 0 0;
    }

    .cookie-btns {
        flex-direction: column;
    }

    .cookie-btns .btn {
        width: 100%;
        flex: none;
        min-width: unset;
    }

    .cookie-content p {
        font-size: 0.82rem;
        margin-bottom: 18px;
    }
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--accent);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(20px);
    background-color: var(--primary-dark);
}

.cookie-switch input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cookie Modal styles */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 21, 74, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cookie-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal {
    background: rgba(1, 49, 111, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    max-width: 580px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    color: white;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-modal-overlay.show .cookie-modal {
    transform: scale(1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-modal-header h3 i {
    color: var(--accent);
}

.cookie-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.cookie-modal-body {
    margin-bottom: 30px;
}

.cookie-modal-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-category-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.cookie-category-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.cookie-category-title span.badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 50px;
    font-weight: 500;
}

.cookie-category-title span.badge.necessary {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.cookie-category-title span.badge.optional {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.cookie-category-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.cookie-modal-footer {
    display: flex;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    flex-wrap: wrap;
}

.cookie-modal-footer .btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-modal {
        padding: 20px;
    }
    .cookie-modal-footer .btn {
        width: 100%;
        flex: none;
    }
}

/* Floating Cookie Widget Icon */
.cookie-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: rgba(1, 49, 111, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 2500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    pointer-events: none;
}

.cookie-widget.show {
    opacity: 1;
    transform: scale(1) rotate(0);
    pointer-events: auto;
}

.cookie-widget:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
    background: var(--primary-dark);
}

@media (max-width: 600px) {
    .cookie-widget {
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1000;
    }
    
    .hero-stats {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-box {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}
/* Fleet Gallery Section */
.fleet-gallery {
    overflow: hidden; /* Prevent horizontal scrollbar on body */
}
.gallery-grid {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    width: max-content;
    animation: scroll-gallery 40s linear infinite;
    padding-bottom: 20px;
}
.gallery-grid:hover {
    animation-play-state: paused;
}

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

.gallery-item {
    flex: 0 0 350px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 350px;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(1, 49, 111, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Footer Copyright Update */
.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-copyright p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .hero-btns {
        flex-direction: column;
    }
}
/* About Images Grid */
.about-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.about-images-grid img {
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.about-images-grid img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    .about-images-grid {
        grid-template-columns: 1fr;
    }
}

/* History Section Improvements */
.history-section {
    position: relative;
    overflow: hidden;
}

.history-intro-box {
    margin-bottom: 80px;
}

.history-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.history-card {
    position: relative;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    background: var(--bg-dark);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.6s ease;
}

.history-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.85);
}

.history-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(1, 49, 111, 0.3);
}

.history-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.history-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 49, 111, 0.9) 0%, transparent 60%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.history-card:hover .history-card-overlay {
    opacity: 0.3;
}

.history-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 2;
    color: white;
}

.history-card-content span {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.history-card-content h3 {
    font-size: 1.8rem;
    color: white;
    margin: 0;
}

@media (max-width: 992px) {
    .history-card {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .history-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .history-card {
        height: 350px;
    }
    
    .history-card-content {
        padding: 25px;
    }
    
    .history-card-content h3 {
        font-size: 1.5rem;
    }
}

/* History Text Styling */
.history-styled-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-top: 30px;
    border-left: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.history-styled-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.history-styled-content > * {
    position: relative;
    z-index: 1;
}

.history-lead {
    font-size: 1.25rem;
    color: var(--primary-dark);
    line-height: 1.6;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 20px;
}

.history-lead .accent-icon {
    color: var(--accent);
    margin-right: 10px;
    font-size: 1.4rem;
}

.history-lead .highlight-text {
    color: var(--primary);
    font-weight: 700;
}

.history-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.history-body strong {
    color: var(--primary);
}

.history-quote {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    padding: 25px 30px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid var(--accent);
    font-style: italic;
}

.history-quote .quote-icon {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.5;
    margin-right: 20px;
}

.history-quote p {
    font-size: 1.15rem;
    color: var(--primary);
    margin: 0;
    line-height: 1.6;
}

.history-quote p span {
    font-weight: 600;
}

.history-conclusion {
    display: flex;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.history-conclusion i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-right: 15px;
}

.history-conclusion p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
}

@media (max-width: 768px) {
    .history-styled-content {
        padding: 25px;
    }
    
    .history-quote {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .history-quote .quote-icon {
        margin-bottom: 15px;
    }
}

