/* ====== VARIABLES Y BASE ====== */
:root {
  --rojo-principal: #e50000;
  --rojo-oscuro: #b00000;
  --gris-oscuro: #1f1f1f;
  --gris-claro: #f4f4f4;
  --gris-medio: #dddddd;
  --blanco: #ffffff;
  --texto: #222222;
  --texto-suave: #666666;
  --sombra-suave: 0 10px 25px rgba(0,0,0,0.08);
  --radio: 8px;
  --max-width: 1100px;
  --fuente: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Variables para botones */
  --btn-primary-bg: var(--rojo-principal);
  --btn-primary-text: var(--blanco);
  --btn-secondary-bg: transparent;
  --btn-secondary-text: var(--rojo-principal);
  --btn-border-radius: 999px;
  --btn-padding: 10px 20px;
  --btn-font-size: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fuente);
  color: var(--texto);
  background: var(--gris-claro);
  overflow-x: hidden;
}

/* ====== TOP BAR ====== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-medio);
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo span {
  color: var(--rojo-principal);
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: var(--texto-suave);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav a:hover,
.nav-link.active {
  color: var(--rojo-principal);
  font-weight: 600;
}

.btn-top {
  padding: 8px 16px;
  border-radius: var(--btn-border-radius);
  background: var(--rojo-principal);
  color: var(--blanco);
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}

.btn-top:hover {
  background: var(--rojo-oscuro);
}

/* ====== HERO (Inicio) ====== */
.hero {
  max-width: var(--max-width);
  margin: 40px auto 20px;
  padding: 30px;
  background: var(--blanco);
  border-radius: 16px;
  box-shadow: var(--sombra-suave);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
}

.hero-text h1 {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-text p {
  color: var(--texto-suave);
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

/* Clase base para botones */
.btn-primary,
.btn-secondary {
  padding: 12px 20px;
  border-radius: var(--btn-border-radius);
  border: none;
  text-decoration: none;
  font-size: var(--btn-font-size);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-block;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 2px solid var(--btn-primary-bg);
}

.btn-primary:hover {
  background: var(--rojo-oscuro);
  border-color: var(--rojo-oscuro);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 2px solid var(--btn-secondary-text);
}

.btn-secondary:hover {
  background: var(--rojo-principal);
  color: var(--blanco);
}

.hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 300px;
}

/* ====== SPA (Single Page App) ====== */
.section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.section.active {
  display: block;
}

.section.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== CONTENEDOR VEHÍCULOS ====== */
.vehiculos-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  overflow: visible;
}

/* ====== BANNER DE MARCA BLANCO CON LETRAS NEGRAS ====== */
.marca-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 40px;
  margin-bottom: 0;
  padding: 35px 20px;
  
  /* Fondo blanco con textura sutil */
  background: 
    linear-gradient(to bottom, 
      rgba(255, 255, 255, 0.95) 0%,
      rgba(250, 250, 250, 0.98) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(229, 0, 0, 0.03) 2px,
      rgba(229, 0, 0, 0.03) 4px
    );
  
  color: #000000;
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  
  /* Efecto de texto con sombra sutil */
  text-shadow: 
    1px 1px 1px rgba(255, 255, 255, 0.8),
    -1px -1px 1px rgba(0, 0, 0, 0.05);
  
  /* Bordes rojos elegantes */
  border-top: 4px solid var(--rojo-principal);
  border-bottom: 4px solid var(--rojo-principal);
  
  /* Sombra para dar profundidad */
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  
  position: relative;
  overflow: hidden;
}

/* Efecto de brillo sutil en los bordes */
.marca-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(229, 0, 0, 0.8),
    transparent);
  animation: borderShine 6s infinite linear;
}

.marca-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(229, 0, 0, 0.8),
    transparent);
  animation: borderShine 6s infinite linear reverse;
}

@keyframes borderShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Línea divisoria elegante */
.divider {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 2px;
  background: linear-gradient(to right, 
    transparent 0%,
    rgba(229, 0, 0, 0.4) 20%,
    rgba(229, 0, 0, 0.6) 50%,
    rgba(229, 0, 0, 0.4) 80%,
    transparent 100%);
  border: none;
  margin: 0 0 25px 0;
  box-shadow: 0 1px 3px rgba(229, 0, 0, 0.2);
}

/* ====== CATÁLOGO SCROLL HORIZONTAL ====== */
.vehiculos-scroll {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 20px 0 40px;
}

.vehiculos-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 5px 20px;
  scrollbar-width: thin;
}

/* Scrollbar personalizada */
.vehiculos-grid::-webkit-scrollbar {
  height: 8px;
}

.vehiculos-grid::-webkit-scrollbar-track {
  background: var(--gris-claro);
  border-radius: 4px;
}

.vehiculos-grid::-webkit-scrollbar-thumb {
  background: var(--gris-medio);
  border-radius: 4px;
}

.vehiculos-grid::-webkit-scrollbar-thumb:hover {
  background: var(--rojo-principal);
}

/* ====== TARJETAS DE VEHÍCULOS ====== */
.vehiculo-card {
  flex: 0 0 300px;
  min-width: 280px;
  max-width: 320px;
  
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
  padding: 16px;
  text-align: center;
  transition: transform 0.3s ease;
  scroll-snap-align: start;
}

.vehiculo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.vehiculo-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #eee;
  margin-bottom: 12px;
}

.vehiculo-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  line-height: 1.3;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehiculo-card .modelo {
  color: var(--texto-suave);
  font-size: 14px;
  margin-bottom: 8px;
}

.vehiculo-card .precio {
  color: var(--rojo-principal);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 15px;
}

/* Botón en tarjeta */
.btn-card {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--btn-border-radius);
  background: var(--gris-oscuro);
  color: var(--blanco);
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  font-weight: 600;
  border: 2px solid var(--gris-oscuro);
}

.btn-card:hover {
  background: var(--rojo-principal);
  border-color: var(--rojo-principal);
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--rojo-principal);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
  z-index: 40;
  box-shadow: 0 5px 15px rgba(229, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.scroll-btn.prev {
  left: -25px; /* 💡 Mueve la flecha fuera del carrusel */
}

.scroll-btn.next {
  right: -25px; /* 💡 Mueve la flecha fuera del carrusel */
}

.scroll-btn.prev { left: 10px; }
.scroll-btn.next { right: 10px; }

.scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ====== SERVICIOS ====== */
.servicios-container {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 30px;
}

.servicios-container h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.servicios-container p {
  color: var(--texto-suave);
  margin-bottom: 20px;
  line-height: 1.6;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.servicio {
  background: var(--gris-oscuro);
  color: var(--blanco);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--sombra-suave);
  transition: transform 0.3s ease;
}

.servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.servicio h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--blanco);
}

.servicio p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
}

/* ====== FOOTER ====== */
.footer {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--texto-suave);
  margin-top: 40px;
  border-top: 1px solid var(--gris-medio);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1200px) {
  .hero {
    max-width: 95%;
  }
  
  .vehiculos-container,
  .servicios-container {
    max-width: 95%;
  }
  
  .marca-banner {
    font-size: 34px;
    padding: 32px 20px;
  }
}

@media (max-width: 992px) {
  .vehiculo-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 250px;
  }
  
  .marca-banner {
    font-size: 30px;
    padding: 28px 18px;
    margin-top: 35px;
    letter-spacing: 1.5px;
  }
  
  .divider {
    margin-bottom: 22px;
  }
  
  .vehiculos-container {
    padding: 0 20px;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero-text h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 10px 20px;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .nav {
    display: none;
  }
  
  .btn-top {
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .hero {
    padding: 20px;
    margin: 20px auto;
  }
  
  .hero-text h1 {
    font-size: 24px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions a {
    width: 100%;
    text-align: center;
  }
  
  .scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  .grid-servicios {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  .marca-banner {
    font-size: 26px;
    padding: 25px 15px;
    margin-top: 30px;
    letter-spacing: 1px;
    
    /* Simplificar efectos en móvil */
    box-shadow: 
      0 3px 15px rgba(0, 0, 0, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  
  /* Ocultar animaciones en móviles para rendimiento */
  .marca-banner::before,
  .marca-banner::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .vehiculo-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
  
  .marca-banner {
    font-size: 22px;
    padding: 22px 12px;
    margin-top: 25px;
    border-width: 3px;
  }
  
  .divider {
    height: 1px;
    margin-bottom: 20px;
  }
  
  .vehiculos-container,
  .servicios-container {
    padding: 0 15px;
  }
  
  .vehiculo-card h3 {
    font-size: 16px;
    min-height: auto;
  }
  
  .vehiculo-card .precio {
    font-size: 18px;
  }
  
  .servicios-container h2,
  .vehiculos-container h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .hero-text h1 {
    font-size: 20px;
  }
  
  .marca-banner {
    font-size: 20px;
    padding: 20px 10px;
    margin-top: 22px;
    border-width: 2px;
  }
  
  .grid-servicios {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .marca-banner {
    font-size: 18px;
    padding: 18px 8px;
  }
}

/* ====== ESTILOS PARA IMÁGENES DE FONDO BLANCO ====== */
img[src*="chasis/"] {
  background: #ffffff !important;
}

/* ====== UTILIDADES ====== */
.hidden {
  display: none !important;
}

.active {
  display: block;
}

/* ====== ANIMACIONES ADICIONALES ====== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

/* ===== FILTROS DE VEHÍCULOS ===== */
.vehiculos-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px; /* 🔽 esto baja los filtros del hero */
  margin-bottom: 30px;
}

.filtro-marcas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 🔹 centramos los botones */
  gap: 12px;
  width: 100%;
}

.marca-btn {
  background-color: #fff;
  border: 2px solid #b50000;
  color: #b50000;
  font-weight: 600;
  padding: 10px 22px; /* 🔹 botones más grandes */
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 15px; /* 🔹 texto un poco más grande */
}

.marca-btn:hover {
  background-color: #b50000;
  color: #fff;
  transform: translateY(-2px);
}

.marca-btn.active {
  background-color: #b50000;
  color: #fff;
}

.filtro-tipo select {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .marca-btn {
    padding: 8px 18px;
    font-size: 14px;
  }
  .vehiculos-header {
    margin-top: 30px;
  }
}

/* ========================================= */
/* HERO PRINCIPAL - AUTOCARGA PRO (FINAL)   */
/* ========================================= */

.hero-nuevo {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  overflow: hidden;
  padding: 60px 5% 50px 8%;
  box-sizing: border-box;
  z-index: 0;
}

/* Contenedor interno */
.hero-contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  gap: 40px;
  position: relative;
  z-index: 3; /* ⬅ encima de la franja roja */
}

/* LOGO */
.hero-logo {
  position: absolute;
  top: 35px;
  left: 60px;
  z-index: 5;
}

.hero-logo img {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

/* ===== Animación de entrada del logo ===== */
.hero-logo img {
  animation: fadeSlideDown 1s ease-out forwards;
  opacity: 0;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo img:hover {
  transform: scale(1.05);
}

/* TEXTO */
.hero-texto {
  flex: 1;
  max-width: 560px;
  z-index: 4;
  animation: fadeInLeft 1s ease forwards;
}

.hero-texto h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-texto p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 30px;
}

/* BOTONES */
.hero-botones {
  display: flex;
  gap: 15px;
}

.btn-hero {
  text-decoration: none;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-rojo {
  background-color: #d62828;
  color: #fff;
}

.btn-rojo:hover {
  background-color: #b81f1f;
  transform: translateY(-2px);
}

.btn-borde {
  border: 2px solid #d62828;
  color: #d62828;
  background: transparent;
}

.btn-borde:hover {
  background-color: #d62828;
  color: #fff;
  transform: translateY(-2px);
}

/* IMAGEN DEL CAMIÓN */
.hero-imagen {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 4; /* ⬅ por encima de la franja roja */
}

.hero-imagen img {
  position: relative; /* ⬅ ya no absolute */
  max-width: 600px;
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: fadeInRight 1.2s ease forwards;
}

/* FRANJA ROJA DECORATIVA */
.franjas-rojas {
  position: absolute;
  top: 0;
  right: 0;
  width: 45vw;
  height: 100%;
  background: linear-gradient(105deg, #ff1a1a 0%, #b30000 100%);
  clip-path: polygon(85% 0, 100% 0, 100% 100%, 15% 100%);
  z-index: 1;
  opacity: 1;
  animation: slideInRight 1.2s ease forwards;
  transform-origin: right center;
}

/* ANIMACIONES */
@keyframes slideInRight {
  from {
    transform: translateX(60px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* RESPONSIVO */
@media (max-width: 1100px) {
  .hero-nuevo {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 80px 5% 60px;
  }

  .hero-contenido {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .hero-imagen img {
    height: 60vh;
  }

  .franjas-rojas {
    display: none;
  }

  .hero-logo {
    top: 20px;
    left: 20px;
  }

  .hero-logo img {
    height: 55px;
  }

  .hero-texto h1 {
    font-size: 2rem;
  }

  .hero-texto p {
    font-size: 1rem;
  }
}

/* ========================================= */
/* SECCIONES DE SERVICIOS Y CONTACTO */
/* ========================================= */

.seccion-servicio {
  width: 100%;
  padding: 90px 8%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.fondo-gris {
  background: #f7f7f7;
}

.fondo-blanco {
  background: #fff;
}

/* Contenedor de contenido */
.contenido-servicio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1300px;
  width: 100%;
}

.contenido-servicio.invertido {
  flex-direction: row-reverse;
}

/* Texto */
.texto-servicio {
  flex: 1;
  max-width: 550px;
  animation: fadeInLeft 1.2s ease forwards;
}

.texto-servicio h2 {
  color: #d62828;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.texto-servicio p {
  color: #444;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Imagen */
.imagen-servicio {
  flex: 1;
  text-align: center;
  animation: fadeInRight 1.2s ease forwards;
}

.imagen-servicio img {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.imagen-servicio img:hover {
  transform: scale(1.05);
}

/* Botones */
.btn-servicio {
  display: inline-block;
  background-color: #d62828;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-servicio:hover {
  background-color: #b81f1f;
  transform: translateY(-2px);
}

/* SECCIÓN CONTACTO */
.contacto-seccion {
  background: #111;
  color: #fff;
  padding: 100px 8%;
  text-align: center;
}

.contacto-seccion h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.contacto-seccion p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #ddd;
}

.contacto-info {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.contacto-info li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.btn-contacto {
  display: inline-block;
  background-color: #d62828;
  color: #fff;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-contacto:hover {
  background-color: #b81f1f;
  transform: translateY(-2px);
}

/* Animaciones */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsivo */
@media (max-width: 1000px) {
  .contenido-servicio {
    flex-direction: column;
    text-align: center;
  }

  .texto-servicio, .imagen-servicio {
    max-width: 100%;
  }

  .imagen-servicio img {
    max-width: 400px;
  }
}

/* ========================================= */
/* EFECTOS VISUALES: DIAGONALES Y SEPARADORES */
/* ========================================= */

/* Fondo diagonal rojo sólido decorativo */
.diagonal-deco {
  position: relative;
  overflow: hidden;
}

.diagonal-deco::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5%;
  width: 40%;
  height: 100%;
  background: linear-gradient(110deg, #d62828 0%, #b30000 100%);
  clip-path: polygon(0 0, 40% 0, 10% 100%, 0% 100%);
  z-index: 0;
  animation: aparecerDiagonal 1s ease forwards;
}

.invertido.diagonal-deco::before {
  left: auto;
  right: -5%;
  background: linear-gradient(110deg, #b30000 0%, #d62828 100%);
  clip-path: polygon(90% 0, 100% 0, 100% 100%, 60% 100%);
}

/* Animación suave */
@keyframes aparecerDiagonal {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Aseguramos que el contenido quede por encima */
.contenido-servicio, .contenido-contacto {
  position: relative;
  z-index: 2;
}

/* ========================================= */
/* SEPARADOR ENTRE SECCIONES */
/* ========================================= */

.separador-rojo {
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #d62828 0%, #b30000 100%);
  margin: 0;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 3;
}

/* Brillo dinámico que se mueve sobre la barra */
.separador-rojo::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, transparent 80%);
  animation: brilloBarra 4s linear infinite;
  mix-blend-mode: screen;
}

@keyframes brilloBarra {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.section {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.section.active {
  display: block;
  opacity: 1;
}

.hidden {
  display: none !important;
}

.nav-link.active {
  color: #d62828;
  font-weight: 600;
}

.btn-top {
  background-color: #d62828;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-top:hover {
  background-color: #b81f1f;
}

/* ====== CARRITO FLOTANTE ====== */
#carrito-bubble {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #e50000;
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

#carrito-bubble:hover {
  background-color: #b00000;
  transform: scale(1.1);
}

#carrito-count {
  background: #fff;
  color: #e50000;
  font-size: 14px;
  border-radius: 50%;
  padding: 2px 6px;
  margin-left: 5px;
}

/* ====== MODAL DEL CARRITO ====== */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideUp 0.4s ease;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #e50000;
}

#carrito-lista {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  border-top: 2px solid #eee;
  border-bottom: 2px solid #eee;
}

#carrito-lista li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#carrito-lista li:last-child {
  border-bottom: none;
}

.formulario-contacto input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============================== */
/* ANIMACIONES DEL CARRITO */
/* ============================== */

/* 🔘 Animación de la burbuja */
#carrito-bubble.pulse {
  animation: pulseBubble 0.5s ease;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.7);
}

@keyframes pulseBubble {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* 💥 Efecto en el botón cuando se agrega */
.btn-agregar-carrito {
  background: #d62828;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-agregar-carrito:hover {
  background: #b81f1f;
  transform: translateY(-2px);
}

.btn-agregar-carrito.added {
  background: #00c853 !important;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 200, 83, 0.6);
}

@keyframes bounceCart {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================== */
/* SECCIÓN VEHÍCULOS COMERCIALES - VERSIÓN EQUILIBRADA */
/* ============================== */

/* Contenedor principal */
.bloque-servicio {
  padding: 80px 5%;
  background: linear-gradient(135deg, 
    #ffffff 0%, 
    #f8f9fa 50%, 
    #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.contenedor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

/* COLUMNA DE TEXTO (limpia) */
.columna-texto {
  max-width: 550px;
}

.columna-texto h2 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: #1a1a1a;
  line-height: 1.2;
  position: relative;
  padding-bottom: 15px;
}

.columna-texto h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: #e63946;
  border-radius: 2px;
}

.columna-texto p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 25px 0 30px;
  color: #555;
}

/* Lista de ventajas */
.lista-ventajas {
  margin: 30px 0 40px;
  padding: 0;
}

.ventaja {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.icono-ventaja {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background-color: #e63946;
  color: white;
  border-radius: 50%;
  margin-right: 15px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ventaja span {
  font-size: 1.05rem;
  color: #333;
  font-weight: 500;
}

/* Botón */
.btn-servicio {
  display: inline-block;
  padding: 16px 40px;
  background-color: #e63946;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
  border: 2px solid #e63946;
}

.btn-servicio:hover {
  background-color: white;
  color: #e63946;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

/* ============================== */
/* GALERÍA EQUILIBRADA (derecha) */
/* ============================== */
.columna-grafica {
  display: flex;
  justify-content: center;
  align-items: center;
}

.galeria-equilibrada {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* IMAGEN PRINCIPAL */
.imagen-principal-equilibrada {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.imagen-principal-equilibrada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.imagen-principal-equilibrada:hover img {
  transform: scale(1.03);
}

.etiqueta-imagen {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #e63946;
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* CONTENEDOR DE MINIATURAS */
.contenedor-miniaturas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.miniatura-equilibrada {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.miniatura-equilibrada:hover {
  transform: translateY(-5px);
}

.marco-miniatura {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid white;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.miniatura-equilibrada:hover .marco-miniatura {
  border-color: #e63946;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.marco-miniatura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.miniatura-equilibrada:hover .marco-miniatura img {
  transform: scale(1.08);
}

.texto-miniatura {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  padding: 5px 10px;
  border-radius: 4px;
  transition: color 0.3s ease;
}

.miniatura-equilibrada:hover .texto-miniatura {
  color: #e63946;
}

/* ============================== */
/* RESPONSIVO */
/* ============================== */
@media (max-width: 1100px) {
  .contenedor-grid {
    gap: 60px;
  }
  
  .galeria-equilibrada {
    max-width: 450px;
  }
  
  .imagen-principal-equilibrada {
    height: 250px;
  }
}

@media (max-width: 900px) {
  .contenedor-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .columna-texto {
    max-width: 100%;
    order: 2;
  }
  
  .columna-texto h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .ventaja {
    justify-content: center;
  }
  
  .columna-grafica {
    order: 1;
  }
  
  .galeria-equilibrada {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .imagen-principal-equilibrada {
    height: 220px;
  }
  
  .contenedor-miniaturas {
    gap: 15px;
  }
  
  .marco-miniatura {
    height: 100px;
  }
}

@media (max-width: 600px) {
  .bloque-servicio {
    padding: 60px 5%;
  }
  
  .columna-texto h2 {
    font-size: 2.2rem;
  }
  
  .imagen-principal-equilibrada {
    height: 200px;
  }
  
  .contenedor-miniaturas {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .marco-miniatura {
    height: 140px;
  }
  
  .miniatura-equilibrada {
    flex-direction: row;
    text-align: left;
    gap: 20px;
    align-items: center;
  }
  
  .marco-miniatura {
    width: 140px;
    height: 100px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* ============================== */
/* SECCIÓN TRANSPORTE DE CARGAS */
/* ============================== */

/* Fondo diferenciado para esta sección */
.transporte-cargas {
  background: linear-gradient(135deg, 
    #f8f9fa 0%, 
    #edf2f7 50%, 
    #f8f9fa 100%);
  position: relative;
}

.transporte-cargas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(67, 97, 238, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(230, 57, 70, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Opción: Mantener colores rojos igual que la primera sección */
.transporte-cargas .columna-texto h2::after {
  background-color: #e63946; /* Mantener rojo */
}

.transporte-cargas .icono-ventaja {
  background-color: #e63946; /* Mantener rojo */
}

.transporte-cargas .btn-servicio {
  background-color: #e63946;
  border-color: #e63946;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.transporte-cargas .btn-servicio:hover {
  background-color: white;
  color: #e63946;
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

.transporte-cargas .etiqueta-imagen {
  background-color: #e63946;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.transporte-cargas .miniatura-equilibrada:hover .marco-miniatura {
  border-color: #e63946;
}

.transporte-cargas .miniatura-equilibrada:hover .texto-miniatura {
  color: #e63946;
}

/* Efectos hover específicos para imágenes de transporte */
.transporte-cargas .imagen-principal-equilibrada::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, 
    rgba(45, 156, 219, 0.2) 0%, 
    transparent 100%);
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.transporte-cargas .imagen-principal-equilibrada:hover::after {
  opacity: 1;
}

/* Iconos decorativos para transporte */
.contenedor-miniaturas.transporte .marco-miniatura {
  position: relative;
}

.contenedor-miniaturas.transporte .marco-miniatura::before {
  content: '🚚';
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1.2rem;
  opacity: 0.8;
  z-index: 2;
}

/* Ajuste para la segunda sección con fondo gris */
.fondo-gris {
  background-color: #f8f9fa;
}

.diagonal-deco {
  position: relative;
  overflow: hidden;
}

.diagonal-deco::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 45%, 
    rgba(230, 57, 70, 0.03) 50%, 
    transparent 55%);
  pointer-events: none;
}

/* ===== Ajuste de Hero entre 900px y 1100px ===== */
@media (max-width: 1100px) and (min-width: 900px) {
  .hero-imagen img {
    max-width: 500px !important;
  }

  .hero-texto h1 {
    font-size: 2.2rem;
  }

  .hero-texto p {
    font-size: 1rem;
  }
}

/* ========================== */
/* SECCIÓN NUESTROS SERVICIOS */
/* ========================== */

.servicio-bloque {
  padding: 100px 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s ease;
}

.fondo-rojo {
  background-color: #c31f26;
  color: white;
}

.fondo-blanco {
  background-color: #ffffff;
  color: #222;
}

.servicio-bloque .contenido-servicio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
}

.servicio-bloque .contenido-servicio.invertido {
  flex-direction: row-reverse;
}

/* Texto */
.servicio-bloque .texto-servicio h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: inherit;
  animation: fadeInLeft 1s ease forwards;
}

.servicio-bloque.fondo-blanco .texto-servicio h2 {
  color: #c31f26;
}

.servicio-bloque .texto-servicio p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: inherit;
}

.servicio-bloque.fondo-blanco .texto-servicio p {
  color: #333;
}

/* ======== TEXTO RESALTADO ADAPTABLE ======== */
.resaltado {
  font-weight: 700;
  color: #c31f26;
}

/* Si el resaltado está dentro de un fondo rojo, el texto será blanco */
.fondo-rojo .resaltado {
  color: #ffffff;
}

/* Imagen */
.servicio-bloque .imagen-servicio img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  animation: fadeInRight 1s ease forwards;
}

/* Última sección con fichas */
.aliado-final .fichas-aliado {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.aliado-final .ficha {
  background: #b33a3b;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  color: white;
  transition: transform 0.3s ease;
}

.aliado-final .ficha:hover {
  transform: translateY(-6px);
  background: #a72e30;
}

.aliado-final .ficha img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.aliado-final .ficha h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.aliado-final .ficha p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Responsivo */
@media (max-width: 1000px) {
  .servicio-bloque .contenido-servicio {
    flex-direction: column;
    text-align: center;
  }

  .servicio-bloque .imagen-servicio img {
    max-width: 400px;
  }

  .servicio-bloque .texto-servicio h2 {
    font-size: 2rem;
  }
}

/* ===========================
   AJUSTES DE SECCIONES NUEVOS
=========================== */

/* Imágenes amplias y completas (sin recorte) */
.img-alta,
.img-media,
.img-completa {
  height: 70vh;              /* 🔹 70% del alto de la pantalla */
  width: 100%;               /* 🔹 Que ocupe todo el ancho del contenedor */
  object-fit: contain;       /* 🔹 Muestra toda la imagen completa */
  border-radius: 12px;
  box-shadow: none !important; /* 🔹 Elimina sombras */
  background-color: #fff;    /* 🔹 Fondo blanco para contraste limpio */
}

/* Ajuste especial para secciones con fondo rojo */
.fondo-rojo .imagen-servicio img {
  background-color: transparent;
}

/* Botón Cotizar */
.btn-cotizar {
  background: #fff;
  color: #c31f26;
  border: 2px solid #fff;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.btn-cotizar:hover {
  background: #c31f26;
  color: #fff;
  transform: translateY(-2px);
}

/* Lista de tecnología */
.lista-tecnologia {
  list-style: none;
  margin-top: 25px;
  padding-left: 0;
}

.lista-tecnologia li {
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #222;
}

.fondo-rojo .lista-tecnologia li {
  color: #fff;
}

/* Aliado estratégico */
.aliado-final {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.aliado-final .fichas-aliado {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.aliado-final .ficha {
  background: transparent;
  max-width: 250px;
  text-align: center;
  color: #fff;
}

.aliado-final .ficha img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
}

.aliado-final .ficha h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.aliado-final .ficha p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #f5f5f5;
}

/* ===========================
   SECCIONES CON IMAGEN 50/50
=========================== */

/* Contenedor general: texto + imagen */
.servicio-bloque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90vh; /* 🔹 altura visual amplia */
  padding: 80px 8%;
  gap: 60px;
  box-sizing: border-box;
}

/* Mitad de texto */
.servicio-bloque .texto-servicio {
  flex: 1;
  max-width: 50%;
  z-index: 2;
}

/* Mitad de imagen */
.servicio-bloque .imagen-servicio {
  flex: 1;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicio-bloque .imagen-servicio img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔹 que llene su mitad sin distorsión */
  border-radius: 12px;
  box-shadow: none !important;
  transition: transform 0.5s ease;
}

/* Pequeño efecto al pasar el mouse */
.servicio-bloque .imagen-servicio img:hover {
  transform: scale(1.02);
}

/* Fondo blanco y rojo alternados */
.servicio-bloque.fondo-blanco {
  background-color: #fff;
  color: #222;
}

.servicio-bloque.fondo-rojo {
  background-color: #c31f26;
  color: #fff;
}

/* Títulos y textos adaptados según fondo */
.fondo-blanco .texto-servicio h2 {
  color: #c31f26;
}

.fondo-blanco .texto-servicio strong {
  color: #c31f26;
  font-weight: 700;
}

.fondo-rojo .texto-servicio h2 {
  color: #fff;
}

.fondo-rojo .texto-servicio strong {
  color: #fff;
  font-weight: 700;
}

/* Botón de cotizar (solo visible donde se requiera) */
.btn-cotizar {
  background-color: #fff;
  color: #c31f26;
  border: 2px solid #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cotizar:hover {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-3px);
}

/* Excluir el último bloque (Aliado estratégico) */
.aliado-final {
  flex-direction: column;
  min-height: auto;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 992px) {
  .servicio-bloque {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 60px 6%;
  }

  .servicio-bloque .texto-servicio,
  .servicio-bloque .imagen-servicio {
    max-width: 100%;
  }

  .servicio-bloque .imagen-servicio img {
    height: 50vh;
    object-fit: contain;
  }
}
/* =============================
   SECCIÓN: ¿QUÉ HACEMOS?
   ============================= */

.que-hacemos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  min-height: 85vh;
  padding: 80px 8%;
  background: #fff;
}

.que-hacemos .texto-servicio {
  flex: 1;
  max-width: 45%;
}

.que-hacemos .texto-servicio h2 {
  color: #c31f26;
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.que-hacemos .texto-servicio p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

.que-hacemos .texto-servicio strong {
  color: #c31f26;
  font-weight: 700;
}

/* Contenedor de las imágenes */
.que-hacemos .imagen-servicio {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 55%;
}

/* 🔹 Tarjetas más grandes y visibles */
.que-hacemos .imagen-servicio img {
  width: 48%;
  height: 48vh; /* crecen en alto */
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: none;
}

.que-hacemos .imagen-servicio img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* En pantallas medianas */
@media (max-width: 1100px) {
  .que-hacemos {
    flex-direction: column;
    text-align: center;
  }

  .que-hacemos .texto-servicio {
    max-width: 100%;
  }

  .que-hacemos .imagen-servicio {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .que-hacemos .imagen-servicio img {
    width: 45%;
    height: 35vh;
  }
}

/* En móviles */
@media (max-width: 700px) {
  .que-hacemos .imagen-servicio img {
    width: 90%;
    height: auto;
  }
}

