/* ============================================
   Marcraop - Estilos principales
   ============================================ */

:root {
    --white: #fff;
    --primary: #0d47a1;
    --primary-dark: #0a3d8a;
    --primary-light: #1976d2;
    --accent: #ff9800;
    --dark: #0f172a;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    overflow-x: hidden;
}


/* ===== LOADER ===== */
.loader-main {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--white);
    z-index: 100000000000000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-main.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-main img {
    width: 150px;
    height: auto;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

.caja-loader {
    width: 100px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
/* HTML: <div class="loader"></div> */
.loader {
  width: 45px;
  aspect-ratio: 1;
  --c: no-repeat linear-gradient(#ecaa1b calc(50% - 10px),#f7f6f3 0 calc(50% + 10px),#e18823 0);
  background: 
    var(--c) 0%   100%,
    var(--c) 50%  100%,
    var(--c) 100% 100%;
  background-size: 20% calc(200% + 20px);
  animation:l4 1s infinite linear;
}
@keyframes l4 {
    33%  {background-position: 0% 50%,50% 100%,100% 100%}
    50%  {background-position: 0%  0%,50%  50%,100% 100%}
    66%  {background-position: 0%  0%,50%   0%,100%  50%}
    100% {background-position: 0%  0%,50%   0%,100%   0%}
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: background 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: var(--shadow);
}

.navbar-brand img {
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: color 0.3s, background 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Spacer para fixed nav */
main {
    padding-top: 0;
}

/* ============================================
   Hero Slider
   ============================================ */

.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.85) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 152, 0, 0.9);
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.hero-buttons .btn {
    font-weight: 600;
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero-dot:hover,
.hero-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ============================================
   Page Hero (Empresa, Servicios, Contacto)
   ============================================ */

.page-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.page-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-hero-content p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* ============================================
   Sections
   ============================================ */

.section-py {
    padding: 5rem 0;
}

.section-badge {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
}

.section-subtitle {
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* Servicios Destacados */
.servicios-destacados {
    background: var(--gray-100);
}

.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    height: 220px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-body {
    padding: 1.5rem;
}

.service-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-body p {
    color: var(--gray-500);
    margin-bottom: 1rem;
}

/* Misión y Visión */
.mv-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.mv-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mv-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mv-card p {
    color: var(--gray-500);
}

.mv-card-alt {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 16px;
    height: 100%;
}

.mv-icon-alt {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Why Us */
.why-us {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.why-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s, background 0.3s;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.why-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.why-card h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-card p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Valores */
.valores-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
}

.valor-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.valor-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.valor-card h4 {
    color: #fff;
    font-weight: 700;
}

.valor-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-box h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Servicio Detalle */
.servicio-detalle-alt {
    background: var(--gray-100);
}

.servicio-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.servicio-lista li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}
#camionetas10seccion{
    position: relative;
}
#camionetas10ladocompletoseccion{
    position: absolute;
    bottom: -100px;
    right: 4em;
    width: 300px;
    height: 200px;
}


#camionetas10ladoseccion{
    position: absolute;
    bottom: -160px;
    right: -2em;
    width: 300px;
    height: 200px;
}

/* Flota cards */
.flota-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.flota-card:hover {
    transform: translateY(-5px);
}

.flota-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.flota-card h5 {
    padding: 1rem;
    margin: 0;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--dark);
    color: #fff;
}

.social-links a:hover {
    color: #fff !important;
}

/* Contact form */
.contact-form-box {
    background: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .section-py {
        padding: 3rem 0;
    }

    .hero-slider {
        min-height: 500px;
    }

    .hero-controls {
        bottom: 1.5rem;
    }

    .page-hero {
        min-height: 280px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem !important;
    }

    .service-img {
        height: 180px;
    }
}
