/* =========================
   VARIABLES GLOBALES
========================= */
:root {
    --color-primary: rgb(23, 164, 218);      /* Azul cyan - solo acentos */
    --color-secondary: rgb(254, 204, 9);     /* Amarillo dorado - solo acentos */
    --color-dark: #1a1a2e;                   /* Azul oscuro profesional */
    --color-darker: #0f0f1e;                 /* Azul muy oscuro */
    --color-light: #ffffff;                  /* Blanco puro */
    --color-gray: #64748b;                   /* Gris para textos secundarios */
    --color-gray-light: #f8fafc;            /* Gris muy claro para fondos */
    --color-border: #e2e8f0;                 /* Gris claro para bordes */

    --max-width: 1200px;
}

/* =========================
   RESET BÁSICO
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-dark);
    background: var(--color-light);
    line-height: 1.6;
}

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

/* =========================
   HEADER + NAV - DISEÑO CENTRADO
========================= */
header {
    background: var(--color-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-bottom: 4px solid var(--color-secondary);
}

.header-container {
    max-width: var(--max-width);
    margin: auto;
    padding: 1rem 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    background: linear-gradient(135deg, rgba(23, 164, 218, 0.1), rgba(254, 204, 9, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(23, 164, 218, 0.3);
    transition: all 0.3s ease;
}

.brand:hover {
    transform: scale(1.03);
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(254, 204, 9, 0.3);
}

.brand img {
    width: 150px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand:hover img {
    transform: scale(1.02);
}

.nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0.5rem 0;
}

.nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--color-gray-light);
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav a:hover {
    color: var(--color-secondary);
    background: rgba(254, 204, 9, 0.1);
}

.nav a:hover::after {
    width: 80%;
}

/* =========================
   HERO CON CARRUSEL
========================= */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 1.5rem;
}

/* Contenedor de imágenes del carrusel (oculto por defecto) */
.hero-content > img {
    display: none;
}

/* Capa de imágenes de fondo */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-background img.active {
    opacity: 1;
}

/* Overlay oscuro sobre las imágenes */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.65) 0%, rgba(26, 26, 46, 0.55) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: auto;
    text-align: center;
    color: var(--color-light);
}

.hero-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-light);
}

.hero-content h2::first-line {
    color: var(--color-primary);
}

.hero-content p {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--color-gray-light);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-width: 180px;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
}

.stat span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 0.9rem;
    color: var(--color-gray-light);
}

.hero-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(254, 204, 9, 0.4);
}


/* =========================
   SECCIONES GENERALES
========================= */
section {
    padding: 5rem 1.5rem;
}

section h3 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-dark);
    position: relative;
}

section h3::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    display: block;
    margin: 1rem auto 3rem;
    border-radius: 2px;
}

/* =========================
   SERVICIOS
========================= */
.servicios {
    background: var(--color-gray-light);
}

.servicios-grid {
    max-width: var(--max-width);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background: var(--color-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-top: 4px solid var(--color-border);
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-top-color: var(--color-primary);
}

.servicio-card h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark);
}

.servicio-card p {
    color: var(--color-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* =========================
   FLOTA - FONDO MÁS VISIBLE
========================= */
.flota {
    background: linear-gradient(135deg, 
        rgba(23, 164, 218, 0.08) 0%, 
        rgba(254, 204, 9, 0.06) 100%);
    border-top: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-secondary);
    position: relative;
}

.flota::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(23, 164, 218, 0.02) 50px,
            rgba(23, 164, 218, 0.02) 100px
        );
    pointer-events: none;
    z-index: 0;
}

.flota h3 {
    position: relative;
    z-index: 1;
}

.flota-grid {
    max-width: var(--max-width);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.vehiculo-card {
    background: var(--color-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--color-border);
}

.vehiculo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(23, 164, 218, 0.2);
    border-color: var(--color-primary);
}

.vehiculo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 3px solid var(--color-border);
    transition: border-color 0.3s ease;
}

.vehiculo-card:hover img {
    border-color: var(--color-secondary);
}

.vehiculo-card h4 {
    color: var(--color-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.vehiculo-card > p {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.vehiculo-card ul {
    list-style: none;
    text-align: left;
}

.vehiculo-card li {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 0.7rem;
    padding-left: 1.8rem;
    position: relative;
}

.vehiculo-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* =========================
   FORMULARIO
========================= */
.cotizar {
    background: var(--color-gray-light);
    max-width: 100%;
}

.cotizar > h3 {
    color: var(--color-dark);
}

.cotizar > p {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    color: var(--color-gray);
}

form {
    max-width: 800px;
    margin: auto;
    background: var(--color-light);
    border: 2px solid var(--color-primary);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

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

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

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.9rem;
    border-radius: 8px;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.95rem;
}

textarea::placeholder {
    color: var(--color-gray);
    opacity: 0.6;
    font-style: italic;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(23, 164, 218, 0.1);
}

button {
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: var(--color-light);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

button:hover {
    background: var(--color-darker);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 164, 218, 0.3);
}

button:active {
    transform: translateY(0);
}

/* =========================
   FOOTER
========================= */
.footer {
    background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-darker) 100%);
    color: var(--color-gray-light);
    padding: 5rem 1.5rem 2rem;
    border-top: 4px solid var(--color-primary);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-primary) 50%, 
        transparent 100%);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Columna de marca */
.footer-col-brand .footer-description {
    color: var(--color-gray);
    line-height: 1.7;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Títulos de columnas */
.footer-col h4 {
    color: var(--color-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

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

/* Lista de contacto */
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.6;
}

.footer-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 2px;
}

.footer-contact a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--color-secondary);
}

/* Enlaces rápidos */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--color-secondary);
}

.footer-links a:hover {
    color: var(--color-light);
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* Redes sociales */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-gray);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-light);
    transform: translateX(5px);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Colores específicos para redes sociales */
.social-link:nth-child(1):hover { color: #1877f2; } /* Facebook */
.social-link:nth-child(2):hover { color: #e4405f; } /* Instagram */
.social-link:nth-child(3):hover { color: #25d366; } /* WhatsApp */

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
}

.footer-bottom-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom small {
    color: var(--color-gray);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--color-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--color-light);
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-links a::before {
        display: none;
    }
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .brand img {
        width: 150px;
    }

    .nav ul {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }

    .stat {
        padding: 1.5rem 2rem;
        min-width: 150px;
    }

    .stat span {
        font-size: 2rem;
    }

    section h3 {
        font-size: 1.8rem;
    }

    .servicios-grid,
    .flota-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .brand img {
        width: 120px;
    }

    .nav ul {
        gap: 0.8rem;
    }

    .nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .hero {
        min-height: 60vh;
        padding: 3rem 1rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section {
        padding: 4rem 1rem;
    }

    form {
        padding: 2rem 1.5rem;
    }
}