/* /var/www/html/css/style.css */

/* ==============================
   1. ESTILOS BÁSICOS Y TIPOGRAFÍA
   ============================== */
body {
  overflow-x: hidden;           /* Evita scroll horizontal accidental */
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

a {
  text-decoration: none;
}

/* ==========================================================
   2. HERO (IMAGEN DE FONDO, OVERLAY OSCURO Y TEXTO CENTRADO)
   ========================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 56px);    /* Restamos 56px del navbar fijo */
  min-height: 500px;            /* Altura mínima para pantallas grandes */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;                  /* Texto blanco sobre el fondo oscuro */
  overflow: hidden;
}

/* Fallback si la imagen no carga: fondo gris claro con texto oscuro */
.hero-section:not([style*="background"]) {
  background-color: #f8f9fa;
  color: #333;
}

.hero-section .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content .display-3 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-content .lead {
  font-size: 1.25rem;
}

/* Botones en el hero */
.hero-section .btn {
  min-width: 120px;
  margin: 0 0.5rem;
}

/* ==============================
   3. SECCIONES (SITE-SECTION)
   ============================== */
.site-section {
  padding: 3rem 0;               /* Espacio vertical uniforme */
}

.site-section.bg-light {
  background-color: #f8f9fa;     /* Gris suave */
}

/* Títulos de sección */
.site-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.site-section p {
  font-size: 1rem;
  color: #6c757d;                /* Texto gris medio */
}

/* ==============================
   4. CARDS (VEHÍCULOS, TESTIMONIOS, ETC.)
   ============================== */
.card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  width: 100%;
  display: block;
}

.card.h-100 {
  display: flex;
  flex-direction: column;
}

.card h5 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card .card-body {
  padding: 1rem;
}

.card .text-primary {
  font-weight: 700;
}

/* ==============================
   5. TESTIMONIOS (OWL CAROUSEL)
   ============================== */
.testimonial {
  border-radius: 0.5rem;
}

.testimonial .author img {
  border: 3px solid #007bff;
}

/* ==============================
   6. SECCIÓN DE SERVICIOS LLAMATIVA
   ============================== */
.service-card {
  border-radius: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-card .card-body {
  padding: 2rem 1.5rem;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #007bff;           /* Color predeterminado (azul) */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;         /* Centra y añade espacio abajo */
}

.service-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.service-card .card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6c757d;
}

.service-card .btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
}

/* ==============================
   7. FOOTER
   ============================== */
.site-footer {
  background: #222;
  color: #ccc;
  padding: 2rem 0 1rem 0;
}

.site-footer a {
  color: #ccc;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .footer-heading {
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 0.5rem;
}

/* ==============================
   8. AJUSTES RESPONSIVE
   ============================== */
@media (max-width: 991px) {
  .hero-section {
    height: calc(100vh - 56px);
  }
  .hero-content .display-3 {
    font-size: 2rem;
  }
  .hero-content .lead {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: 70vh;
    min-height: 400px;
  }
  .hero-content .display-3 {
    font-size: 1.5rem;
  }
  .hero-content .lead {
    font-size: 0.9rem;
  }
}
