/* ==========================================================================
   Transportes GRUM — Estilos custom (sobre Tailwind)
   ========================================================================== */

html { scroll-behavior: smooth; }
body { background: #fff; }

/* ===== HERO ===== */
.hero-bg {
  background: url("../img/elementos/cover.png") center/cover no-repeat;
  background-attachment: scroll;
}
@media (min-width: 1024px) {
  .hero-bg { background-attachment: fixed; }
}

/* ===== TARJETAS DE CAMIÓN ===== */
.truck-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.truck-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.18);
}

/* ===== SECCIÓN ESTADOS / RUTAS ===== */
.routes-section {
  background-color: #E11D2E;
  background-image: url("../img/elementos/Fondo_Rojo.png");
  background-size: cover;
  background-position: center;
}

/* ===== NUESTROS SERVICIOS — fondo llanta ===== */
.servicios-bg {
  background-color: #1a1a2e;
  background-image: url("../img/fondos/llanta.png");
  background-size: cover;
  background-position: center;
}

/* ===== TARJETA FUNDADOR — fondo rayas ===== */
.fundador-bg {
  background-color: #0f172a;
  background-image: url("../img/fondos/rayas.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

/* ===== SLIDER ===== */
.slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.slider-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.35);
}
.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.slider-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.85);
  color: #2B2B2B;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: background .2s, transform .2s;
  z-index: 5;
}
.slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
@media (min-width: 768px) {
  .slider-btn { width: 52px; height: 52px; font-size: 1.15rem; }
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.slider-dot:hover { background: #9ca3af; }
.slider-dot.active {
  background: #E11D2E;
  transform: scale(1.25);
}

/* ===== CONTACTO ===== */
.contact-bg {
  background: url("../img/elementos/Imagen_2.png") center/cover no-repeat;
}

/* ===== FORMULARIO ===== */
.form-input {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: .375rem;
  background: #fff;
  font-size: .95rem;
  color: #1f2937;
  transition: border .2s, box-shadow .2s;
  outline: none;
}
.form-input::placeholder {
  color: #9ca3af;
  letter-spacing: .03em;
  font-weight: 500;
}
.form-input:focus {
  border-color: #E11D2E;
  box-shadow: 0 0 0 3px rgba(225, 29, 46, .15);
}

/* ===== ICONOS SOCIALES ===== */
.social-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E11D2E;
  color: #fff;
  border-radius: 9999px;
  font-size: 1.1rem;
  transition: background .2s, transform .2s;
  box-shadow: 0 6px 14px rgba(225, 29, 46, .35);
}
.social-icon:hover {
  background: #B0142A;
  transform: translateY(-2px);
}

/* ===== ANCLAS CON HEADER FIJO ===== */
section[id] {
  scroll-margin-top: 80px;
}

/* ===== UTILIDADES PEQUEÑAS ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
