/* Variables de Color (Tema) */
:root {
  --bg-color: #f0f2f5; /* Gris clarito para el cuerpo */
  --bg-darker: #2c3136; /* Gris oscuro */
  --bg-light: #ffffff; /* Blanco para tarjetas */
  --text-main: #333333; /* Texto oscuro */
  --text-muted: #6c757d; /* Texto gris */
  --text-light: #e0e0e0; /* Letras grises claras */
  --accent-red: #cc0000;
  --accent-red-hover: #aa0000;
  --whatsapp-green: #25d366;
  --whatsapp-green-hover: #128c7e;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Navbar Personalizado */
.navbar {
  background-color: var(--bg-darker) !important;
  border-bottom: 3px solid var(--accent-red);
}

.navbar-brand img {
  height: 50px;
  object-fit: contain;
  background-color: var(--bg-light);
  padding: 5px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-red) !important;
}

.dropdown-menu {
  background-color: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
  color: var(--text-main);
}

.dropdown-item:hover {
  background-color: var(--accent-red);
  color: #fff;
}

/* Hero / Slider */
.hero-slider {
  height: 80vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-title span {
  color: var(--accent-red);
}

/* Stats Section */
.stats-section {
  background-color: var(--bg-darker);
  padding: 3rem 0;
  border-bottom: 2px solid var(--bg-light);
}

.stat-box {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-red);
}

.stat-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Cards & Servicios */
.service-card {
  background-color: var(--bg-light);
  border: none;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--accent-red);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

/* Gallery Grid */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-overlay {
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  background: rgba(255, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 1rem;
  text-align: center;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Forms e Inputs */
.form-control {
  background-color: var(--bg-light);
  border: 1px solid #ced4da;
  color: var(--text-main);
}

.form-control:focus {
  background-color: var(--bg-color);
  color: var(--text-main);
  border-color: var(--accent-red);
  box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.25);
}

/* Buttons */
.btn-red {
  background-color: var(--accent-red);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-red:hover {
  background-color: var(--accent-red-hover);
  color: white;
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-green-hover);
  color: white;
}

/* Botón flotante WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp-green);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: white;
}

footer {
  background-color: var(--bg-darker);
  border-top: 3px solid var(--accent-red);
  padding: 3rem 0 1rem;
  color: var(--text-light);
}

.footer-heading {
  color: var(--accent-red);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent-red);
}

/* =========================================
   Responsive Adjustments (Mobile)
   ========================================= */
@media (max-width: 768px) {
  /* Hero Slider */
  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 0.5rem;
    word-break: normal;
  }
  
  .hero-content {
    padding: 0 10%; /* Evita que las flechas pisen el texto, pero da más espacio */
  }

  .hero-slider p.lead {
    font-size: 1rem;
    margin-bottom: 1rem !important;
  }

  /* Stats Section */
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-text {
    font-size: 0.9rem;
  }
  
  .stat-box {
    padding: 1rem 0.5rem;
  }

  /* Floating WhatsApp */
  .floating-whatsapp {
    width: 50px;
    height: 50px;
    font-size: 26px;
    bottom: 20px;
    right: 20px;
  }
}
