/* ============================================================
   HOME PREMIUM ROCALDE — HOME-DS-1 · v0.2 (iteración CyberCrest)
   CSS 100% scoped bajo .rocalde-home — portable a WordPress.
   Tokens: 01_MARCA/02_IDENTIDAD_VISUAL/identidad_visual_rocalde.md
   Variables definidas en .rocalde-home (NO en :root).
   Referencia de atmósfera: cybercrestcompliance.com — adaptada
   a paleta ROCALDE (navy/teal/orange), sin estética sci-fi.
   ============================================================ */

.rocalde-home {
  /* --- Tokens oficiales ROCALDE --- */
  --rh-navy:        #1B4F72;
  --rh-teal:        #1E9BC4;
  --rh-teal-dark:   #1F7A8C;
  --rh-orange:      #F26A1B;
  --rh-ink:         #0F2D44;
  --rh-bg-light:    #F4F7FA;
  --rh-bg-warm:     #FAFAF5;
  --rh-bg-dark:     #080E18;
  --rh-surface:     #173042;
  --rh-border:      #D6DEE3;
  --rh-cream:       #F3F1D7;
  /* --- Derivados de uso (opacidades de los oficiales) --- */
  --rh-text-on-dark:      rgba(244, 247, 250, 0.92);
  --rh-text-dim-on-dark:  rgba(198, 214, 226, 0.72);
  --rh-line-on-dark:      rgba(214, 222, 227, 0.13);
  --rh-glass:             rgba(23, 48, 66, 0.55);
  --rh-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* --- Coordenadas de interacción (las escribe home.js) --- */
  --rh-mx: 50%;
  --rh-my: 40%;

  font-family: var(--rh-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--rh-ink);
  /* Fondo raíz OSCURO: el header flotante deja ver este fondo antes del hero.
     Las secciones claras definen su propio fondo — nunca dependen del raíz. */
  background: var(--rh-bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* --- Solo prototipo LAB: elimina el marco blanco alrededor de la página
       (margen y fondo por defecto del body del navegador). En WordPress
       el tema gestiona body/html — NO portar estas dos reglas. --- */
html:has(.rocalde-home) { background: #080E18; }
body:has(> .rocalde-home) { margin: 0; padding: 0; background: #080E18; }

/* Reset mínimo scoped — defensa contra estilos del tema al portarse */
.rocalde-home *,
.rocalde-home *::before,
.rocalde-home *::after { box-sizing: border-box; margin: 0; padding: 0; }
.rocalde-home img { max-width: 100%; display: block; }
.rocalde-home a { text-decoration: none; color: inherit; }
.rocalde-home ul { list-style: none; }
.rocalde-home h1, .rocalde-home h2, .rocalde-home h3, .rocalde-home h4 {
  font-family: var(--rh-font);
  text-wrap: balance;
}

/* ===== Utilidades ===== */
.rocalde-home .rh-section__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  position: relative;
}
.rocalde-home .rh-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--rh-orange); color: #fff; padding: 10px 18px; z-index: 100;
  font-weight: 600; font-size: 14px;
}
.rocalde-home .rh-skip:focus { left: 12px; top: 12px; }

/* Riel de luz de progreso — la luz guía el scroll (ancho vía --rh-scroll, JS) */
.rocalde-home .rh-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: calc(var(--rh-scroll, 0) * 100%);
  background: linear-gradient(90deg, var(--rh-teal), var(--rh-orange));
  box-shadow: 0 0 12px rgba(30, 155, 196, 0.55);
  z-index: 60;
  pointer-events: none;
}

/* ============================================================
   RH-FLOW — sistema de motion de fondo reusable
   Trazos de señal que ascienden con intención: sugieren datos,
   flujo y resultado subiendo por el sistema. CSS-only, solo
   transform+opacity (GPU), 3–6 elementos por sección.
   Variantes: --hero (presencia) · base (media) · --calm · --sober.
   Reuso por página documentado en criterio_visual §RH-FLOW.
   ============================================================ */
.rocalde-home .rh-flow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.rocalde-home .rh-flow i {
  position: absolute;
  bottom: -160px;
  left: var(--x, 50%);
  width: 1px;
  height: var(--h, 110px);
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(30, 155, 196, 0.55) 35%,
    rgba(30, 155, 196, 0.10) 100%);
  opacity: 0;
  animation: rh-signal var(--d, 16s) linear infinite;
  animation-delay: var(--dl, 0s);
}
@keyframes rh-signal {
  0%   { transform: translateY(0); opacity: 0; }
  6%   { opacity: calc(var(--o, 0.5) * var(--om, 1)); }
  70%  { opacity: calc(var(--o, 0.5) * var(--om, 1)); }
  92%  { opacity: 0; }
  100% { transform: translateY(calc(-100vh - 320px)); opacity: 0; }
}
/* distribución: posiciones, alturas, tiempos y fases distintas por trazo */
.rocalde-home .rh-flow i:nth-child(1) { --x: 8%;  --h: 90px;  --d: 17s; --dl: 0s;    --o: 0.42; }
.rocalde-home .rh-flow i:nth-child(2) { --x: 26%; --h: 150px; --d: 21s; --dl: 6s;    --o: 0.34; }
.rocalde-home .rh-flow i:nth-child(3) { --x: 47%; --h: 70px;  --d: 14s; --dl: 10.5s; --o: 0.5;  }
.rocalde-home .rh-flow i:nth-child(4) { --x: 66%; --h: 120px; --d: 19s; --dl: 3.5s;  --o: 0.38; }
.rocalde-home .rh-flow i:nth-child(5) { --x: 84%; --h: 95px;  --d: 16s; --dl: 12s;   --o: 0.46; }
.rocalde-home .rh-flow i:nth-child(6) { --x: 94%; --h: 60px;  --d: 23s; --dl: 8s;    --o: 0.3;  }
/* un solo trazo cálido por sección — el "resultado" dentro del flujo */
.rocalde-home .rh-flow i:nth-child(3) {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(242, 106, 27, 0.5) 35%,
    rgba(242, 106, 27, 0.08) 100%);
}
/* variantes de intensidad — multiplicador heredado desde el contenedor */
.rocalde-home .rh-flow--hero  { --om: 1.3; }
.rocalde-home .rh-flow--calm  { --om: 0.62; }
.rocalde-home .rh-flow--sober { --om: 0.42; }

/* Índice de sección — narrativa de ensamblaje (01→04) */
.rocalde-home .rh-index {
  display: inline-block;
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid currentColor;
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
}

.rocalde-home .rh-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rh-teal-dark);
  margin-bottom: 14px;
}
.rocalde-home .rh-eyebrow--dark { color: var(--rh-teal); }

.rocalde-home .rh-h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--rh-ink);
  margin-bottom: 18px;
}
.rocalde-home .rh-h2--dark { color: #fff; }
/* barra de luz bajo cada H2: se enciende cuando la sección se revela */
.rocalde-home .rh-h2::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--rh-teal), transparent);
  box-shadow: 0 0 14px rgba(30, 155, 196, 0.45);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.rocalde-home.rh-js .rh-h2.is-visible::after,
.rocalde-home:not(.rh-js) .rh-h2::after { width: 76px; }

.rocalde-home .rh-lead {
  font-size: 17px;
  max-width: 62ch;
  color: var(--rh-ink);
  opacity: 0.85;
  margin-bottom: 28px;
}

.rocalde-home .rh-arrow { display: inline-block; transition: transform 0.25s ease; }

/* Línea de horizonte con gradiente (separador entre bloques oscuros) */
.rocalde-home .rh-hairline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(30, 155, 196, 0.0) 15%,
    rgba(30, 155, 196, 0.55) 50%,
    rgba(30, 155, 196, 0.0) 85%,
    transparent 100%);
  pointer-events: none;
}
.rocalde-home .rh-hairline--top { bottom: auto; top: 0; }

/* ===== Botones ===== */
.rocalde-home .rh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--rh-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease,
              color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.rocalde-home .rh-btn--primary {
  background: var(--rh-orange);
  color: #fff;
  box-shadow: 0 4px 18px rgba(242, 106, 27, 0.22);
}
.rocalde-home .rh-btn--primary:hover {
  background: #d95c12;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(242, 106, 27, 0.38);
}
.rocalde-home .rh-btn--ghost {
  background: rgba(23, 48, 66, 0.35);
  color: var(--rh-text-on-dark);
  border-color: var(--rh-line-on-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rocalde-home .rh-btn--ghost:hover {
  border-color: rgba(30, 155, 196, 0.65);
  color: #fff;
  box-shadow: 0 0 24px rgba(30, 155, 196, 0.18);
}
.rocalde-home .rh-btn--ghost:hover .rh-arrow { transform: translateX(4px); }
.rocalde-home .rh-btn--secondary {
  background: transparent;
  color: var(--rh-teal-dark);
  border-color: var(--rh-border);
}
.rocalde-home .rh-btn--secondary:hover { border-color: var(--rh-teal); color: var(--rh-teal); }
.rocalde-home .rh-btn--secondary:hover .rh-arrow { transform: translateX(4px); }
.rocalde-home .rh-btn--lg { font-size: 16px; padding: 18px 36px; }
.rocalde-home .rh-btn--nav { padding: 13px 24px; font-size: 14px; }
.rocalde-home .rh-btn:focus-visible,
.rocalde-home a:focus-visible,
.rocalde-home button:focus-visible {
  outline: 2px solid var(--rh-teal);
  outline-offset: 3px;
}

/* ============================================================
   NAV — NAV-GLOBAL-1 (2026-07-11)
   Desktop ≥1024px: fila completa + desplegable Audiovisual.
   Móvil <1024px: off-canvas desde la derecha con acordeón
   Audiovisual y Diagnóstico como acción destacada al pie.
   Sin JS: el desplegable desktop queda accesible por teclado
   vía :focus-within (gate :not(.rh-js)); el drawer móvil
   requiere JS, igual que el menú anterior.
   Escala z local: nav 50 · scrim 60 · drawer 70.
   ============================================================ */
.rocalde-home { --rh-nav-h: 88px; }
/* Header flotante: transparente arriba (continuidad con el hero),
   se materializa con vidrio oscuro solo al hacer scroll (.is-scrolled, JS) */
.rocalde-home .rh-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(8, 14, 24, 0.55), rgba(8, 14, 24, 0));
}
/* capa de vidrio — invisible arriba, aparece al scrollear */
.rocalde-home .rh-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 24, 0.82);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.rocalde-home .rh-nav.is-scrolled::before { opacity: 1; }
/* línea de luz bajo el header — solo cuando está materializado */
.rocalde-home .rh-nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(214, 222, 227, 0.06),
    rgba(242, 106, 27, 0.40) 28%,
    rgba(214, 222, 227, 0.10) 60%,
    rgba(214, 222, 227, 0.05));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.rocalde-home .rh-nav.is-scrolled::after { opacity: 1; }
.rocalde-home .rh-nav__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  height: var(--rh-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.rocalde-home .rh-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
/* Logo oficial completo — presencia de marca, sin lockup inventado */
.rocalde-home .rh-nav__logoimg {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 4px 18px rgba(4, 8, 14, 0.55))
          drop-shadow(0 0 16px rgba(30, 155, 196, 0.18));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.rocalde-home .rh-nav__logo:hover .rh-nav__logoimg {
  filter: drop-shadow(0 4px 18px rgba(4, 8, 14, 0.55))
          drop-shadow(0 0 22px rgba(30, 155, 196, 0.35));
  transform: scale(1.03);
}
.rocalde-home .rh-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}
/* Menú: blanco suave legible + hover/activo en lógica naranja.
   (Naranja pleno reservado al CTA y al estado activo.) */
.rocalde-home .rh-nav__links > a:not(.rh-btn),
.rocalde-home .rh-nav__trigger {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: rgba(234, 241, 246, 0.88);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.rocalde-home .rh-nav__links > a:not(.rh-btn):hover,
.rocalde-home .rh-nav__trigger:hover {
  color: #FF9E63;
  text-shadow: 0 0 16px rgba(242, 106, 27, 0.35);
}
/* página activa en el menú (regla histórica; el CTA queda fuera —
   naranja sobre naranja lo volvería ilegible en diagnostico.html) */
.rocalde-home .rh-nav__links > a:not(.rh-btn)[aria-current="page"] { color: var(--rh-orange); }
/* foco visible coherente en toda la navegación */
.rocalde-home .rh-nav a:focus-visible,
.rocalde-home .rh-nav button:focus-visible {
  outline: 2px solid var(--rh-teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Grupo Audiovisual (trigger + submenú) --- */
.rocalde-home .rh-nav__group { position: relative; }
.rocalde-home .rh-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--rh-font);
}
/* sección activa (se está en Video o Fotografía) */
.rocalde-home .rh-nav__trigger.is-section { color: var(--rh-orange); }
.rocalde-home .rh-nav__caret {
  width: 10px;
  height: 6px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.rocalde-home .rh-nav__group.is-open .rh-nav__caret { transform: rotate(180deg); }
.rocalde-home .rh-nav__sub a span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--rh-text-dim-on-dark);
}

/* cabecera interna del drawer — solo existe visualmente en móvil */
.rocalde-home .rh-nav__drawerhead { display: none; }
.rocalde-home .rh-nav__scrim {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 14, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 60;
}
.rocalde-home .rh-nav__scrim.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

/* botón del drawer: icono + etiqueta visible (no icono mudo) */
.rocalde-home .rh-nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 9px 10px;
  cursor: pointer;
  color: rgba(234, 241, 246, 0.9);
  font-family: var(--rh-font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.rocalde-home .rh-nav__toggle:hover { color: #FF9E63; }
.rocalde-home .rh-nav__toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rocalde-home .rh-nav__toggle-icon i {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* ---------- Desktop ≥1024px: desplegable flotante ---------- */
@media (min-width: 1024px) {
  .rocalde-home .rh-nav__sub {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    padding-top: 14px; /* puente de hover invisible entre trigger y panel */
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s ease,
      transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0.26s;
  }
  .rocalde-home .rh-nav__group.is-open .rh-nav__sub,
  .rocalde-home:not(.rh-js) .rh-nav__group:focus-within .rh-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition:
      opacity 0.2s ease,
      transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .rocalde-home .rh-nav__subinner {
    min-width: 252px;
    padding: 8px;
    background: rgba(10, 17, 28, 0.94);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid var(--rh-line-on-dark);
    border-radius: 14px;
    box-shadow:
      0 22px 60px rgba(4, 8, 14, 0.6),
      inset 0 1px 0 rgba(244, 247, 250, 0.05);
  }
  .rocalde-home .rh-nav__sub a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(234, 241, 246, 0.88);
    transition: background 0.18s ease, color 0.18s ease;
  }
  .rocalde-home .rh-nav__sub a:hover {
    background: rgba(30, 155, 196, 0.10);
    color: #FF9E63;
  }
  .rocalde-home .rh-nav__sub a[aria-current="page"] {
    color: var(--rh-orange);
    background: rgba(242, 106, 27, 0.08);
  }
}

/* Desktop comprimido 1024–1199px: misma fila, respiración menor */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .rocalde-home .rh-nav__links { gap: 18px; }
  .rocalde-home .rh-nav__links > a:not(.rh-btn),
  .rocalde-home .rh-nav__trigger { font-size: 13.5px; }
  .rocalde-home .rh-nav__links .rh-btn--nav { padding: 12px 18px; font-size: 13.5px; }
  .rocalde-home .rh-nav__logoimg { height: 52px; }
}

/* ---------- Móvil <1024px: off-canvas ---------- */
@media (max-width: 1023.98px) {
  .rocalde-home { --rh-nav-h: 74px; }
  .rocalde-home .rh-nav__logoimg { height: 48px; }
  .rocalde-home .rh-nav__toggle { display: inline-flex; }

  .rocalde-home .rh-nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 22px calc(24px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 17, 28, 0.97);
    border-left: 1px solid var(--rh-line-on-dark);
    box-shadow: -30px 0 80px rgba(4, 8, 14, 0.6);
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0.34s;
    z-index: 70;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .rocalde-home .rh-nav__links.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .rocalde-home .rh-nav__drawerhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 14px;
    border-bottom: 1px solid var(--rh-line-on-dark);
    margin-bottom: 4px;
  }
  .rocalde-home .rh-nav__drawertitle {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rh-text-dim-on-dark);
  }
  .rocalde-home .rh-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--rh-line-on-dark);
    border-radius: 10px;
    color: rgba(234, 241, 246, 0.85);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .rocalde-home .rh-nav__close:hover { color: #FF9E63; border-color: rgba(242, 106, 27, 0.4); }

  .rocalde-home .rh-nav__links > a:not(.rh-btn) {
    padding: 15px 2px;
    width: 100%;
    border-bottom: 1px solid var(--rh-line-on-dark);
    font-size: 16px;
  }

  /* Audiovisual como acordeón */
  .rocalde-home .rh-nav__group {
    width: 100%;
    border-bottom: 1px solid var(--rh-line-on-dark);
  }
  .rocalde-home .rh-nav__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 2px;
    font-size: 16px;
  }
  .rocalde-home .rh-nav__sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .rocalde-home .rh-nav__group.is-open .rh-nav__sub { grid-template-rows: 1fr; }
  .rocalde-home .rh-nav__subinner {
    overflow: hidden;
    min-height: 0;
    padding-left: 14px;
  }
  .rocalde-home .rh-nav__sub a {
    display: block;
    padding: 12px 2px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(234, 241, 246, 0.82);
  }
  .rocalde-home .rh-nav__sub a[aria-current="page"] { color: var(--rh-orange); }
  .rocalde-home .rh-nav__sub a:last-child { padding-bottom: 16px; }

  /* Diagnóstico: acción destacada anclada al pie del drawer */
  .rocalde-home .rh-nav__links .rh-btn--nav {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  /* entrada escalonada de los ítems al abrir */
  .rocalde-home .rh-nav__links.is-open > * {
    animation: rh-drawer-item 0.42s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .rocalde-home .rh-nav__links.is-open > *:nth-child(2) { animation-delay: 0.05s; }
  .rocalde-home .rh-nav__links.is-open > *:nth-child(3) { animation-delay: 0.09s; }
  .rocalde-home .rh-nav__links.is-open > *:nth-child(4) { animation-delay: 0.13s; }
  .rocalde-home .rh-nav__links.is-open > *:nth-child(5) { animation-delay: 0.17s; }
  .rocalde-home .rh-nav__links.is-open > *:nth-child(6) { animation-delay: 0.21s; }
  .rocalde-home .rh-nav__links.is-open > *:nth-child(7) { animation-delay: 0.25s; }
  .rocalde-home .rh-nav__links.is-open > *:nth-child(8) { animation-delay: 0.30s; }
}
@keyframes rh-drawer-item {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rocalde-home .rh-nav__links,
  .rocalde-home .rh-nav__scrim,
  .rocalde-home .rh-nav__sub,
  .rocalde-home .rh-nav__caret { transition: none !important; }
  .rocalde-home .rh-nav__links.is-open > * { animation: none !important; }
}

/* ============================================================
   1 · HERO — atmósfera en capas + spotlight que sigue al mouse
   Capas (de atrás a adelante):
   1. glows fijos (contraluz teal arriba-izq, rim naranja der)
   2. grid técnico fino + puntos (noise punteado)
   3. spotlight de mouse (.rh-hero__spot, CSS vars desde JS)
   4. partículas con deriva lenta
   ============================================================ */
.rocalde-home .rh-hero {
  position: relative;
  background: var(--rh-bg-dark);
  color: var(--rh-text-on-dark);
  overflow: hidden;
}
.rocalde-home .rh-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* contraluz principal teal */
    radial-gradient(1000px 560px at 12% -12%, rgba(30, 155, 196, 0.26), transparent 62%),
    /* rim light naranja lateral */
    radial-gradient(640px 420px at 104% 30%, rgba(242, 106, 27, 0.13), transparent 58%),
    /* glow de piso, horizonte bajo */
    radial-gradient(900px 300px at 50% 108%, rgba(27, 79, 114, 0.35), transparent 70%),
    /* grid técnico fino */
    linear-gradient(rgba(214, 222, 227, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 222, 227, 0.035) 1px, transparent 1px),
    /* noise punteado */
    radial-gradient(rgba(214, 222, 227, 0.07) 1px, transparent 1.4px);
  background-size: auto, auto, auto, 64px 64px, 64px 64px, 26px 26px;
  /* el grid se desvanece hacia abajo */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}
/* Partículas: puntos de baja opacidad con deriva lenta (patrón COT-2) */
.rocalde-home .rh-hero__bg::after {
  content: "";
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: transparent;
  top: 0; left: 0;
  box-shadow:
    12vw 18vh 0 rgba(30, 155, 196, 0.45),
    28vw 62vh 0 rgba(244, 247, 250, 0.22),
    44vw 30vh 0 rgba(30, 155, 196, 0.30),
    58vw 74vh 0 rgba(244, 247, 250, 0.18),
    70vw 22vh 0 rgba(242, 106, 27, 0.30),
    82vw 55vh 0 rgba(30, 155, 196, 0.35),
    91vw 34vh 0 rgba(244, 247, 250, 0.20),
    20vw 82vh 0 rgba(30, 155, 196, 0.25),
    64vw 12vh 0 rgba(244, 247, 250, 0.25),
    36vw 88vh 0 rgba(242, 106, 27, 0.22),
    50vw 48vh 0 rgba(30, 155, 196, 0.18),
    8vw 50vh 0 rgba(244, 247, 250, 0.16);
  animation: rh-drift 26s linear infinite alternate;
}
@keyframes rh-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(18px, -26px, 0); }
}

/* Encuadre de visor de cámara — sutil y técnico, sin romper la inmersión */
.rocalde-home .rh-hero__frame { position: absolute; inset: 26px; pointer-events: none; }
.rocalde-home .rh-hero__frame i {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid rgba(30, 155, 196, 0.16);
}
.rocalde-home .rh-hero__frame i:nth-child(1) { top: 0; left: 0;   border-right: 0; border-bottom: 0; }
.rocalde-home .rh-hero__frame i:nth-child(2) { top: 0; right: 0;  border-left: 0;  border-bottom: 0; }
.rocalde-home .rh-hero__frame i:nth-child(3) { bottom: 0; left: 0;  border-right: 0; border-top: 0; }
.rocalde-home .rh-hero__frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0;  border-top: 0; }
@media (max-width: 860px) { .rocalde-home .rh-hero__frame { inset: 14px; } }

/* Spotlight que sigue al cursor — solo se enciende bajo .rh-pointer (JS) */
.rocalde-home .rh-hero__spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(
    520px circle at var(--rh-mx) var(--rh-my),
    rgba(30, 155, 196, 0.10),
    rgba(30, 155, 196, 0.04) 40%,
    transparent 70%
  );
}
.rocalde-home.rh-pointer .rh-hero__spot { opacity: 1; }

.rocalde-home .rh-hero__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(76px, 12vh, 136px) clamp(20px, 5vw, 48px) clamp(68px, 10vh, 116px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) {
  .rocalde-home .rh-hero__inner { grid-template-columns: 1fr; }
  .rocalde-home .rh-hero__emblem { order: -1; justify-self: center; }
}
.rocalde-home .rh-hero .rh-eyebrow { color: var(--rh-teal); }
.rocalde-home .rh-hero__title {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 16ch;
  margin-bottom: 22px;
}
.rocalde-home .rh-hero__title-accent {
  display: block;
  color: var(--rh-teal);
}
.rocalde-home .rh-hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 54ch;
  color: var(--rh-text-dim-on-dark);
  margin-bottom: 36px;
}
.rocalde-home .rh-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}
.rocalde-home .rh-hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rh-text-dim-on-dark);
  border-top: 1px solid var(--rh-line-on-dark);
  padding-top: 24px;
  max-width: 720px;
}

/* ============================================================
   ISOTIPO REAL ROCALDE — tratamiento volumétrico de set
   Asset: assets/isotipo_rocalde_alpha_1000.png (01_MARCA, RGBA transparente).
   Luces: contraluz teal (backlight) + rim cálido por drop-shadow
   + reflejo de piso (sensación de estudio) + glow de suelo.
   Tilt de mouse vía --rh-rx / --rh-ry (home.js).
   No se deforma el isotipo: solo luz, profundidad y reflejo.
   ============================================================ */
.rocalde-home .rh-hero__emblem {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}
.rocalde-home .rh-emblem {
  position: relative;
  --rh-rx: 0deg;  /* rotateY objetivo (mouse) */
  --rh-ry: 0deg;  /* rotateX objetivo (mouse) */
}
/* contraluz detrás del isotipo — contraluz duro: núcleo intenso + halo ancho */
.rocalde-home .rh-emblem__backlight {
  position: absolute;
  inset: -26%;
  pointer-events: none;
  background:
    radial-gradient(26% 26% at 46% 40%, rgba(30, 155, 196, 0.50), transparent 72%),
    radial-gradient(62% 62% at 42% 38%, rgba(30, 155, 196, 0.24), transparent 70%),
    radial-gradient(46% 46% at 68% 62%, rgba(242, 106, 27, 0.16), transparent 70%);
  filter: blur(8px);
  animation: rh-backlight 6.5s ease-in-out infinite alternate;
}
@keyframes rh-backlight {
  from { opacity: 0.85; }
  to   { opacity: 1.0; filter: blur(10px); }
}
/* onda de energía — anillo que emana del isotipo, como membrana de parlante */
.rocalde-home .rh-emblem__pulse {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(30, 155, 196, 0.35);
  pointer-events: none;
  opacity: 0;
  animation: rh-pulse 5.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes rh-pulse {
  0%   { opacity: 0;    transform: scale(0.82); }
  8%   { opacity: 0.55; }
  38%  { opacity: 0;    transform: scale(1.28); }
  100% { opacity: 0;    transform: scale(1.28); }
}
.rocalde-home .rh-emblem__core {
  position: relative;
  width: clamp(220px, 26vw, 320px);
  transform-style: preserve-3d;
  transform: rotateX(calc(-4deg + var(--rh-ry))) rotateY(calc(8deg + var(--rh-rx)));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: rh-float 7s ease-in-out infinite alternate;
}
@keyframes rh-float {
  from { translate: 0 -8px; }
  to   { translate: 0 10px; }
}
/* ecos volumétricos: el mismo isotipo, desenfocado y retrasado en Z —
   proyección de su propia luz hacia atrás (objeto espacial, no imagen pegada) */
.rocalde-home .rh-emblem__echo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.rocalde-home .rh-emblem__echo--far {
  transform: translateZ(-56px) scale(1.10);
  filter: blur(22px) saturate(1.5);
  opacity: 0.34;
}
.rocalde-home .rh-emblem__echo--near {
  transform: translateZ(-26px) scale(1.04);
  filter: blur(9px) saturate(1.2);
  opacity: 0.42;
}
.rocalde-home .rh-emblem__img {
  position: relative;
  width: 100%;
  height: auto;
  transform: translateZ(8px);
  /* sombra de profundidad + rim frío + rim cálido — luz de tres puntos */
  filter:
    drop-shadow(0 26px 44px rgba(4, 8, 14, 0.65))
    drop-shadow(-8px -6px 30px rgba(30, 155, 196, 0.26))
    drop-shadow(10px 12px 34px rgba(242, 106, 27, 0.18));
  /* respiración irregular — energía contenida, como membrana con música */
  animation: rh-breathe 3.4s ease-in-out infinite;
}
@keyframes rh-breathe {
  0%, 100% { scale: 1; }
  14%      { scale: 1.016; }
  26%      { scale: 1.004; }
  42%      { scale: 1.012; }
  60%      { scale: 1.002; }
  78%      { scale: 1.009; }
}
/* reflejo de piso — sensación de set/estudio */
.rocalde-home .rh-emblem__reflection {
  position: absolute;
  top: calc(100% - 14px);
  left: 50%;
  width: clamp(220px, 26vw, 320px);
  height: auto;
  transform: translateX(-50%) scaleY(-1);
  opacity: 0.16;
  filter: blur(3px) saturate(0.8);
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
          mask-image: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}
/* glow de piso bajo el isotipo */
.rocalde-home .rh-emblem__glow {
  position: absolute;
  left: 50%; bottom: -46px;
  width: 82%; height: 32px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 155, 196, 0.26), transparent);
  filter: blur(12px);
  pointer-events: none;
}

/* Animación de carga del hero (escalonada) */
.rocalde-home .rh-load {
  opacity: 0;
  transform: translateY(18px);
  animation: rh-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.rocalde-home .rh-load--1 { animation-delay: 0.05s; }
.rocalde-home .rh-load--2 { animation-delay: 0.15s; }
.rocalde-home .rh-load--3 { animation-delay: 0.30s; }
.rocalde-home .rh-load--4 { animation-delay: 0.45s; }
.rocalde-home .rh-load--5 { animation-delay: 0.60s; }
@keyframes rh-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Reveals al scroll (activados por js/home.js)
   ============================================================ */
.rocalde-home.rh-js .rh-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.965);
  filter: blur(3px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.rocalde-home.rh-js .rh-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
/* Ensamblaje escalonado: los grupos emergen en secuencia desde el fondo */
.rocalde-home.rh-js .rh-fork__grid .rh-reveal:nth-child(2) { transition-delay: 0.14s; }
.rocalde-home.rh-js .rh-direct__grid .rh-reveal:nth-child(2) { transition-delay: 0.08s; }
.rocalde-home.rh-js .rh-direct__grid .rh-reveal:nth-child(3) { transition-delay: 0.16s; }
.rocalde-home.rh-js .rh-direct__grid .rh-reveal:nth-child(4) { transition-delay: 0.24s; }
.rocalde-home.rh-js .rh-direct__grid .rh-reveal:nth-child(5) { transition-delay: 0.32s; }
.rocalde-home.rh-js .rh-sys__list .rh-reveal:nth-child(2) { transition-delay: 0.10s; }
.rocalde-home.rh-js .rh-sys__list .rh-reveal:nth-child(3) { transition-delay: 0.20s; }
.rocalde-home.rh-js .rh-sys__list .rh-reveal:nth-child(4) { transition-delay: 0.30s; }
.rocalde-home.rh-js .rh-sys__list .rh-reveal:nth-child(5) { transition-delay: 0.40s; }
/* Las filas de sistemas emergen desde la izquierda: el sistema "se conecta" */
.rocalde-home.rh-js .rh-sys__list .rh-reveal {
  transform: translateX(-30px) scale(0.99);
}
.rocalde-home.rh-js .rh-sys__list .rh-reveal.is-visible {
  transform: translateX(0) scale(1);
}

/* ============================================================
   Border-spotlight de cards (.rh-glow) — el borde/interior se
   ilumina donde está el cursor. Coordenadas --gx/--gy por card
   (home.js). Sin JS o en touch: la capa queda apagada y el hover
   clásico sigue funcionando.
   ============================================================ */
.rocalde-home .rh-glow { position: relative; overflow: hidden; }
.rocalde-home .rh-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    240px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(30, 155, 196, 0.16),
    transparent 65%
  );
}
.rocalde-home.rh-pointer .rh-glow:hover::after { opacity: 1; }

/* ============================================================
   2 · BIFURCACIÓN — oscuro completo, cards de vidrio
   ============================================================ */
.rocalde-home .rh-fork {
  position: relative;
  background:
    /* campo punteado en la esquina superior derecha — profundidad de borde */
    radial-gradient(rgba(30, 155, 196, 0.14) 1px, transparent 1.4px),
    /* haz de luz diagonal — continúa la fuente teal del hero */
    linear-gradient(112deg,
      transparent 36%,
      rgba(30, 155, 196, 0.04) 46%,
      rgba(30, 155, 196, 0.085) 50%,
      rgba(30, 155, 196, 0.04) 54%,
      transparent 64%),
    radial-gradient(800px 420px at 85% -10%, rgba(27, 79, 114, 0.30), transparent 65%),
    var(--rh-bg-dark);
  background-size: 22px 22px, auto, auto, auto;
  /* el campo punteado solo vive en la esquina */
  background-position: 0 0;
  padding: clamp(64px, 10vh, 104px) 0 clamp(64px, 10vh, 104px);
}
.rocalde-home .rh-fork::before {
  /* máscara del campo punteado: apaga los puntos fuera de la esquina sup-der */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--rh-bg-dark);
  -webkit-mask-image: radial-gradient(640px 420px at 92% 0%, transparent 0%, #000 78%);
          mask-image: radial-gradient(640px 420px at 92% 0%, transparent 0%, #000 78%);
  opacity: 0.92;
}
.rocalde-home .rh-fork > .rh-section__inner { z-index: 1; }
.rocalde-home .rh-fork .rh-h2 { margin-bottom: 36px; }
.rocalde-home .rh-fork__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 760px) {
  .rocalde-home .rh-fork__grid { grid-template-columns: 1fr; }
}
.rocalde-home .rh-fork__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--rh-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 155, 196, 0.22);
  border-radius: 12px;
  padding: 32px 30px 28px;
  box-shadow:
    inset 0 1px 0 rgba(244, 247, 250, 0.07),
    0 22px 54px rgba(4, 8, 14, 0.55);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.rocalde-home .rh-fork__card--system { border-color: rgba(242, 106, 27, 0.26); }
.rocalde-home .rh-fork__card--system::after {
  background: radial-gradient(
    240px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(242, 106, 27, 0.14),
    transparent 65%
  );
}
.rocalde-home .rh-fork__card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 155, 196, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(244, 247, 250, 0.09),
    0 30px 70px rgba(4, 8, 14, 0.65),
    0 0 40px rgba(30, 155, 196, 0.10);
}
.rocalde-home .rh-fork__card--system:hover {
  border-color: rgba(242, 106, 27, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(244, 247, 250, 0.09),
    0 30px 70px rgba(4, 8, 14, 0.65),
    0 0 40px rgba(242, 106, 27, 0.10);
}
.rocalde-home .rh-fork__card:hover .rh-arrow { transform: translateX(5px); }
.rocalde-home .rh-fork__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rh-teal);
  background: rgba(30, 155, 196, 0.12);
  border: 1px solid rgba(30, 155, 196, 0.25);
  padding: 4px 10px;
  border-radius: 4px;
}
.rocalde-home .rh-fork__card--system .rh-fork__tag {
  color: #ff9557;
  background: rgba(242, 106, 27, 0.10);
  border-color: rgba(242, 106, 27, 0.30);
}
.rocalde-home .rh-fork__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.rocalde-home .rh-fork__desc {
  font-size: 15px;
  color: var(--rh-text-dim-on-dark);
  flex-grow: 1;
}
.rocalde-home .rh-fork__cta {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--rh-teal);
  margin-top: 6px;
}
.rocalde-home .rh-fork__card--system .rh-fork__cta { color: #ff9557; }

/* ============================================================
   3 · SERVICIOS DIRECTOS
   ============================================================ */
.rocalde-home .rh-direct {
  position: relative;
  background:
    /* luz de ventana: baño frío desde arriba-izquierda, muy tenue */
    linear-gradient(118deg,
      transparent 30%,
      rgba(27, 79, 114, 0.030) 44%,
      rgba(30, 155, 196, 0.050) 50%,
      rgba(27, 79, 114, 0.030) 56%,
      transparent 70%),
    linear-gradient(180deg, #EAF0F5 0%, var(--rh-bg-light) 180px),
    var(--rh-bg-light);
  padding: clamp(56px, 9vh, 88px) 0 clamp(56px, 9vh, 90px);
}
.rocalde-home .rh-direct__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.rocalde-home .rh-dcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--rh-border);
  border-radius: 10px;
  padding: 24px 22px 20px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.rocalde-home .rh-dcard::after {
  background: radial-gradient(
    200px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(30, 155, 196, 0.10),
    transparent 65%
  );
}
.rocalde-home .rh-dcard:hover {
  border-color: rgba(30, 155, 196, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(15, 45, 68, 0.13);
}
.rocalde-home .rh-dcard:hover .rh-arrow { transform: translateX(4px); }
.rocalde-home .rh-dcard__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--rh-ink);
}
.rocalde-home .rh-dcard__desc {
  font-size: 13.8px;
  color: var(--rh-ink);
  opacity: 0.75;
  flex-grow: 1;
}
.rocalde-home .rh-dcard__cta {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rh-teal-dark);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.rocalde-home .rh-direct__note {
  margin-top: 30px;
  font-size: 15px;
  color: var(--rh-ink);
  opacity: 0.85;
}
.rocalde-home .rh-direct__note a {
  color: var(--rh-teal-dark);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

/* ============================================================
   4 · SISTEMAS (protagonista, fondo oscuro con atmósfera)
   ============================================================ */
.rocalde-home .rh-systems {
  position: relative;
  background:
    /* haz cruzado desde arriba-derecha — contraluz de la sección */
    linear-gradient(248deg,
      transparent 34%,
      rgba(30, 155, 196, 0.035) 45%,
      rgba(30, 155, 196, 0.075) 50%,
      rgba(30, 155, 196, 0.035) 55%,
      transparent 66%),
    radial-gradient(900px 480px at 0% 0%, rgba(27, 79, 114, 0.28), transparent 60%),
    radial-gradient(700px 420px at 100% 100%, rgba(30, 155, 196, 0.08), transparent 60%),
    var(--rh-bg-dark);
  padding: clamp(64px, 10vh, 110px) 0;
}
.rocalde-home .rh-systems .rh-h2 { margin-bottom: 34px; }

/* Diagnóstico — puerta destacada (vidrio + glow) */
.rocalde-home .rh-diag {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  background: var(--rh-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 155, 196, 0.35);
  border-radius: 12px;
  padding: 30px 32px;
  margin-bottom: 36px;
  box-shadow:
    inset 0 1px 0 rgba(244, 247, 250, 0.07),
    0 18px 44px rgba(4, 8, 14, 0.5);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.rocalde-home .rh-diag:hover {
  border-color: var(--rh-teal);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(244, 247, 250, 0.09),
    0 26px 60px rgba(4, 8, 14, 0.6),
    0 0 46px rgba(30, 155, 196, 0.12);
}
.rocalde-home .rh-diag:hover .rh-arrow { transform: translateX(5px); }
.rocalde-home .rh-diag__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rh-teal);
  border: 1px solid rgba(30, 155, 196, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.rocalde-home .rh-diag__title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.rocalde-home .rh-diag__desc {
  font-size: 15px;
  color: var(--rh-text-dim-on-dark);
  max-width: 64ch;
}
.rocalde-home .rh-diag__cta {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--rh-orange);
  white-space: nowrap;
  padding-bottom: 4px;
}
@media (max-width: 760px) {
  .rocalde-home .rh-diag { flex-direction: column; align-items: flex-start; }
}

/* Filas de sistemas — problema primero, con riel de luz al hover */
.rocalde-home .rh-sys__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rh-line-on-dark);
}
.rocalde-home .rh-sys__row {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr 40px;
  grid-template-areas:
    "label problem go"
    "label desc go";
  column-gap: 32px;
  row-gap: 6px;
  align-items: start;
  padding: 26px 8px;
  border-bottom: 1px solid var(--rh-line-on-dark);
  transition: background-color 0.25s ease, padding-left 0.25s ease;
}
/* riel de luz teal a la izquierda, crece al hover */
.rocalde-home .rh-sys__row::before {
  content: "";
  position: absolute;
  left: 0; top: 20%;
  width: 2px; height: 60%;
  background: linear-gradient(180deg, transparent, var(--rh-teal), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rocalde-home .rh-sys__row:hover {
  background: linear-gradient(90deg, rgba(23, 48, 66, 0.6), rgba(23, 48, 66, 0.0) 80%);
  padding-left: 20px;
}
.rocalde-home .rh-sys__row:hover::before { opacity: 1; }
.rocalde-home .rh-sys__row:hover .rh-sys__go {
  color: var(--rh-orange);
  transform: translateX(6px);
}
.rocalde-home .rh-sys__label {
  grid-area: label;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rh-teal);
  padding-top: 5px;
}
.rocalde-home .rh-sys__problem {
  grid-area: problem;
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.rocalde-home .rh-sys__desc {
  grid-area: desc;
  font-size: 14.5px;
  color: var(--rh-text-dim-on-dark);
  max-width: 66ch;
}
.rocalde-home .rh-sys__go {
  grid-area: go;
  font-size: 22px;
  color: var(--rh-text-dim-on-dark);
  justify-self: end;
  padding-top: 4px;
  transition: color 0.25s ease, transform 0.25s ease;
}
@media (max-width: 760px) {
  .rocalde-home .rh-sys__row {
    grid-template-columns: 1fr 32px;
    grid-template-areas:
      "label go"
      "problem go"
      "desc desc";
  }
}

/* ============================================================
   5 · DIFERENCIAL AUDIOVISUAL
   ============================================================ */
.rocalde-home .rh-av {
  position: relative;
  background:
    /* spotlight cálido de tungsteno desde arriba-izquierda — la sección "de set" */
    radial-gradient(900px 520px at 8% -8%, rgba(243, 241, 215, 0.55), transparent 62%),
    linear-gradient(122deg,
      transparent 40%,
      rgba(242, 106, 27, 0.028) 49%,
      rgba(242, 106, 27, 0.05) 52%,
      rgba(242, 106, 27, 0.028) 55%,
      transparent 64%),
    var(--rh-bg-warm);
  padding: clamp(64px, 10vh, 110px) 0;
}
.rocalde-home .rh-av__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) {
  .rocalde-home .rh-av__grid { grid-template-columns: 1fr; }
}
.rocalde-home .rh-av__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--rh-ink);
  margin-bottom: 30px;
}
.rocalde-home .rh-av__media {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 105px;
  gap: 12px;
  min-width: 0; /* evita que el grid fuerce overflow horizontal (item de grid con overflow:visible) */
}
.rocalde-home .rh-av__slot {
  position: relative;
  border-radius: 10px;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(30, 155, 196, 0.14), transparent 55%),
    linear-gradient(160deg, var(--rh-surface), var(--rh-bg-dark));
  border: 1px solid rgba(15, 45, 68, 0.18);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 14px 34px rgba(15, 45, 68, 0.16);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.rocalde-home .rh-av__slot:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 44px rgba(15, 45, 68, 0.24);
}
.rocalde-home .rh-av__slot::before {
  /* marca de "slot de imagen" — retirar al colocar la foto real */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(214,222,227,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,222,227,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.rocalde-home .rh-av__slot figcaption {
  position: relative;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--rh-text-dim-on-dark);
  padding: 10px 12px;
}
/* Slot con foto/frame real (HOME-MEDIA-1): la imagen cubre el placeholder
   ::before por orden de pintado; el figcaption queda como leyenda legible
   encima gracias al scrim. Quitar --has-media si se retira la imagen. */
.rocalde-home .rh-av__slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rocalde-home .rh-av__slot--has-media figcaption {
  width: 100%;
  background: linear-gradient(0deg, rgba(8, 14, 24, 0.85), rgba(8, 14, 24, 0.15) 75%, transparent);
  color: var(--rh-text-on-dark);
}
/* composición asimétrica de los 4 slots */
.rocalde-home .rh-av__slot--a { grid-column: 1 / 4; grid-row: 1 / 3; }
.rocalde-home .rh-av__slot--b { grid-column: 4 / 7; grid-row: 1 / 2; }
.rocalde-home .rh-av__slot--c { grid-column: 4 / 6; grid-row: 2 / 3; }
.rocalde-home .rh-av__slot--d { grid-column: 6 / 7; grid-row: 2 / 3; }
/* HOME-MEDIA-1-FIX: bajo 760px el grid de 6 columnas desbordaba el viewport
   (bug preexistente, ya ocurría con los slots vacíos). Se apila a 1 columna.
   Va después de las reglas --a/--b/--c/--d a propósito: misma especificidad,
   necesita ganar por orden de cascada. */
@media (max-width: 760px) {
  .rocalde-home .rh-av__media {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .rocalde-home .rh-av__slot--a,
  .rocalde-home .rh-av__slot--b,
  .rocalde-home .rh-av__slot--c,
  .rocalde-home .rh-av__slot--d {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }
}

/* ============================================================
   6 · PRUEBA SOCIAL
   ============================================================ */
.rocalde-home .rh-proof {
  background: var(--rh-bg-warm);
  border-top: 1px solid var(--rh-border);
  padding: 36px 0 44px;
}
.rocalde-home .rh-proof__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rh-ink);
  opacity: 0.55;
  margin-bottom: 18px;
}
.rocalde-home .rh-proof__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.rocalde-home .rh-proof__chip {
  display: flex;
  flex-direction: row; /* HOME-DIFERENCIAL-PREMIUM-1: thumb real + texto */
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--rh-border);
  border-radius: 10px;
  padding: 14px 18px 14px 14px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.rocalde-home a.rh-proof__chip:hover {
  border-color: rgba(30, 155, 196, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 45, 68, 0.12);
}
.rocalde-home a.rh-proof__chip:hover .rh-arrow { transform: translateX(4px); }
.rocalde-home .rh-proof__name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--rh-ink);
}
.rocalde-home .rh-proof__type {
  font-size: 12.5px;
  color: var(--rh-ink);
  opacity: 0.72;
}
.rocalde-home .rh-proof__go {
  font-size: 13px;
  font-weight: 600;
  color: var(--rh-teal-dark);
  margin-top: 8px;
}

/* ============================================================
   7 · CTA FINAL
   ============================================================ */
.rocalde-home .rh-final {
  position: relative;
  background:
    /* contraluz central de cierre: el CTA queda "a contraluz" del horizonte */
    radial-gradient(760px 400px at 50% -5%, rgba(30, 155, 196, 0.18), transparent 62%),
    radial-gradient(420px 200px at 50% 102%, rgba(30, 155, 196, 0.12), transparent 70%),
    radial-gradient(500px 300px at 80% 100%, rgba(242, 106, 27, 0.07), transparent 60%),
    var(--rh-bg-dark);
  padding: clamp(76px, 12vh, 128px) 0;
}
.rocalde-home .rh-final__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rocalde-home .rh-final__sub {
  font-size: 16.5px;
  color: var(--rh-text-dim-on-dark);
  max-width: 52ch;
  margin: 6px 0 32px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.rocalde-home .rh-footer {
  background: var(--rh-bg-dark);
  border-top: 1px solid var(--rh-line-on-dark);
  color: var(--rh-text-dim-on-dark);
  padding: 56px 0 0;
}
.rocalde-home .rh-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
@media (max-width: 860px) {
  .rocalde-home .rh-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .rocalde-home .rh-footer__grid { grid-template-columns: 1fr; }
}
.rocalde-home .rh-footer__logoimg {
  height: 52px;
  width: auto;
  /* la columna es flex: sin esto el img se estira al ancho y se deforma */
  align-self: flex-start;
  object-fit: contain;
}
.rocalde-home .rh-footer__brand p {
  font-size: 13.5px;
  max-width: 32ch;
  margin-top: 14px;
}
.rocalde-home .rh-footer__col { display: flex; flex-direction: column; gap: 10px; }
.rocalde-home .rh-footer__col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}
.rocalde-home .rh-footer__col a {
  font-size: 13.5px;
  color: var(--rh-text-dim-on-dark);
  transition: color 0.2s ease;
  padding: 4px 0; /* objetivo táctil más cómodo en móvil */
}
.rocalde-home .rh-footer__col a:hover { color: var(--rh-teal); }
.rocalde-home .rh-footer__legal {
  border-top: 1px solid var(--rh-line-on-dark);
  padding: 20px clamp(20px, 5vw, 48px);
  max-width: 1180px;
  margin: 0 auto;
}
.rocalde-home .rh-footer__legal p { font-size: 12.5px; opacity: 0.85; }

/* ============================================================
   ACCESIBILIDAD — reduce motion apaga todo lo decorativo
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .rocalde-home .rh-load,
  .rocalde-home.rh-js .rh-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .rocalde-home .rh-hero__bg::after,
  .rocalde-home .rh-emblem__core,
  .rocalde-home .rh-emblem__img,
  .rocalde-home .rh-emblem__backlight,
  .rocalde-home .rh-emblem__pulse { animation: none !important; }
  .rocalde-home .rh-emblem__pulse { opacity: 0 !important; }
  .rocalde-home .rh-hero__spot,
  .rocalde-home .rh-flow,
  .rocalde-home .rh-glow::after { display: none !important; }
  .rocalde-home .rh-contact-orbit__halo,
  .rocalde-home .rh-contact-orbit__blob,
  .rocalde-home .rh-contact-orbit__beam,
  .rocalde-home .rh-contact-orbit__lamp::before,
  .rocalde-home .rh-contact-orbit__lamp::after,
  .rocalde-home .rh-phero__lamp::before,
  .rocalde-home .rh-phero__lamp::after { animation: none !important; }
  .rocalde-home .rh-phero__spot { display: none !important; }
  .rocalde-home .rh-orbit-card { transform: none !important; }
  .rocalde-home .rh-link__dot { animation: none !important; opacity: 0 !important; }
  .rocalde-home .rh-emblem__core { transform: rotateX(-4deg) rotateY(8deg) !important; transition: none !important; }
  .rocalde-home .rh-progress { transition: none !important; box-shadow: none !important; }
  .rocalde-home .rh-h2::after { transition: none !important; width: 76px !important; }
  .rocalde-home * { scroll-behavior: auto !important; }
}

/* Scroll suave para anclas (solo si el usuario no pide lo contrario) */
@media (prefers-reduced-motion: no-preference) {
  html:has(.rocalde-home) { scroll-behavior: smooth; }
}

/* ============================================================
   COMPONENTES DE PÁGINA — familia site_rocalde_custom
   Extienden el sistema de la home para las páginas interiores.
   ============================================================ */

/* --- Page hero: hero compacto para páginas interiores --- */
.rocalde-home .rh-phero {
  position: relative;
  background: var(--rh-bg-dark);
  color: var(--rh-text-on-dark);
  overflow: hidden;
}
.rocalde-home .rh-phero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 420px at 12% -14%, rgba(30, 155, 196, 0.22), transparent 62%),
    radial-gradient(520px 340px at 100% 20%, rgba(242, 106, 27, 0.09), transparent 58%),
    linear-gradient(rgba(214, 222, 227, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 222, 227, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
/* variante cálida — páginas audiovisuales (tungsteno domina, teal apoya) */
.rocalde-home .rh-phero--warm .rh-phero__bg {
  background:
    radial-gradient(800px 420px at 12% -14%, rgba(242, 106, 27, 0.16), transparent 62%),
    radial-gradient(600px 380px at 88% 10%, rgba(243, 241, 215, 0.10), transparent 60%),
    radial-gradient(520px 340px at 100% 60%, rgba(30, 155, 196, 0.10), transparent 58%),
    linear-gradient(rgba(214, 222, 227, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 222, 227, 0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 64px 64px, 64px 64px;
}

/* --- Lamp: haz de luz superior que "cae" sobre el título (contacto.html) ---
   Cono de luz vía conic-gradient + línea filamento; pura CSS, sin JS. */
.rocalde-home .rh-phero__lamp {
  position: absolute;
  top: 0;
  left: 50%;
  width: 720px;
  max-width: 140vw;
  height: 78%;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.rocalde-home .rh-phero__lamp::before {
  content: "";
  position: absolute;
  top: -8%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  background: conic-gradient(from 90deg at 50% 0%,
    transparent 0deg,
    transparent 58deg,
    rgba(242, 106, 27, 0.30) 90deg,
    transparent 122deg,
    transparent 360deg);
  filter: blur(26px);
  animation: rh-lamp-sway 11s ease-in-out infinite;
  transform-origin: 50% 0%;
}
.rocalde-home .rh-phero__lamp::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 200px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 199, 156, 0.95), transparent);
  box-shadow: 0 0 12px 2px rgba(242, 106, 27, 0.6), 0 0 60px 14px rgba(242, 106, 27, 0.28);
  animation: rh-lamp-flicker 6.4s ease-in-out infinite;
}
@keyframes rh-lamp-sway {
  0%, 100% { transform: translateX(-50%) rotate(-3deg); opacity: 0.78; }
  50%      { transform: translateX(-50%) rotate(3deg);  opacity: 1; }
}
@keyframes rh-lamp-flicker {
  0%, 100% { opacity: 0.55; width: 170px; }
  50%      { opacity: 1;    width: 230px; }
}

/* --- Spotlight de mouse propio del hero de contacto (--ct-mx/--ct-my, contacto.js) --- */
.rocalde-home .rh-phero__spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(
    560px circle at var(--ct-mx, 50%) var(--ct-my, 32%),
    rgba(242, 106, 27, 0.14),
    rgba(242, 106, 27, 0.05) 42%,
    transparent 72%
  );
}
.rocalde-home.rh-pointer .rh-phero--contact .rh-phero__spot { opacity: 1; }
.rocalde-home .rh-phero__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) clamp(20px, 5vw, 48px) clamp(48px, 8vh, 84px);
}
.rocalde-home .rh-phero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 22ch;
  margin-bottom: 18px;
}
.rocalde-home .rh-phero__sub {
  font-size: clamp(16px, 1.9vw, 18px);
  max-width: 58ch;
  color: var(--rh-text-dim-on-dark);
  margin-bottom: 30px;
}
.rocalde-home .rh-phero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- RH-FLOW variante cálida (video / fotografía) --- */
.rocalde-home .rh-flow--warm i {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(242, 106, 27, 0.45) 35%,
    rgba(242, 106, 27, 0.08) 100%);
}
.rocalde-home .rh-flow--warm i:nth-child(3) {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(30, 155, 196, 0.5) 35%,
    rgba(30, 155, 196, 0.08) 100%);
}

/* --- Steps: proceso numerado (diagnóstico, metodologías) --- */
.rocalde-home .rh-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  counter-reset: rh-step;
}
.rocalde-home .rh-step {
  counter-increment: rh-step;
  background: var(--rh-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(30, 155, 196, 0.20);
  border-radius: 10px;
  padding: 22px 20px 18px;
}
.rocalde-home .rh-step::before {
  content: "0" counter(rh-step);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rh-teal);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.rocalde-home .rh-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.rocalde-home .rh-step p {
  font-size: 13.8px;
  color: var(--rh-text-dim-on-dark);
}

/* --- Nodes: diagrama de flujo (automatizaciones) --- */
.rocalde-home .rh-nodes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 26px 0;
}
.rocalde-home .rh-node {
  display: inline-flex;
  align-items: center;
  background: var(--rh-glass);
  border: 1px solid rgba(30, 155, 196, 0.30);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rh-text-on-dark);
  box-shadow: inset 0 1px 0 rgba(244, 247, 250, 0.06);
}
.rocalde-home .rh-node--result {
  border-color: rgba(242, 106, 27, 0.45);
  color: #FF9E63;
}
.rocalde-home .rh-nodes .rh-link {
  color: var(--rh-teal);
  font-size: 16px;
  opacity: 0.8;
}

/* --- Señales: lista de reconocimiento ("esto te pasa si...") --- */
.rocalde-home .rh-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
}
.rocalde-home .rh-signal {
  border-left: 2px solid var(--rh-teal);
  background: linear-gradient(90deg, rgba(23, 48, 66, 0.55), rgba(23, 48, 66, 0));
  padding: 14px 18px;
  font-size: 15px;
  color: var(--rh-text-on-dark);
  border-radius: 0 8px 8px 0;
}

/* --- Rutas de contacto (contacto.html) --- */
.rocalde-home .rh-routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.rocalde-home .rh-route {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--rh-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 155, 196, 0.22);
  border-radius: 12px;
  padding: 26px 24px 22px;
  box-shadow: inset 0 1px 0 rgba(244, 247, 250, 0.06), 0 18px 40px rgba(4, 8, 14, 0.45);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
.rocalde-home .rh-route:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 155, 196, 0.55);
  box-shadow: inset 0 1px 0 rgba(244, 247, 250, 0.08), 0 26px 56px rgba(4, 8, 14, 0.6);
}
.rocalde-home .rh-route:hover .rh-arrow { transform: translateX(4px); }
.rocalde-home .rh-route--primary { border-color: rgba(242, 106, 27, 0.4); }
.rocalde-home .rh-route--primary:hover { border-color: rgba(242, 106, 27, 0.7); }
.rocalde-home .rh-route__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rh-teal);
}
.rocalde-home .rh-route--primary .rh-route__kicker { color: #FF9E63; }
.rocalde-home .rh-route h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.rocalde-home .rh-route p {
  font-size: 14px;
  color: var(--rh-text-dim-on-dark);
  flex-grow: 1;
}
.rocalde-home .rh-route__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--rh-teal);
  margin-top: 6px;
}
.rocalde-home .rh-route--primary .rh-route__cta { color: var(--rh-orange); }

/* --- CTA final inmersivo (contacto.html) — atmósfera cobre tipo shader,
   con lamp superior y parallax de profundidad al scroll (contacto.js) --- */
.rocalde-home .rh-contact-orbit {
  position: relative;
  overflow: hidden;
  background: var(--rh-bg-dark);
  padding: clamp(84px, 13vh, 140px) 0;
}
.rocalde-home .rh-contact-orbit__bg {
  position: absolute;
  inset: -6% -6%;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
}
.rocalde-home .rh-contact-orbit__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(960px 520px at 50% 4%, rgba(242, 106, 27, 0.20), transparent 62%),
    radial-gradient(760px 460px at 10% 94%, rgba(242, 106, 27, 0.10), transparent 60%),
    radial-gradient(760px 460px at 90% 98%, rgba(30, 155, 196, 0.09), transparent 60%);
}
.rocalde-home .rh-contact-orbit__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 106, 27, 0.22), rgba(242, 106, 27, 0.06) 45%, transparent 72%);
  filter: blur(20px);
  animation: rh-orbit-breathe 9s ease-in-out infinite alternate;
}
/* Lamp: haz superior que cae sobre el título — mismo lenguaje que el hero */
.rocalde-home .rh-contact-orbit__lamp {
  position: absolute;
  top: -8%;
  left: 50%;
  width: 900px;
  max-width: 160vw;
  height: 58%;
  transform: translateX(-50%);
  pointer-events: none;
}
.rocalde-home .rh-contact-orbit__lamp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 90deg at 50% 0%,
    transparent 0deg, transparent 55deg,
    rgba(242, 106, 27, 0.26) 90deg,
    transparent 125deg, transparent 360deg);
  filter: blur(34px);
  animation: rh-lamp-sway 13s ease-in-out infinite;
}
.rocalde-home .rh-contact-orbit__lamp::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 260px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 199, 156, 0.92), transparent);
  box-shadow: 0 0 16px 3px rgba(242, 106, 27, 0.55), 0 0 70px 18px rgba(242, 106, 27, 0.22);
  animation: rh-lamp-flicker 7s ease-in-out infinite;
}
.rocalde-home .rh-contact-orbit__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.rocalde-home .rh-contact-orbit__blob--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: 8%;
  background: radial-gradient(circle, rgba(242, 106, 27, 0.35), transparent 70%);
  animation: rh-orbit-drift-a 22s ease-in-out infinite alternate;
}
.rocalde-home .rh-contact-orbit__blob--2 {
  width: 360px;
  height: 360px;
  bottom: -140px;
  right: 10%;
  background: radial-gradient(circle, rgba(243, 241, 215, 0.16), transparent 70%);
  animation: rh-orbit-drift-b 26s ease-in-out infinite alternate;
}
.rocalde-home .rh-contact-orbit__blob--3 {
  width: 300px;
  height: 300px;
  top: 22%;
  right: 28%;
  background: radial-gradient(circle, rgba(30, 155, 196, 0.16), transparent 70%);
  opacity: 0.5;
  animation: rh-orbit-drift-c 30s ease-in-out infinite alternate;
}
.rocalde-home .rh-contact-orbit__beam {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 106, 27, 0.55) 45%, rgba(243, 241, 215, 0.4) 55%, transparent);
  box-shadow: 0 0 24px 2px rgba(242, 106, 27, 0.25);
  animation: rh-orbit-beam 12s ease-in-out infinite;
}
@keyframes rh-orbit-breathe {
  from { opacity: 0.7; transform: scale(0.94); }
  to   { opacity: 1;   transform: scale(1.04); }
}
@keyframes rh-orbit-drift-a {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(30px, 24px, 0); }
}
@keyframes rh-orbit-drift-b {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-26px, -20px, 0); }
}
@keyframes rh-orbit-drift-c {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(18px, -30px, 0); }
}
@keyframes rh-orbit-beam {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50%      { opacity: 0.8;  transform: translateY(-6px); }
}
.rocalde-home .rh-contact-orbit__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rocalde-home .rh-contact-orbit__sub {
  font-size: 16.5px;
  color: var(--rh-text-dim-on-dark);
  max-width: 58ch;
  margin: 6px 0 40px;
}
.rocalde-home .rh-orbit-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  width: 100%;
}
/* Ensamblaje escalonado de las 4 cards, mismo lenguaje que .rh-direct__grid */
.rocalde-home.rh-js .rh-orbit-grid .rh-reveal:nth-child(2) { transition-delay: 0.08s; }
.rocalde-home.rh-js .rh-orbit-grid .rh-reveal:nth-child(3) { transition-delay: 0.16s; }
.rocalde-home.rh-js .rh-orbit-grid .rh-reveal:nth-child(4) { transition-delay: 0.24s; }
.rocalde-home .rh-orbit-card {
  --rx: 0deg;
  --ry: 0deg;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  background: var(--rh-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(242, 106, 27, 0.22);
  border-radius: 12px;
  padding: 24px 22px 20px;
  box-shadow: inset 0 1px 0 rgba(244, 247, 250, 0.06), 0 18px 40px rgba(4, 8, 14, 0.45);
  transform: perspective(900px) rotateX(var(--ry)) rotateY(var(--rx));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
.rocalde-home .rh-orbit-card:hover {
  transform: perspective(900px) rotateX(var(--ry)) rotateY(var(--rx)) translateY(-8px) scale(1.015);
  border-color: rgba(242, 106, 27, 0.55);
  box-shadow: inset 0 1px 0 rgba(244, 247, 250, 0.08), 0 30px 60px rgba(4, 8, 14, 0.62);
}
.rocalde-home .rh-orbit-card:hover .rh-arrow { transform: translateX(4px); }
.rocalde-home .rh-orbit-card--primary {
  border-color: rgba(242, 106, 27, 0.45);
  background: linear-gradient(160deg, rgba(242, 106, 27, 0.14), var(--rh-glass) 60%);
}
.rocalde-home .rh-orbit-card__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FF9E63;
}
.rocalde-home .rh-orbit-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.rocalde-home .rh-orbit-card__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--rh-orange);
  margin-top: 4px;
}

/* --- Galería genérica de slots (video / fotografía) --- */
.rocalde-home .rh-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 170px;
  gap: 12px;
  margin-top: 28px;
}
.rocalde-home .rh-gallery .rh-av__slot { border-radius: 10px; }

/* --- Sección genérica oscura / clara para páginas interiores --- */
.rocalde-home .rh-sect--dark {
  position: relative;
  background:
    radial-gradient(800px 460px at 0% 0%, rgba(27, 79, 114, 0.26), transparent 60%),
    var(--rh-bg-dark);
  padding: clamp(52px, 8vh, 88px) 0;
}
.rocalde-home .rh-sect--light {
  position: relative;
  background: var(--rh-bg-light);
  padding: clamp(52px, 8vh, 88px) 0;
}
.rocalde-home .rh-sect--warm {
  position: relative;
  background:
    radial-gradient(800px 480px at 8% -8%, rgba(243, 241, 215, 0.5), transparent 62%),
    var(--rh-bg-warm);
  padding: clamp(52px, 8vh, 88px) 0;
}



/* ============================================================
   PASADA UX/UI 2026-07-02 — clases que reemplazan estilos inline
   ============================================================ */
.rocalde-home .rh-dcard--dark {
  background: var(--rh-glass);
  border-color: rgba(30, 155, 196, 0.22);
}
.rocalde-home .rh-dcard--dark .rh-dcard__title { color: #fff; }
.rocalde-home .rh-dcard--dark .rh-dcard__desc { color: var(--rh-text-dim-on-dark); opacity: 1; }
.rocalde-home .rh-dcard--accent { border-color: rgba(242, 106, 27, 0.35); }
.rocalde-home .rh-lead--dark { color: var(--rh-text-dim-on-dark); opacity: 1; }
.rocalde-home .rh-sysblock { margin-bottom: 40px; }
.rocalde-home .rh-sysblock--last { margin-bottom: 8px; }
.rocalde-home .rh-sect--tight { padding-top: 0; }
.rocalde-home .rh-mt-md { margin-top: 20px; }
.rocalde-home .rh-mt-lg { margin-top: 44px; }
.rocalde-home .rh-note-dim {
  color: var(--rh-text-dim-on-dark);
  font-size: 14px;
  margin-top: 30px;
  max-width: 70ch;
}
.rocalde-home .rh-a-teal { color: var(--rh-teal); }
.rocalde-home .rh-a-warm { color: #FF9E63; }
.rocalde-home .rh-final__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.rocalde-home .rh-mt-sm { margin-top: 10px; }

/* ============================================================
   SYS-AUTO-VIS-1 (2026-07-08) — escalera de sistemas + flujo animado
   Ver docs/SPEC_VISUAL_SISTEMAS_AUTOMATIZACIONES.md
   ============================================================ */

/* --- Escalera de sistemas (sistemas.html §La escalera) --- */
.rocalde-home .rh-ladder { margin-top: 40px; }
.rocalde-home .rh-ladder__steps {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.rocalde-home .rh-ladder__step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--rh-border);
  border-top: 3px solid var(--rh-teal);
  border-radius: 10px 10px 0 0;
  padding: 16px 14px;
  box-shadow: 0 10px 26px rgba(15, 45, 68, 0.08);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.rocalde-home .rh-ladder__step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 45, 68, 0.14);
}
.rocalde-home .rh-ladder__step--1 { height: 92px; }
.rocalde-home .rh-ladder__step--2 { height: 122px; }
.rocalde-home .rh-ladder__step--3 { height: 152px; }
.rocalde-home .rh-ladder__step--4 { height: 182px; border-top-color: var(--rh-orange); }
.rocalde-home .rh-ladder__n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rh-teal-dark);
}
.rocalde-home .rh-ladder__step--4 .rh-ladder__n { color: var(--rh-orange); }
.rocalde-home .rh-ladder__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--rh-ink);
}
.rocalde-home .rh-ladder__base {
  margin-top: 10px;
  padding: 14px 18px;
  background: var(--rh-ink);
  border-radius: 10px;
  text-align: center;
}
.rocalde-home .rh-ladder__base-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--rh-text-on-dark);
  overflow-wrap: break-word;
}
@media (max-width: 760px) {
  .rocalde-home .rh-ladder__steps { flex-direction: column; align-items: stretch; gap: 8px; }
  .rocalde-home .rh-ladder__step,
  .rocalde-home .rh-ladder__step--1,
  .rocalde-home .rh-ladder__step--2,
  .rocalde-home .rh-ladder__step--3,
  .rocalde-home .rh-ladder__step--4 {
    height: auto;
    flex-direction: row;
    justify-content: flex-start; /* la regla base trae flex-end (pensada para la columna de desktop) */
    align-items: center;
    border-top: 1px solid var(--rh-border);
    border-left: 3px solid var(--rh-teal);
    border-radius: 8px;
    padding: 12px 14px;
  }
  .rocalde-home .rh-ladder__step--4 { border-left-color: var(--rh-orange); }
}

/* --- Flujo animado (automatizaciones.html §Cómo se ve un proceso automatizado) ---
   El conector deja de ser una flecha de texto: ahora es una línea con punta
   dibujada en CSS y una señal (punto) que recorre cada tramo en relé. */
.rocalde-home .rh-nodes .rh-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 34px;
  height: 2px;
  margin: 0 8px;
  background: linear-gradient(90deg, rgba(30, 155, 196, 0.55), rgba(30, 155, 196, 0.15));
  border-radius: 2px;
  flex-shrink: 0;
}
.rocalde-home .rh-nodes .rh-link::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(30, 155, 196, 0.55);
  border-bottom: 2px solid rgba(30, 155, 196, 0.55);
  transform: translateY(-50%) rotate(-45deg);
}
.rocalde-home .rh-link__dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rh-teal);
  box-shadow: 0 0 6px 1px rgba(30, 155, 196, 0.7);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: rh-node-travel 4.8s linear infinite;
}
@keyframes rh-node-travel {
  0%   { left: 0%;   opacity: 0; }
  2%   { opacity: 1; }
  18%  { left: 100%; opacity: 1; }
  22%  { opacity: 0; }
  100% { left: 100%; opacity: 0; }
}
/* relé: cada tramo se activa 1.2s después del anterior, dentro de un mismo ciclo de 4.8s */
.rocalde-home .rh-nodes .rh-link:nth-child(2) .rh-link__dot { animation-delay: 0s; }
.rocalde-home .rh-nodes .rh-link:nth-child(4) .rh-link__dot { animation-delay: 1.2s; }
.rocalde-home .rh-nodes .rh-link:nth-child(6) .rh-link__dot { animation-delay: 2.4s; }
.rocalde-home .rh-nodes .rh-link:nth-child(8) .rh-link__dot { animation-delay: 3.6s; }
@media (max-width: 640px) {
  .rocalde-home .rh-nodes { flex-direction: column; align-items: flex-start; gap: 0; }
  .rocalde-home .rh-nodes .rh-link {
    width: 2px;
    height: 22px;
    margin: 6px 0 6px 18px;
  }
  .rocalde-home .rh-nodes .rh-link::after {
    right: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(50%) rotate(45deg);
  }
  .rocalde-home .rh-link__dot { animation-name: rh-node-travel-vertical; }
  @keyframes rh-node-travel-vertical {
    0%   { top: 0%;   left: 50%; opacity: 0; }
    2%   { opacity: 1; }
    18%  { top: 100%; opacity: 1; }
    22%  { opacity: 0; }
    100% { top: 100%; opacity: 0; }
  }
}

/* ============================================================
   MEDIOS 2026-07-02 — portafolio reusable + lightbox + video
   Patrones: docs/MAPA_SITIO_CUSTOM.md §Medios
   ============================================================ */
/* Filtros */
.rocalde-home .rh-pf__filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px;
}
.rocalde-home .rh-pf__filter {
  font-family: var(--rh-font);
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--rh-text-dim-on-dark);
  background: transparent;
  border: 1px solid var(--rh-line-on-dark);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.rocalde-home .rh-pf__filter:hover { color: #fff; border-color: rgba(30, 155, 196, 0.5); }
.rocalde-home .rh-pf__filter.is-active {
  color: #fff;
  background: rgba(30, 155, 196, 0.16);
  border-color: rgba(30, 155, 196, 0.6);
}
/* Grid y cards */
.rocalde-home .rh-pf__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 14px;
}
.rocalde-home .rh-pfcard {
  display: flex; flex-direction: column; text-align: left;
  font-family: var(--rh-font);
  background: var(--rh-glass);
  border: 1px solid rgba(30, 155, 196, 0.22);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
.rocalde-home .rh-pfcard:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 155, 196, 0.5);
  box-shadow: 0 18px 40px rgba(4, 8, 14, 0.5);
}
.rocalde-home .rh-pfcard.is-hidden { display: none; }
.rocalde-home .rh-pfcard__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex; align-items: flex-end;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(30, 155, 196, 0.14), transparent 55%),
    linear-gradient(160deg, var(--rh-surface), var(--rh-bg-dark));
}
.rocalde-home .rh-pfcard__thumb::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(214,222,227,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,222,227,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.rocalde-home .rh-pfcard__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rocalde-home .rh-pfcard__slotnote {
  position: relative; font-size: 11px; color: var(--rh-text-dim-on-dark); padding: 8px 10px; line-height: 1.4;
}
.rocalde-home .rh-pfcard__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.rocalde-home .rh-pfcard__play::before {
  content: "▶";
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(30, 155, 196, 0.55);
  background: rgba(8, 14, 24, 0.6);
  color: #fff; font-size: 15px; padding-left: 3px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.rocalde-home .rh-pfcard:hover .rh-pfcard__play::before { transform: scale(1.08); border-color: var(--rh-teal); }
.rocalde-home .rh-pfcard__meta { padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 3px; }
.rocalde-home .rh-pfcard__meta b { font-size: 14.5px; font-weight: 700; color: #fff; }
.rocalde-home .rh-pfcard__meta i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--rh-teal); }
.rocalde-home .rh-pfcard__cta { font-size: 13px; font-weight: 600; color: var(--rh-teal); padding: 0 14px 13px; }
.rocalde-home .rh-pfcard--pendiente .rh-pfcard__meta i { color: #C9A227; }

/* Lightbox */
.rocalde-home .rh-lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  background: rgba(4, 8, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rocalde-home .rh-lightbox[hidden] { display: none; }
.rocalde-home .rh-lightbox__dialog {
  position: relative;
  width: min(920px, 100%);
  background: var(--rh-surface);
  border: 1px solid rgba(30, 155, 196, 0.35);
  border-radius: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.rocalde-home .rh-lightbox__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--rh-bg-dark);
  display: grid; place-items: center;
  color: var(--rh-text-dim-on-dark);
  font-family: var(--rh-font); font-size: 14px; text-align: center;
  padding: 0;
}
.rocalde-home .rh-lightbox__media p { padding: 24px; max-width: 46ch; }
.rocalde-home .rh-lightbox__media iframe { width: 100%; height: 100%; border: 0; }
/* GALLERY-HARD-CLEAN-1: eliminada la regla legado
   `.rh-lightbox__media img { position:absolute; inset:0; object-fit:cover }`.
   Pintaba una copia estirada a marco completo DEBAJO de la foto contenida
   (el "fantasma"). Cada contexto de imagen del modal tiene ahora su propia
   regla explícita: stage, fachada de video y miniaturas. */
.rocalde-home .rh-lightbox__note {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 14px 18px;
  font-size: 12.5px; text-align: left; max-width: none;
  color: var(--rh-text-dim-on-dark);
  background: linear-gradient(to top, rgba(4, 8, 14, 0.88), transparent);
}

/* --- Modo galería (VIDEO-FOTO-ASSETS-1, corrección lightbox 2026-07-09) ---
   La imagen completa nunca se recorta: el contenedor deja de tener
   aspect-ratio fijo y se adapta a la orientación real de la foto. */
.rocalde-home .rh-lightbox__media--stage {
  aspect-ratio: auto;
  height: min(76vh, 720px);
  display: flex; flex-direction: column;
  padding: 0;
}
.rocalde-home .rh-lightbox__stage-img-wrap {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  /* GALLERY-CLEAN-TRANSITION-1: fondo neutro plano — el lavado teal
     anterior se veía como un velo sobre fotos con letterbox. Sin capas
     ni overlays sobre la imagen. */
  background: var(--rh-bg-dark);
}
.rocalde-home .rh-lightbox__stage-img-wrap img {
  position: static;
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
  display: block;
}
/* GALLERY-HARD-CLEAN-1: estabilidad total del visor fotográfico.
   El único <img> del stage no admite transición, opacidad parcial,
   blend, filtro ni fondo — el swap lo hace JS con precarga y el
   navegador pinta el cambio en un solo frame. */
.rocalde-home .rh-lightbox__stage-img {
  opacity: 1 !important;
  visibility: visible !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  background: none !important;
  transition: none !important;
}
.rocalde-home .rh-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(8, 14, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.rocalde-home .rh-lightbox__nav:hover { background: rgba(30, 155, 196, 0.4); border-color: var(--rh-teal); }
.rocalde-home .rh-lightbox__nav--prev { left: 12px; }
.rocalde-home .rh-lightbox__nav--next { right: 12px; }
.rocalde-home .rh-lightbox__count {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  color: #fff;
  background: rgba(8, 14, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px; padding: 4px 10px;
}
.rocalde-home .rh-lightbox__thumbs {
  flex: 0 0 auto;
  display: flex; gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  background: var(--rh-surface);
}
.rocalde-home .rh-lightbox__thumb {
  flex: 0 0 auto; width: 64px; height: 44px;
  border-radius: 6px; overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: none;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.rocalde-home .rh-lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rocalde-home .rh-lightbox__thumb.is-active { opacity: 1; border-color: var(--rh-teal); }
@media (max-width: 640px) {
  .rocalde-home .rh-lightbox__media--stage { height: min(58vh, 480px); }
  .rocalde-home .rh-lightbox__nav { width: 34px; height: 34px; font-size: 15px; }
}
.rocalde-home .rh-lightbox__caption { padding: 14px 18px 16px; }
.rocalde-home .rh-lightbox__title { font-size: 15.5px; font-weight: 700; color: #fff; }
.rocalde-home .rh-lightbox__sub { font-size: 12.5px; color: var(--rh-text-dim-on-dark); margin-top: 2px; }
.rocalde-home .rh-lightbox__close {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 42px; height: 42px;
  border-radius: 8px;
  background: rgba(8, 14, 24, 0.72);
  border: 1px solid var(--rh-line-on-dark);
  color: #fff; font-size: 19px; line-height: 1;
  cursor: pointer;
}
.rocalde-home .rh-lightbox__close:hover { border-color: var(--rh-teal); }

/* Video ambiental (patrón — sin asset todavía): loop corto, mudo, decorativo */
.rocalde-home .rh-video-ambient {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .rocalde-home .rh-video-ambient { display: none !important; }
}

/* ============================================================
   VIDEO-FOTO-ASSETS-1 (2026-07-09) — profundidad espacial en portafolio
   Reinterpreta REF_01 (glow suspendido) + mecánica de zoom de SEQ_03.
   Ver 00_REFERENCIAS_VISUALES/21st_dev_spatial_ui_2026-07-08/README_REFERENCIAS.md
   CSS puro · sin librerías · sin tocar el layout de la grilla.
   ============================================================ */

/* El thumb recorta el zoom del <img> y contiene el glow */
.rocalde-home .rh-pfcard__thumb { overflow: hidden; }

/* Zoom lento al hover (SEQ_03, reinterpretado) */
.rocalde-home .rh-pfcard__thumb img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}
.rocalde-home .rh-pfcard:hover .rh-pfcard__thumb img,
.rocalde-home .rh-pfcard:focus-visible .rh-pfcard__thumb img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.03);
}

/* Velo inferior: solo al hover/focus (GASTRO-FIX-1). En reposo la imagen se ve limpia y completa. */
.rocalde-home .rh-pfcard__thumb:has(img)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: 30%;
  background: linear-gradient(to top, rgba(8, 14, 24, 0.6), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rocalde-home .rh-pfcard:hover .rh-pfcard__thumb:has(img)::after,
.rocalde-home .rh-pfcard:focus-visible .rh-pfcard__thumb:has(img)::after {
  opacity: 1;
}

/* Glow suspendido (REF_01 "Lamp", reinterpretado): barra de luz sobre la pieza */
.rocalde-home .rh-pfcard__glow {
  position: absolute; left: 50%; top: 0; z-index: 2;
  width: 56%; height: 2px;
  transform: translateX(-50%) scaleX(0.4);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--rh-teal), transparent);
  box-shadow: 0 0 24px 5px rgba(30, 155, 196, 0.45);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.rocalde-home .rh-pfcard:hover .rh-pfcard__glow,
.rocalde-home .rh-pfcard:focus-visible .rh-pfcard__glow {
  opacity: 0.95;
  transform: translateX(-50%) scaleX(1);
}

/* El play queda por encima del velo y del glow */
.rocalde-home .rh-pfcard__play { z-index: 3; }

/* Placeholder intencional (card sin asset autorizado): se lee como decisión, no como error */
.rocalde-home .rh-pfcard--pendiente .rh-pfcard__thumb { align-items: center; justify-content: center; }
.rocalde-home .rh-pfcard--pendiente .rh-pfcard__slotnote {
  text-align: center;
  border: 1px dashed rgba(214, 222, 227, 0.28);
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 78%;
  color: var(--rh-text-dim-on-dark);
  background: rgba(8, 14, 24, 0.35);
}
.rocalde-home .rh-pfcard--pendiente .rh-pfcard__slotnote::before {
  content: "Próximamente";
  display: block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #C9A227;
  margin-bottom: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .rocalde-home .rh-pfcard__thumb img { transition: none !important; }
  .rocalde-home .rh-pfcard:hover .rh-pfcard__thumb img,
  .rocalde-home .rh-pfcard:focus-visible .rh-pfcard__thumb img { transform: none !important; filter: none !important; }
  .rocalde-home .rh-pfcard__glow { transition: none !important; }
}

/* ============================================================
   VIDEO-EMBED-1 (2026-07-09) — showreel destacado + galerías de
   video YouTube con fachada liviana en el lightbox.
   El iframe solo existe tras pulsar play; se destruye al navegar
   o cerrar. Sin librerías, sin dependencias.
   ============================================================ */

/* Showreel destacado: pieza protagonista sobre la grilla */
.rocalde-home .rh-showreel {
  display: block; width: 100%;
  margin: 0 0 26px;
  padding: 0;
  border: 1px solid rgba(30, 155, 196, 0.3);
  border-radius: 14px;
  background: var(--rh-bg-dark);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.rocalde-home .rh-showreel:hover,
.rocalde-home .rh-showreel:focus-visible {
  border-color: var(--rh-teal);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.rocalde-home .rh-showreel__frame {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.rocalde-home .rh-showreel__frame img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.rocalde-home .rh-showreel:hover .rh-showreel__frame img { transform: scale(1.03); }
.rocalde-home .rh-showreel__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(4, 8, 14, 0.78), transparent 45%);
  pointer-events: none;
}
.rocalde-home .rh-showreel__label {
  position: absolute; left: 20px; bottom: 16px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
}
.rocalde-home .rh-showreel__label b { font-size: 17px; font-weight: 700; color: #fff; }
.rocalde-home .rh-showreel__label i {
  font-style: normal; font-size: 11px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--rh-teal);
}

/* Botón play compartido: showreel y fachada del lightbox */
.rocalde-home .rh-showreel__play,
.rocalde-home .rh-lightbox__playbtn {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(8, 14, 24, 0.62);
  border: 2px solid rgba(255, 255, 255, 0.65);
  padding: 0; cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.rocalde-home .rh-showreel__play::after,
.rocalde-home .rh-lightbox__playbtn::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.rocalde-home .rh-showreel:hover .rh-showreel__play,
.rocalde-home .rh-showreel:focus-visible .rh-showreel__play,
.rocalde-home .rh-lightbox__playbtn:hover,
.rocalde-home .rh-lightbox__playbtn:focus-visible {
  transform: scale(1.08);
  border-color: var(--rh-teal);
  background: rgba(30, 155, 196, 0.35);
}

/* Frame intercambiable dentro del escenario del lightbox:
   contiene la imagen, la fachada de video o el iframe activo */
.rocalde-home .rh-lightbox__frame {
  position: relative; width: 100%; height: 100%; min-height: 0;
  display: flex; align-items: center; justify-content: center;
}
.rocalde-home .rh-lightbox__frame iframe { width: 100%; height: 100%; border: 0; }

/* Fachada de video: thumbnail oficial de YouTube + play. Cero iframes. */
.rocalde-home .rh-lightbox__facade {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.rocalde-home .rh-lightbox__facade img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; display: block;
  position: static;
}

/* Miniatura de video en la bandeja: glifo de play sobre el thumb */
.rocalde-home .rh-lightbox__thumb--video { position: relative; }
.rocalde-home .rh-lightbox__thumb--video::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

@media (max-width: 640px) {
  .rocalde-home .rh-showreel { margin-bottom: 18px; border-radius: 10px; }
  .rocalde-home .rh-showreel__label { left: 14px; bottom: 10px; }
  .rocalde-home .rh-showreel__label b { font-size: 14.5px; }
  .rocalde-home .rh-showreel__play,
  .rocalde-home .rh-lightbox__playbtn {
    width: 54px; height: 54px; margin: -27px 0 0 -27px;
  }
  .rocalde-home .rh-showreel__play::after,
  .rocalde-home .rh-lightbox__playbtn::after {
    border-width: 9px 0 9px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rocalde-home .rh-showreel__frame img { transition: none !important; }
  .rocalde-home .rh-showreel:hover .rh-showreel__frame img { transform: none !important; }
  .rocalde-home .rh-showreel__play,
  .rocalde-home .rh-lightbox__playbtn { transition: none !important; }
}

/* ============================================================
   FOTO-PORTFOLIO-SPATIAL-1 (2026-07-09) — mosaico editorial
   asimétrico con profundidad: parallax liviano (JS, transform),
   luz superior tipo Lamp y zoom con sombra al hover.
   VELO: eliminado por diseño. La foto se ve limpia en reposo;
   la legibilidad del texto vive en un chip compacto, no en un
   gradiente sobre la imagen.
   ============================================================ */
.rocalde-home .rh-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.rocalde-home .rh-mcard {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid rgba(30, 155, 196, 0.22);
  border-radius: 12px;
  overflow: hidden;
  background: var(--rh-bg-dark);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}
.rocalde-home .rh-mcard--xl { grid-column: span 2; grid-row: span 2; }
.rocalde-home .rh-mcard--tall { grid-row: span 2; }
.rocalde-home .rh-mcard--wide { grid-column: span 2; }
.rocalde-home .rh-mcard:hover,
.rocalde-home .rh-mcard:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(30, 155, 196, 0.55);
  box-shadow: 0 24px 50px rgba(4, 8, 14, 0.55);
}
.rocalde-home .rh-mcard__thumb {
  position: absolute; inset: 0;
  display: block; overflow: hidden;
}
/* Capa de parallax: más alta que el tile para dar recorrido al translate */
.rocalde-home .rh-mcard__pwrap {
  position: absolute; inset: -8% 0;
  will-change: transform;
}
.rocalde-home .rh-mcard__pwrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}
.rocalde-home .rh-mcard:hover .rh-mcard__pwrap img,
.rocalde-home .rh-mcard:focus-visible .rh-mcard__pwrap img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.03);
}
/* Luz superior tipo Lamp: barra tenue en reposo, plena al hover + cono de luz */
.rocalde-home .rh-mcard__lamp {
  position: absolute; left: 50%; top: 0; z-index: 2;
  width: 62%; height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--rh-teal), transparent);
  box-shadow: 0 0 22px 5px rgba(30, 155, 196, 0.35);
  opacity: 0.35;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.rocalde-home .rh-mcard__lamp::after {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 150%; height: 90px;
  transform: translateX(-50%);
  background: radial-gradient(60% 100% at 50% 0%, rgba(30, 155, 196, 0.22), transparent 75%);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.rocalde-home .rh-mcard:hover .rh-mcard__lamp,
.rocalde-home .rh-mcard:focus-visible .rh-mcard__lamp { opacity: 0.95; }
.rocalde-home .rh-mcard:hover .rh-mcard__lamp::after,
.rocalde-home .rh-mcard:focus-visible .rh-mcard__lamp::after { opacity: 1; }
/* Chip de categoría: legible por sí mismo, nunca un velo sobre la foto */
.rocalde-home .rh-mcard__label {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  display: inline-flex; flex-direction: column; gap: 1px;
  padding: 8px 12px 9px;
  border-radius: 9px;
  background: rgba(8, 14, 24, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
}
.rocalde-home .rh-mcard__label b {
  font-family: var(--rh-font);
  font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2;
}
.rocalde-home .rh-mcard__label i {
  font-style: normal; font-family: var(--rh-font);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--rh-teal);
}
/* Entrada suave del mosaico con leve escalonado */
.rocalde-home .rh-mosaic .rh-mcard { opacity: 0; transform: translateY(14px); }
.rocalde-home .rh-mosaic.is-visible .rh-mcard {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}
.rocalde-home .rh-mosaic.is-visible .rh-mcard:nth-child(2) { transition-delay: 0.08s; }
.rocalde-home .rh-mosaic.is-visible .rh-mcard:nth-child(3) { transition-delay: 0.16s; }
.rocalde-home .rh-mosaic.is-visible .rh-mcard:nth-child(4) { transition-delay: 0.24s; }
.rocalde-home .rh-mosaic.is-visible .rh-mcard:nth-child(5) { transition-delay: 0.32s; }
.rocalde-home .rh-mosaic.is-visible .rh-mcard:nth-child(6) { transition-delay: 0.40s; }
.rocalde-home .rh-mosaic.is-visible .rh-mcard:hover,
.rocalde-home .rh-mosaic.is-visible .rh-mcard:focus-visible { transform: translateY(-5px); }

@media (max-width: 900px) {
  .rocalde-home .rh-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}
@media (max-width: 640px) {
  .rocalde-home .rh-mosaic { grid-auto-rows: 140px; gap: 10px; }
  .rocalde-home .rh-mcard__label { left: 8px; bottom: 8px; padding: 6px 10px 7px; }
  .rocalde-home .rh-mcard__label b { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .rocalde-home .rh-mcard,
  .rocalde-home .rh-mcard__pwrap img,
  .rocalde-home .rh-mcard__lamp,
  .rocalde-home .rh-mcard__lamp::after { transition: none !important; }
  .rocalde-home .rh-mcard__pwrap { transform: none !important; }
  .rocalde-home .rh-mosaic .rh-mcard { opacity: 1; transform: none; }
}

/* ============================================================
   SERVICIOS-SISTEMAS-PREMIUM-1 2026-07-09 — casos reales,
   microdiagramas de sistema y cierre con contraluz cobre
   ============================================================ */

/* ---- Casos reales (servicios.html, sección Proyectos) ---- */
.rocalde-home .rh-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 34px;
}
@media (max-width: 760px) {
  .rocalde-home .rh-cases { grid-template-columns: 1fr; gap: 18px; }
}
.rocalde-home .rh-case {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 45, 68, 0.10);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 45, 68, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.rocalde-home .rh-case:hover,
.rocalde-home .rh-case:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(30, 155, 196, 0.45);
  box-shadow: 0 26px 60px rgba(15, 45, 68, 0.16);
}
.rocalde-home .rh-case__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rh-ink);
}
.rocalde-home .rh-case__media img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.015);
  filter: saturate(0.96);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
}
.rocalde-home .rh-case:hover .rh-case__media img,
.rocalde-home .rh-case:focus-visible .rh-case__media img {
  transform: scale(1.06);
  filter: saturate(1.05);
}
/* barrido de luz diagonal al hover — mismo lenguaje que el zoom del modal de fotografía */
.rocalde-home .rh-case__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.16) 47%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.9s ease;
  pointer-events: none;
}
.rocalde-home .rh-case:hover .rh-case__media::after,
.rocalde-home .rh-case:focus-visible .rh-case__media::after {
  transform: translateX(130%);
}
.rocalde-home .rh-case__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
}
.rocalde-home .rh-case__tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--rh-teal-dark);
}
.rocalde-home .rh-case__name {
  font-size: 19px; font-weight: 800;
  color: var(--rh-ink);
}
.rocalde-home .rh-case__desc {
  font-size: 14.5px; line-height: 1.55;
  color: rgba(15, 45, 68, 0.72);
}
.rocalde-home .rh-case__cta {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700;
  color: var(--rh-teal-dark);
  transition: color 0.25s ease;
}
.rocalde-home .rh-case:hover .rh-case__cta { color: var(--rh-orange); }
.rocalde-home .rh-case:hover .rh-case__cta .rh-arrow { transform: translateX(4px); }
.rocalde-home .rh-cases__note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(15, 45, 68, 0.55);
}
/* entrada escalonada de las dos cards */
.rocalde-home.rh-js .rh-cases .rh-reveal:nth-child(2) { transition-delay: 0.12s; }

/* ---- Numeral fantasma por sistema (sistemas.html) ---- */
.rocalde-home .rh-sysblock {
  position: relative;
  z-index: 0; /* aísla el numeral: queda sobre el fondo de sección, bajo el texto */
}
.rocalde-home .rh-sysblock::before {
  content: attr(data-num);
  position: absolute;
  top: -28px; right: 0;
  z-index: -1;
  font-family: var(--rh-font);
  font-size: clamp(110px, 17vw, 230px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(214, 222, 227, 0.05);
  pointer-events: none;
  user-select: none;
}
.rocalde-home .rh-sysblock:not([data-num])::before { content: none; }

/* ---- Microdiagrama de flujo por sistema ---- */
.rocalde-home .rh-sysflow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--rh-line-on-dark);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.rocalde-home .rh-sysflow__node {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--rh-text-dim-on-dark);
  background: rgba(8, 14, 24, 0.55);
  border: 1px solid var(--rh-line-on-dark);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
/* la entrada escalonada solo aplica con JS activo — sin JS los nodos quedan visibles */
.rocalde-home.rh-js .rh-sysflow__node { opacity: 0; transform: translateY(6px); }
.rocalde-home.rh-js .rh-sysflow.is-visible .rh-sysflow__node { opacity: 1; transform: none; }
.rocalde-home .rh-sysflow.is-visible .rh-sysflow__node:nth-of-type(2) { transition-delay: 0.18s; }
.rocalde-home .rh-sysflow.is-visible .rh-sysflow__node:nth-of-type(3) { transition-delay: 0.36s; }
.rocalde-home .rh-sysflow.is-visible .rh-sysflow__node:nth-of-type(4) { transition-delay: 0.54s; }
.rocalde-home .rh-sysflow__node--end {
  color: #fff;
  border-color: rgba(242, 106, 27, 0.55);
  background: rgba(242, 106, 27, 0.10);
  box-shadow: 0 0 18px rgba(242, 106, 27, 0.14);
}
.rocalde-home .rh-sysflow__link {
  position: relative;
  flex: 1 1 26px;
  min-width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(30, 155, 196, 0.06), rgba(30, 155, 196, 0.35), rgba(30, 155, 196, 0.06));
}
/* pulso que recorre cada tramo en secuencia — el sistema circula */
.rocalde-home .rh-sysflow__link::after {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rh-teal);
  box-shadow: 0 0 10px rgba(30, 155, 196, 0.8);
  opacity: 0;
}
.rocalde-home .rh-sysflow.is-visible .rh-sysflow__link::after {
  animation: rh-sysflow-pulse 3.6s ease-in-out infinite;
  animation-delay: var(--pd, 0.8s);
}
.rocalde-home .rh-sysflow__link:nth-of-type(1)::after { --pd: 0.8s; }
.rocalde-home .rh-sysflow__link:nth-of-type(2)::after { --pd: 1.9s; }
.rocalde-home .rh-sysflow__link:nth-of-type(3)::after { --pd: 3.0s; background: var(--rh-orange); box-shadow: 0 0 10px rgba(242, 106, 27, 0.8); }
@keyframes rh-sysflow-pulse {
  0%   { left: 0%; opacity: 0; }
  8%   { opacity: 1; }
  24%  { left: calc(100% - 5px); opacity: 1; }
  30%  { left: calc(100% - 5px); opacity: 0; }
  100% { left: calc(100% - 5px); opacity: 0; }
}
@media (max-width: 560px) {
  .rocalde-home .rh-sysflow { gap: 8px; padding: 12px 12px; }
  .rocalde-home .rh-sysflow__node { font-size: 11px; padding: 7px 11px; }
  .rocalde-home .rh-sysflow__link { min-width: 14px; flex-basis: 14px; }
}

/* ---- Cierre con contraluz cobre (rh-final--beam, solo servicios/sistemas) ---- */
.rocalde-home .rh-final--beam { overflow: hidden; }
.rocalde-home .rh-final--beam::before {
  content: "";
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  width: min(560px, 80vw);
  height: 230px;
  background: radial-gradient(50% 62% at 50% 0%, rgba(242, 106, 27, 0.20), rgba(242, 106, 27, 0.06) 55%, transparent 78%);
  filter: blur(10px);
  animation: rh-final-breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes rh-final-breathe {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}
.rocalde-home .rh-final--beam .rh-btn--primary {
  box-shadow: 0 12px 34px rgba(242, 106, 27, 0.26);
}
.rocalde-home .rh-final--beam .rh-btn--primary:hover {
  box-shadow: 0 16px 44px rgba(242, 106, 27, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  .rocalde-home .rh-case,
  .rocalde-home .rh-case__media img,
  .rocalde-home .rh-case__media::after,
  .rocalde-home .rh-sysflow__node { transition: none !important; }
  .rocalde-home .rh-case:hover .rh-case__media img,
  .rocalde-home .rh-case:focus-visible .rh-case__media img { transform: none !important; filter: none !important; }
  .rocalde-home .rh-case__media::after { display: none !important; }
  .rocalde-home .rh-sysflow__node { opacity: 1 !important; transform: none !important; }
  .rocalde-home .rh-sysflow__link::after { animation: none !important; opacity: 0 !important; }
  .rocalde-home .rh-final--beam::before { animation: none !important; }
}

/* ============================================================
   HOME-DIFERENCIAL-PREMIUM-1 2026-07-09 — mosaico del diferencial
   con muestras reales y chips de prueba social con thumb
   ============================================================ */

/* ---- Mosaico: hover premium (zoom + barrido de luz + borde cobre) ---- */
.rocalde-home .rh-av__slot img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.rocalde-home .rh-av__slot:hover img {
  transform: scale(1.055);
}
.rocalde-home .rh-av__slot:hover {
  border-color: rgba(242, 106, 27, 0.40);
}
.rocalde-home .rh-av__slot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.13) 48%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.85s ease;
  pointer-events: none;
}
.rocalde-home .rh-av__slot:hover::after {
  transform: translateX(130%);
}

/* ---- Leyenda de muestra real: pill de vidrio con testigo cobre,
        mismo lenguaje que las etiquetas del mosaico de fotografía ---- */
.rocalde-home .rh-av__slot--has-media figcaption {
  position: absolute;
  left: 10px; bottom: 10px;
  width: auto;
  max-width: calc(100% - 20px);
  box-sizing: border-box;
  background: rgba(8, 14, 24, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(214, 222, 227, 0.16);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  line-height: 1.5;
  color: var(--rh-text-on-dark);
}
/* testigo "en producción": el punto cobre marca que la pieza es muestra real */
.rocalde-home .rh-av__slot--has-media figcaption::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rh-orange);
  box-shadow: 0 0 8px rgba(242, 106, 27, 0.7);
  margin-right: 7px;
  vertical-align: 1px;
}

/* ---- Prueba social: thumb real dentro del chip ---- */
.rocalde-home .rh-proof__thumb {
  flex: 0 0 92px;
  width: 92px; height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rh-border);
  background: var(--rh-ink);
}
.rocalde-home .rh-proof__thumb img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.rocalde-home a.rh-proof__chip:hover .rh-proof__thumb img {
  transform: scale(1.09);
}
.rocalde-home .rh-proof__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.rocalde-home a.rh-proof__chip:hover .rh-proof__go {
  color: var(--rh-orange);
}
@media (max-width: 420px) {
  .rocalde-home .rh-proof__thumb { flex-basis: 78px; width: 78px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .rocalde-home .rh-av__slot img,
  .rocalde-home .rh-proof__thumb img { transition: none !important; }
  .rocalde-home .rh-av__slot:hover img,
  .rocalde-home a.rh-proof__chip:hover .rh-proof__thumb img { transform: none !important; }
  .rocalde-home .rh-av__slot::after { display: none !important; }
}

/* ============================================================
   DISENO-WEB-PREMIUM-1 2026-07-09 — landing del servicio
   "Sitio Web Profesional CMS + SEO" (diseno-web.html).
   Reusa el lenguaje ya validado: lamp + spotlight (contacto),
   rh-cases (servicios), rh-sysflow y rh-final--beam (sistemas).
   Componentes nuevos, exclusivos de esta página:
   .rh-gap (brecha) · .rh-scale (línea de decisión)
   .rh-proc (proceso) · .rh-tier (versiones)
   ============================================================ */

/* Hook genérico del spotlight de hero: contacto lo activa por id (#ct-phero);
   cualquier otra página lo pide con esta clase. Misma CSS var (--ct-mx/--ct-my). */
.rocalde-home.rh-pointer .rh-phero--spot .rh-phero__spot { opacity: 1; }

/* ---- Icono de las cards de "qué construimos" ---- */
.rocalde-home .rh-dcard__ico {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(30, 155, 196, 0.22);
  background: linear-gradient(160deg, rgba(30, 155, 196, 0.10), rgba(30, 155, 196, 0.02));
  color: var(--rh-teal-dark);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.35s ease;
}
.rocalde-home .rh-dcard__ico svg { width: 21px; height: 21px; }
/* seis cards deben caer 3+3, no 4+2 (el auto-fit base dejaría huérfana la segunda fila) */
@media (min-width: 900px) {
  .rocalde-home .rh-direct__grid--3 { grid-template-columns: repeat(3, 1fr); }
}
/* el microdiagrama a ancho completo se diluye: aquí vive compacto, bajo el texto */
.rocalde-home .rh-sysflow--tight { max-width: 720px; margin-top: 30px; }
.rocalde-home .rh-dcard:hover .rh-dcard__ico {
  color: var(--rh-orange);
  border-color: rgba(242, 106, 27, 0.38);
  background: linear-gradient(160deg, rgba(242, 106, 27, 0.12), rgba(242, 106, 27, 0.02));
}

/* ============================================================
   .rh-gap — la brecha entre lo que el negocio entrega y lo que
   su web comunica. Dos columnas y un eje: el lado izquierdo vive
   (teal), el derecho está apagado. La distancia ES el argumento.
   ============================================================ */
.rocalde-home .rh-gap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(20px, 4vw, 44px);
  margin-top: 34px;
  padding: 28px clamp(18px, 3vw, 30px);
  border: 1px solid var(--rh-line-on-dark);
  border-radius: 14px;
  background:
    radial-gradient(70% 120% at 0% 50%, rgba(30, 155, 196, 0.07), transparent 70%),
    rgba(255, 255, 255, 0.02);
}
.rocalde-home .rh-gap__label {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
.rocalde-home .rh-gap__side--real .rh-gap__label { color: var(--rh-teal); }
.rocalde-home .rh-gap__side--web .rh-gap__label { color: rgba(198, 214, 226, 0.5); }
.rocalde-home .rh-gap__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 11px;
  font-size: 14.5px;
  line-height: 1.5;
}
.rocalde-home .rh-gap__list li:last-child { margin-bottom: 0; }
.rocalde-home .rh-gap__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.rocalde-home .rh-gap__side--real li { color: var(--rh-text-on-dark); }
.rocalde-home .rh-gap__side--real li::before {
  background: var(--rh-teal);
  box-shadow: 0 0 10px rgba(30, 155, 196, 0.6);
}
/* el lado apagado: mismo peso tipográfico, menos vida — la web "no enciende" */
.rocalde-home .rh-gap__side--web li { color: rgba(198, 214, 226, 0.52); }
.rocalde-home .rh-gap__side--web li::before {
  background: rgba(198, 214, 226, 0.28);
  box-shadow: none;
}
.rocalde-home .rh-gap__axis {
  position: relative;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(214, 222, 227, 0.22) 14%,
    rgba(214, 222, 227, 0.22) 86%,
    transparent 100%);
}
.rocalde-home .rh-gap__axis span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  writing-mode: vertical-rl;
  padding: 10px 3px;
  background: var(--rh-bg-dark);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rh-orange);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .rocalde-home .rh-gap { grid-template-columns: 1fr; gap: 24px; }
  .rocalde-home .rh-gap__axis {
    width: 100%; height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(214, 222, 227, 0.22) 14%,
      rgba(214, 222, 227, 0.22) 86%,
      transparent 100%);
  }
  .rocalde-home .rh-gap__axis span {
    writing-mode: horizontal-tb;
    transform: translate(-50%, -50%);
    padding: 3px 10px;
  }
}

/* ============================================================
   .rh-scale — línea de decisión: landing premium · landing CMS ·
   sitio web profesional. Un riel horizontal que va de teal (una
   acción) a cobre (base completa). El tercer punto es esta página.
   ============================================================ */
.rocalde-home .rh-scale {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 38px);
  margin-top: 40px;
  padding-top: 30px;
}
.rocalde-home .rh-scale__rail {
  position: absolute;
  top: 6px; left: 0; right: 0;
  height: 1px;
  /* el viraje teal→cobre aterriza sobre el tercer punto (≈68%), no después */
  background: linear-gradient(90deg,
    rgba(30, 155, 196, 0.10) 0%,
    rgba(30, 155, 196, 0.62) 7%,
    rgba(30, 155, 196, 0.52) 40%,
    rgba(242, 106, 27, 0.68) 68%,
    rgba(242, 106, 27, 0.12) 92%,
    transparent 100%);
}
.rocalde-home .rh-scale__stop { position: relative; }
.rocalde-home .rh-scale__dot {
  position: absolute;
  top: -30px; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--rh-bg-dark);
  border: 2px solid var(--rh-teal);
  /* el anillo del color de fondo "perfora" el riel y deja el punto limpio */
  box-shadow: 0 0 0 5px var(--rh-bg-dark), 0 0 14px rgba(30, 155, 196, 0.45);
}
.rocalde-home .rh-scale__kicker {
  display: block;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rh-teal);
  margin-bottom: 8px;
}
.rocalde-home .rh-scale__title {
  font-size: 19px; font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.rocalde-home .rh-scale__desc {
  font-size: 14.5px; line-height: 1.55;
  color: var(--rh-text-dim-on-dark);
  margin-bottom: 14px;
}
.rocalde-home .rh-scale__list li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 7px;
  font-size: 13.5px; line-height: 1.5;
  color: rgba(198, 214, 226, 0.62);
}
.rocalde-home .rh-scale__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 1px;
  background: rgba(198, 214, 226, 0.45);
}
.rocalde-home .rh-scale__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rh-line-on-dark);
  font-size: 12.5px; font-style: italic;
  color: rgba(198, 214, 226, 0.55);
}
/* la parada que ES esta página: cobre, con luz propia */
.rocalde-home .rh-scale__stop--base::before {
  content: "";
  position: absolute;
  top: -36px; left: -10px; right: -10px;
  height: 180px;
  border-radius: 14px;
  background: radial-gradient(58% 70% at 26% 0%, rgba(242, 106, 27, 0.11), transparent 74%);
  pointer-events: none;
}
.rocalde-home .rh-scale__stop--base .rh-scale__dot {
  border-color: var(--rh-orange);
  box-shadow: 0 0 0 5px var(--rh-bg-dark), 0 0 16px rgba(242, 106, 27, 0.6);
  animation: rh-scale-beat 4.2s ease-in-out infinite;
}
@keyframes rh-scale-beat {
  0%, 100% { box-shadow: 0 0 0 5px var(--rh-bg-dark), 0 0 12px rgba(242, 106, 27, 0.45); }
  50%      { box-shadow: 0 0 0 5px var(--rh-bg-dark), 0 0 22px rgba(242, 106, 27, 0.8); }
}
.rocalde-home .rh-scale__stop--base .rh-scale__kicker { color: var(--rh-orange); }
.rocalde-home .rh-scale__stop--base .rh-scale__foot { border-top-color: rgba(242, 106, 27, 0.28); }
.rocalde-home .rh-scale__note {
  margin-top: 30px;
  font-size: 14.5px;
  color: var(--rh-text-dim-on-dark);
  max-width: 74ch;
}
@media (max-width: 820px) {
  .rocalde-home .rh-scale { grid-template-columns: 1fr; gap: 30px; padding-top: 0; }
  .rocalde-home .rh-scale__rail { display: none; }
  .rocalde-home .rh-scale__stop { padding-left: 20px; border-left: 1px solid var(--rh-line-on-dark); }
  .rocalde-home .rh-scale__stop--base { border-left-color: rgba(242, 106, 27, 0.42); }
  .rocalde-home .rh-scale__dot { top: 2px; left: -7px; }
  .rocalde-home .rh-scale__stop--base::before { top: -14px; left: -8px; right: -8px; }
}

/* ============================================================
   .rh-proc — el proceso como riel vertical. La línea empieza teal
   (descubrimiento) y termina cobre (traspaso): el mismo gradiente
   de la escala, girado 90°.
   ============================================================ */
.rocalde-home .rh-proc {
  position: relative;
  list-style: none;
  margin-top: 36px;
}
.rocalde-home .rh-proc::before {
  content: "";
  position: absolute;
  top: 14px; bottom: 30px; left: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(30, 155, 196, 0.45), rgba(242, 106, 27, 0.5));
}
.rocalde-home .rh-proc__step {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding: 16px 0 20px;
  border-bottom: 1px solid rgba(15, 45, 68, 0.08);
}
.rocalde-home .rh-proc__step:last-child { border-bottom: 0; padding-bottom: 0; }
.rocalde-home .rh-proc__step::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rh-bg-warm);
  border: 2px solid var(--rh-teal);
  box-shadow: 0 0 0 3px var(--rh-bg-warm);
}
.rocalde-home .rh-proc__step:last-child::before {
  border-color: var(--rh-orange);
  background: var(--rh-orange);
}
.rocalde-home .rh-proc__n {
  padding-left: 28px;
  padding-top: 2px;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--rh-teal-dark);
}
.rocalde-home .rh-proc__step:last-child .rh-proc__n { color: var(--rh-orange); }
.rocalde-home .rh-proc__body h3 {
  font-size: 17px; font-weight: 700;
  color: var(--rh-ink);
  margin-bottom: 5px;
}
.rocalde-home .rh-proc__body p {
  font-size: 14.5px; line-height: 1.6;
  color: rgba(15, 45, 68, 0.74);
  max-width: 68ch;
}
@media (max-width: 560px) {
  .rocalde-home .rh-proc__step { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .rocalde-home .rh-proc__n { padding-left: 0; }
}

/* ============================================================
   .rh-tier — las tres versiones. Sin precios: el alcance es el
   producto. La destacada lleva contraluz cobre, no un badge chillón.
   ============================================================ */
.rocalde-home .rh-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
  align-items: start;
}
.rocalde-home .rh-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--rh-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 155, 196, 0.20);
  border-radius: 14px;
  padding: 28px 24px 26px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
/* el lift necesita ganarle en especificidad a .rh-reveal.is-visible */
.rocalde-home .rh-tier:hover,
.rocalde-home.rh-js .rh-tier.rh-reveal.is-visible:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 155, 196, 0.45);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
}
.rocalde-home .rh-tier--featured {
  border-color: rgba(242, 106, 27, 0.40);
  box-shadow: 0 18px 50px rgba(242, 106, 27, 0.10);
}
.rocalde-home .rh-tier--featured::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 130px;
  background: radial-gradient(72% 100% at 50% 0%, rgba(242, 106, 27, 0.15), transparent 74%);
  pointer-events: none;
}
.rocalde-home .rh-tier--featured:hover,
.rocalde-home.rh-js .rh-tier--featured.rh-reveal.is-visible:hover {
  border-color: rgba(242, 106, 27, 0.62);
  box-shadow: 0 26px 66px rgba(242, 106, 27, 0.20);
}
/* la etiqueta vive dentro de la card: .rh-glow recorta el desborde */
.rocalde-home .rh-tier__flag {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 1;
  background: var(--rh-orange);
  color: #fff;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(242, 106, 27, 0.35);
}
.rocalde-home .rh-tier__kicker {
  position: relative; z-index: 1;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rh-teal);
  margin-bottom: 8px;
}
.rocalde-home .rh-tier--featured .rh-tier__kicker { color: var(--rh-orange); }
.rocalde-home .rh-tier__title {
  position: relative; z-index: 1;
  font-size: 21px; font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 10px;
}
.rocalde-home .rh-tier__for {
  position: relative; z-index: 1;
  font-size: 14px; line-height: 1.55;
  color: var(--rh-text-dim-on-dark);
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rh-line-on-dark);
}
.rocalde-home .rh-tier__list { position: relative; z-index: 1; }
.rocalde-home .rh-tier__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  font-size: 14px; line-height: 1.5;
  color: var(--rh-text-on-dark);
}
.rocalde-home .rh-tier__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rh-teal);
}
.rocalde-home .rh-tier--featured .rh-tier__list li::before { background: var(--rh-orange); }
/* "Todo lo de X" es herencia, no una línea más: se marca distinto */
.rocalde-home .rh-tier__inherit {
  color: var(--rh-text-dim-on-dark);
  font-style: italic;
}
.rocalde-home .rh-tiers__note {
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--rh-text-dim-on-dark);
  max-width: 78ch;
}
/* entrada escalonada de las tres versiones */
.rocalde-home.rh-js .rh-tiers .rh-reveal:nth-child(2) { transition-delay: 0.10s; }
.rocalde-home.rh-js .rh-tiers .rh-reveal:nth-child(3) { transition-delay: 0.20s; }
@media (max-width: 920px) {
  .rocalde-home .rh-tiers { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rocalde-home .rh-dcard__ico,
  .rocalde-home .rh-tier { transition: none !important; }
  .rocalde-home .rh-tier:hover,
  .rocalde-home.rh-js .rh-tier.rh-reveal.is-visible:hover { transform: none !important; }
  .rocalde-home .rh-scale__stop--base .rh-scale__dot { animation: none !important; }
}

/* ============================================================
   DISENO-WEB-CLARIDAD-1 2026-07-09 — "No todo el tráfico debería
   llegar a la misma página" (diseno-web.html, sección 04).
   Tres destinos en claro + el funnel como panel oscuro incrustado:
   el contraste marca que el funnel no es una página más de la lista.
   ============================================================ */

.rocalde-home .rh-dest {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .rocalde-home .rh-dest { grid-template-columns: 1fr; }
}
.rocalde-home .rh-dest__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rh-border);
  border-radius: 14px;
  padding: 26px 22px 22px;
  box-shadow: 0 6px 18px rgba(15, 45, 68, 0.05);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
/* el lift necesita ganarle en especificidad a .rh-reveal.is-visible */
.rocalde-home .rh-dest__card:hover,
.rocalde-home.rh-js .rh-dest__card.rh-reveal.is-visible:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 155, 196, 0.48);
  box-shadow: 0 18px 42px rgba(15, 45, 68, 0.13);
}
.rocalde-home .rh-dest__n {
  position: absolute;
  top: 22px; right: 20px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: rgba(15, 45, 68, 0.20);
}
/* el chip de origen dice de dónde viene el tráfico antes de decir a dónde llega */
.rocalde-home .rh-dest__origin {
  align-self: flex-start;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--rh-teal-dark);
  background: rgba(30, 155, 196, 0.07);
  border: 1px solid rgba(30, 155, 196, 0.20);
  border-radius: 999px;
  padding: 5px 11px;
  margin-bottom: 15px;
  max-width: calc(100% - 34px);
}
.rocalde-home .rh-dest__origin--paid {
  color: #C24E10;
  background: rgba(242, 106, 27, 0.08);
  border-color: rgba(242, 106, 27, 0.26);
}
.rocalde-home .rh-dest__title {
  font-size: 18px; font-weight: 700;
  color: var(--rh-ink);
  margin-bottom: 8px;
}
.rocalde-home .rh-dest__desc {
  font-size: 14.5px; line-height: 1.6;
  color: rgba(15, 45, 68, 0.74);
}
/* aclaración de encuadre: la página por intención no es un servicio nuevo */
.rocalde-home .rh-dest__note {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid rgba(30, 155, 196, 0.35);
  font-size: 13px; font-style: italic;
  line-height: 1.5;
  color: rgba(15, 45, 68, 0.58);
}

/* ---- El funnel: panel oscuro sobre sección clara ---- */
.rocalde-home .rh-funnel {
  position: relative;
  margin-top: 34px;
  padding: clamp(24px, 3.4vw, 38px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30, 155, 196, 0.18);
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(27, 79, 114, 0.42), transparent 66%),
    radial-gradient(420px 240px at 96% 108%, rgba(242, 106, 27, 0.10), transparent 62%),
    var(--rh-bg-dark);
  box-shadow: 0 26px 64px rgba(15, 45, 68, 0.20);
}
.rocalde-home .rh-funnel__tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rh-teal);
  margin-bottom: 10px;
}
.rocalde-home .rh-funnel h3 {
  font-size: clamp(20px, 2.5vw, 27px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 12px;
}
.rocalde-home .rh-funnel p {
  font-size: 15px; line-height: 1.65;
  color: var(--rh-text-dim-on-dark);
  max-width: 72ch;
}
.rocalde-home .rh-funnel .rh-sysflow { margin-top: 26px; }
.rocalde-home .rh-funnel__note {
  margin-top: 20px;
  font-size: 13.5px;
  color: rgba(198, 214, 226, 0.6);
}

/* ---- Flujo de cinco nodos: el pulso cobre debe ser el último tramo,
        no el tercero (la regla base asume flujos de cuatro nodos) ---- */
.rocalde-home .rh-sysflow--long .rh-sysflow__link:nth-of-type(1)::after { --pd: 0.6s; }
.rocalde-home .rh-sysflow--long .rh-sysflow__link:nth-of-type(2)::after { --pd: 1.3s; }
.rocalde-home .rh-sysflow--long .rh-sysflow__link:nth-of-type(3)::after {
  --pd: 2.0s;
  background: var(--rh-teal);
  box-shadow: 0 0 10px rgba(30, 155, 196, 0.8);
}
.rocalde-home .rh-sysflow--long .rh-sysflow__link:nth-of-type(4)::after {
  --pd: 2.7s;
  background: var(--rh-orange);
  box-shadow: 0 0 10px rgba(242, 106, 27, 0.8);
}
.rocalde-home .rh-sysflow--long.is-visible .rh-sysflow__node:nth-of-type(5) { transition-delay: 0.72s; }

/* En móvil el flujo horizontal envuelve y deja tramos colgando: se endereza
   en vertical. El pulso viaja en horizontal, así que aquí se apaga.
   Solo afecta a los diagramas de diseno-web.html (--long y --tight). */
@media (max-width: 620px) {
  .rocalde-home .rh-sysflow--long,
  .rocalde-home .rh-sysflow--tight {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .rocalde-home .rh-sysflow--long .rh-sysflow__node,
  .rocalde-home .rh-sysflow--tight .rh-sysflow__node { text-align: center; }
  .rocalde-home .rh-sysflow--long .rh-sysflow__link,
  .rocalde-home .rh-sysflow--tight .rh-sysflow__link {
    flex: 0 0 18px;
    width: 1px; min-width: 0; height: 18px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(30, 155, 196, 0.06), rgba(30, 155, 196, 0.45), rgba(30, 155, 196, 0.06));
  }
  .rocalde-home .rh-sysflow--long .rh-sysflow__link::after,
  .rocalde-home .rh-sysflow--tight .rh-sysflow__link::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rocalde-home .rh-dest__card { transition: none !important; }
  .rocalde-home .rh-dest__card:hover,
  .rocalde-home.rh-js .rh-dest__card.rh-reveal.is-visible:hover { transform: none !important; }
}

/* ============================================================
   CANVAS OPERATIVO — automatizaciones.html (CANVAS-OPERATIVO-1, 2026-07-11)
   Bloque aditivo. Solo lo usa automatizaciones.html.
   Sustituye funcionalmente a .rh-nodes (que queda arriba, sin uso,
   a la espera de un pase de limpieza propio).
   ============================================================ */

/* --- 01 · Dominios (las cuatro piezas) --- */
.rocalde-home .rh-domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.rocalde-home .rh-domain {
  background: var(--rh-glass);
  border: 1px solid var(--rh-line-on-dark);
  border-radius: 14px;
  padding: 22px 20px;
}
.rocalde-home .rh-domain__ico {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  color: var(--rh-teal);
}
.rocalde-home .rh-domain__ico svg { width: 100%; height: 100%; display: block; }
.rocalde-home .rh-domain__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--rh-text-on-dark);
}
.rocalde-home .rh-domain__desc {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--rh-text-dim-on-dark);
}
.rocalde-home .rh-domain__when {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--rh-line-on-dark);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--rh-text-dim-on-dark);
}
.rocalde-home .rh-domain__when b { color: var(--rh-teal); font-weight: 600; }

/* --- 02 · Sección de flujos --- */
.rocalde-home .rh-sect--canvas {
  background:
    radial-gradient(circle at 1px 1px, rgba(30, 155, 196, 0.10) 1px, transparent 0) 0 0 / 28px 28px,
    var(--rh-bg-dark);
}

/* Leyenda de estados: forma + texto, nunca color solo */
.rocalde-home .rh-canvas__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 6px;
  padding: 0;
  list-style: none;
}
.rocalde-home .rh-canvas__legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--rh-text-dim-on-dark);
}
.rocalde-home .rh-state {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex-shrink: 0;
}
.rocalde-home .rh-state--ok {
  border-radius: 50%;
  background: var(--rh-teal);
  box-shadow: 0 0 6px rgba(30, 155, 196, 0.7);
}
.rocalde-home .rh-state--wait {
  border-radius: 50%;
  border: 1.5px solid var(--rh-teal);
}
.rocalde-home .rh-state--human {
  background: var(--rh-orange);
  transform: rotate(45deg);
}
.rocalde-home .rh-state--fail {
  height: 0;
  width: 14px;
  border-top: 2px dashed var(--rh-orange);
}

/* Bloque de nivel */
.rocalde-home .rh-level {
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--rh-line-on-dark);
}
.rocalde-home .rh-level--last { border-bottom: 0; padding-bottom: 6px; }
.rocalde-home .rh-level__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 4px;
}
.rocalde-home .rh-level__tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(30, 155, 196, 0.45);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rh-teal);
}
.rocalde-home .rh-level__tag--adv {
  border-color: rgba(242, 106, 27, 0.5);
  color: #FF9E63;
}
.rocalde-home .rh-level__title {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--rh-text-on-dark);
}
.rocalde-home .rh-level__desc,
.rocalde-home .rh-level__when,
.rocalde-home .rh-level__note {
  max-width: 68ch;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--rh-text-dim-on-dark);
}
.rocalde-home .rh-level__when b { color: var(--rh-text-on-dark); font-weight: 600; }
.rocalde-home .rh-level__note {
  padding-top: 14px;
  border-top: 1px solid var(--rh-line-on-dark);
  font-size: 14px;
}

/* --- El canvas --- */
.rocalde-home .rh-canvas {
  margin: 22px 0 0;
  padding: 18px 16px;
  background: rgba(23, 48, 66, 0.35);
  border: 1px solid var(--rh-line-on-dark);
  border-radius: 14px;
  overflow: hidden;
}
.rocalde-home .rh-canvas__svg {
  display: block;
  width: 100%;
  height: auto;
}
.rocalde-home .rh-canvas__node rect {
  fill: rgba(23, 48, 66, 0.85);
  stroke: rgba(30, 155, 196, 0.38);
  stroke-width: 1;
}
.rocalde-home .rh-canvas__node text {
  fill: var(--rh-text-on-dark);
  font-family: var(--rh-font);
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
}
.rocalde-home .rh-canvas__sub {
  fill: var(--rh-text-dim-on-dark) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
}
.rocalde-home .rh-canvas__dot { fill: var(--rh-teal); }
.rocalde-home .rh-canvas__node--result rect { stroke: rgba(242, 106, 27, 0.55); }
.rocalde-home .rh-canvas__node--result text { fill: #FF9E63; }
.rocalde-home .rh-canvas__node--result .rh-canvas__dot { fill: var(--rh-orange); }
.rocalde-home .rh-canvas__node--human rect { stroke: rgba(242, 106, 27, 0.5); }
.rocalde-home .rh-canvas__dot--human { fill: var(--rh-orange); }
.rocalde-home .rh-canvas__node--fail rect {
  fill: none;
  stroke: rgba(242, 106, 27, 0.45);
  stroke-dasharray: 5 4;
}
.rocalde-home .rh-canvas__node--fail text { fill: #FF9E63; font-size: 13px; }

.rocalde-home .rh-canvas__edge {
  fill: none;
  stroke: rgba(30, 155, 196, 0.5);
  stroke-width: 1.6;
}
.rocalde-home .rh-canvas__edge--loop { stroke-dasharray: 4 4; }
.rocalde-home .rh-canvas__edge--evt {
  stroke: rgba(30, 155, 196, 0.28);
  stroke-dasharray: 2 5;
}
.rocalde-home .rh-canvas__edge--alt {
  stroke: rgba(242, 106, 27, 0.55);
  stroke-dasharray: 6 4;
}
.rocalde-home .rh-canvas__arw { fill: rgba(30, 155, 196, 0.7); }
.rocalde-home .rh-canvas__arw--alt { fill: rgba(242, 106, 27, 0.7); }

.rocalde-home .rh-canvas__diamond path {
  fill: rgba(23, 48, 66, 0.9);
  stroke: rgba(30, 155, 196, 0.55);
  stroke-width: 1.2;
}
.rocalde-home .rh-canvas__diamond text {
  fill: var(--rh-text-on-dark);
  font-family: var(--rh-font);
  font-size: 13.5px;
  font-weight: 600;
  text-anchor: middle;
}
.rocalde-home .rh-canvas__branch {
  fill: var(--rh-text-dim-on-dark);
  font-family: var(--rh-font);
  font-size: 11.5px;
  font-weight: 500;
  text-anchor: start;
}
.rocalde-home .rh-canvas__branch--end { text-anchor: end; }

/* Señal viajera: solo en el canvas avanzado, y solo si el navegador
   soporta motion-path. Sin soporte no se dibuja (degradación limpia). */
.rocalde-home .rh-canvas__signal { display: none; }
@supports (offset-path: path("M0 0 H1")) {
  .rocalde-home .rh-canvas__signal {
    display: block;
    fill: var(--rh-teal);
    filter: drop-shadow(0 0 5px rgba(30, 155, 196, 0.9));
    offset-path: path("M 150 133 H 640");
    offset-rotate: 0deg;
    animation: rh-canvas-signal 5.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  }
}
@keyframes rh-canvas-signal {
  0%   { offset-distance: 0%;   opacity: 0; }
  6%   { opacity: 1; }
  58%  { offset-distance: 100%; opacity: 1; }
  66%  { offset-distance: 100%; opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Lista equivalente: fuente canónica del texto. Visible solo en móvil. */
.rocalde-home .rh-canvas__list { display: none; margin: 0; padding: 0; list-style: none; }
.rocalde-home .rh-canvas__list li {
  position: relative;
  padding: 0 0 16px 26px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--rh-text-on-dark);
}
.rocalde-home .rh-canvas__list > li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rh-teal);
}
.rocalde-home .rh-canvas__list > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 18px;
  bottom: 2px;
  width: 1px;
  background: rgba(30, 155, 196, 0.35);
}
.rocalde-home .rh-canvas__list li span { color: var(--rh-text-dim-on-dark); font-weight: 400; }
.rocalde-home .rh-canvas__list li.is-result { color: #FF9E63; }
.rocalde-home .rh-canvas__list li.is-result::before { background: var(--rh-orange); }
.rocalde-home .rh-canvas__list li.is-fail { color: #FF9E63; font-weight: 500; }
.rocalde-home .rh-canvas__list li.is-fail::before {
  background: none;
  border: 1.5px dashed var(--rh-orange);
}
.rocalde-home .rh-canvas__branches {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.rocalde-home .rh-canvas__branches li {
  padding: 0 0 6px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rh-text-dim-on-dark);
}
.rocalde-home .rh-canvas__branches li::before,
.rocalde-home .rh-canvas__branches li::after { display: none; }
.rocalde-home .rh-canvas__branches li.is-human { color: #FF9E63; }

/* --- 03 · Bloqueos (cuándo todavía no conviene) --- */
.rocalde-home .rh-gate {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.rocalde-home .rh-gate__item {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--rh-border);
  border-left: 3px solid var(--rh-orange);
  border-radius: 12px;
}
.rocalde-home .rh-gate__item h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--rh-ink);
}
.rocalde-home .rh-gate__item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #4A5F70;
}

/* --- 04 · Puente a Sistemas --- */
.rocalde-home .rh-bridge {
  max-width: 780px;
  margin-top: 26px;
  padding: 28px 30px;
  background: var(--rh-glass);
  border: 1px solid var(--rh-line-on-dark);
  border-left: 3px solid var(--rh-teal);
  border-radius: 14px;
}
.rocalde-home .rh-bridge__lead {
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--rh-text-on-dark);
}
.rocalde-home .rh-bridge__desc {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--rh-text-dim-on-dark);
}

/* --- 06 · Herramientas --- */
.rocalde-home .rh-tools {
  max-width: 76ch;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.rocalde-home .rh-tools li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rh-line-on-dark);
  font-size: 15px;
  line-height: 1.7;
  color: var(--rh-text-dim-on-dark);
}
.rocalde-home .rh-tools li:last-child { border-bottom: 0; }
.rocalde-home .rh-tools li b {
  display: inline-block;
  min-width: 210px;
  color: var(--rh-text-on-dark);
  font-weight: 600;
}

/* --- 07 · Dos rutas --- */
.rocalde-home .rh-routes {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  margin-top: 34px;
  text-align: left;
}
.rocalde-home .rh-route {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 26px;
  background: var(--rh-glass);
  border: 1px solid var(--rh-line-on-dark);
  border-radius: 16px;
}
.rocalde-home .rh-route--primary {
  border-color: rgba(30, 155, 196, 0.45);
  box-shadow: inset 0 1px 0 rgba(244, 247, 250, 0.06), 0 0 40px rgba(30, 155, 196, 0.08);
}
.rocalde-home .rh-route__tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rh-text-dim-on-dark);
}
.rocalde-home .rh-route--primary .rh-route__tag { color: var(--rh-teal); }
.rocalde-home .rh-route__title {
  margin: 0 0 10px;
  font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--rh-text-on-dark);
}
.rocalde-home .rh-route__desc {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--rh-text-dim-on-dark);
}
.rocalde-home .rh-route__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.rocalde-home .rh-route--primary .rh-btn { margin-top: auto; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .rocalde-home .rh-routes { grid-template-columns: 1fr; }
  .rocalde-home .rh-tools li b { min-width: 0; display: block; }
}
@media (max-width: 720px) {
  .rocalde-home .rh-canvas__svg { display: none; }
  .rocalde-home .rh-canvas__list { display: block; }
  .rocalde-home .rh-canvas { padding: 20px 18px; }
  .rocalde-home .rh-canvas__legend { gap: 8px 16px; }
  .rocalde-home .rh-level { padding: 28px 0 24px; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .rocalde-home .rh-canvas__signal { animation: none !important; display: none !important; }
}

/* ============================================================
   MOTION-HOVER-GATE-1 (2026-07-11)
   a) Neutraliza el "hover pegajoso" en táctil: el tap dispara
      :hover y la elevación/escala queda visualmente atascada
      hasta el siguiente toque. Se reinicia solo `transform`
      (nunca color/box-shadow/filter, que no generan el bug y
      leen bien aunque queden fijos tras el tap) bajo
      (hover: none), (pointer: coarse) — mismo patrón ya usado
      en este archivo para los resets de reduced-motion, solo
      que aquí la condición es el tipo de puntero, no el SO.
      :focus-visible queda intacto a propósito: el foco por
      teclado debe seguir mostrando la elevación en cualquier
      dispositivo.
   b) Feedback de :active en elementos realmente presionables
      (botones). Subtle scale(0.94–0.97), transición 120–140ms
      ease-out — independiente del hover, útil en mouse y táctil.
   ============================================================ */
@media (hover: none), (pointer: coarse) {
  .rocalde-home .rh-btn--primary:hover { transform: none !important; }
  .rocalde-home .rh-btn--ghost:hover .rh-arrow,
  .rocalde-home .rh-btn--secondary:hover .rh-arrow { transform: none !important; }
  .rocalde-home .rh-nav__logo:hover .rh-nav__logoimg { transform: none !important; }
  .rocalde-home .rh-fork__card:hover,
  .rocalde-home .rh-fork__card:hover .rh-arrow { transform: none !important; }
  .rocalde-home .rh-dcard:hover,
  .rocalde-home .rh-dcard:hover .rh-arrow { transform: none !important; }
  .rocalde-home .rh-diag:hover,
  .rocalde-home .rh-diag:hover .rh-arrow { transform: none !important; }
  .rocalde-home .rh-sys__row:hover .rh-sys__go { transform: none !important; }
  .rocalde-home .rh-av__slot:hover,
  .rocalde-home .rh-av__slot:hover img { transform: none !important; }
  .rocalde-home a.rh-proof__chip:hover,
  .rocalde-home a.rh-proof__chip:hover .rh-arrow,
  .rocalde-home a.rh-proof__chip:hover .rh-proof__thumb img { transform: none !important; }
  .rocalde-home .rh-route:hover,
  .rocalde-home .rh-route:hover .rh-arrow { transform: none !important; }
  .rocalde-home .rh-orbit-card:hover,
  .rocalde-home .rh-orbit-card:hover .rh-arrow { transform: none !important; }
  .rocalde-home .rh-ladder__step:hover { transform: none !important; }
  .rocalde-home .rh-pfcard:hover,
  .rocalde-home .rh-pfcard:hover .rh-pfcard__play::before { transform: none !important; }
  .rocalde-home .rh-showreel:hover .rh-showreel__frame img { transform: none !important; }
  .rocalde-home .rh-mcard:hover .rh-mcard__pwrap img { transform: none !important; }
  .rocalde-home .rh-mcard:hover { transform: none !important; }
  .rocalde-home .rh-case:hover,
  .rocalde-home .rh-case:hover .rh-case__media img,
  .rocalde-home .rh-case:hover .rh-case__media::after,
  .rocalde-home .rh-case:hover .rh-case__cta .rh-arrow { transform: none !important; }
  .rocalde-home .rh-tier:hover,
  .rocalde-home.rh-js .rh-tier.rh-reveal.is-visible:hover { transform: none !important; }
  .rocalde-home .rh-dest__card:hover,
  .rocalde-home.rh-js .rh-dest__card.rh-reveal.is-visible:hover { transform: none !important; }
}

/* --- Feedback de presión en botones reales ---
   La transición de transform vive en el estado base para que el
   release también se anime (las transiciones se leen del estado de
   destino: declararla solo en :active dejaba el retorno en un frame).
   Cada regla re-declara su transición original exacta + transform;
   no se agrupan selectores con bases distintas. .rh-btn no necesita
   base nueva: la suya ya transiciona transform (0.22s). */
.rocalde-home .rh-nav__toggle { transition: color 0.2s ease, transform 120ms ease-out; }
.rocalde-home .rh-nav__close { transition: color 0.2s ease, border-color 0.2s ease, transform 120ms ease-out; }
.rocalde-home .rh-pf__filter { transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 120ms ease-out; }
.rocalde-home .rh-lightbox__nav { transition: background-color 0.2s ease, border-color 0.2s ease, transform 120ms ease-out; }
.rocalde-home .rh-lightbox__close { transition: transform 120ms ease-out; }
.rocalde-home .rh-btn:active { transform: scale(0.97); }
.rocalde-home .rh-nav__toggle:active { transform: scale(0.95); }
.rocalde-home .rh-nav__close:active { transform: scale(0.94); }
.rocalde-home .rh-pf__filter:active { transform: scale(0.96); }
.rocalde-home .rh-lightbox__nav:active { transform: translateY(-50%) scale(0.94); }
.rocalde-home .rh-lightbox__close:active { transform: scale(0.94); }

@media (prefers-reduced-motion: reduce) {
  .rocalde-home .rh-btn:active,
  .rocalde-home .rh-nav__toggle:active,
  .rocalde-home .rh-nav__close:active,
  .rocalde-home .rh-pf__filter:active,
  .rocalde-home .rh-lightbox__close:active { transform: none !important; }
  .rocalde-home .rh-lightbox__nav:active { transform: translateY(-50%) !important; }
}
