:root {
    /* Identidad Visual Premium */
    --primary-orange: #FF6B00;
    --primary-orange-hover: #E65A00;
    --charcoal-gray: #1E2326; /* Más profundo */
    --charcoal-light: #4A5559;
    --pearl-white: #F8FAFC; /* Ligeramente más moderno */
    --white: #FFFFFF;
    --border-light: #E2E8F0;
    --shadow-soft: 0 10px 40px rgba(30, 35, 38, 0.06);
    --shadow-hover: 0 15px 50px rgba(255, 107, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--pearl-white);
    color: var(--charcoal-gray);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--charcoal-gray);
}

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

/* Speed Lines Background Effect */
.speed-lines-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(44, 53, 57, 0.02) 49%, transparent 51%),
        linear-gradient(-45deg, transparent 48%, rgba(44, 53, 57, 0.02) 49%, transparent 51%);
    background-size: 60px 60px;
    opacity: 0.8;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 253, 253, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1.2rem 0;
    transition: var(--transition);
}

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

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--charcoal-gray);
    letter-spacing: -1px;
}

.header-logo {
    height: 75px; /* Aumentado para mejor equilibrio visual */
    width: auto;
    display: block;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--charcoal-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-orange);
}

.btn-primary-sm {
    padding: 0.6rem 1.5rem;
    background: var(--white);
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Imagen de gran formato de camión en carretera */
    /* Imagen de portada real proporcionada */
    background: url('assets/Portada.webp?v=3') center center/cover no-repeat;
    background-color: var(--charcoal-gray); /* Color de respaldo */
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente oscuro para asegurar legibilidad del texto */
    background: linear-gradient(to right, rgba(44,53,57,0.9) 0%, rgba(44,53,57,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 107, 0, 0.15);
    color: var(--primary-orange);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero-text-box h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-text-box p {
    font-size: 1.25rem;
    color: rgba(253, 253, 253, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 550px;
}

/* Botón de Alta Conversión */
.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    background-color: var(--primary-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
    transition: var(--transition);
}

.btn-whatsapp-large i {
    font-size: 1.5rem;
}

.btn-whatsapp-large:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.4);
}

/* Services Section - Mucho espacio en blanco */
.services {
    padding: 8rem 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--charcoal-light);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    width: 100%;
}

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

.service-card {
    background: var(--white);
    padding: 0; /* Eliminado padding para que la imagen cubra el borde */
    border-radius: 20px; /* Bordes un poco más redondeados */
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.highlight {
    border-color: rgba(255, 107, 0, 0.3);
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.03) 0%, var(--white) 100%);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.service-card-img {
    width: 100%;
    height: 250px; /* Altura generosa para apreciar la foto */
    object-fit: cover;
}

.service-card-content {
    padding: 2.5rem;
}

.service-card h3 {
    font-size: 1.8rem; /* Título un poco más grande */
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--charcoal-light);
}

.service-card strong {
    color: var(--charcoal-gray);
    font-weight: 800;
}

/* Fleet Section */
.fleet {
    padding: 8rem 0;
    background-color: var(--pearl-white);
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.fleet-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.fleet-card:hover {
    transform: translateY(-5px);
}

.fleet-img-container {
    height: 320px; /* Aumentado para apreciar mejor las unidades */
    background: var(--charcoal-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fleet-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.fleet-card:hover .fleet-img-container::after {
    transform: translateX(100%);
}

.fleet-icon-placeholder {
    font-size: 5rem;
    color: rgba(253, 253, 253, 0.2);
}

.fleet-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.fleet-info {
    padding: 2rem;
    text-align: center;
}

.fleet-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.capacity {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-orange);
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.capacity span {
    font-size: 1.1rem;
}

.fleet-info p {
    color: var(--charcoal-light);
    font-size: 0.95rem;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

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

/* Footer */
footer {
    background: var(--charcoal-gray);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

footer .logo-text {
    color: var(--white);
    margin-bottom: 1rem;
}

footer p {
    color: rgba(255, 255, 255, 0.6);
}

/* Gallery / Nuestro Trabajo Section */
.gallery {
    padding: 8rem 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 280px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

/* Patrón estilo Masonry/Bento */
@media (min-width: 768px) {
    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .gallery-item:nth-child(4) { grid-column: span 2; }
}

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

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 35, 38, 0.8) 0%, transparent 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

.gallery-overlay span i {
    color: var(--primary-orange);
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

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

.stars {
    color: #FBBF24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--charcoal-gray);
    margin-bottom: 2rem;
}

.client-info strong {
    display: block;
    color: var(--primary-orange);
    font-size: 1.1rem;
}

.client-info span {
    font-size: 0.9rem;
    color: var(--charcoal-light);
}

/* FAQ Section */
.faq-section {
    padding: 8rem 0;
    background-color: var(--pearl-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-soft);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--white);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: var(--primary-orange);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: var(--white);
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem 2rem;
    max-height: 500px; /* Suficiente para el contenido */
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background-color: var(--charcoal-gray);
    color: var(--white);
}

.contact-section .section-header h2,
.contact-section .section-header p {
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item span {
    font-size: 1.1rem;
}

.modern-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    color: var(--charcoal-gray);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.modern-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--pearl-white);
    transition: var(--transition);
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-text-box h1 { font-size: 3.5rem; }
    .fleet-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
    .hero-text-box h1 { font-size: 2.8rem; }
    .hero-text-box p { font-size: 1.1rem; }
    .btn-whatsapp-large { width: 100%; justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
    .modern-form { padding: 2rem; }
    /* Fix mobile dead spaces */
    .services, .fleet, .gallery, .testimonials, .faq-section, .contact-section { padding: 4rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    
    /* Compact mobile header */
    header { padding: 0.6rem 0; }
    .header-logo { height: 45px; }
    header .btn-primary-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
    line-height: 1;
}

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

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
    .lightbox-content {
        max-width: 95%;
    }
}
