/* site.css — páginas internas del sitio público (ciudad/servicio/blog/hub).
   Sistema de diseño y animaciones PORTADOS del home premium V4
   (CEO-Intelligence Landing.html). SEO-safe: el contenido es estático por
   página; este CSS + site.js solo elevan presentación y microinteracciones.
   Se publica en /home/css/site.css. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/home/fonts/inter-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/home/fonts/inter-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/home/fonts/space-grotesk-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/home/fonts/space-grotesk-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/home/fonts/jetbrains-mono-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0F172A;        /* texto/estructura primaria */
  --body: #475569;       /* texto cuerpo */
  --muted: #64748B;      /* texto terciario */
  --faint: #94A3B8;      /* captions, mono meta, footer */
  --line: #E5E7EB;       /* bordes */
  --line-soft: #EEF0F2;  /* bordes suaves de tarjeta */
  --bg: #FFFFFF;
  --surface: #FCFCFD;    /* superficie de tarjeta */
  --surface-2: #FAFAFA;
  --ink-deep: #0B0E16;   /* fondos oscuros */
  --oro: #C69A24;        /* acento dorado */
  --oro-scuro: #8F6E15;
  --oro-soft: rgba(198,154,36,.22);
  --viola: #7C5CFF;      /* señal IA */
  --viola-deep: #5B21B6;
  --blu: #2A6FDB;
  --verde: #3D8B5E;
  --radius: 16px;
  --radius-sm: 13px;
  --radius-btn: 12px;
  --sh-card: 0 16px 40px rgba(15,23,42,.09);
  --sh-dd: 0 18px 44px rgba(15,23,42,.12);
  --sh-cta: 0 6px 18px rgba(15,23,42,.14);
  --ease: cubic-bezier(.16,1,.3,1);
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans Arabic", "Geeza Pro";
  --sans: 'Inter', -apple-system, var(--cjk), sans-serif;
  --display: 'Inter', var(--cjk), sans-serif;
  --grotesk: 'Space Grotesk', 'Inter', var(--cjk), sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, var(--cjk), monospace;
}
@property --ci-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--body); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--oro-soft); }
a { color: inherit; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 18px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--viola); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Keyframes (portados del home) ─────────────────────────────────────────── */
@keyframes ci-reveal { from { opacity: 0; transform: translateY(20px); filter: blur(7px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes ci-blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes ci-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ci-spin-border { to { --ci-ang: 360deg; } }
@keyframes ci-flowx { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* ── Scroll-reveal (IntersectionObserver en site.js) ───────────────────────── */
[data-reveal] { opacity: 0; }
[data-reveal][data-shown] { animation: ci-reveal .95s var(--ease) forwards; }

/* ── Header (sticky, frosted al hacer scroll) ──────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.site-header.scrolled { background: rgba(255,255,255,.86); border-bottom-color: #EFEFEF; box-shadow: 0 1px 0 rgba(15,23,42,.03); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15,23,42,.05); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: -.05em; }
.brand-mark span { color: #FA1E00; }
.brand-name { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.02em; color: var(--ink); line-height: 1.05; }
.brand-sub { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; }
.site-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; gap: 2px; align-items: center; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 14px; font-weight: 500; border-radius: 8px; transition: color .2s ease; }
.nav-item > a:hover { color: var(--oro-scuro); }
.btn-login { border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px !important; background: var(--bg); transition: transform .25s var(--ease), box-shadow .25s ease, border-color .2s ease; }
.btn-login:hover { transform: translateY(-1px); border-color: #CBD2DA; box-shadow: 0 8px 20px rgba(15,23,42,.08); }

/* Dropdowns: hover-reveal como tarjeta flotante (home) */
.nav-dd { position: relative; }
.nav-dd > summary { list-style: none; cursor: pointer; padding: 8px 12px; font-family: var(--display); font-size: 14px; font-weight: 500; color: var(--ink); border-radius: 8px; display: flex; align-items: center; gap: 6px; transition: color .2s ease; }
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg) translateY(-1px); transition: transform .25s var(--ease); }
.nav-dd > summary:hover { color: var(--oro-scuro); }
.nav-menu { list-style: none; position: absolute; top: calc(100% + 12px); left: 0; min-width: 244px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 14px; padding: 8px; box-shadow: var(--sh-dd); z-index: 120; }
.nav-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-menu li a { display: block; padding: 11px 14px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 14.5px; font-weight: 500; border-radius: 9px; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.nav-menu li a:hover { background: var(--surface-2); color: var(--oro-scuro); }
@media (min-width: 861px) {
  .nav-dd > .nav-menu { opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; display: block; }
  .nav-dd:hover > .nav-menu, .nav-dd:focus-within > .nav-menu, .nav-dd[open] > .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-dd:hover > summary::after, .nav-dd[open] > summary::after { transform: rotate(-135deg) translateY(1px); }
}

/* Pin de ciudad + selector de idioma (nav) */
.nav-tools { display: flex; align-items: center; gap: 6px; }
.nav-tool { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 9px; color: var(--muted); transition: background .2s ease, color .2s ease; }
.nav-tool:hover { background: var(--surface-2); color: var(--ink); }
.nav-tool svg { width: 15px; height: 15px; flex: none; }
.nav-tool select { appearance: none; -webkit-appearance: none; border: none; outline: none; background: transparent; font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 0 2px; }
.nav-city .pin { color: var(--oro); }
.nav-fs { border: none; background: transparent; cursor: pointer; }
.nav-burger { display: none; border: none; background: transparent; color: var(--ink); cursor: pointer; padding: 6px; border-radius: 8px; transition: background .2s ease; }
.nav-burger svg { width: 24px; height: 24px; display: block; }
.nav-burger:hover { background: var(--surface-2); }

/* ── Breadcrumbs ───────────────────────────────────────────────────────────── */
.breadcrumbs { padding: 26px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.breadcrumbs li + li::before { content: "/"; color: var(--faint); margin-right: 8px; }
.breadcrumbs a { color: var(--faint); text-decoration: none; transition: color .2s ease; }
.breadcrumbs a:hover { color: var(--oro-scuro); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ── Hero de página (con dot-grid + aurora sutil) ──────────────────────────── */
.page-hero { position: relative; padding: 56px 0 30px; }
.page-hero::before { content: ""; position: absolute; inset: -40px -40px auto auto; width: 620px; height: 420px; max-width: 90vw; background: radial-gradient(ellipse at center, rgba(124,92,255,.10), rgba(124,92,255,0) 70%); z-index: -2; pointer-events: none; }
.page-hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 380px; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(15,23,42,.07) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 60% 60% at 78% 30%, #000, transparent 62%); mask-image: radial-gradient(ellipse 60% 60% at 78% 30%, #000, transparent 62%); opacity: .5; }
.pill { display: inline-flex; align-items: center; gap: 10px; }
.pill .rule { width: 22px; height: 1px; background: #D1D5DB; }
.pill .tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); animation: ci-blink 2.4s ease-in-out infinite; }
.pill .tag span:last-child { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--body); }
h1 { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: clamp(38px, 6vw, 68px); line-height: 1.06; letter-spacing: -.034em; margin: 22px 0 18px; max-width: 20ch; }
h1 .accent { color: var(--oro); }
.lead { font-family: var(--display); font-size: clamp(17px, 1.6vw, 20px); font-weight: 400; color: var(--body); line-height: 1.6; max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; text-decoration: none; padding: 13px 24px; border-radius: var(--radius-btn); transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, border-color .2s ease; }
.hero-cta .primary { color: #fff; background: var(--ink); box-shadow: var(--sh-cta); }
.hero-cta .primary:hover { transform: translateY(-2px); background: #1A2434; box-shadow: 0 12px 28px rgba(15,23,42,.22); }
.hero-cta .ghost { color: var(--ink); background: var(--bg); border: 1px solid #E2E5EA; }
.hero-cta .ghost:hover { transform: translateY(-2px); border-color: #CBD2DA; background: #FAFBFC; box-shadow: 0 8px 20px rgba(15,23,42,.08); }

/* ── Secciones de contenido ────────────────────────────────────────────────── */
main { padding-bottom: 40px; }
.section { padding: 44px 0 6px; max-width: 800px; }
.sec-kicker { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--oro); margin: 0 0 16px; display: flex; align-items: center; gap: 9px; }
.sec-kicker .num { opacity: .5; }
.sec-kicker .arw { color: var(--oro); }
.section h2 { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 16px; scroll-margin-top: 90px; }
.section h3 { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -.02em; margin: 26px 0 8px; }
.section p { margin-bottom: 15px; max-width: 68ch; }
.section ul { margin: 10px 0 18px; list-style: none; display: grid; gap: 10px; }
.section ul li { padding-left: 28px; position: relative; }
.section ul li::before { content: "→"; position: absolute; left: 0; top: 1px; color: var(--oro); font-weight: 700; }

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq { padding: 48px 0 10px; max-width: 800px; }
.faq > h2 { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.025em; margin-bottom: 20px; }
.faq details { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 12px; padding: 0 22px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: #D6DBE0; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; color: var(--ink); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--oro); font-family: var(--mono); font-size: 20px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--body); max-width: none; }

/* ── Tarjetas (blog / grids) ───────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 900px; margin-top: 8px; }
.card { display: block; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); padding: 26px 24px; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-card); border-color: #D6DBE0; }
.card h3 { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 18px; line-height: 1.25; letter-spacing: -.015em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; }
.card::after { content: "→"; display: inline-block; margin-top: 14px; color: var(--oro); font-weight: 700; transition: transform .25s var(--ease); }
.card:hover::after { transform: translateX(4px); }

/* ── Related ───────────────────────────────────────────────────────────────── */
.related { padding: 44px 0 8px; }
.related > h2 { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; max-width: 900px; }
.related-grid a { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s ease, border-color .2s ease; }
.related-grid a::after { content: "→"; color: var(--oro); transition: transform .25s var(--ease); }
.related-grid a:hover { transform: translateY(-4px); box-shadow: var(--sh-card); border-color: #D6DBE0; }
.related-grid a:hover::after { transform: translateX(4px); }

/* ── Territorio por ciudad (Fase 2: sectores + casos de uso) ───────────────── */
.terr { padding: 48px 0 6px; max-width: 900px; }
.terr-intro { font-family: var(--display); font-size: clamp(17px, 1.6vw, 20px); color: var(--body); line-height: 1.6; max-width: 62ch; margin-bottom: 26px; }
.terr-h { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: clamp(22px, 2.8vw, 30px); letter-spacing: -.022em; margin: 40px 0 18px; }
.terr-cards, .terr-ucs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.terr-card, .terr-uc { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); padding: 24px 22px; transition: transform .25s var(--ease), box-shadow .25s ease, border-color .2s ease; }
.terr-card:hover, .terr-uc:hover { transform: translateY(-4px); box-shadow: var(--sh-card); border-color: #D6DBE0; }
.terr-num { display: block; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--oro); margin-bottom: 14px; }
.terr-card h3, .terr-uc h3 { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 17.5px; line-height: 1.25; letter-spacing: -.015em; margin-bottom: 9px; }
.terr-card p, .terr-uc p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; max-width: none; }
.terr-faq { margin-top: 4px; }
[dir="rtl"] .terr-num { letter-spacing: normal; }

/* ── CTA (panel oscuro con borde cónico animado) ───────────────────────────── */
.cta { position: relative; margin: 56px 0 34px; border-radius: 20px; padding: clamp(34px, 5vw, 58px); color: #fff; background:
    linear-gradient(var(--ink-deep), var(--ink-deep)) padding-box,
    conic-gradient(from var(--ci-ang), var(--viola), var(--blu), var(--verde), var(--blu), var(--viola)) border-box;
  border: 1px solid transparent; animation: ci-spin-border 9s linear infinite; box-shadow: 0 20px 48px rgba(15,23,42,.18); overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 80% 10%, rgba(124,92,255,.22), transparent 55%); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.8vw, 44px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.cta p { color: #C9CDD4; max-width: 56ch; margin-bottom: 26px; font-size: 16px; }
.cta a { display: inline-flex; align-items: center; gap: 8px; background: var(--oro); color: var(--ink-deep); font-family: var(--display); font-weight: 700; text-decoration: none; border-radius: var(--radius-btn); padding: 14px 30px; transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease; }
.cta a:hover { transform: translateY(-2px); background: #D8AC33; box-shadow: 0 12px 30px rgba(198,154,36,.34); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 64px 0 40px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 14.5px; transition: color .2s ease; }
.footer-grid a:hover { color: var(--oro-scuro); }
.footer-about p { font-size: 14.5px; color: var(--muted); max-width: 34ch; margin-top: 14px; line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.footer-bottom .status { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); animation: ci-blink 2.4s ease-in-out infinite; }

/* ── Reduced motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; }
  [data-reveal][data-shown] { animation: none !important; }
  .pill .dot, .footer-bottom .status .dot { animation: none !important; }
  .cta { animation: none !important; }
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
/* Móvil: header compacto de una fila (siempre arriba); los enlaces del nav
   pasan a un panel desplegable bajo el header, controlado por el hamburger. */
@media (max-width: 860px) {
  .site-header .container { height: 60px; gap: 8px; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 44px rgba(15,23,42,.10); padding: 6px 24px 16px; display: none; max-height: calc(100vh - 60px); overflow-y: auto; }
  .site-header.nav-open .site-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; gap: 2px; }
  .nav-item > a, .nav-dd > summary { padding: 12px 8px; font-size: 16px; }
  .nav-menu { position: static; box-shadow: none; border: none; padding: 2px 0 8px 16px; margin-top: 0; min-width: 0; opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .nav-dd > .nav-menu { display: none; }
  .nav-dd[open] > .nav-menu { display: block; }
  .nav-tools { margin-left: auto; }
  .nav-fs { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  h1 { font-size: clamp(30px, 8.5vw, 44px); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-tool.nav-lang select { display: none; }
  .nav-city span:last-child { font-size: 13px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 16px; }
}

/* ── RTL (árabe) ───────────────────────────────────────────────────────────── */
[dir="rtl"] .section ul li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .section ul li::before { left: auto; right: 0; content: "←"; }
[dir="rtl"] .related-grid a::after, [dir="rtl"] .card::after { content: "←"; }
[dir="rtl"] .card:hover::after, [dir="rtl"] .related-grid a:hover::after { transform: translateX(-4px); }
[dir="rtl"] .nav-menu { left: auto; right: 0; }
[dir="rtl"] .skip-link { left: auto; right: 0; border-radius: 0 0 0 8px; }
[dir="rtl"] .sec-kicker .arw { transform: scaleX(-1); }
[dir="rtl"] .brand-sub, [dir="rtl"] .kicker, [dir="rtl"] .breadcrumbs ol, [dir="rtl"] .sec-kicker,
[dir="rtl"] .related > h2, [dir="rtl"] .footer-grid h2, [dir="rtl"] .footer-bottom, [dir="rtl"] .pill .tag span:last-child { letter-spacing: normal; }
[dir="rtl"] .section p, [dir="rtl"] .lead, [dir="rtl"] .section, [dir="rtl"] .faq { text-align: right; }
