:root {
    --primary-color: #0062cc;
    --primary-dark: #004a99;
    --accent-color: #00d4ff;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.main-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
}

.logo .highlight {
    color: var(--primary-color);
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}



.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('fondo_nuevo.jpg?v=2') no-repeat center center/cover;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    /* Dark overlay to improve text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    /* Use full container width but center the box */
    display: flex;
    justify-content: center;
}

.hero-box {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    width: 100%;
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-text-desc {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-text p {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.hero-text p:last-child {
    margin-bottom: 0;
}

.content-overlap .hero-text {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.history-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem !important;
    border-top: 4px solid var(--primary-color);
}

.history-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.history-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.history-content p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.history-content strong {
    color: white;
    font-weight: 700;
}

.highlight-text {
    background: rgba(0, 98, 204, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: #e2e8f0 !important;
}

.hero-alert {
    background: transparent;
    border: none;
    color: #ffd54f;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 98, 204, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Brands Section */
.brands-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.brand-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* ... */
.brand-logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: var(--transition);
    z-index: 1;
    text-align: center;
    word-break: normal;
    white-space: nowrap;
}

.brand-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.brand-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 98, 204, 0.2), inset 0 0 20px rgba(0, 98, 204, 0.05);
    transform: translateY(-8px);
}

.brand-card:hover::after {
    transform: translateX(100%);
}

.brand-logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: var(--transition);
    z-index: 1;
    text-align: center;
    word-break: normal;
    white-space: nowrap;
}

.brand-card:hover .brand-logo {
    color: white;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transform: scale(1.05);
}

/* Quality Section */
.quality-section {
    padding: 8rem 0;
    background: #0b1120;
    position: relative;
    overflow: hidden;
}

.quality-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 98, 204, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.quality-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.quality-text {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.quality-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.quality-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, transparent);
    border-radius: 2px;
}

.quality-text p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #e2e8f0;
    margin-top: 2rem;
}

.quality-text strong {
    color: white;
    font-weight: 700;
}

.quality-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
    max-width: 400px;
    margin-left: auto;
}

.quality-image:hover {
    transform: scale(1.02);
}

.quality-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 98, 204, 0.2) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.quality-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #0b1120 0%, #1e293b 50%, #0b1120 100%);
    overflow: hidden;
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 98, 204, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.testimonials-section .section-title {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
    font-size: 3rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.testimonials-track {
    display: flex;
    gap: 2.5rem;
    animation: scroll-left 40s linear infinite;
    will-change: transform;
    padding: 1rem 0;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    min-width: 420px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 98, 204, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 98, 204, 0.3),
        0 0 0 3px rgba(0, 98, 204, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0062cc 0%, #00d4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.8rem;
    color: white;
    box-shadow:
        0 8px 20px rgba(0, 98, 204, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    position: relative;
}

.avatar::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .avatar::after {
    opacity: 1;
    animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.stars {
    color: #fbbf24;
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

.testimonial-text {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: rgba(0, 98, 204, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--gradient-hero);
    /* Reuse distinct background or gradient */
    position: relative;
    overflow: hidden;
}

.contact-box {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-desc {
    text-align: center;
    color: #cbd5e1;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 98, 204, 0.2);
    background: rgba(15, 23, 42, 0.9);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    border: none;
}

/* Page Header (Nosotros) */
.page-header {
    height: 40vh;
    min-height: 300px;
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('truck_hero.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info Section */
.info-section {
    padding: 6rem 0;
    background: #0b1120;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-alert {
    background: rgba(0, 98, 204, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.map-container {
    height: 400px;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-overlay-hint {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.9);
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* Footer */
.main-footer {
    padding: 2rem 0;
    background: #020617;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }

    .main-nav ul {
        margin-top: 1rem;
        gap: 1.5rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .quality-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .quality-image {
        order: -1;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}