/*
   SOLUTION TECHPRO - CSS GENERAL / GLOBAL
   Variables, Reset, Tipografía, Botones, Navbar, Footer, FAQ y Componentes Base
*/

/*
   SOLUTION TECHPRO HOJA DE ESTILOS CSS PURA
   Diseno profesional moderno responsivo y con soporte completo Dark Light Mode
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600;700&display=swap');

/* Reset y Variables CSS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Marca Corporativa */
  --color-primary: #EF7C00;
  --color-primary-hover: #d96e00;
  --color-primary-light: rgba(239, 124, 0, 0.12);
  --color-accent: #FFC107;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1eb857;

  /* Tema Claro - Contraste Marcado por Secciones */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-hero: #f8fafc;
  --bg-hero-card: #fff7ed;
  
  --bg-section-services: #edf2f7;
  --bg-card-services: #ffffff;
  
  --bg-section-workflow: #ffffff;
  --bg-card-workflow: #f8fafc;
  
  --bg-section-repuestos: #ffffff;
  --bg-card-repuestos: #f8fafc;
  
  --bg-section-resenas: #edf2f7;
  --bg-card-resenas: #ffffff;
  
  --bg-section-faq: #ffffff;
  --bg-card-faq: #f8fafc;
  
  --bg-section-location: #edf2f7;
  --bg-card-location: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
  --border-card: #e2e8f0;
  --border-section: #e2e8f0;
  --border-dashed: rgba(239, 124, 0, 0.45);
  --navbar-bg: #090b10;
  --navbar-text: #9ca3af;
  --grid-line: rgba(239, 124, 0, 0.07);
  --card-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.08);
  --card-shadow-hover: 0 10px 25px -4px rgba(239, 124, 0, 0.15);

  /* Transiciones y Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tema Oscuro - Distintos Tonos de Negro y Profundidad entre Secciones */
body.dark {
  --bg-body: #07090e;
  --bg-surface: #111622;
  --bg-card: #151b27;
  --bg-card-hover: #1b2333;

  /* 1. Hero: Tono Obsidian profundo con tinte tecnológico */
  --bg-hero: #07090e;
  --bg-hero-card: #131926;

  /* 2. Servicios: Tono Carbón Pizarra (#111622) - Salto de contraste evidente */
  --bg-section-services: #111622;
  --bg-card-services: #182030;

  /* 2.5 Video / Cómo trabajamos */
  --bg-section-workflow: #0a0e16;
  --bg-card-workflow: #121824;

  /* 3. Repuestos: Tono Ónix Profundo (#080a0f) - Contraste alto con servicios */
  --bg-section-repuestos: #080a0f;
  --bg-card-repuestos: #131925;

  /* 4. Reseñas: Tono Grafito Noche (#10141f) - Salto de tono */
  --bg-section-resenas: #10141f;
  --bg-card-resenas: #182132;

  /* 5. FAQ: Tono Carbón Suave (#090c12) */
  --bg-section-faq: #090c12;
  --bg-card-faq: #141a26;

  /* 6. Ubícanos: Tono Pizarra Industrial (#111622) */
  --bg-section-location: #111622;
  --bg-card-location: #182030;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --border-card: rgba(255, 255, 255, 0.08);
  --border-section: rgba(255, 255, 255, 0.06);
  --border-dashed: rgba(239, 124, 0, 0.55);
  --grid-line: rgba(239, 124, 0, 0.09);
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 12px 35px rgba(239, 124, 0, 0.22);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

/* Utilidades Tipograficas */
.mono {
  font-family: 'JetBrains Mono', monospace;
}

.container {
  width: 100%;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* Fondo con Cuadricula Tecnica */
.hero-grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-whatsapp);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.wa-btn:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  color: #ffffff;
}

/* Texto plano para Teléfono (sin encuadre ni enlaces) */
.hero-phone-text,
.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  padding: 0.35rem 0.5rem;
  box-shadow: none;
  user-select: text;
  cursor: default;
  text-decoration: none;
}

body.dark .hero-phone-text,
body.dark .btn-phone {
  color: #cbd5e1;
  background: transparent;
  border: none;
}

.hero-phone-text svg,
.btn-phone svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Tarjetas Tecnicas */
.tech-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tech-card:hover {
  border-color: rgba(239, 124, 0, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(239, 124, 0, 0.2), 0 8px 30px rgba(239, 124, 0, 0.1);
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0a0a0a;
  border-bottom: 1px solid rgba(239, 124, 0, 0.2);
}

.navbar-accent-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
}

.nav-container {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo {
  height: 2.75rem;
  width: 2.75rem;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.brand-name {
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

.theme-toggle-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 124, 0, 0.35);
  background: transparent;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-accent);
  transform: rotate(15deg);
}

body.dark .theme-toggle-btn {
  color: var(--color-accent);
}

.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

.nav-mobile-toggle {
  display: none;
  background: rgba(239, 124, 0, 0.1);
  border: 1px solid rgba(239, 124, 0, 0.4);
  color: #ffffff;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: var(--transition);
}

.nav-mobile-toggle:hover {
  background: rgba(239, 124, 0, 0.25);
  border-color: var(--color-primary);
  color: var(--color-accent);
}

.mobile-menu-drawer {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background-color: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(239, 124, 0, 0.25);
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.mobile-menu-drawer.open {
  max-height: 480px;
  opacity: 1;
  padding: 1.25rem 1.5rem 1.75rem 1.5rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.mobile-nav-links a:hover {
  color: var(--color-primary);
  background-color: rgba(239, 124, 0, 0.08);
  padding-left: 0.85rem;
}

.mobile-nav-links a.mobile-wa-highlight {
  margin-top: 0.5rem;
  background-color: var(--color-whatsapp);
  color: #ffffff !important;
  font-weight: 700;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.mobile-nav-links a.mobile-wa-highlight:hover {
  background-color: var(--color-whatsapp-hover);
  padding-left: 0.5rem;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none !important;
  }
  .nav-mobile-actions {
    display: flex !important;
  }
  .nav-mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .nav-container {
    height: 3.25rem;
  }
  .brand-logo {
    height: 2.25rem;
    width: 2.25rem;
  }
  .brand-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .brand-name {
    font-size: 0.75rem;
    letter-spacing: 0;
  }
}

/* ==========================================================================
   LAYOUT HERO BASE (Compartido)
   ========================================================================== */
.hero-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-grid-layout {
    gap: 2rem;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.hero-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(1.85rem, 5vw + 0.5rem, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-title .highlight {
  color: var(--color-primary);
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn,
  .hero-actions .wa-btn {
    width: 100%;
    justify-content: center;
  }
  .hero-phone-text,
  .hero-actions .btn-phone {
    width: 100%;
    justify-content: center;
    border: none;
    box-shadow: none;
    background: transparent;
  }
}

/* Card Visual en Hero */
.hero-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: var(--color-primary);
  filter: blur(48px);
  opacity: 0.18;
  pointer-events: none;
}

.hero-card {
  position: relative;
  border-radius: 1.25rem;
  background-color: var(--bg-hero-card);
  border: 2px dashed var(--border-dashed);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  box-shadow: 0 12px 40px rgba(239, 124, 0, 0.08);
}

@media (max-width: 480px) {
  .hero-card {
    padding: 1.75rem 1.25rem;
  }
}

/* ==========================================================================
   NAVBAR SUBPÁGINAS Y NAVEGACIÓN AUXILIAR
   ========================================================================== */
/* Acciones en Navbar de Subpáginas */
.nav-subpage-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.nav-link-back:hover {
  color: #ffffff;
  border-color: var(--color-primary);
  background-color: rgba(239, 124, 0, 0.1);
}

@media (max-width: 480px) {
  .nav-subpage-actions {
    gap: 0.4rem;
  }
  .nav-link-back {
    padding: 0.35rem 0.5rem;
  }
  .nav-back-text {
    display: none;
  }
  .subpage-wa-btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ ACORDEÓN) - Presente en todas las páginas
   ========================================================================== */
/* FAQ Acordeon */
.section-faq {
  padding: 4.5rem 0;
  background-color: var(--bg-section-faq);
  border-bottom: 1px solid var(--border-section);
  position: relative;
}

body.dark .section-faq {
  background: 
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(239, 124, 0, 0.04), transparent 70%),
    var(--bg-section-faq);
}

@media (max-width: 768px) {
  .section-faq {
    padding: 2.75rem 0;
  }
}

.faq-container {
  max-width: 760px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-card-faq);
  border: 1px solid var(--border-card);
  transition: var(--transition);
}

body.dark .faq-item {
  background-color: var(--bg-card-faq);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark .faq-item:hover,
body.dark .faq-item.open {
  background-color: #171f2e;
  border-color: rgba(239, 124, 0, 0.45) !important;
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  min-height: 48px;
}

.faq-toggle-icon {
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: transform 0.25s ease;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-text {
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER - Presente en todas las páginas
   ========================================================================== */
/* Footer */
.footer {
  background-color: #05070b;
  border-top: 1px solid rgba(239, 124, 0, 0.3);
  padding: 2.25rem 0;
}

.footer-line {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(239, 124, 0, 0.6), rgba(255, 193, 7, 0.6), transparent);
  margin-bottom: 1.5rem;
}

.footer-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-flex {
    flex-direction: row;
    text-align: left;
  }
}

.footer-copy {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP - Presente en todas las páginas
   ========================================================================== */
/* Botón Flotante de WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--color-whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
  animation: floatPulse 3s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.floating-whatsapp svg {
  width: 1.85rem;
  height: 1.85rem;
}

.floating-whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background-color: #0a0a0a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 124, 0, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-whatsapp:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

@keyframes floatPulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.75);
  }
}

@media (max-width: 480px) {
  .floating-whatsapp {
    bottom: 1rem;
    right: 1rem;
    width: 3.15rem;
    height: 3.15rem;
  }
  .floating-whatsapp svg {
    width: 1.6rem;
    height: 1.6rem;
  }
  .floating-whatsapp-tooltip {
    display: none;
  }
}
