/* ==========================================================================
   1. INYECCIONES DE TAILWIND & COMPARTIDO GLOBAL (Todas las páginas)
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #050505;
  overflow-x: hidden;
}

/* Efectos, bordes y degradados corporativos */
.glow {
  box-shadow:
    0 0 25px rgba(13,122,95,.25),
    0 0 60px rgba(46,139,87,.12);
}

.gradient,
.line-gradient {
  background: linear-gradient(to right, #E7D130, #6AA84F, #0D7A5F);
}

.border-gradient {
  border-image: linear-gradient(to right, #E7D130, #6AA84F, #0D7A5F) 1;
}

/* Animación de la marquesina de ofertas (Index y Contacto) */
@layer utilities {
  .animate-marquee {
    animation: marquee 25s linear infinite;
  }
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Elementos globales de formulario (Inputs, Selects, Textareas) */
input, select, textarea {
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,.08);
  color: white;
  transition: all .3s ease;
}

input::placeholder, textarea::placeholder {
  color: #777;
}

input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 4px rgba(13,122,95,.15);
  border-color: #0D7A5F;
  outline: none;
}


/* ==========================================================================
   2. EXCLUSIVO DE "INDEX.HTML" (Página Principal)
   ========================================================================== */

/* Fondo Hero principal con imagen */
.bg-mechanic {
  background-image:
    linear-gradient(rgba(0,0,0,.80), rgba(0,0,0,.90)),
    url('https://images.unsplash.com/photo-1613214149922-f1809c99b414?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.92) 20%,
    rgba(0,0,0,.65) 60%,
    rgba(0,0,0,.75) 100%
  );
}

/* Barra de scroll horizontal modificada para el slider de servicios */
.custom-scroll::-webkit-scrollbar {
  height: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: #000000;
  border-radius: 9999px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #0D7A5F, #6AA84F, #E7D130);
  border-radius: 9999px;
  border: 2px solid #000000;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to right, #6AA84F, #E7D130);
  box-shadow: 0 0 10px rgba(231, 209, 48, 0.5);
}

.custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: #6AA84F #000000;
}


/* ==========================================================================
   3. EXCLUSIVO DE "PRESUPUESTO.HTML" (Calculadora y Reporte)
   ========================================================================== */

/* Estructura de tarjetas de la calculadora */
.card {
  background: #101010;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

.service-card {
  background: #151515;
  border: 1px solid rgba(255,255,255,.08);
  transition: all .3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: #0D7A5F;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Checkboxes interactivos */
.service-check {
  width: 24px;
  height: 24px;
  accent-color: #0D7A5F;
  cursor: pointer;
}

.pdf-area {
  background: #101010;
}


/* ==========================================================================
   4. EXCLUSIVO DE "CONTACTO.HTML" (Sección Taller y Ubicación)
   ========================================================================== */

/* No se requieren selectores extra complejos aquí, ya que los inputs, 
   animaciones y colores oscuros se gestionan de forma nativa a través 
   de las clases utilitarias de Tailwind CSS y la sección global superior.
   
   
   https://images.unsplash.com/photo-1486006920555-c77dcf18193c?q=80&w=1400&auto=format&fit=crop*/


/* ===== CONTACT SCROLLBAR PREMIUM (verde/amarillo) ===== */
.scroll-contact::-webkit-scrollbar {
  width: 6px;
}

.scroll-contact::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-contact::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    #E7D130,
    #6AA84F,
    #0D7A5F
  );
  border-radius: 20px;
}

.scroll-contact::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to bottom,
    #fff066,
    #8bc34a,
    #0f8a6a
  );
}

/* Firefox */
.scroll-contact {
  scrollbar-width: thin;
  scrollbar-color: #6AA84F transparent;
}