/* ====================================
 * 1. VARIABLES Y ESTILOS GLOBALES
 * ==================================== */
:root {
    --primary-color: #ca0000; 
    --secondary-color: #000;
    --text-light: #fff;
    --text-dark: #333;
    --bg-dark: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; 
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    margin: 0; 
    padding: 0;
}


main {
    margin-top: 0;
    padding-top: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- ESTILOS GENERALES --- */


h3 {
    font-weight: bold;
    margin-bottom: 10px; 
}

.btn {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  margin-top: 20px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(202, 0, 0, 0.3);
}

.btn:hover {
  background: #e00000;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(202, 0, 0, 0.4);
}

/* ====================================
 * HEADER Y LOGO - OPTIMIZADO
 * ==================================== */
header {
    background: #fff;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;           /* Reduje un poco el padding vertical */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.logo {
    display: block;
    height: 58px;                 /* Altura fija perfecta para header */
    flex-shrink: 0;
}

.logoFooter{
    display: block;
    height: 60px;                 /* Altura fija perfecta para footer */
    flex-shrink: 0;
}

.logo img {
    height: 55px;                 /* Respeta la altura del contenedor */
    width: auto;                  /* Mantiene proporción */
    max-width: 220px;             /* Evita que sea demasiado grande en pantallas grandes */
    object-fit: contain;
    display: block;
}

/* En móvil: logo más pequeño pero visible */
@media (max-width: 768px) {
    header {
        padding: 12px 20px;
    }
    
    .logo {
        height: 48px;             /* Logo un poco más pequeño en móvil */
    }
    
    .logo img {
        max-width: 180px;
    }
}

/* En pantallas muy pequeñas (celulares chicos) */
@media (max-width: 480px) {
    .logo {
        height: 42px;
    }
    .logo img {
        max-width: 160px;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 11;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    opacity: 0.7;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    margin: 6px 0;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(12px, 12px);
    background: var(--primary-color);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transition-delay: 0s;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--primary-color);
}

.main-nav {
    display: flex;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    padding-left: 0;
    margin: 0;
}

nav a, .nav a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    padding-bottom: 2px;
    transition: color 0.3s, border-bottom 0.3s;
    text-transform: uppercase;
    font-size: 0.9em;
}


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


nav a.active {
    color: var(--primary-color);
    font-weight: 800;
}


/* ====================================
 * 3. PÁGINA DE INICIO (INDEX) - Mantenido
 * ==================================== */

/* SLIDER */
.slider {
  position: relative;
  height: 300px;
  background: #222;
  overflow: hidden;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slider img.active {
  opacity: 1;
  z-index: 1;
}

.slider .prev,
.slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2em;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
}

.slider .prev {
  left: 20px;
}

.slider .next {
  right: 20px;
}
/* style.css */

/* BENEFICIOS (Garantía, Multimarcas) */
.benefits {
  background: #393939;
  padding: 30px 0;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: left;
}

.benefit {
  /* display: flex;  <-- ELIMINADO para que el h3 y el p se apilen */
  /* align-items: center; <-- ELIMINADO */
  /* gap: 15px; <-- ELIMINADO */
  padding: 10px 20px;
  max-width: 350px;
}

/* Eliminado el bloque .benefit .icon ya que no existe más en el HTML */

/* NUEVA REGLA: Estilos para el icono DENTRO del título H3 */
.benefit h3 i {
  font-size: 1.2em; /* Tamaño relativo al H3 */
  color: var(--text-light); /* Asegura el color BLANCO para contraste */
  margin-right: 10px; /* Espacio entre el icono y el texto del título */
  vertical-align: middle; /* Alineación vertical */
}

.benefit h3 {
  font-size: 1.4em;
  margin-bottom: 5px;
  color: var(--text-light);
}

.benefit p {
  margin: 0;
  color: #ffffff;
  font-size: 0.95em;
}

.vehicles h3 {
    margin-bottom: 15px;
}

.card-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    margin-top: 0;
}
.vehicle-card {
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 0 0 250px;
}
.vehicle-card img {
    width: 100%;
    height: auto;
}
.vehicle-info {
    padding: 15px;
}
.vehicle-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* MARCAS */
.brands {
    padding: 20px 0;
    text-align: center;
}
.brands h3 {
    margin-bottom: 15px;
    
}
.brand-logos img {
    max-width: 100px;
    height: auto;
    opacity: 1;
    transition: none;
}


/* TESTIMONIALS */

.testimonial-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.testimonial-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  width: 280px;
  text-align: center;
  border-top: 5px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.testimonial-card h4 {
  color: var(--secondary-color);
  font-size: 1.2em;
  margin-bottom: 10px;
}

.testimonial-card p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 15px;
}

.testimonial-card .stars {
  color: gold;
  font-size: 1.2em;
}

/* ====================================
 * 4. PÁGINA QUIÉNES SOMOS (MODIFICADO)
 * ==================================== */
.content-section {
    padding: 40px 0 40px 0;
    /* Alineación de contenido principal a la izquierda */
    text-align: left;
}

/* HERO SECTION (Banner de imagen) */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    /* Asegúrate de que esta imagen exista en tu carpeta img */
    background-image: url('img/nosotros.png');
    background-size: cover;
    background-position: center 30%;
    margin: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.hero-breadcrumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--text-dark);
    font-size: 0.8em;
    padding: 15px 0;
    background-color: #fff;
    z-index: 5;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.hero-breadcrumb .active-crumb {
    color: var(--primary-color);
}

/* Contenido Principal */
.main-title {
    margin-top: 40px;
    text-align: left; /* Alineación a la izquierda */
    font-size: 3em; /* Tamaño grande y audaz */
    font-weight: 800; /* Peso audaz */
    line-height: 1.1; /* Interlineado compacto */
    margin-bottom: 30px;
    color: var(--secondary-color); /* Color base: Negro */
}

/* Aplicar el color primario (rojo) al span */
.main-title span {
    color: var(--primary-color);
}


/* Nuevo estilo de subtítulo */
.subtitulo {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.content-section h2 {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.intro-text {
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: justify;
    font-size: 1em;
    color: #555;
    line-height: 1.8;
}

/* --- Estilo de Lista (ul/li) con checks (Nuevo) --- */
.content-section ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 20px 0;
}

.content-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1.05em;
    color: var(--text-dark);
    line-height: 1.5;
}

.content-section ul li strong {
    color: var(--secondary-color);
}

.content-section ul li::before { 
    content: "\f058"; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}


/* =============================
MISIÓN Y VISIÓN EN DOS COLUMNAS 
============================= */
.section-mv {
    padding: 60px 0;
}
.mission-vision-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 12px;
    background: #fcfcfc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mv-text {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    background: #fff; /* Tarjeta de texto blanca */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.block-title {
    font-size: 2.1em;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color); /* Título en color primario */
    text-transform: capitalize;
}
.mv-text p {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 14px;
    color: #555;
}
.mv-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.mv-image img {
    width: 100%;
    max-width: 480px;
    height: 300px; /* Altura fija para consistencia */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ====================================
 * 8. PÁGINA DE CONTACTO (MODERNIZADO)
 * ==================================== */

/* Título simple para Contacto (H1) */
.main-title-contacto {
    margin-top: 40px; /* Espacio superior */
    text-align: left; /* Alineado a la izquierda */
    font-size: 3em; 
    font-weight: 800;
    line-height: 1.1; 
    margin-bottom: 30px;
    color: var(--secondary-color); /* Negro */
}

.main-title-contacto span {
    color: var(--primary-color); /* Rojo */
}

/* Contenedor principal de formulario y mapa */
.main-content-contacto {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

/* Formulario */
.form-section {
    flex: 1 1 40%;
    min-width: 300px;
}

.form-section h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: left;
}

.contacto-form {
    padding: 25px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    /* Ajuste para que los inputs se apilen verticalmente y no se desalineen */
    display: flex; 
    flex-direction: column;
    gap: 15px;
}

.contacto-form input,
.contacto-form textarea,
.contacto-form select {
    padding: 15px; /* Más padding para look moderno */
    border: 1px solid #ccc;
    border-radius: 8px; /* Bordes más redondeados */
    width: 100%; /* Asegura que ocupen todo el ancho */
}

.contacto-form button[type="submit"] {
    width: 100%;
    margin-top: 5px;
    padding: 15px;
}


/* Información de Contacto (Mapa y Detalles) */
.contacto-info-modern {
    flex: 2 1 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 300px;
}

.contacto-info-modern h2 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: left;
}

.info-details {
    padding: 0 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item i {
    font-size: 1.5em;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 5px;
}

.info-item p {
    margin: 0;
    line-height: 1.4;
    color: var(--text-dark);
}

.info-item strong {
    color: var(--secondary-color);
    display: block;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 400px; /* Altura fija para el mapa */
}

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


/* ====================================
   FOOTER MODERNO - ESTILO DECONCESIONARIAS
   ==================================== */
.site-footer {
    background: #000;
    color: #ddd;
    padding: 60px 0 0;
    margin-top: 80px;
    font-size:3
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1em;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

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

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #aaa;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    color: #fff;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.contact-col p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.contact-col i {
    color: white;
    width: 20px;
}

.horarios {
    margin: 20px 0;
    font-size: 0.9em;
    color: #ccc;
}

.btn-footer {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-footer:hover {
    background: #ffffff;
    transform: translateY(-3px);
    color: red;
}

.footer-bottom {
    background: #111;
    padding: 20px 0;
    margin-top: 60px;
    font-size: 0.9em;
    text-align: center;
    color: #777;
}

.footer-bottom a {
    color: #aaa;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .logo-col {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-logo img {
        height: 55px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-col p {
        justify-content: center;
    }
    .btn-footer {
        width: 100%;
        max-width: 280px;
    }
}

/* ====================================
 * 7. RESPONSIVENESS (Media Queries) - Modificado
 * ==================================== */
@media (max-width: 900px) {
    .mission-vision-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .mv-image img {
        max-width: 100%;
        height: auto;
    }
    .mv-text {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    /* HEADER */
    header {
        flex-direction: row;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        max-height: 350px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    nav li {
        border-bottom: 1px solid #f0f0f0;
    }

    nav li:last-child {
        border-bottom: none;
    }

    nav a, .nav a {
        display: block;
        padding: 15px 20px;
        font-size: 0.95em;
        color: #333;
        transition: all 0.2s ease;
    }

    nav a:hover, .nav a:hover {
        background-color: #f5f5f5;
        color: var(--primary-color);
        padding-left: 25px;
    }

    /* HOME PAGE */
    .vehicle-card {
        flex: 1 1 90%;
        max-width: 90%;
    }
    .benefits {
        flex-direction: column;
        align-items: flex-start;
    }
    .benefit {
        margin: 0 20px;
    }

    /* QUIENES SOMOS (Ajuste para móvil) */
    .main-title {
        font-size: 2em;
        text-align: center;
    }
    .subtitulo {
        font-size: 1.5em;
        text-align: center;
    }
    .content-section {
        text-align: center;
    }
    .content-section ul {
        max-width: 90%;
        margin: 10px auto 20px auto;
    }
    /* El resto del contenido se centra automáticamente o se ajusta con flex-direction: column */

    /* CONTACTO */
    .contacto-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .contacto-info iframe {
        width: 100%;
        max-width: none;
        height: 250px;
    }
    .contacto-info .info {
        text-align: center;
    }

    /* FOOTER */
    footer {
        padding: 20px 20px;
    }
}

/* ====================================
 * 5. PÁGINA DE SERVICIOS 
 * ==================================== */

/* HERO DE SERVICIOS */
.servicios-hero {
    background: #fff; /* Fondo blanco */
    padding: 60px 0 30px 0;
    text-align: left; /* Alineación a la izquierda */
}

.servicios-hero h1 {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--secondary-color);
    line-height: 1.1;
}

.servicios-hero h1 span {
    color: var(--primary-color);
}

.servicios-hero p {
    font-size: 1.1em;
    max-width: 600px;
    color: #555;
}

/* LISTA DE SERVICIOS */
.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Espacio entre cards */
    margin-top: 30px;
}

.service-item {
    /* CLAVE: Mantener 4 columnas. 23% para dejar espacio para el gap. */
    flex: 0 0 23%; 
    max-width: 300px; /* Limite de ancho para que no se estiren demasiado en desktop */
    
    background: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border-top: 5px solid var(--primary-color); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* 💥 FIX: Centra el icono, título y subtítulo */
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-item i {
    font-size: 3.5em; /* Icono más grande */
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block; /* Asegura que el icono sea un bloque para margen */
    align-items: center;
    justify-content: center;
}

/* 💥 NUEVO: Asegura que el cuerpo del texto y las listas sigan alineados a la izquierda para mejor lectura */
.service-item p,
.service-item ul,
.service-item ul li {
    text-align: left;
}

.service-item h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.service-item .subtitle { /* Nuevo estilo para el subtítulo */
    display: block;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-style: italic;
}

.service-item p,
.service-item strong {
    color: #555;
}

.service-item ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 15px 0;
}

.service-item ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.service-item ul li::before { /* Icono de check para listas */
    content: "\f058"; /* Fa Solid Check Circle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.text-center {
    text-align: center !important;
    display: block;
    margin: 0 auto;
    max-width: 800px;
}

/* ESTILO PARA EL CTA FINAL */
.cta-servicios {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 50px 0;
    text-align: center;
}

.cta-servicios h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.cta-servicios p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/*--------------------
 * RESPONSIVENESS (Ajuste de servicios en móvil)
 * -------------------- */
@media (max-width: 992px) {
    /* Eliminamos la regla anterior que forzaba 2 columnas en tablets.
       Mantenemos 4 columnas, y si el ancho no alcanza, flex-wrap se encargará
       de bajarlas a la siguiente fila, pero idealmente se mantendrán 4.
       Reducimos un poco el max-width para dar más flexibilidad si es necesario. */
    .service-item {
        flex: 0 0 calc(25% - 20px); /* 4 columnas, ajustado por el gap de 20px */
        max-width: none;
    }
}

@media (max-width: 768px) {
    .servicios-hero h1 {
        font-size: 2.2em;
    }

    .services-list {
        flex-direction: column;
        align-items: center;
        margin: 40px auto;
    }

    .service-item {
        flex: 1 1 100%; /* Ocupa todo el ancho en móvil (1 columna) */
        max-width: 90%;
    }
}
/* ====================================
 * 6. PÁGINA DE VEHÍCULOS (LISTADO)
 * ==================================== */

/* HERO DE VEHÍCULOS - USANDO ESTRUCTURA UNIFICADA */
.content-section.vehiculos-hero-unificado {
    padding: 60px 0 30px 0;
}

.vehiculos-hero-unificado p {
    font-size: 1.1em;
    max-width: 600px;
    color: #555;
    margin-bottom: 30px; 
}


/* ---- Contenedor y Tarjetas ---- */
.vehicles-listing {
    padding-top: 30px; 
}

.vehicle-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas en desktop */
  gap: 30px;
  padding-bottom: 60px;
}

.vehicle-card {
  background: var(--text-light); 
  border-radius: 8px; 
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
  border-top: 5px solid var(--primary-color); 
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Efecto hover más pronunciado */
}

.vehicle-card a {
    text-decoration: none;
    display: block; /* Asegura que toda la tarjeta sea cliqueable */
}

.vehicle-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.vehicle-info {
  padding: 15px;
  text-align: center;
}

.vehicle-info h4 {
  margin: 5px 0;
  color: var(--secondary-color); 
  font-size: 1.4em; 
  font-weight: 700;
}

.vehicle-info .year {
  display: block;
  color: #131010; 
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 1em;
}

.vehicle-info p {
    margin: 10px 0 15px 0;
    font-size: 1.3em;
    color: var(--secondary-color); 
    font-weight: 700;
}

/* --------------------
 * RESPONSIVENESS (Ajuste de vehículos)
 * -------------------- */
@media (max-width: 992px) {
    .vehicle-wrapper {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .vehicle-wrapper {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 15px;
        padding-bottom: 30px;
    }
}
/* ====================================
 * 9. PÁGINA DESCRIPCIÓN VEHÍCULO 
 * ==================================== */

.vehicle-description {
    /* Padding manejado por .content-section */
    background-color: #f8f8f8; /* Fondo suave para la sección */
}

/* Layout principal: 2 columnas */
.vehicle-detail {
    display: flex;
    gap: 40px; /* Espacio entre la foto y los datos */
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.vehicle-photo {
    flex: 2 1 60%; /* La foto ocupa más espacio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.vehicle-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.vehicle-data {
    flex: 1 1 40%; /* Los datos ocupan menos */
    padding: 10px 0;
}

.vehicle-data h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Grid de datos (características) */
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas para el detalle */
    gap: 15px 20px;
    margin-bottom: 40px;
}

.data-item {
    padding: 5px 0;
    /* border-bottom: 1px dashed #ddd; */ /* Eliminado para look más limpio */
}

.data-item strong {
    display: block;
    font-size: 0.9em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.data-item span {
    font-size: 1.1em;
    color: var(--secondary-color);
    font-weight: 600;
}


/* --- Estilos de Botones Específicos (Acciones) --- */

.vehicle-actions {
    display: flex;
    flex-direction: column; /* Apilar botones */
    gap: 15px;
    margin-top: 20px;
}

.vehicle-actions .btn, 
.vehicle-actions .btn-ml, 
.vehicle-actions .btn-secondary, 
.vehicle-actions .btn-success {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* Botón Whatsapp (Success / Verde) - Sin cambios */
.btn-success {
    background: #25D366; 
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

.btn-success:hover {
    background: #19cb55;
    transform: translateY(-3px);
}

/* Botón MercadoLibre */
.btn-ml {
    background: #3483fa; 
    color: var(--text-light); 
    padding: 12px 28px; 
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(52, 131, 250, 0.4); 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    text-decoration: none; 
}

.btn-ml:hover {
    background: #0066ee; 
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(52, 131, 250, 0.6);
}

.btn-ml svg path {
    fill: var(--text-light);
}

/* Botón Volver  */
.btn-secondary {
    background: #000; 
    color: var(--text-light); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: #333; 
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
    
    .vehicle-data {
        padding: 0;
    }

    .data-grid {
        grid-template-columns: repeat(2, 1fr); 
        border-top: none; 
        border-radius: 0; 
        overflow: visible;
        background-color: transparent; 
    }
    
    .data-item {
        padding: 15px; 
        border-bottom: none; 
        background: #fff; 
        border-radius: 6px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    }
    .data-item:last-child {
        border-bottom: none;
    }
    

    .vehicle-actions {
        flex-direction: column; 
        gap: 10px;
        padding: 0 20px 20px 20px;
        align-items: flex-start; 
    }
}