/* ==========================================================================
   LBSM — Los Buenos Somos Más · Design Tokens
   Importar Jost + DM Sans en el <head>:
   <link href="https://fonts.googleapis.com/css2?family=Jost:wght@400;500;700;900&family=DM+Sans:opsz,wght@9..40,400;9..40,500&display=swap" rel="stylesheet">
   Tema por defecto: <html data-theme="light">
   ========================================================================== */

:root {
  /* Colores de marca (fijos en ambos temas) */
  --orange: #FE5800;
  --yellow: #FACD01;
  --blue:   #2BA3D6;

  /* Degradados de marca */
  --grad-brand: linear-gradient(135deg, #FF6B00 0%, #FF9500 40%, #FFB800 100%);
  --grad-pill:  linear-gradient(90deg, #FF6B00, #FFB800);

  /* Sombra dura (firma neo-brutalista) */
  --shadow-hard: #1A1A1A;

  /* Tipografía */
  --font-h: 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --font-b: 'DM Sans', sans-serif;

  /* Layout (ritmo tipo unox1: limpio, mucho aire) */
  --maxw: 1140px;
  --pad-x: 48px;
  --section-y: 96px;      /* separación vertical entre secciones */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  /* Textura de rejilla sutil para el hero (referencia unox1) */
  --grid: rgba(0,0,0,0.045);
}

/* ---------- TEMA CLARO (por defecto) ---------- */
[data-theme="light"] {
  --bg:        #F2EFE8;   /* crema cálido */
  --surface:   #FDFCF9;
  --surface-2: #FFF8F2;
  --border:    rgba(0,0,0,0.09);
  --border-md: rgba(0,0,0,0.18);
  --text:      #111111;
  --text-2:    #666666;
  --text-3:    #AAAAAA;
  --nav-bg:    rgba(242,239,232,0.92);
  --shadow-btn:  #1A1A1A;
  --hero-em:   var(--orange);   /* énfasis en títulos */
  --sec-em:    var(--orange);
  --card-shadow:   0 2px 16px rgba(0,0,0,0.06);
  --card-shadow-h: 0 4px 24px rgba(0,0,0,0.10);
  --feat-shadow:   0 4px 28px rgba(254,88,0,0.14);
}

/* ---------- TEMA OSCURO ---------- */
[data-theme="dark"] {
  --bg:        #080808;
  --surface:   #111111;
  --surface-2: #181818;
  --border:    rgba(255,255,255,0.07);
  --border-md: rgba(255,255,255,0.15);
  --text:      #FFFFFF;
  --text-2:    #9A9A9A;
  --text-3:    #484848;
  --nav-bg:    rgba(8,8,8,0.90);
  --shadow-btn:  #111111;
  --hero-em:   var(--yellow);   /* énfasis en títulos */
  --sec-em:    var(--yellow);
  --card-shadow:   none;
  --card-shadow-h: none;
  --feat-shadow:   none;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}

/* ==========================================================================
   Tipografía
   ========================================================================== */
h1, h2, h3, .h {
  font-family: var(--font-h);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
}
h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -1.5px; }
h2 { font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -0.8px; }
em { font-style: normal; color: var(--hero-em); }   /* énfasis de marca */

.eyebrow {
  font-family: var(--font-h);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--orange);
}
.stat {
  font-family: var(--font-h); font-weight: 900;
  font-size: 36px; color: var(--yellow);
  letter-spacing: -2px; line-height: 1;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.25);
}

/* ==========================================================================
   Componentes
   ========================================================================== */

/* Botón primario (CTA) — naranja, texto amarillo, sombra dura */
.btn-pri {
  display: inline-block; text-decoration: none; text-align: center; cursor: pointer;
  font-family: var(--font-h); font-weight: 900;
  font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase;
  padding: 14px 20px; border-radius: var(--radius-sm);
  background: var(--orange); color: var(--yellow);
  border: 2px solid var(--shadow-btn);
  box-shadow: 4px 4px 0 var(--shadow-btn);
  transition: all .14s ease;
}
.btn-pri:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--shadow-btn); }

/* Botón secundario */
.btn-sec {
  display: inline-block; text-decoration: none; text-align: center; cursor: pointer;
  font-family: var(--font-h); font-weight: 900;
  font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase;
  padding: 14px 20px; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border-md);
  transition: all .14s ease;
}
.btn-sec:hover { border-color: var(--orange); color: var(--orange); }

/* Pill / badge */
.pill {
  display: inline-block;
  font-family: var(--font-h); font-weight: 900;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 18px; border-radius: var(--radius-pill);
  border: 2px solid var(--shadow-btn); color: var(--text);
}
.pill--brand { background: var(--grad-pill); color: #000; border: none; }

/* Tarjeta */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--card-shadow-h); }

/* Header/banner con degradado de marca */
.brand-banner { background: var(--grad-brand); color: #000; }

/* Nav sticky */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 10px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* Contenedor */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ==========================================================================
   Estructura / ritmo (referencia unox1)
   ========================================================================== */

/* Sección con mucho aire. Abrir siempre con .eyebrow + título editorial. */
.section { padding: var(--section-y) 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--text-2); font-size: 16px; margin-top: 14px; }

/* Rejilla sutil de fondo para el hero */
.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Tarjeta numerada (servicios / proceso) */
.card-num { position: relative; padding: 32px 28px; }
.card-num .num {
  font-family: var(--font-h); font-weight: 900;
  font-size: 14px; letter-spacing: 1px; color: var(--orange);
  display: block; margin-bottom: 18px;
}
.card-num h3 {
  font-family: var(--font-h); font-weight: 900; text-transform: uppercase;
  font-size: 20px; letter-spacing: -0.3px; margin-bottom: 10px; color: var(--text);
}
.card-num p { color: var(--text-2); font-size: 15px; }

/* Paso de proceso numerado (1 → 4) */
.step { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--border); }
.step .step-n {
  font-family: var(--font-h); font-weight: 900; font-size: 28px;
  color: var(--orange); line-height: 1; flex-shrink: 0; width: 56px;
}

/* Grid responsivo para tarjetas */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

@media (max-width: 720px) {
  :root { --pad-x: 24px; --section-y: 64px; }
}
