/* Base del sitio (rediseño nov 2026): colores, tipografía, botones, menú y pie.
   Una sola familia (Archivo variable): angosta y gruesa para títulos, normal para texto.
   Un solo color de acento (rojo de la marca) sobre negro cálido. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #121110;
  --surface: #1a1816;
  --surface-2: #23201d;
  --line: rgba(242, 238, 232, 0.10);
  --line-strong: rgba(242, 238, 232, 0.22);
  --text: #f2eee8;
  --muted: #a8a197;
  --faint: #6f6a63;
  --accent: #c8312b;
  --accent-hover: #dd4038;
  --font: 'Archivo', system-ui, sans-serif;
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --radius-sm: 4px;
  --radius: 10px;
  --z-nav: 100;
  --z-drawer: 300;
  --z-burger: 310;
  /* Equivalencias para estilos en línea del diseño anterior */
  --ash: var(--muted); --white: var(--text); --cyan: var(--accent-hover); --cyan-light: var(--accent-hover);
  --red: var(--accent); --red-light: var(--accent-hover); --accent-light: var(--accent-hover);
  --black: var(--bg); --dark: var(--bg); --charcoal: var(--surface); --mid: var(--surface-2); --smoke: var(--faint);
  --serif: var(--font); --sans: var(--font);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }

/* ── Tipografía ── */
.display, .h2, .h3 {
  font-stretch: 66%;
  font-weight: 760;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.005em;
  word-spacing: 0.1em;
  text-wrap: balance;
}
.display { font-size: clamp(3.25rem, 9vw, 7.5rem); font-stretch: 62%; }
.h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 1.25rem; }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.05; }
.kicker { font-size: 0.95rem; font-weight: 600; color: var(--accent-hover); margin-bottom: 0.9rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; text-wrap: pretty; }
p { text-wrap: pretty; }
.muted { color: var(--muted); }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.5rem;
  font: inherit; font-stretch: 85%; font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-hover); }
.btn-line { border-color: var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--text);
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.3em; text-decoration-thickness: 2px;
  transition: color 0.2s;
}
.link-arrow:hover { color: var(--accent-hover); }

/* ── Navegación ── */
#navbar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  display: flex; align-items: center; gap: 2rem;
  padding: 0.85rem var(--gutter);
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled { background: rgba(18, 17, 16, 0.94); backdrop-filter: blur(12px); border-color: var(--line); }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin-left: auto; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-phone { font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.nav-phone:hover { color: var(--accent-hover); }
.lang-switch { font-weight: 600; font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.lang-switch:hover { color: var(--text); }
.nav-cta { min-height: 42px; }

.hamburger {
  display: none; position: fixed; top: 0.7rem; right: 0.8rem; z-index: var(--z-burger);
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
}
.hamburger .bar { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--text); transition: transform 0.3s, opacity 0.2s, top 0.3s; }
.hamburger .bar:nth-child(1) { top: 14px; }
.hamburger .bar:nth-child(2) { top: 21px; }
.hamburger .bar:nth-child(3) { top: 28px; }
.hamburger.is-open .bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.is-open .bar:nth-child(2) { opacity: 0; }
.hamburger.is-open .bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.mobile-overlay { position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1); background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; z-index: var(--z-drawer);
  width: min(86vw, 360px); height: 100dvh; overflow-y: auto;
  background: var(--surface); border-left: 1px solid var(--line);
  padding: 5rem 1.75rem 2rem; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-drawer.open { transform: none; }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.15rem; font-weight: 500; }
.drawer-links .btn { margin-top: 1.5rem; border-bottom: 0; }


/* ── Pie ── */
footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-logo img { height: 46px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; list-style: none; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--muted); display: inline-flex; padding: 0.25rem; }
.footer-social a:hover { color: var(--text); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.9rem; color: var(--faint); }

/* Insignia de socio de la Cámara de Comercio */
.footer-member {
  display: inline-flex; align-items: center; gap: 0.85rem; margin-top: 2rem; padding: 0.55rem 1.1rem 0.55rem 0.55rem;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color 0.2s;
}
.footer-member:hover { border-color: var(--line-strong); }
.footer-member-logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: #fff; flex-shrink: 0; }
.footer-member-logo img { width: 44px; height: 44px; }
.footer-member-text { display: flex; flex-direction: column; font-weight: 600; line-height: 1.25; }
.footer-member-text small { font-size: 0.82rem; font-weight: 500; color: var(--muted); }

/* ── Aparición al hacer scroll ── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

.nowrap { white-space: nowrap; }

@media (max-width: 1100px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
}
