:root {
  --primary: #3498db;
  --primary-dark: #217dbb;
  --primary-light: rgba(52, 152, 219, 0.1);
  --secondary: #2ecc71;
  --secondary-dark: #27ae60;
  --dark: #2c3e50;
  --dark-light: #34495e;
  --light: #ecf0f1;
  --light-dark: #bdc3c7;
  --gray: #95a5a6;
  --gray-light: #ecf0f1;
  --danger: #e74c3c;
  --warning: #f39c12;
  --success: #27ae60;
  --info: #3498db;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  :root {
    --light: #2c3e50;
    --dark: #ecf0f1;
    --gray: #bdc3c7;
    --gray-light: #34495e;
  }
  
  body {
    background-color: #1a1a1a;
    color: #f5f5f5;
  }
  
  .servicio-card, .cotizador-container, .testimonio-card, 
  .blog-card, .faq-item, .resultado-cotizacion {
    background: var(--light);
    color: var(--dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  .form-group input, .form-group select, .form-group textarea,
  .radio-group label, .newsletter-form input {
    background-color: var(--gray-light);
    border-color: var(--dark-light);
    color: var(--dark);
  }
  
  .footer-col ul li a, .footer-contact li, .footer-bottom, 
  .footer-links a, .section-subtitle {
    color: rgba(255, 255, 255, 0.7); /* Ajustado para modo oscuro */
  }
  
  .footer-col h3::after, .section-title::after {
    background: var(--primary);
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9fbfc;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- SOLUCIÓN DESBORDAMIENTO HORIZONTAL EN MÓVILES --- */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
}

@media (max-width: 600px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
  }
  .container {
    max-width: 100vw;
    padding: 0 0.5rem !important; /* Usar rem */
    margin: 0 auto !important;
  }
  .hero {
    padding: 1.5rem 0 1rem !important; /* Usar rem */
    min-height: unset !important;
    position: relative !important;
    overflow: visible !important;
  }
  .hero-image, .hero-truck {
    position: static !important;
    width: 90vw !important;
    max-width: 320px !important;
    min-width: 0 !important;
    opacity: 0.13 !important;
    margin: 0 auto 0.625rem auto !important; /* Usar rem */
    display: block !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 1 !important;
    filter: drop-shadow(0 0.25rem 1.5rem rgba(0,0,0,0.10)) !important; /* Usar rem */
  }
  .hero-text {
    background: none !important;
    border-radius: 0 !important;
    margin-bottom: 0.75rem !important; /* Usar rem */
    box-shadow: 0 0.125rem 0.75rem rgba(44,62,80,0.07) !important; /* Usar rem */
    padding: 0.625rem 4vw !important; /* Usar rem */
    position: relative !important;
    z-index: 2 !important;
  }
  .servicios-grid,
  .testimonios-grid,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important; /* Usar rem */
    margin-top: 0.75rem !important; /* Usar rem */
    max-width: 100vw !important;
    padding: 0 0.5rem !important; /* Usar rem */
  }
  .servicio-card,
  .testimonio-card,
  .blog-card,
  .cotizador-container,
  .faq-item,
  .resultado-cotizacion,
  .cta-box {
    padding: 0.625rem !important; /* Usar rem */
  }
  .main-footer {
    padding: 0.75rem 0 0 !important; /* Usar rem */
  }
}

/* Si usas grid o flex, asegúrate que no haya min-width o gap excesivo */
@media (max-width: 600px) {
  .footer-grid,
  .servicios-grid,
  .testimonios-grid,
  .blog-grid {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.9375rem; /* 15px */
}

.section-title span {
  color: var(--primary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem; /* 80px */
  height: 0.1875rem; /* 3px */
  background: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: #999; /* Mejor contraste */
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem; /* 12px 24px */
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 0.125rem solid transparent; /* 2px */
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-0.125rem); /* -2px */
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: white;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 0.125rem solid var(--primary); /* 2px */
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-lg {
  padding: 0.9375rem 1.875rem; /* 15px 30px */
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem; /* 8px 16px */
  font-size: 0.9rem;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
}

/* Agrupa reglas para botones */
.btn, .btn-primary, .btn-secondary, .btn-outline, .btn-lg, .btn-sm, .btn-whatsapp {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

/* Efecto ripple para botones */
.btn:focus:not(:active)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.3125rem; /* 5px */
  height: 0.3125rem; /* 5px */
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Animación pulse */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
  }
  70% {
    box-shadow: 0 0 0 0.625rem rgba(52, 152, 219, 0); /* 10px */
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
  }
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 5rem 0 3.75rem; /* 80px 60px */
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem; /* 40px */
}

.hero-text {
  flex: 1;
  max-width: 37.5rem; /* 600px */
}

.hero-image {
  flex: 1;
  display: flex;
}

.hero-truck {
  max-width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.25rem; /* 20px */
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.875rem; /* 30px */
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 0.9375rem; /* 15px */
  margin-top: 1.875rem; /* 30px */
}

.hero-curve {
  position: absolute;
  bottom: -0.0625rem; /* -1px */
  left: 0;
  width: 100%;
  height: 6.25rem; /* 100px */
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23f9fbfc"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23f9fbfc"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23f9fbfc"></path></svg>');
  background-size: cover;
  background-repeat: no-repeat;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-0.9375rem); } /* -15px */
  100% { transform: translateY(0px); }
}

/* Oferta especial */
.special-offer {
  background: rgba(255, 255, 255, 0.1);
  border-left: 0.25rem solid var(--secondary); /* 4px */
  padding: 0.9375rem; /* 15px */
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 1.25rem 0; /* 20px */
  position: relative;
  overflow: hidden;
}

.offer-badge {
  position: absolute;
  top: 0.9375rem; /* 15px */
  left: 0;
  background: var(--secondary);
  color: white;
  padding: 0.1875rem 0.625rem; /* 3px 10px */
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 0 0 var(--border-radius) 0;
}

.special-offer p {
  margin: 0;
  font-weight: 500;
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9375rem; /* 15px */
  margin-top: 1.875rem; /* 30px */
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
  font-size: 0.9rem;
  opacity: 0.9;
}

.badge-item i {
  color: var(--secondary);
}

/* Servicios */
.servicios-section {
  padding: 5rem 0; /* 80px */
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); /* 300px */
  gap: 1.875rem; /* 30px */
  margin-top: 3.125rem; /* 50px */
}

.servicio-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.servicio-card:hover {
  transform: translateY(-0.625rem); /* -10px */
  box-shadow: var(--shadow-lg);
}

.servicio-media {
  position: relative;
  height: 13.75rem; /* 220px */
  overflow: hidden;
}

.servicio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.servicio-card:hover .servicio-media img {
  transform: scale(1.1);
}

.servicio-badge {
  position: absolute;
  top: 0.9375rem; /* 15px */
  right: 0.9375rem; /* 15px */
  background: var(--secondary);
  color: white;
  padding: 0.3125rem 0.9375rem; /* 5px 15px */
  border-radius: 1.25rem; /* 20px */
  font-size: 0.8rem;
  font-weight: 600;
}

.servicio-body {
  padding: 1.5625rem; /* 25px */
}

.servicio-body h3 {
  color: var(--primary);
  margin-bottom: 0.9375rem; /* 15px */
}

.servicio-features {
  list-style: none;
  margin: 1.25rem 0; /* 20px */
}

.servicio-features li {
  margin-bottom: 0.625rem; /* 10px */
  display: flex;
  align-items: center;
}

.servicio-features i {
  color: var(--secondary);
  margin-right: 0.625rem; /* 10px */
  font-size: 0.9rem;
}

/* Cotizador */
.cotizador-section {
  padding: 5rem 0; /* 80px */
  background: linear-gradient(to bottom, #f9fbfc, #e6f0f6);
}

.cotizador-container {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 2.5rem; /* 40px */
}

.cotizador-header {
  text-align: center;
  margin-bottom: 2.5rem; /* 40px */
}

/* Barra de progreso */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin: 1.875rem auto; /* 30px */
  position: relative;
  max-width: 31.25rem; /* 500px */
}

.progress-step {
  width: 2.5rem; /* 40px */
  height: 2.5rem; /* 40px */
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-weight: bold;
  z-index: 2;
  border: 0.1875rem solid white; /* 3px */
  transition: var(--transition);
}

.progress-step.active {
  background: var(--primary);
  color: white;
}

.progress-line {
  position: absolute;
  top: 1.25rem; /* 20px */
  left: 0;
  height: 0.1875rem; /* 3px */
  background: var(--gray-light);
  width: 100%;
  z-index: 1;
}

.progress-line-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
  width: 0%;
}

/* Pasos del formulario */
.form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  margin-bottom: 1.5625rem; /* 25px */
  display: flex;
  align-items: center;
  gap: 0.625rem; /* 10px */
}

.form-step h3 span {
  background: var(--primary);
  color: white;
  width: 1.875rem; /* 30px */
  height: 1.875rem; /* 30px */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.form-row {
  display: flex;
  gap: 1.25rem; /* 20px */
  margin-bottom: 1.25rem; /* 20px */
}

.form-group {
  flex: 1;
  margin-bottom: 1.25rem; /* 20px */
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem; /* 8px */
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9375rem; /* 12px 15px */
  border: 0.125rem solid #e0e0e0; /* 2px */
  border-radius: var(--border-radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 0.1875rem var(--primary-light); /* 3px */
}

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.3125rem; /* 5px */
  height: 1.125rem; /* 18px */
}

/* Radio buttons */
.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); /* 200px */
  gap: 0.9375rem; /* 15px */
}

.radio-group input[type="radio"] {
  display: none;
}

.radio-group label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5625rem 0.9375rem; /* 25px 15px */
  background: white;
  border: 0.125rem solid #e0e0e0; /* 2px */
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.radio-group label i {
  font-size: 2rem;
  margin-bottom: 0.625rem; /* 10px */
  color: var(--primary);
}

.radio-group label small {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.3125rem; /* 5px */
}

.radio-group input[type="radio"]:checked + label {
  border-color: var(--primary);
  background-color: var(--primary-light);
  box-shadow: 0 0 0 0.1875rem var(--primary-light); /* 3px */
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem; /* 10px */
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.625rem; /* 10px */
  cursor: pointer;
  padding: 0.5rem; /* 8px */
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.checkbox-group label:hover {
  background: var(--primary-light);
}

.checkbox-group input[type="checkbox"] {
  width: 1.125rem; /* 18px */
  height: 1.125rem; /* 18px */
  accent-color: var(--primary);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 1.875rem; /* 30px */
}

.btn-next, .btn-prev {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
}

/* Resultado cotización */
.resultado-cotizacion {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: 1.875rem; /* 30px */
  margin-top: 2.5rem; /* 40px */
  display: none;
  animation: fadeIn 0.5s ease;
}

.resultado-header {
  text-align: center;
  margin-bottom: 1.5625rem; /* 25px */
  padding-bottom: 1.25rem; /* 20px */
  border-bottom: 0.0625rem solid #eee; /* 1px */
}

.resultado-header h3 {
  color: var(--dark);
}

.precio {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.625rem; /* 10px */
}

.badge-savings {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 0.3125rem 0.9375rem; /* 5px 15px */
  border-radius: 1.25rem; /* 20px */
  font-size: 0.9rem;
  margin-top: 0.625rem; /* 10px */
}

.badge-savings i {
  margin-right: 0.3125rem; /* 5px */
}

.resultado-detalle {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* 16px */
  justify-content: space-between;
  align-items: stretch;
}

.detalle-item {
  flex: 1 1 0;
  min-width: 7.5rem; /* 120px */
  background: var(--gray-light);
  border-radius: var(--border-radius);
  padding: 0.75rem 0.625rem; /* 12px 10px */
  margin: 0;
  border: 0.0625rem solid #e0e0e0; /* 1px */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.detalle-item.extras {
  font-weight: 600;
  color: var(--primary);
}

.resultado-acciones {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem; /* 15px */
}

/* Upsell box */
.upsell-box {
  background: var(--primary-light);
  border-left: 0.25rem solid var(--primary); /* 4px */
  padding: 0.9375rem; /* 15px */
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-top: 1.25rem; /* 20px */
}

.upsell-box h4 {
  color: var(--primary);
  margin-bottom: 0.625rem; /* 10px */
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
}

.upsell-box p {
  margin-bottom: 0.625rem; /* 10px */
  font-size: 0.9rem;
}

/* Testimonios */
.testimonios-section {
  padding: 5rem 0; /* 80px */
  background: linear-gradient(to bottom, #e6f0f6, #f9fbfc);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); /* 300px */
  gap: 1.875rem; /* 30px */
  margin-top: 3.125rem; /* 50px */
}

.testimonio-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.875rem; /* 30px */
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonio-card:hover {
  transform: translateY(-0.3125rem); /* -5px */
  box-shadow: var(--shadow-md);
}

.testimonio-header {
  display: flex;
  align-items: center;
  gap: 0.9375rem; /* 15px */
  margin-bottom: 1.25rem; /* 20px */
}

.testimonio-avatar {
  width: 3.75rem; /* 60px */
  height: 3.75rem; /* 60px */
  border-radius: 50%;
  object-fit: cover;
  border: 0.1875rem solid var(--primary); /* 3px */
}

.testimonio-info h4 {
  margin-bottom: 0.3125rem; /* 5px */
}

.testimonio-rating {
  color: var(--warning);
}

.testimonio-body {
  margin-bottom: 1.25rem; /* 20px */
  font-style: italic;
  color: #555;
}

.testimonio-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--gray);
}

.testimonio-footer i {
  margin-right: 0.3125rem; /* 5px */
}

/* Reviews banner */
.reviews-banner {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.25rem; /* 20px */
  margin-top: 3.125rem; /* 50px */
  box-shadow: var(--shadow);
  text-align: center;
}

.reviews-content {
  max-width: 37.5rem; /* 600px */
  margin: 0 auto;
}

.reviews-stars {
  font-size: 1.5rem;
  color: var(--warning);
  margin-bottom: 0.625rem; /* 10px */
}

.reviews-stars span {
  font-size: 1rem;
  color: var(--dark);
  margin-left: 0.625rem; /* 10px */
  font-weight: bold;
}

.reviews-banner p {
  margin-bottom: 0.9375rem; /* 15px */
}

/* Blog section */
.blog-section {
  padding: 5rem 0; /* 80px */
  background: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); /* 300px */
  gap: 1.875rem; /* 30px */
  margin-top: 3.125rem; /* 50px */
}

.blog-card {
  background: var(--gray-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-0.3125rem); /* -5px */
  box-shadow: var(--shadow-md);
}

.blog-media {
  position: relative;
  height: 12.5rem; /* 200px */
  overflow: hidden;
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-media img {
  transform: scale(1.05);
}

.blog-badge {
  position: absolute;
  top: 0.9375rem; /* 15px */
  right: 0.9375rem; /* 15px */
  background: var(--primary);
  color: white;
  padding: 0.1875rem 0.625rem; /* 3px 10px */
  border-radius: var(--border-radius);
  font-size: 0.7rem;
  font-weight: bold;
}

.blog-body {
  padding: 1.25rem; /* 20px */
}

.blog-body h3 {
  margin-bottom: 0.625rem; /* 10px */
}

.blog-body h3 a {
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

.blog-body h3 a:hover {
  color: var(--primary);
}

.blog-body p {
  margin-bottom: 0.9375rem; /* 15px */
  font-size: 0.9rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray);
}

.blog-meta i {
  margin-right: 0.3125rem; /* 5px */
}

/* FAQ section */
.faq-section {
  padding: 5rem 0; /* 80px */
  background: var(--gray-light);
}

.faq-grid {
  max-width: 50rem; /* 800px */
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--border-radius);
  margin-bottom: 0.9375rem; /* 15px */
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 1.25rem; /* 20px */
  text-align: left;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--primary-light);
}

.faq-question i {
  transition: var(--transition);
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.25rem; /* 20px */
}

.faq-answer.active {
  max-height: 31.25rem; /* 500px */
  padding: 0 1.25rem 1.25rem; /* 20px 20px */
}

.faq-answer p {
  margin-bottom: 0.625rem; /* 10px */
}

/* CTA Section */
.cta-section {
  padding: 3.75rem 0; /* 60px */
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.cta-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem; /* 40px */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.875rem; /* 30px */
}

.cta-content {
  flex: 1;
  min-width: 18.75rem; /* 300px */
}

.cta-content h2 {
  margin-bottom: 0.625rem; /* 10px */
}

.cta-buttons {
  display: flex;
  gap: 0.9375rem; /* 15px */
  flex-wrap: wrap;
}

/* Footer */
.main-footer {
  background: var(--dark);
  color: white;
  padding: 3.75rem 0 0; /* 60px */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr)); /* 250px */
  gap: 2.5rem; /* 40px */
  margin-bottom: 2.5rem; /* 40px */
}

.footer-col h3 {
  color: white;
  margin-bottom: 1.25rem; /* 20px */
  position: relative;
  padding-bottom: 0.625rem; /* 10px */
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3.125rem; /* 50px */
  height: 0.125rem; /* 2px */
  background: var(--primary);
}

.footer-logo svg text {
  fill: white;
}

.footer-logo p {
  margin: 0.9375rem 0; /* 15px */
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 0.9375rem; /* 15px */
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; /* 40px */
  height: 2.5rem; /* 40px */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-0.1875rem); /* -3px */
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.625rem; /* 10px */
}

.footer-col ul li a {
  color: #999; /* Mejor contraste */
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
  padding-left: 0.3125rem; /* 5px */
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.625rem; /* 10px */
  margin-bottom: 0.9375rem; /* 15px */
  color: #999; /* Mejor contraste */
}

.footer-contact i {
  color: var(--primary);
}

.newsletter-form {
  margin-top: 1.25rem; /* 20px */
}

.newsletter-form input {
  width: 100%;
  padding: 0.75rem 0.9375rem; /* 12px 15px */
  border: none;
  border-radius: var(--border-radius);
  margin-bottom: 0.625rem; /* 10px */
  font-family: 'Montserrat', sans-serif;
}

.payment-methods {
  margin-top: 1.25rem; /* 20px */
}

.payment-methods h4 {
  font-size: 0.9rem;
  margin-bottom: 0.625rem; /* 10px */
  color: #999; /* Mejor contraste */
}

.payment-icons {
  display: flex;
  gap: 0.625rem; /* 10px */
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.1); /* 1px */
  padding: 1.25rem 0; /* 20px */
  text-align: center;
  font-size: 0.9rem;
  color: #999; /* Mejor contraste */
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem; /* 20px */
  margin-top: 0.625rem; /* 10px */
}

.footer-links a {
  color: #999; /* Mejor contraste */
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

/* Botones flotantes */
.float-btn {
  position: fixed;
  width: 3.75rem; /* 60px */
  height: 3.75rem; /* 60px */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 1000;
}

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

.float-btn:hover .float-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.float-tooltip {
  position: absolute;
  right: 4.375rem; /* 70px */
  background: var(--dark);
  color: white;
  padding: 0.5rem 0.9375rem; /* 8px 15px */
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(0.625rem); /* 10px */
  transition: var(--transition);
  pointer-events: none;
}

.float-tooltip::after {
  content: '';
  position: absolute;
  right: -0.3125rem; /* -5px */
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 0.3125rem solid transparent; /* 5px */
  border-bottom: 0.3125rem solid transparent; /* 5px */
  border-left: 0.3125rem solid var(--dark); /* 5px */
}

.whatsapp-btn {
  bottom: 1.875rem; /* 30px */
  right: 1.875rem; /* 30px */
  background: #25D366;
}

.phone-btn {
  bottom: 6.875rem; /* 110px */
  right: 1.875rem; /* 30px */
  background: var(--primary);
}

/* Chatbot */
.chatbot-container {
  position: fixed;
  bottom: 1.875rem; /* 30px */
  left: 1.875rem; /* 30px */
  z-index: 1000;
}

.chatbot-toggle {
  width: 3.75rem; /* 60px */
  height: 3.75rem; /* 60px */
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.chatbot-notification {
  position: absolute;
  top: -0.3125rem; /* -5px */
  right: -0.3125rem; /* -5px */
  background: var(--danger);
  color: white;
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.chatbot-window {
  position: absolute;
  bottom: 4.375rem; /* 70px */
  left: 0;
  width: 18.75rem; /* 300px */
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(1.25rem); /* 20px */
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.chatbot-window.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.chatbot-header {
  background: var(--primary);
  color: white;
  padding: 0.9375rem; /* 15px */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h4 {
  margin: 0;
  font-size: 1rem;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

.chatbot-messages {
  height: 18.75rem; /* 300px */
  padding: 0.9375rem; /* 15px */
  overflow-y: auto;
}

.chatbot-message {
  margin-bottom: 0.9375rem; /* 15px */
}

.bot-message {
  text-align: left;
}

.bot-message p {
  background: var(--gray-light);
  padding: 0.625rem 0.9375rem; /* 10px 15px */
  border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) var(--border-radius-lg);
  display: inline-block;
  max-width: 80%;
}

.quick-replies {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 8px */
  margin-top: 0.625rem; /* 10px */
}

.quick-reply {
  background: var(--primary-light);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.5rem 0.75rem; /* 8px 12px */
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.quick-reply:hover {
  background: var(--primary);
  color: white;
}

.chatbot-input {
  display: flex;
  padding: 0.625rem; /* 10px */
  border-top: 0.0625rem solid #eee; /* 1px */
}

.chatbot-input input {
  flex: 1;
  padding: 0.625rem; /* 10px */
  border: 0.0625rem solid #ddd; /* 1px */
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  outline: none;
}

.chatbot-input button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 0 0.9375rem; /* 15px */
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-input button:hover {
  background: var(--primary-dark);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: white;
  padding: 0.9375rem; /* 15px */
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.9375rem; /* 15px */
}

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 15.625rem; /* 250px */
}

.cookie-buttons {
  display: flex;
  gap: 0.625rem; /* 10px */
  align-items: center;
}

.cookie-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.cookie-link:hover {
  text-decoration: underline;
}

/* Agrupa reglas para inputs */
input, select, textarea {
  font-family: 'Montserrat', sans-serif;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(1.25rem); } /* 20px */
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-0.3125rem); } /* -5px */
  40%, 80% { transform: translateX(0.3125rem); } /* 5px */
}

/* --- ACCESIBILIDAD Y FEEDBACK --- */

/* Mejor feedback para newsletter */
.newsletter-success {
  color: var(--success);
  font-weight: 600;
  margin-top: 0.3125rem; /* 5px */
  animation: fadeIn 0.5s;
}

/* Mejor feedback de error en formularios */
input.error, select.error, textarea.error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 0.125rem rgba(231, 76, 60, 0.15); /* 2px */
  animation: shake 0.3s;
}

/* Mejor enfoque para accesibilidad */
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 0.125rem solid var(--primary); /* 2px */
  outline-offset: 0.125rem; /* 2px */
}

/* Botones accesibles */
button:focus {
  box-shadow: 0 0 0 0.1875rem var(--primary-light); /* 3px */
}

/* --- MEJORAS VISUALES Y MODERNAS --- */

/* Sombra sutil para cards y formularios */
.servicio-card, .cotizador-container, .testimonio-card, .blog-card, .faq-item, .resultado-cotizacion {
  box-shadow: 0 0.125rem 0.75rem rgba(44,62,80,0.07); /* 2px 12px */
}

/* Transición suave en hover para enlaces */
a, .btn, .servicio-card, .blog-card, .testimonio-card {
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}

/* Mejor contraste para textos secundarios */
.section-subtitle, .footer-col ul li a, .footer-contact li, .footer-bottom, .footer-links a {
  color: #999; /* Mejor contraste */
}

/* Mejoras para el banner de cookies */
.cookie-banner {
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.cookie-banner .btn {
  min-width: 5.625rem; /* 90px */
}

/* Mejora para el botón del chatbot */
.chatbot-toggle:focus {
  outline: 0.125rem solid var(--secondary); /* 2px */
  outline-offset: 0.125rem; /* 2px */
}

/* --- RESPONSIVE MEJORADO --- */
@media (max-width: 400px) {
  .cookie-content {
    flex-direction: column;
    gap: 0.625rem; /* 10px */
    align-items: flex-start;
  }
  .cookie-buttons {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem; /* 8px */
  }
}

@media (max-width: 430px) {
  .hero {
    padding: 2rem 0 1.5rem; /* 32px 24px */
    min-height: unset;
    position: relative;
    overflow: hidden;
  }
  .hero-container {
    flex-direction: column;
    gap: 0.625rem; /* 10px */
    padding: 0 3vw;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  .hero-text {
    max-width: 100%;
    text-align: center;
    padding: 0 2vw;
    position: relative;
    z-index: 3;
    background: rgba(52,152,219,0.03); /* leve fondo para destacar texto */
    border-radius: 0.625rem; /* 10px */
  }
  .hero-image {
    display: none; /* Ocultar completamente el camión en móviles pequeños */
  }
  .hero-truck {
    display: none; /* Asegurar que se oculta */
  }
  .hero h1 {
    font-size: 1.4rem;
    margin-bottom: 0.625rem; /* 10px */
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 0.625rem; /* 10px */
    line-height: 1.3;
  }
  .special-offer {
    margin: 0.5rem 0; /* 8px */
    font-size: 0.95rem;
    padding: 0.4375rem; /* 7px */
  }
  .hero-cta {
    flex-direction: column;
    gap: 0.5rem; /* 8px */
    margin-top: 0.625rem; /* 10px */
    align-items: center;
  }
  .btn, .btn-lg, .btn-primary, .btn-secondary, .btn-outline, .btn-whatsapp {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem 0; /* 12px */
    max-width: 98vw;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  body {
    padding: 0;
  }
  .container {
    padding: 0 0.3125rem; /* 5px */
  }
  .hero {
    padding: 1.5625rem 0 1.125rem; /* 25px 18px */
  }
  .hero-container {
    flex-direction: column;
    gap: 0.75rem; /* 12px */
    padding: 0 0.125rem; /* 2px */
  }
  .hero-text {
    max-width: 100%;
    text-align: center;
    padding: 0 0.125rem; /* 2px */
  }
  .hero-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    z-index: 1;
    pointer-events: none;
  }
  .hero-truck {
    width: 140vw;
    max-width: none;
    min-width: 100vw;
    opacity: 0.10;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: drop-shadow(0 0.25rem 1.5rem rgba(0,0,0,0.10)); /* 4px 24px */
  }
  .hero-text, .hero h1, .hero-subtitle, .special-offer {
    position: relative;
    z-index: 2;
  }
  .hero h1 {
    font-size: 1.3rem;
    margin-bottom: 0.625rem; /* 10px */
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.625rem; /* 10px */
  }
  .special-offer {
    margin: 0.5rem 0; /* 8px */
    font-size: 0.93rem;
    padding: 0.4375rem; /* 7px */
  }
  .hero-cta {
    flex-direction: column;
    gap: 0.4375rem; /* 7px */
    margin-top: 0.625rem; /* 10px */
    align-items: center;
  }
  .btn, .btn-lg, .btn-primary, .btn-secondary, .btn-outline, .btn-whatsapp {
    width: 100%;
    font-size: 0.98rem;
    padding: 0.75rem 0; /* 12px */
    max-width: 98vw;
    margin: 0 auto;
    display: block;
  }
  .trust-badges {
    flex-direction: column;
    gap: 0.375rem; /* 6px */
    margin-top: 0.625rem; /* 10px */
    align-items: center;
  }
  .servicios-section, .cotizador-section, .testimonios-section, .blog-section, .faq-section {
    padding: 0.625rem 0; /* 10px */
  }
  .servicios-grid, .testimonios-grid, .blog-grid {
    grid-template-columns: 1fr;
    gap: 0.625rem; /* 10px */
    margin-top: 0.625rem; /* 10px */
  }
  .servicio-card, .testimonio-card, .blog-card {
    padding: 0.5rem; /* 8px */
  }
  .main-footer {
    padding: 0.625rem 0 0; /* 10px */
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.625rem; /* 10px */
    margin-bottom: 0.625rem; /* 10px */
  }
  .footer-col {
    margin-bottom: 0.3125rem; /* 5px */
  }
  .footer-social {
    justify-content: center;
    gap: 0.4375rem; /* 7px */
  }
  .footer-logo svg {
    width: 5.625rem !important; /* 90px */
    min-width: 5.625rem !important; /* 90px */
  }
  .footer-logo p {
    font-size: 0.85rem;
  }
  .footer-contact li {
    font-size: 0.90rem;
  }
  .newsletter-form input {
    font-size: 0.95rem;
    padding: 0.4375rem 0.3125rem; /* 7px 5px */
  }
  .cta-section {
    padding: 0.625rem 0; /* 10px */
  }
  .cta-box {
    padding: 0.4375rem; /* 7px */
    gap: 0.3125rem; /* 5px */
  }
  .cta-content h2 {
    font-size: 1rem;
  }
  .float-btn, .chatbot-toggle {
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    font-size: 1rem;
    bottom: 0.625rem !important; /* 10px */
    right: 0.625rem !important; /* 10px */
  }
  .phone-btn {
    bottom: 3.4375rem !important; /* 55px */
  }
  .float-tooltip {
    right: 2.8125rem; /* 45px */
    font-size: 0.75rem;
    padding: 0.25rem 0.4375rem; /* 4px 7px */
  }
  .cookie-banner {
    font-size: 0.95rem;
    padding: 0.5rem; /* 8px */
  }
  .cookie-content {
    flex-direction: column;
    gap: 0.375rem; /* 6px */
    align-items: flex-start;
  }
  .cookie-buttons {
    width: 100%;
    flex-direction: column;
    gap: 0.3125rem; /* 5px */
  }
}

@media (max-width: 600px) {
  .servicios-section,
  .cotizador-section,
  .testimonios-section,
  .blog-section,
  .faq-section,
  .cta-section {
    padding: 1.25rem 0 !important; /* 20px */
  }
}
