/* ------------------------------------
   Variables y reset global
------------------------------------ */
:root {
  --banner-height: 50px;
  --navbar-height: 56px;
  --header-height: calc(var(--banner-height) + var(--navbar-height));
  --rojo: #dc3545;
  --texto: #212529;
  --blanco: #ffffff;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  background-color: var(--blanco);
  color: var(--texto);
}

body {
  padding-top: var(--header-height);
}

.logo {
  padding-top: 25px;
  width: 110px;
  height: auto;

}


@media (max-width: 576px) {
  .logo {
     width: 100px;
     height: auto;     /* Más pequeño en móvil */
  }
}
/* ------------------------------------
   Banner superior de oferta
------------------------------------ */
/* ------------------------------------
   Banner superior de oferta
------------------------------------ */
.oferta-top {
  background: linear-gradient(90deg, #000000, #ff1e1e);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  font-weight: bold;
  padding: 0 1rem;
}
.btn-oferta {
  background-color: white;
  color: #dc3545;
  border: 2px solid white;
  font-weight: bold;
  font-size: 0.8rem;     /* Reduce el tamaño del texto */
  padding: 0.3rem 0.75rem; /* Ajusta el alto y ancho del botón */
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;


}

.btn-oferta:hover {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

@media (max-width: 576px) {
  .btn-oferta {
    font-size: 0.65rem; /* más pequeño */
    padding: 0.2rem 0.5rem;
        white-space: nowrap;
  }
}





/* ------------------------------------
   Navbar
------------------------------------ */
.navbar {
  position: fixed;
  top: var(--banner-height);
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1040;
  background-color: var(--blanco) !important;
  border-bottom: 1px solid #e9ecef;
}

/* Menú y links */
.navbar .nav-link {
  color: var(--texto);
  font-weight: 500;
  padding: 0.55rem 1.25rem;
  border-radius: 2rem;
  transition: background 0.22s, color 0.2s;
  margin: 0 0.2rem;
  position: relative;
  z-index: 1;
}

/* Hover y Activo */
.navbar .nav-link.active,
.navbar .nav-link:hover {
  background: #fff0f1;
  color: var(--rojo);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(210,45,45,0.04);
}

/* ------------------------------------
   Hero principal
------------------------------------ */
.hero-espinal {
  position: relative;
  height: calc(100vh - var(--header-height));
  background: url('../img/hero.webp') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.hero-espinal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-espinal .container {
  position: relative;
  z-index: 2;
}

.hero-espinal h1,
.hero-espinal p {
  color: white;
}

/* ------------------------------------
   Botón subir
------------------------------------ */

#btnSubir {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1060;
  /* display oculto por defecto, se muestra con .show */
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--rojo);
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  
  /* glassmorphism */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0;            /* oculto por defecto */
  pointer-events: none;  /* no clickable hasta que se muestre */
}

/* Cuando añades .show via JS */
#btnSubir.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* Hover igual que en social-icon */
#btnSubir:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}


/* ------------------------------------
   Vehículos (carousel + cards)
------------------------------------ */
.vehiculo .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #dee2e6;
}

.vehiculo .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.vehiculo .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.vehiculo .card-title {
  font-weight: 600;
}

.vehiculo .badge {
  font-size: 0.75rem;
  padding: 0.3em 0.6em;
}

/* ------------------------------------
   Modal de galería
------------------------------------ */
.modal .img-fluid {
  transition: transform 0.3s ease;
}

.modal .img-fluid:hover {
  transform: scale(1.05);
}

#modalFotos .modal-dialog {
  max-width: 900px;
  margin: 1.5rem auto;
}

@media (max-width: 768px) {
  #modalFotos .modal-dialog {
    max-width: 95%;
  }
}

#modalFotos .modal-body {
  max-height: 80vh;
  overflow-y: auto;
  padding: 1rem;
}

#modalFotos .modal-content {
  border-radius: 0.75rem;
}

/* ------------------------------------
   Sección Nosotros
------------------------------------ */
/* ------------------------------------
   Sección Contacto renovada
------------------------------------ */
.contacto-section {
  background-color: #f8f9fa;
}

.contacto-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #212529;
}

.contacto-section p {
  font-size: 1rem;
}

/* Card de contacto */
.contact-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1rem;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Wrapper de ícono */
.icon-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rojo);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
}

/* Título y texto de contacto */
.contact-card h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
}

.contact-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Mapa */
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
}
/* ------------------------------------
   Sección Nosotros

/* Cards de características */
.feature-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Ícono */
.feature-card .icon {
  font-size: 2.5rem;
  color: var(--rojo);
  margin-bottom: 0.75rem;
}

/* Título dentro de la card */
.feature-card .feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

/* Descripción */
.feature-card .feature-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
}

/* Ajustes responsive */
@media (max-width: 576px) {
  .nosotros-section h2 {
    font-size: 2rem;
  }
  .feature-card .icon {
    font-size: 2rem;
  }
}
.divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0;
}

.divider-line::before,
.divider-line::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--rojo));
  margin: 0 0.75rem;
}

.divider-line i {
  color: var(--rojo);
  font-size: 1.25rem;
}


/* ------------------------------------
   Cards de características
------------------------------------ */
.feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: transform .3s ease, box-shadow .3s ease;
  backdrop-filter: blur(8px);
}

.feature-card .icon-wrapper {
  font-size: 2rem;
  color: #ff4757;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
}

/* ------------------------------------
   Carrusel de testimonios
------------------------------------ */
#testimonios-carousel .carousel-inner {
  overflow: visible;
}
.testimonial-card-sm {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 20rem;
  margin: 0 auto;
  text-align: center;
}
.testimonial-card-sm .avatar-sm {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 2px solid var(--rojo);
}
.testimonial-card-sm .comment {
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: #333;
}
.testimonial-card-sm .author {
  font-weight: bold;
  color: var(--rojo);
  font-size: 0.85rem;
}

/* Divisor entre secciones */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--rojo);
  margin: 1rem auto;
  border-radius: 2px;
}

/* Opcional: fondo distinto para vehículos */
#vehiculos {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
}

/* ------------------------------------
   Footer
------------------------------------ */
footer {
  background-color: var(--blanco);
  color: var(--texto);
  border-top: 1px solid #dee2e6;
}

footer a {
  color: var(--rojo);
}

footer a:hover {
  text-decoration: underline;
}

/* ------------------------------------
   Redes sociales flotantes
------------------------------------ */
#social-scroll {
  position: fixed;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 1060;
}

#social-scroll.show {
  display: flex;
}

.social-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 18px;
  cursor: pointer;
}

.social-icon::after {
  content: attr(data-label);
  position: absolute;
  left: 110%;
  white-space: nowrap;
  padding: 4px 10px;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.social-icon:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.social-icon.fb {
  background: linear-gradient(135deg, #3b5998, #4a70c0);
}
.social-icon.ig {
  background: linear-gradient(135deg, #e1306c, #f56040);
}
.social-icon.tt {
  background: linear-gradient(135deg, #000, #444);
}
.social-icon.ws {
  background: linear-gradient(135deg, #25D366, #128C7E);
}


/* ------------------------------------
   Responsive ajustes
------------------------------------ */
@media (max-width: 992px) {
  .navbar .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar-toggler {
    position: absolute;
    right: 1rem;
  }

  .navbar-collapse {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--blanco);
    padding: 1rem;
    z-index: 1050;
  }

  .navbar-collapse .nav-link {
    color: var(--texto);
    padding: 0.75rem 1rem;
  }

  .navbar-collapse .btn {
    width: 100%;
    margin-top: 1rem;
  }
}

/* ------------------------------------
   Estilo glassmorphism + sombra flotante
------------------------------------ */
.card-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  overflow: hidden;
}

/* Efecto flotante con sombra suave */
.card-float {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-float:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

/* ------------------------------------
   Badge de descuento moderno
------------------------------------ */
.badge-descuento {
  background: linear-gradient(to right, #dc3545, #ff6b6b);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ------------------------------------
   Encabezado visual de oferta
------------------------------------ */
.card .rounded-bottom-start {
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ------------------------------------
   Botón de WhatsApp mejorado
------------------------------------ */
.btn-ws {
  background: linear-gradient(45deg, #25D366, #128C7E);
  color: white;
  border: none;
  transition: filter 0.3s ease, transform 0.2s ease;
}
.btn-ws:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* ------------------------------------
   Animaciones AOS (ya se activa desde JS)
------------------------------------ */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

.card .position-absolute.bg-danger {
  display: none !important;
}


/* ------------------------------------
   Estilo de tarjetas de flotilla 
------------------------------------ */

.img-representante {
  width: 240px;       /* Más grande */
  height: 450px;
  border-radius: 18px;  /* Esquinas suavemente redondeadas, NO círculo */
  object-fit: cover;
  object-position: center;
  background: #fff;
  border: 6px solid #fff;
  box-shadow: 0 4px 40px rgba(220,53,69,0.10),
              0 0 0 12px rgba(255,255,255,0.18);
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.img-representante:hover {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 12px 44px -10px #dc3545;
}



/* ========= Nosotros Pro ========= */
.nosotros-pro {
  position: relative;
  background: #fff;
}

.nosotros-ribbon{
  position: absolute; inset: 0 0 auto 0; height: 140px; z-index: 0;
  background: radial-gradient(1200px 140px at 50% 0, rgba(220,53,69,.10), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,0.015), transparent 60%);
  pointer-events: none;
}

.nosotros-pro .container{ position: relative; z-index: 1; }

/* Card principal */
.card-nosotros{
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 18px 50px rgba(16,24,40,.06);
}

.card-nosotros__header{
  display: flex; gap: .75rem; align-items: center;
}
.card-nosotros__header i{
  color: #dc3545; font-size: 1.6rem;
}

/* Checklist */
.checklist{ list-style: none; padding-left: 0; }
.checklist li{
  display: flex; align-items: start; gap: .6rem;
  padding: .45rem 0;
  color: #4b5563;
}
.checklist i{ color:#16a34a; margin-top: .2rem; }

/* Mini stats */
.mini-stat{
  background: #fff; border: 1px solid #f0f2f4;
  border-radius: 14px; padding: .9rem;
  box-shadow: 0 10px 30px rgba(2,6,23,.05);
}
.mini-stat i{ color:#dc3545; font-size: 1.25rem; }
.mini-stat .num{
  font-weight: 800; font-size: 1.6rem; line-height: 1; margin: .15rem 0;
}
.mini-stat span{ font-size: .9rem; color:#6b7280; }

/* Grid beneficios */
.benefits-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: #fff;
}
.benefit{
  display: grid; grid-template-columns: 44px 1fr; gap: .8rem;
  align-items: start;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(2,6,23,.05);
}
.benefit i{ font-size: 1.3rem; color:#dc3545; }

.benefit h5{ margin: 0 0 .2rem; font-weight: 700; color:#1f2937; }
.benefit p{ margin: 0; color:#6b7280; }

/* Pills de valor */
.value-pills{ display: flex; flex-wrap: wrap; gap: .5rem; }
.pill{
  display:inline-flex; align-items:center; gap:.4rem;
  background:#fff0f1; color:#b4232c; border: 1px solid #ffd5d8;
  padding:.45rem .7rem; border-radius:999px; font-weight:600; font-size:.85rem;
}

/* Responsive */
@media (min-width: 992px){
  .benefits-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 576px){
  .card-nosotros{ padding: 1.1rem; }
  .mini-stat .num{ font-size: 1.4rem; }
  .benefit{ grid-template-columns: 38px 1fr; }
}
.mini-stat .num {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1rem;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  margin: 0.15rem 0;
}

.mini-stat .plus {
  font-weight: 800;
}

/* --- Representante protagonista --- */
.rep-hero {
  display: grid;
  place-items: center;
}

.rep-photo-wrapper {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4/5;              /* vertical elegante */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  transform: translateZ(0);
  background: #111;
}

.rep-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .6s ease;
}

.rep-photo-wrapper:hover .rep-photo {
  transform: scale(1.06);
}

/* Brillo diagonal (hilarizado) continuo y sutil */
.rep-photo-wrapper .shine {
  position: absolute;
  inset: -50%;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,0) 65%);
  transform: rotate(20deg);
  animation: repShine 3.8s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes repShine {
  0%   { transform: translateX(-60%) rotate(20deg); }
  100% { transform: translateX(60%) rotate(20deg); }
}

/* Badge flotante sobre la foto */
.rep-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: #dc3545;  /* rojo Bootstrap danger */
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(220,53,69,.35);
}

/* Ajustes responsive para destacar en móvil */
@media (max-width: 991.98px) {
  .rep-photo-wrapper {
    width: min(92%, 460px);
  }
}

/* Opcional: pequeños toques a mini-stat para balance visual */
.mini-stat .num {
  display: inline-flex;
  align-items: baseline;
  gap: .15rem;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 800;
}

.mini-stat .plus {
  font-weight: 800;
  margin-right: .05rem;
}
