/* === DATOS TÉCNICOS === */
.tecnico-container {
  display: none;
  margin-top: 20px;
}
.tecnico-container.activo {
  display: block;
}

/* === Tarjeta TOTAL === */
.tecnico-card.total {
  width: 100%;
  margin-bottom: 30px;
  text-align: center;
}
.tecnico-card.total img,
.tecnico-card.total video {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
}
.tecnico-card.total h2 {
  font-size: 1.8rem;
  margin: 10px 0;
}
.tecnico-card.total p {
  font-size: 1rem;
  color: #444;
}

/* === Carrusel wrapper === */
.tecnico-scroll-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* === Carrusel interno === */
.tecnico-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}
.tecnico-scroll::-webkit-scrollbar {
  display: none;
}

/* === Tarjetas VERTICALES === */
.tecnico-card.vertical {
  flex: 0 0 auto;
  width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  scroll-snap-align: start;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tecnico-card.vertical:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.tecnico-card.vertical .card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tecnico-card.vertical .imagen {
  width: 100%;
  aspect-ratio: 4 / 3; /* 📌 Todas las imágenes con misma proporción */
  overflow: hidden;
}
.tecnico-card.vertical .imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 📌 Recorta sin deformar */
}
.tecnico-card.vertical .contenido {
  padding: 12px;
}
.tecnico-card.vertical h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #222;
}
.tecnico-card.vertical p {
  font-size: 0.85rem;
  color: #555;
}

/* === Flechas carrusel === */
.tecnico-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
  user-select: none;
}
.tecnico-arrow:hover {
  background: rgba(0,0,0,0.7);
}
.tecnico-arrow-left { left: 10px; }
.tecnico-arrow-right { right: 10px; }

/* === Botón desplegar ficha === */
.btn-ficha {
  display: inline-block;
  padding: 14px 28px;
  background-color: #be0000;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
}
.btn-ficha:hover { background-color: #990000; }

/* === Botones internos === */
.vehiculo-btns {
  margin-top: 20px;
  text-align: center;
}
.vehiculo-btns .vehiculo-btn {
  padding: 12px 24px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 1.1rem !important;
  margin: 0 5px;
}
.vehiculo-btns .vehiculo-btn:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25) !important;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .tecnico-card.vertical { flex: 0 0 70%; }
}
@media (max-width: 600px) {
  .tecnico-card.vertical { width: 85%; }
}
