/* ============================================
   CALIXPRESS - Estilos Principales
   ============================================ */

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

:root {
  --primary: #e53935;
  --primary-dark: #c62828;
  --secondary: #43a047;
  --secondary-dark: #2e7d32;
  --accent: #fbc02d;
  --dark: #121212;
  --dark-light: #1e1e1e;
  --gray: #b0b0b0;
  --light: #f5f5f5;
  --success: #43a047;
  --warning: #fbc02d;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

/* ---- HEADER ---- */
header {
  /* Fondo IA: fallback gradient + imagen hero */
  background:
    linear-gradient(
      135deg,
      rgba(18, 18, 18, 0.85) 0%,
      rgba(30, 30, 30, 0.65) 100%
    ),
    url("../img/backgrounds/hero.webp");
  background-size: cover;
  background-position: center;
  padding: 3.25rem 1rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* overlay sutil para mejorar contraste texto */
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.55),
    rgba(18, 18, 18, 0.3)
  );
  opacity: 1;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 1;
}

.logo {
  width: 240px;
  height: 120px;
  margin: 0 auto 1rem;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: visible;
}

.logo img {
  height: 170px;
  width: auto;
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- ESTADÍSTICAS ---- */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1rem;
}

.stat-card {
  background: var(--dark-light);
  padding: 2rem 1.5rem;
  border-radius: 15px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(229, 57, 53, 0.2);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

/* ---- CONTENEDOR ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 3rem 0 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- SECCIÓN DE CONFIANZA ---- */
.trust-section {
  background: var(--dark-light);
  padding: 1.5rem;
  border-radius: 14px;
  margin: 2rem 0 3rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.trust-card {
  background: transparent;
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trust-content {
  display: block;
  flex: 1 1 auto;
}

.trust-icon {
  font-size: 1.9rem;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.trust-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--light);
}

.trust-card p {
  margin: 0.15rem 0 0;
  color: var(--gray);
  font-size: 0.95rem;
}

.trust-badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.03);
  color: var(--light);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.whatsapp-badge {
  background: var(--secondary);
  color: white;
  text-decoration: none;
}

/* ---- SERVICIOS ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card {
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 360px;
}

/* Top accent bar */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Overlay oscuro para mejorar legibilidad del texto */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  /* degradado: más oscuro arriba para los títulos, menos abajo para mostrar imagen */
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.85) 0%,
    rgba(18, 18, 18, 0.6) 40%,
    rgba(18, 18, 18, 0.35) 100%
  );
  pointer-events: none;
  transition: background 0.2s ease;
}

/* Asegurar que el contenido quede por encima del overlay */
.service-card > * {
  position: relative;
  z-index: 2;
}

/* Mejorar legibilidad: icono y textos sobre imagen */
.service-icon {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
}

.service-card h2,
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
}

.service-card p,
.service-card .features-list li {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* Clases específicas que referencian las imágenes ya presentes */
.service-grua {
  background-image: url("../img/services/grua-motos.webp");
}
.service-mascotas {
  background-image: url("../img/services/transporte-mascotas.webp");
}
.service-acarreos {
  background-image: url("../img/services/acarreos.webp");
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(229, 57, 53, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h2,
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light);
}
/* ---- LISTAS ---- */
.features-list {
  list-style: none;
  margin: 1rem 0;
}

.features-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.features-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
  font-size: 1.05rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 20px;
  margin-right: 0.35rem;
}

/* ---- TESTIMONIOS ---- */
.testimonials-section {
  margin: 3rem 0;
  padding: 3rem 1rem;
  background: var(--dark-light);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.testimonial-card {
  display: none;
  text-align: center;
  padding: 2rem;
}

.testimonial-card.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 10px 30px rgba(229, 57, 53, 0.3);
}

.testimonial-stars {
  font-size: 1.5rem;
  color: var(--warning);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gray);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 700;
  color: var(--light);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.testimonial-role {
  color: var(--gray);
  font-size: 0.9rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 5px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--dark-light);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 4rem;
  border-top: 1px solid var(--dark);
}

footer p {
  color: var(--gray);
  margin: 0.5rem 0;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: var(--secondary);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}
