/* ============================================
   TALLER AUTO MR. GÓMEZ — Hoja de estilos base
   Paleta: Gris motor #37474F · Rojo herramienta #E53935 · Naranja señal #FF6F00
   ============================================ */

:root {
  /* Rampas de color */
  --gray-900: #1c2226;
  --gray-800: #263238;
  --gray-700: #37474f;
  --gray-600: #4a5a63;
  --gray-500: #6b7a83;
  --gray-400: #90a4ae;
  --gray-300: #c3ced4;
  --gray-200: #e2e8eb;
  --gray-100: #f1f5f7;
  --gray-50:  #f8fafb;

  --red-700: #b71c1c;
  --red-600: #c62828;
  --red-500: #e53935;
  --red-400: #ef5350;
  --red-100: #fdecea;

  --orange-700: #bf4f00;
  --orange-600: #e65100;
  --orange-500: #ff6f00;
  --orange-400: #ff9233;
  --orange-100: #fff3e0;

  --green-600: #2e7d32;
  --green-500: #43a047;
  --green-100: #e8f5e9;

  --yellow-700: #f9a825;
  --yellow-100: #fffde7;

  --blue-600: #1565c0;
  --blue-100: #e3f2fd;

  /* Tokens semánticos */
  --color-primary: var(--gray-700);
  --color-accent: var(--red-500);
  --color-highlight: var(--orange-500);
  --color-bg: #ffffff;
  --color-bg-alt: var(--gray-50);
  --color-text: var(--gray-900);
  --color-text-muted: var(--gray-500);
  --color-border: var(--gray-200);
  --color-success: var(--green-600);
  --color-warning: var(--yellow-700);
  --color-error: var(--red-600);

  /* Tipografía */
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;

  --lh-body: 1.6;
  --lh-heading: 1.2;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  /* Espaciado (sistema 8px) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Radios */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.18);

  /* Transiciones */
  --tr-fast: 0.15s ease;
  --tr-base: 0.25s ease;
  --tr-slow: 0.4s ease;

  /* Layout */
  --container-w: 1200px;
  --header-h: 72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin-bottom: var(--sp-4); }

a { color: var(--color-accent); text-decoration: none; transition: color var(--tr-fast); }
a:hover { color: var(--orange-500); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: var(--sp-5); }

/* Utilidades */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 var(--sp-4); }
.section { padding: var(--sp-8) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--gray-800); color: var(--gray-100); }
.section--dark h2, .section--dark h3 { color: #fff; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; top: -48px; left: 0; background: var(--color-accent);
  color: #fff; padding: var(--sp-3) var(--sp-4); z-index: 1000;
  font-weight: var(--fw-medium); border-radius: 0 0 var(--radius-sm) 0;
  transition: top var(--tr-fast);
}
.skip-link:focus { top: 0; }

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 2px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--tr-base);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: var(--container-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 var(--sp-4);
}

.logo-link { display: flex; align-items: center; gap: var(--sp-2); text-decoration: none; }
.logo-link img { height: 48px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: var(--font-heading); font-size: var(--fs-sm); color: var(--gray-700); text-transform: uppercase; letter-spacing: 0.05em; }
.logo-text span { font-family: var(--font-heading); font-size: var(--fs-base); color: var(--red-500); font-weight: var(--fw-bold); }

.nav-main { display: flex; align-items: center; gap: var(--sp-5); }
.nav-main ul { display: flex; list-style: none; gap: var(--sp-5); padding: 0; margin: 0; }
.nav-main a {
  color: var(--gray-700); font-weight: var(--fw-medium); font-size: var(--fs-sm);
  text-transform: uppercase; letter-spacing: 0.04em; position: relative; padding: var(--sp-2) 0;
}
.nav-main a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--red-500); transition: width var(--tr-base);
}
.nav-main a:hover::after, .nav-main a.active::after { width: 100%; }
.nav-main a:hover, .nav-main a.active { color: var(--red-500); }

.header-cta { display: flex; align-items: center; gap: var(--sp-3); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-sm); border: none;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
  transition: all var(--tr-base); text-decoration: none; white-space: nowrap;
  min-height: 44px;
}
.btn-primary { background: var(--red-500); color: #fff; }
.btn-primary:hover { background: var(--red-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--orange-500); color: #fff; }
.btn-secondary:hover { background: var(--orange-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--gray-700); border: 2px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--red-500); color: var(--red-500); }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { color: var(--red-500); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; color: #fff; }
.btn-lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); }
.btn-sm { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); min-height: 36px; }
.btn:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 2px; }

/* Menú móvil */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--gray-700); border-radius: 2px; transition: all var(--tr-base); }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 99; overflow-y: auto; padding: var(--sp-5) var(--sp-4);
  flex-direction: column; gap: var(--sp-3);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
  color: var(--gray-700); font-weight: var(--fw-medium); font-size: var(--fs-lg);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--gray-50); color: var(--red-500); }
.mobile-nav .btn { margin-top: var(--sp-3); }

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 600px; display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(28,34,38,0.92), rgba(55,71,79,0.82)),
              url('../img/hero-taller.webp') center/cover no-repeat;
  color: #fff;
}
.hero-content { max-width: 600px; padding: var(--sp-8) 0; }
.hero-eyebrow {
  display: inline-block; background: var(--red-500); color: #fff; padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-sm); font-size: var(--fs-xs); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-4);
}
.hero h1 { font-size: var(--fs-4xl); color: #fff; margin-bottom: var(--sp-4); line-height: 1.1; }
.hero h1 span { color: var(--orange-400); }
.hero p { font-size: var(--fs-lg); color: var(--gray-200); margin-bottom: var(--sp-6); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-stats {
  display: flex; gap: var(--sp-7); margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-family: var(--font-heading); font-size: var(--fs-2xl); color: var(--orange-400); }
.hero-stat span { font-size: var(--fs-sm); color: var(--gray-300); text-transform: uppercase; }

/* ================= SECCIONES ================= */
.section-title {
  text-align: center; margin-bottom: var(--sp-6); position: relative;
}
.section-title h2 { color: var(--gray-700); }
.section-title::after {
  content: ''; display: block; width: 60px; height: 4px; background: var(--red-500);
  margin: var(--sp-3) auto 0; border-radius: 2px;
}
.section-title p { color: var(--color-text-muted); margin-top: var(--sp-3); max-width: 600px; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block; color: var(--red-500); font-size: var(--fs-sm); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--sp-2);
}

/* Tarjetas */
.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: var(--sp-5); transition: all var(--tr-base); position: relative;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); transform: translateY(-2px); }

.card-grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Icono circular */
.icon-circle {
  width: 56px; height: 56px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--red-100); color: var(--red-500); margin-bottom: var(--sp-3);
  flex-shrink: 0;
}
.icon-circle.orange { background: var(--orange-100); color: var(--orange-600); }
.icon-circle.gray { background: var(--gray-100); color: var(--gray-700); }
.icon-circle svg { width: 28px; height: 28px; }

/* Tarjeta de servicio */
.service-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--gray-200); transition: all var(--tr-base);
  display: flex; flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--red-400); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); color: var(--gray-700); }
.service-card p { font-size: var(--fs-sm); color: var(--color-text-muted); flex: 1; }
.service-card .price { font-family: var(--font-heading); font-size: var(--fs-xl); color: var(--red-500); font-weight: var(--fw-bold); margin: var(--sp-3) 0; }
.service-card .price small { font-size: var(--fs-xs); color: var(--color-text-muted); font-weight: var(--fw-regular); }
.service-card .btn { align-self: flex-start; }

/* Tabla de precios */
.price-table { width: 100%; border-collapse: collapse; margin: var(--sp-5) 0; }
.price-table th, .price-table td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--gray-200); }
.price-table th { background: var(--gray-700); color: #fff; font-family: var(--font-heading); text-transform: uppercase; font-size: var(--fs-sm); }
.price-table td:last-child { text-align: right; font-weight: var(--fw-bold); color: var(--gray-700); white-space: nowrap; }
.price-table tbody tr:hover { background: var(--gray-50); }
.price-table tbody tr:nth-child(even) { background: var(--gray-50); }
.price-table tbody tr:nth-child(even):hover { background: var(--gray-100); }

/* Badges */
.badge {
  display: inline-block; padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-full);
  font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-red { background: var(--red-100); color: var(--red-600); }
.badge-orange { background: var(--orange-100); color: var(--orange-700); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-green { background: var(--green-100); color: var(--green-600); }

/* ================= PASOS / PROCESO ================= */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); counter-reset: step; }
.process-step { text-align: center; position: relative; }
.process-step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto var(--sp-3);
  background: var(--gray-700); color: #fff; border-radius: var(--radius-full);
  font-family: var(--font-heading); font-size: var(--fs-xl); font-weight: var(--fw-bold);
  border: 4px solid #fff; box-shadow: var(--shadow-sm); z-index: 1; position: relative;
}
.process-step:not(:last-child)::after {
  content: ''; position: absolute; top: 28px; left: 50%; width: 100%; height: 3px;
  background: var(--gray-200); z-index: 0;
}

/* ================= POR QUÉ ELEGIRNOS ================= */
.feature-list { display: grid; gap: var(--sp-4); }
.feature-item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.feature-item .icon-circle { margin-bottom: 0; width: 48px; height: 48px; }
.feature-item .icon-circle svg { width: 24px; height: 24px; }
.feature-item h4 { margin-bottom: var(--sp-1); color: var(--gray-700); }
.feature-item p { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }

/* ================= MARCAS ================= */
.brands-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); }
.brand-chip {
  padding: var(--sp-2) var(--sp-5); background: #fff; border: 2px solid var(--gray-200);
  border-radius: var(--radius-full); font-family: var(--font-heading); font-weight: var(--fw-bold);
  color: var(--gray-600); text-transform: uppercase; font-size: var(--fs-sm);
  transition: all var(--tr-base);
}
.brand-chip:hover { border-color: var(--red-500); color: var(--red-500); transform: scale(1.05); }

/* ================= CITA BANNER ================= */
.cta-banner {
  background: linear-gradient(135deg, var(--gray-700), var(--gray-800));
  color: #fff; border-radius: var(--radius-lg); padding: var(--sp-7);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px;
  background: var(--red-500); opacity: 0.1; border-radius: 50%;
}
.cta-banner h2 { color: #fff; margin-bottom: var(--sp-2); }
.cta-banner p { color: var(--gray-300); margin: 0; }

/* ================= FOOTER ================= */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding: var(--sp-8) 0 var(--sp-5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-6); margin-bottom: var(--sp-6); }
.footer-brand img { height: 48px; margin-bottom: var(--sp-3); filter: brightness(0) invert(1); }
.footer-brand p { font-size: var(--fs-sm); color: var(--gray-400); }
.footer-col h4 { color: #fff; font-size: var(--fs-sm); margin-bottom: var(--sp-3); text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a { color: var(--gray-400); font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--orange-400); }
.footer-contact-item { display: flex; gap: var(--sp-2); align-items: flex-start; margin-bottom: var(--sp-2); font-size: var(--fs-sm); color: var(--gray-400); }
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--orange-400); }
.footer-bottom {
  border-top: 1px solid var(--gray-800); padding-top: var(--sp-5);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3);
  font-size: var(--fs-xs); color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-400); }

/* ================= BOTONES FLOTANTES ================= */
.floating-actions {
  position: fixed; bottom: 80px; right: var(--sp-4); z-index: 90;
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.fab {
  width: 56px; height: 56px; border-radius: var(--radius-full); border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: all var(--tr-base); color: #fff;
}
.fab:hover { transform: scale(1.08); }
.fab-whatsapp { background: #25d366; }
.fab-whatsapp svg { width: 28px; height: 28px; }
.fab-phone { background: var(--red-500); }
.fab-phone svg { width: 24px; height: 24px; }
.fab:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 2px; }

/* ================= CHATBOT ================= */
.chatbot-toggle {
  position: fixed; bottom: var(--sp-4); right: var(--sp-4); z-index: 95;
  width: 60px; height: 60px; border-radius: var(--radius-full);
  background: var(--gray-700); border: 3px solid var(--orange-500);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: all var(--tr-base); color: #fff;
}
.chatbot-toggle:hover { transform: scale(1.08); background: var(--gray-800); }
.chatbot-toggle svg { width: 28px; height: 28px; }
.chatbot-toggle .chat-badge {
  position: absolute; top: -4px; right: -4px; background: var(--red-500); color: #fff;
  font-size: 10px; font-weight: bold; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}

.chatbot-window {
  position: fixed; bottom: 80px; right: var(--sp-4); z-index: 96;
  width: 380px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
  border: 1px solid var(--gray-200);
}
.chatbot-window.open { display: flex; animation: chatOpen var(--tr-base); }
@keyframes chatOpen { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.chatbot-header {
  background: var(--gray-700); color: #fff; padding: var(--sp-3) var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-3);
}
.chatbot-header .icon-circle { width: 40px; height: 40px; background: var(--orange-500); margin: 0; }
.chatbot-header .icon-circle svg { width: 20px; height: 20px; color: #fff; }
.chatbot-header h3 { color: #fff; font-size: var(--fs-sm); margin: 0; }
.chatbot-header span { font-size: var(--fs-xs); color: var(--gray-300); }
.chatbot-header button {
  margin-left: auto; background: none; border: none; color: #fff; cursor: pointer;
  width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
}
.chatbot-header button:hover { background: rgba(255,255,255,0.15); }
.chatbot-header button svg { width: 18px; height: 18px; }

.chatbot-messages {
  flex: 1; overflow-y: auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--gray-50);
}
.chat-msg { max-width: 85%; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md); font-size: var(--fs-sm); line-height: 1.5; }
.chat-msg.bot { background: #fff; border: 1px solid var(--gray-200); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--red-500); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg.bot a { color: var(--red-500); font-weight: var(--fw-medium); }
.chat-msg.bot ul { padding-left: var(--sp-4); margin: var(--sp-2) 0; }
.chat-msg.bot ul li { margin-bottom: 2px; }
.chat-typing { align-self: flex-start; background: #fff; border: 1px solid var(--gray-200); padding: var(--sp-3); border-radius: var(--radius-md); border-bottom-left-radius: 4px; }
.chat-typing span { display: inline-block; width: 8px; height: 8px; background: var(--gray-400); border-radius: 50%; margin: 0 2px; animation: typing 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.chat-quick-replies { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); }
.chat-quick-btn {
  padding: var(--sp-2) var(--sp-3); background: var(--orange-100); color: var(--orange-700);
  border: 1px solid var(--orange-400); border-radius: var(--radius-full); font-size: var(--fs-xs);
  cursor: pointer; transition: all var(--tr-fast); font-family: var(--font-body); font-weight: var(--fw-medium);
}
.chat-quick-btn:hover { background: var(--orange-500); color: #fff; }
.chat-quick-btn:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 1px; }

.chatbot-input { display: flex; gap: var(--sp-2); padding: var(--sp-3); border-top: 1px solid var(--gray-200); background: #fff; }
.chatbot-input input {
  flex: 1; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: var(--fs-sm);
}
.chatbot-input input:focus { outline: 2px solid var(--orange-400); border-color: var(--orange-500); }
.chatbot-input button {
  background: var(--red-500); color: #fff; border: none; width: 40px; height: 40px;
  border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.chatbot-input button:hover { background: var(--red-600); }
.chatbot-input button svg { width: 20px; height: 20px; }
.chatbot-reset {
  background: none; border: none; color: var(--gray-500); font-size: var(--fs-xs); cursor: pointer;
  text-decoration: underline; padding: var(--sp-1) var(--sp-4) var(--sp-2); text-align: left;
}
.chatbot-reset:hover { color: var(--red-500); }

/* ================= FORMULARIO ================= */
.form-group { margin-bottom: var(--sp-4); }
.form-group label { display: block; font-weight: var(--fw-medium); margin-bottom: var(--sp-2); font-size: var(--fs-sm); color: var(--gray-700); }
.form-group .req { color: var(--red-500); }
.form-control {
  width: 100%; padding: var(--sp-3) var(--sp-4); border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: var(--fs-base);
  transition: border-color var(--tr-fast); background: #fff;
}
.form-control:focus { outline: none; border-color: var(--orange-500); }
.form-control.error { border-color: var(--red-500); }
.form-error { display: none; color: var(--red-600); font-size: var(--fs-xs); margin-top: var(--sp-1); }
.form-error.show { display: block; }
.form-success {
  display: none; background: var(--green-100); border: 1px solid var(--green-500); color: var(--green-600);
  padding: var(--sp-4); border-radius: var(--radius-md); margin-top: var(--sp-4);
}
.form-success.show { display: block; }
.form-hint { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: var(--sp-1); }
textarea.form-control { min-height: 120px; resize: vertical; }

.form-check { display: flex; align-items: flex-start; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.form-check input { margin-top: 4px; flex-shrink: 0; }
.form-check label { font-size: var(--fs-sm); margin: 0; font-weight: var(--fw-regular); color: var(--gray-600); }
.form-check a { color: var(--red-500); }

/* ================= COOKIES ================= */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--gray-800); color: var(--gray-100); padding: var(--sp-4) var(--sp-4);
  display: none; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { flex: 1; min-width: 280px; font-size: var(--fs-sm); margin: 0; color: var(--gray-300); }
.cookie-banner p a { color: var(--orange-400); }
.cookie-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.cookie-actions .btn-sm { min-height: 40px; }

/* Configurar cookies link */
.cookie-settings-link {
  background: none; border: none; color: var(--gray-500); font-size: var(--fs-xs);
  cursor: pointer; text-decoration: underline; padding: 0;
}
.cookie-settings-link:hover { color: var(--orange-400); }

/* ================= GALERÍA ================= */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-4); }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius-md); cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tr-slow); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: '🔍'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6); color: #fff; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  opacity: 0; transition: opacity var(--tr-base);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; padding: var(--sp-3); font-size: var(--fs-sm); }

/* Lightbox */
.lightbox {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300;
  background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; padding: var(--sp-4);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 24px; transition: background var(--tr-fast);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-close { top: var(--sp-4); right: var(--sp-4); }
.lightbox-prev { left: var(--sp-4); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--sp-4); top: 50%; transform: translateY(-50%); }

/* ================= FAQ ================= */
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-md); margin-bottom: var(--sp-3); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: var(--sp-4) var(--sp-5); background: #fff; border: none;
  font-family: var(--font-heading); font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--gray-700);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  text-transform: uppercase; letter-spacing: 0.02em;
}
.faq-question:hover { background: var(--gray-50); }
.faq-question .faq-icon { transition: transform var(--tr-base); flex-shrink: 0; font-size: 20px; color: var(--red-500); }
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--tr-slow); }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 var(--sp-5) var(--sp-4); color: var(--gray-600); font-size: var(--fs-sm); line-height: 1.6; }

/* ================= BREADCRUMBS ================= */
.breadcrumbs { padding: var(--sp-3) 0; font-size: var(--fs-sm); color: var(--color-text-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: var(--sp-2); }
.breadcrumbs li::after { content: '/'; color: var(--gray-300); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--red-500); }
.breadcrumbs li[aria-current] { color: var(--gray-700); font-weight: var(--fw-medium); }

/* ================= PAGE HEADER ================= */
.page-header {
  background: linear-gradient(135deg, var(--gray-700), var(--gray-800));
  color: #fff; padding: var(--sp-7) 0;
}
.page-header h1 { color: #fff; margin-bottom: var(--sp-2); }
.page-header p { color: var(--gray-300); font-size: var(--fs-lg); margin: 0; }

/* ================= COTIZADOR ================= */
.cotizador-box {
  background: #fff; border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: var(--sp-6); margin: var(--sp-5) 0;
}
.cotizador-step { margin-bottom: var(--sp-4); }
.cotizador-step label { display: block; font-weight: var(--fw-bold); margin-bottom: var(--sp-2); color: var(--gray-700); }
.cotizador-options { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cotizador-option {
  padding: var(--sp-3) var(--sp-4); border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  cursor: pointer; font-size: var(--fs-sm); font-weight: var(--fw-medium); transition: all var(--tr-fast);
  background: #fff; color: var(--gray-600);
}
.cotizador-option:hover { border-color: var(--gray-400); }
.cotizador-option.selected { border-color: var(--red-500); background: var(--red-100); color: var(--red-600); }
.cotizador-result {
  background: var(--gray-50); border-radius: var(--radius-md); padding: var(--sp-5); margin-top: var(--sp-4);
  display: none;
}
.cotizador-result.show { display: block; }
.cotizador-result h4 { color: var(--gray-700); margin-bottom: var(--sp-2); }
.cotizador-result .price-estimate { font-family: var(--font-heading); font-size: var(--fs-2xl); color: var(--red-500); font-weight: var(--fw-bold); }
.cotizador-disclaimer { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: var(--sp-3); padding: var(--sp-3); background: var(--yellow-100); border-radius: var(--radius-sm); border-left: 4px solid var(--yellow-700); }

/* ================= BLOG ================= */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--sp-5); }
.blog-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gray-200); transition: all var(--tr-base); display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.blog-card .blog-date { font-size: var(--fs-xs); color: var(--color-text-muted); margin-bottom: var(--sp-2); }
.blog-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.blog-card h3 a { color: var(--gray-700); }
.blog-card h3 a:hover { color: var(--red-500); }
.blog-card p { font-size: var(--fs-sm); color: var(--color-text-muted); flex: 1; }
.blog-card .btn { align-self: flex-start; margin-top: var(--sp-3); }

.blog-article { max-width: 760px; margin: 0 auto; }
.blog-article h1 { margin-bottom: var(--sp-3); }
.blog-article .article-meta { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-5); display: flex; gap: var(--sp-3); align-items: center; }
.blog-article .article-hero { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: var(--sp-5); }
.blog-article h2 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.blog-article h3 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.blog-article p { margin-bottom: var(--sp-4); }
.blog-article ul, .blog-article ol { margin-bottom: var(--sp-4); }
.blog-article li { margin-bottom: var(--sp-2); }
.blog-article blockquote {
  border-left: 4px solid var(--red-500); padding: var(--sp-3) var(--sp-5);
  background: var(--gray-50); margin: var(--sp-5) 0; font-style: italic; color: var(--gray-600);
}

/* ================= NOSOTROS ================= */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }
.about-hero img { border-radius: var(--radius-lg); width: 100%; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }

/* ================= INFO CARDS ================= */
.info-card {
  display: flex; gap: var(--sp-4); padding: var(--sp-5); background: #fff;
  border: 1px solid var(--gray-200); border-radius: var(--radius-md); align-items: flex-start;
}
.info-card:hover { box-shadow: var(--shadow-sm); }
.info-card .icon-circle { margin: 0; }
.info-card h4 { margin-bottom: var(--sp-1); }
.info-card p { margin: 0; font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ================= LEGAL ================= */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); color: var(--gray-700); }
.legal-content h3 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.legal-content p, .legal-content li { font-size: var(--fs-sm); line-height: 1.7; margin-bottom: var(--sp-3); color: var(--gray-600); }
.legal-content ul, .legal-content ol { margin-bottom: var(--sp-4); }
.legal-content .legal-box { background: var(--gray-50); border-left: 4px solid var(--orange-500); padding: var(--sp-4); margin: var(--sp-4) 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.legal-updated { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: var(--sp-5); }

/* ================= 404 ================= */
.error-404 { text-align: center; padding: var(--sp-9) 0; }
.error-404 .error-code { font-family: var(--font-heading); font-size: 8rem; color: var(--red-500); line-height: 1; }
.error-404 h1 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.error-404 p { font-size: var(--fs-lg); color: var(--color-text-muted); margin-bottom: var(--sp-5); }

/* ================= ANIMACIONES ================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(30px); }
.animate-on-scroll.visible { animation: fadeInUp var(--tr-slow) forwards; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step:not(:last-child)::after { display: none; }
  .about-hero { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav-main, .header-cta .btn { display: none; }
  .menu-toggle { display: flex; }
  .hero { min-height: 500px; }
  .hero h1 { font-size: var(--fs-3xl); }
  .hero-stats { flex-wrap: wrap; gap: var(--sp-4); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: var(--sp-6) 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .chatbot-window { bottom: 72px; right: 8px; }
  .floating-actions { bottom: 72px; right: 8px; }
  .price-table { font-size: var(--fs-sm); }
  .price-table th, .price-table td { padding: var(--sp-2); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .process-steps { grid-template-columns: 1fr; }
  .blog-article .article-hero { height: 240px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Print */
@media print {
  .site-header, .site-footer, .chatbot-toggle, .chatbot-window, .floating-actions, .cookie-banner, .menu-toggle, .mobile-nav { display: none !important; }
}
