/* Fuentes de marca ya alojadas en redhustle.com.
   Si la carpeta difiere, ajustar SOLO estas rutas. */
@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/bebas.woff2") format("woff2"), url("/assets/fonts/bebas.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto.woff2") format("woff2"), url("/assets/fonts/roboto.woff") format("woff");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ============================================================
   Red Hustle · Landings institucionales /red-hustle/
   Estética basada en redhustle.com (rojo #da0000, fondo #f4f4f4)
   Sin dependencias externas. Fuentes del sistema.
   ============================================================ */

:root {
  --rojo: #da0000;
  --rojo-oscuro: #a80000;
  --tinta: #17181a;
  --gris: #54575c;
  --gris-suave: #8a8d92;
  --fondo: #f4f4f4;
  --papel: #ffffff;
  --borde: #e4e2df;
  --radio: 0px;
  --fuente: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--rojo); text-decoration: none; }
a:hover { color: var(--rojo-oscuro); text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--rojo);
  outline-offset: 2px;
  border-radius: 4px;
}

img, svg { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.rh-header {
  background: var(--papel);
  border-bottom: 1px solid var(--borde);
}
.rh-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rh-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--tinta);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.rh-brand:hover { text-decoration: none; color: var(--tinta); }
.rh-brand img { width: 38px; height: 38px; display: block; }
.rh-brand span { line-height: 1.1; display: inline-block; }
.rh-brand span small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gris-suave);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}
.rh-header__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gris);
  white-space: nowrap;
}

/* ---------- Nav secundaria ---------- */
.rh-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}
.rh-nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rh-nav__inner::-webkit-scrollbar { display: none; }
.rh-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
  padding: 14px 1px 12px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.rh-nav a:hover { text-decoration: none; color: var(--rojo); }
.rh-nav a[aria-current="page"] {
  color: var(--rojo);
  border-bottom-color: var(--rojo);
}
@media (max-width: 720px) {
  .rh-nav { position: sticky; }
  .rh-nav::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 1px;
    width: 44px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.96) 78%);
  }
}

/* ---------- Breadcrumbs ---------- */
.rh-migas {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 20px 0;
  font-size: 13px;
  color: var(--gris-suave);
}
.rh-migas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rh-migas li + li::before { content: "›"; margin-right: 6px; color: var(--gris-suave); }
.rh-migas a { color: var(--gris); }
.rh-migas [aria-current="page"] { color: var(--gris-suave); }

/* ---------- Hero documental ---------- */
.rh-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 20px 8px;
}
.rh-kicker {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rojo);
  margin: 0 0 12px;
}
.rh-hero h1 {
  font-family: "Bebas Neue", "Roboto", system-ui, sans-serif;
  font-size: clamp(40px, 7vw, 62px);
  line-height: 0.98;
  letter-spacing: 0.012em;
  font-weight: 400;
  margin: 0 0 16px;
}
.rh-hero .rh-bajada {
  font-size: 19px;
  line-height: 1.6;
  color: var(--gris);
  margin: 0 0 18px;
  max-width: 62ch;
}
.rh-meta-doc {
  font-size: 13px;
  color: var(--gris-suave);
  border-top: 1px solid var(--borde);
  padding-top: 12px;
  margin-top: 6px;
}

/* ---------- Ficha de datos: tabla de especificaciones ---------- */
.rh-ficha {
  max-width: 820px;
  margin: 30px auto 0;
  padding: 0 20px;
}
.rh-ficha table {
  width: 100%;
  border-collapse: collapse;
  background: var(--papel);
  border-top: 3px solid var(--rojo);
  border-bottom: 1px solid var(--borde);
}
.rh-ficha caption {
  caption-side: top;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tinta);
  padding: 0 0 10px;
}
.rh-ficha th,
.rh-ficha td {
  text-align: left;
  vertical-align: top;
  padding: 11px 16px;
  border-bottom: 1px solid var(--borde);
  font-size: 15px;
  line-height: 1.5;
}
.rh-ficha tr:last-child th,
.rh-ficha tr:last-child td { border-bottom: 0; }
.rh-ficha th {
  width: 32%;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris-suave);
  padding-top: 13px;
}
.rh-ficha td { font-weight: 600; color: var(--tinta); overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .rh-ficha th { width: 38%; padding-left: 12px; }
  .rh-ficha td { padding-right: 12px; }
}

/* ---------- Contenido ---------- */
.rh-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 20px 30px;
}
.rh-main section { margin-top: 46px; }
.rh-main h2 {
  font-size: clamp(23px, 3.4vw, 29px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
  scroll-margin-top: 84px;
}
.rh-main h2::before {
  content: "";
  display: block;
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: var(--rojo);
  margin-bottom: 12px;
}
.rh-main h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 28px 0 8px;
}
.rh-main p { margin: 0 0 14px; max-width: 68ch; }
.rh-main ul, .rh-main ol { margin: 0 0 16px; padding-left: 22px; }
.rh-main li { margin-bottom: 6px; }
.rh-main strong { font-weight: 700; }

/* Lista en dos columnas para enumeraciones largas */
.rh-cols2 { columns: 2; column-gap: 40px; }
.rh-cols2 li { break-inside: avoid; }
@media (max-width: 620px) { .rh-cols2 { columns: 1; } }

/* Índice de contenidos */
.rh-indice {
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 18px 22px;
  margin-top: 26px;
  font-size: 15px;
}
.rh-indice strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 10px;
}
.rh-indice ol { margin: 0; padding-left: 20px; }
.rh-indice li { margin-bottom: 4px; }

/* ---------- FAQ (details nativo, texto siempre en el DOM) ---------- */
.rh-faq { border-top: 1px solid var(--borde); margin-top: 18px; }
.rh-faq details {
  background: transparent;
  border-bottom: 1px solid var(--borde);
  margin: 0;
}
.rh-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 44px 16px 0;
  font-weight: 700;
  font-size: 16.5px;
  position: relative;
  scroll-margin-top: 84px;
}
.rh-faq summary::-webkit-details-marker { display: none; }
.rh-faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--rojo);
  transition: transform 0.15s ease;
}
.rh-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.rh-faq details > div { padding: 0 44px 18px 0; }
.rh-faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Timeline simple ---------- */
.rh-linea { list-style: none; padding: 0; margin: 8px 0 0; }
.rh-linea li {
  position: relative;
  padding: 0 0 22px 30px;
  border-left: 2px solid var(--borde);
  margin-left: 8px;
}
.rh-linea li:last-child { padding-bottom: 4px; }
.rh-linea li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--rojo);
}
.rh-linea .rh-anio {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--rojo);
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* ---------- Tarjetas de páginas relacionadas ---------- */
.rh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.rh-card {
  display: block;
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 18px 20px;
  color: var(--tinta);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.rh-card:hover {
  text-decoration: none;
  color: var(--tinta);
  border-color: var(--rojo);
  transform: translateY(-2px);
}
.rh-card strong { display: block; font-size: 16px; margin-bottom: 4px; }
.rh-card span { display: block; font-size: 14px; line-height: 1.5; color: var(--gris); }
.rh-card em {
  display: inline-block;
  font-style: normal;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--rojo);
  margin-top: 10px;
}

/* ---------- Credenciales ---------- */
.rh-credenciales {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.rh-credenciales li {
  background: var(--papel);
  border: 1px solid var(--borde);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

/* ---------- CTA ---------- */
.rh-cta {
  background: var(--papel);
  border: 1px solid var(--borde);
  border-top: 3px solid var(--rojo);
  color: var(--tinta);
  padding: 30px 28px;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.rh-cta h2 { color: var(--tinta); font-size: 22px; margin: 0 0 6px; }
.rh-cta h2::before { display: none; }
.rh-cta p { color: var(--gris); font-size: 15px; margin: 0; max-width: 46ch; }
.rh-cta__acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.rh-boton {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.rh-boton:hover { background: var(--rojo-oscuro); color: #fff; text-decoration: none; }
.rh-boton--secundario { background: transparent; border: 1px solid #45474b; }
.rh-boton--secundario:hover { background: #26272a; }

/* ---------- Footer ---------- */
.rh-footer {
  margin-top: 60px;
  background: var(--papel);
  border-top: 1px solid var(--borde);
}
.rh-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  font-size: 14.5px;
}
.rh-footer h2 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris-suave);
  margin: 0 0 12px;
  font-weight: 700;
}
.rh-footer p { margin: 0 0 8px; color: var(--gris); }
.rh-footer ul { list-style: none; margin: 0; padding: 0; }
.rh-footer li { margin-bottom: 7px; }
.rh-footer a { color: var(--gris); }
.rh-footer a:hover { color: var(--rojo); }
.rh-footer__legal {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px 26px;
  border-top: 1px solid var(--borde);
  font-size: 13px;
  color: var(--gris-suave);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
@media (max-width: 760px) {
  .rh-footer__inner { grid-template-columns: 1fr; gap: 24px; }
}

/* Títulos de sección en tipografía de marca */
.rh-main h2 {
  font-family: "Bebas Neue", "Roboto", system-ui, sans-serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.015em;
}
.rh-cta h2 { font-family: "Bebas Neue", "Roboto", system-ui, sans-serif; font-weight: 400; font-size: 26px; letter-spacing: 0.02em; }

.rh-main ul.rh-credenciales { padding-left: 0; margin-left: 0; }
