.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../img/fondo.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
}

.search-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
    color: black;
}

.search-box input {
    width: 180px;
}

.search-box button {
    background: #00285f;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px;
}


.benefits {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
}
#slths {
  width: 5rem;
}

#slthr {
  width: 5rem;
}

.benefits h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.benefit-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.benefit-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.benefit-item img {
    width: 100px;
    margin-bottom: 15px;
}

.benefit-item h3 {
    margin-bottom: 10px;
}

.benefit-item p {
    color: #555;
}

.popular-cars {
    text-align: center;
    padding: 50px 20px;
    background: #f4f4f4;
}

.popular-cars h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.car-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.car-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 250px;
    padding: 20px;
    text-align: center;
}

.car-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.car-item h3 {
    margin: 10px 0;
}

.car-item p {
    color: #666;
    margin-bottom: 15px;
}

.car-item button {
    background: #00285f;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

/*Mapa*/
.map-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/mapa-fondo.jpg') center/cover no-repeat;
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.map-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-info {
    position: relative;
    z-index: 2;
}

.map-info h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.map-info p {
    font-size: 1em;
    margin-bottom: 20px;
}

.map-button {
    background: #00285f;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.map-button:hover {
    background: #00285f;
}

/*footer*/
.footer-nuevo {
    background: #222;
    color: #ccc;
    padding: 40px 20px 10px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand h3 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 0.9em;
    color: #aaa;
}

.footer-links h4,
.footer-social h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 10px;
}

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

.footer-links ul li {
    margin: 5px 0;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: #e63946;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-contact a {
    color: #ccc;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #e63946;
}

.footer-social .social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.footer-social .social-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-social .social-icons a:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
    font-size: 0.8em;
    color: #777;
}

/* Estilo para el contenedor de la búsqueda con imagen de fondo */
.search-box {
    background-image: url('ruta/a/tu/imagen.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
    margin-bottom: 30px; /* Espacio debajo del recuadro */
    border-radius: 10px;
    background-color: white; /* Fondo blanco en caso de que la imagen no se cargue */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Opcional, para dar sombra */
}

/* Aseguramos que la imagen no se extienda por toda la página */
body {
    background-color: #f4f4f4; /* Fondo gris claro para el body */
    margin: 0;
    padding: 0;
}

/* Para no dejar que se pegue el recuadro con la siguiente sección */
.form-row {
    margin-bottom: 20px; /* Separar filas */
}



/* Ajuste para las pantallas más pequeñas */
@media (max-width: 768px) {
    .search-box {
        background-size: auto 100%; /* Ajusta el tamaño de la imagen en pantallas pequeñas */
        padding: 15px; /* Reduce el padding en pantallas pequeñas */
    }

    .form-row {
        margin-bottom: 10px; /* Menos espacio entre las filas en pantallas pequeñas */
    }
}

/* Espaciado para el botón */
.btn {
    margin-top: 20px; /* Espacio arriba del botón */
}
#bnv {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    line-height: 1.25;
    margin: 0;
    padding: 8px 0;
    animation: fadeSlide 1s ease-out forwards;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stat-number {
  display: block;
  font-size: 40px;
  font-weight: bold;
}


/* Estilo del mapa en el index */
.map-section {
    padding: 50px 15px;
    background: #ffffff;
}

.map-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* Asegurar que la sección del mapa esté por encima de cualquier overlay del banner */
.map-section {
    position: relative;
    z-index: 10;
}

/* El mapa encima de todo dentro de la sección */
#map {
    position: relative;
    z-index: 20;
}

/* Si usas algún overlay con ::before / ::after en esa sección, que NO capture clics */
.map-section::before,
.map-section::after {
    pointer-events: none;
}

.map-info {
    text-align: left;
}

.map-info h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.map-info p {
    font-size: 14px;
    margin-bottom: 10px;
}

.map-filter-label {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    display: block;
}

#map {
    min-height: 380px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.20);
}

@media (max-width: 768px) {
    .map-section-inner {
        grid-template-columns: 1fr;
    }
}

/* Layout general */
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.navbar {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

#logop {
  height: 72px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#logop img:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

/* HERO / BANNER */
.banner {
  position: relative;
  padding: 70px 15px 60px 15px;
}

.hero-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
}

.hero-copy {
    flex: 1 1 340px;
    min-width: 0;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}

#bnv {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.hero-subtitle {
  font-size: 16px;
  max-width: 500px;
  margin-bottom: 14px;
}

.hero-bullets {
    text-align: left;
    max-width: 380px;
    margin: 0 auto 12px;
}

.hero-bullets li {
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.hero-bullets li::before {
  content: "•";
  font-weight: 700;
  margin-top: 1px;
}

.hero-tagline {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
}

/* Tarjeta de búsqueda */
.hero-form-wrapper {
  flex: 0 1 380px;
  max-width: 420px;
  width: 100%;
}

.search-box {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.30);
  margin-top: 0;
  color: #222;
}

/* Aumentar ancho de la tarjeta del formulario */
.search-box {
    max-width: 450px !important;
    width: 100%;
}

.search-box .row {
  margin-left: 0;
  margin-right: 0;
}

.search-box .form-label {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  color: #555;
}

#btnbuscar {
  font-weight: 600;
  margin-top: 8px;
}

/* Secciones inferiores */
.popular-cars {
  padding: 50px 15px 40px;
  text-align: center;
}

.popular-cars > h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.popular-cars > p {
  max-width: 820px;
  margin: 0 auto 26px;
  font-size: 15px;
}

.popular-cars .car-list {
  max-width: 1120px;
  margin: 0 auto;
}

/* Esta versión de map-section para fondo gradiente se sobrepone a la anterior */
.map-section {
  padding: 45px 15px;
  background: linear-gradient(135deg, #0f4c81 0%, #102a43 100%);
  color: #fff;
}

.map-info {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.map-section h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.map-section p {
  font-size: 15px;
  margin-bottom: 16px;
}

.map-button {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  background: #00285f;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Beneficios */
.benefits {
  padding: 70px 20px 80px;
  background: #f6f7f9;
}

.benefits > h2 {
  font-size: 26px;
  margin-bottom: 32px;
}

/* Contenedor de tarjetas */
.benefit-list {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

/* Tarjeta */
.benefit-item {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 22px 24px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Ícono / imagen */
.benefit-item img {
  display: block;
  margin: 0 auto 18px;
  max-width: 110px;
  height: auto;

  max-height: 170px;
  object-fit: cover;
  width: 100%;
}

/* Título y texto */
.benefit-item h3 {
  font-size: 18px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.benefit-item p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}

/* Footer */
.footer-nuevo {
  margin-top: 0;
}

/* Desktop: formulario a la izquierda, texto a la derecha */
@media (min-width: 768px) {
  .hero-form-wrapper {
    order: 1;
  }
  .hero-copy {
    order: 2;
  }
}

@media (max-width: 767.98px) {
    .hero-layout {
        flex-direction: column;
    }
    .hero-form-wrapper {
        order: 1;
    }
    .hero-copy {
        order: 2;
    }
}

/* KPIs */
.hero-stats {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.hero-stat {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-stat-number {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.hero-stat-label {
    font-size: 20px;
    opacity: 0.9;
}

/* Botón secundario (texto derecha) */
.hero-secondary-cta {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.7);
    color: #ffffff;
    text-decoration: none;
    backdrop-filter: blur(2px);
    margin-left: auto;
    margin-right: auto;
}

.hero-secondary-cta:hover {
    background: rgba(255,255,255,0.12);
}
.btn-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;       /* fondo verde */
    border-radius: 50%;              /* círculo */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    cursor: pointer;
}

.wa-icon {
    width: 32px;       /* icono blanco centrado */
    height: 32px;
    display: block;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    transition: 0.2s ease;
}

.comentarios-sucursales {
    padding: 40px 20px;
    background: #f8f9fb;
}

.comentarios-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.comentarios-sucursales h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.comentarios-intro {
    text-align: center;
    margin-bottom: 25px;
    color: #555;
}

.comentarios-form {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comentarios-form .form-row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.comentarios-form label {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #333;
}

.comentarios-form input,
.comentarios-form select,
.comentarios-form textarea {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.95rem;
}

.comentarios-form input:focus,
.comentarios-form select:focus,
.comentarios-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-row-privacidad {
    font-size: 0.85rem;
}

.btn-enviar-comentario {
    display: inline-block;
    background: #007bff;   /* ajusta al color de CGR si quieres */
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 10px;
}

.btn-enviar-comentario:hover {
    background: #0056b3;
}
.btn-comentarios {
    position: fixed;
    bottom: 25px;
    left: 25px;     /* 👈 ahora del lado izquierdo */
    width: 60px;
    height: 60px;
    background: #000000;  /* Azul CGR */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform .2s ease;
}

.btn-comentarios:hover {
    transform: scale(1.1);
}

.btn-comentarios img {
    width: 30px;
    height: 30px;
    display: block;
    filter: brightness(0) invert(1); /* Icono blanco */
}
