/* Índice de recursos (/recursos/). Prefijo rh- para no chocar con header.html, footer.html ni base.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.rh-body {
  --rh-navy: #16213e;
  --rh-navy-2: #1a1a2e;
  --rh-vino: #8E1600;
  --rh-vino-osc: #600f00;
  --rh-oro: #FFC107;
  --rh-oro-osc: #D39E00;
  --rh-oro-suave: #fff8e1;
  --rh-texto: #30343b;
  --rh-suave: #596170;
  --rh-linea: #e1e5ec;
  --rh-fondo: #f6f7f9;
  --rh-sombra: 0 10px 30px rgba(18, 24, 38, 0.07);

  margin: 0;
  padding-top: 86px; /* alto de .site-header.scrolled en header.html */
  background: var(--rh-fondo);
  color: var(--rh-texto);
}

.rh-saltar {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--rh-oro);
  color: #000;
  font-weight: 700;
}

.rh-saltar:focus {
  top: 12px;
}

/* Portada */
.rh-hero {
  padding: 56px 20px 112px;
  background: linear-gradient(135deg, var(--rh-navy-2) 0%, var(--rh-navy) 100%);
  color: #fff;
}

.rh-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.rh-migas {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.rh-migas a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rh-migas span[aria-hidden] {
  margin: 0 8px;
}

.rh-kicker {
  margin: 0 0 14px;
  color: var(--rh-oro);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rh-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
}

.rh-hero-sub {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Contenido */
.rh-main {
  max-width: 1130px;
  margin: -72px auto 0;
  padding: 0 16px 64px;
}

.rh-destacado {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 40px;
  padding: 40px 44px;
  border-top: 4px solid var(--rh-oro);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--rh-sombra);
}

.rh-etiqueta {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 193, 7, 0.6);
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.16);
  color: var(--rh-vino);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rh-destacado h2 {
  margin: 0 0 14px;
  color: var(--rh-navy-2);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.rh-destacado p {
  margin: 0 0 22px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.rh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--rh-oro) 0%, var(--rh-oro-osc) 100%);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.rh-btn:hover,
.rh-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
  color: #000;
  text-decoration: none;
}

.rh-destacado-incluye {
  align-self: center;
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--rh-fondo);
}

.rh-incluye-titulo {
  margin: 0 0 10px !important;
  color: var(--rh-navy);
  font-size: 0.8rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rh-destacado-incluye ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rh-destacado-incluye li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 26px;
  font-size: 1rem;
  line-height: 1.5;
}

.rh-destacado-incluye li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--rh-vino);
  font-weight: 800;
}

.rh-seccion h2 {
  display: inline-block;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--rh-oro);
  color: var(--rh-navy-2);
  font-size: 1.6rem;
  font-weight: 750;
}

.rh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rh-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--rh-linea);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 24, 38, 0.04);
  color: var(--rh-texto);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.rh-card:hover,
.rh-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(142, 22, 0, 0.3);
  box-shadow: var(--rh-sombra);
  color: var(--rh-texto);
  text-decoration: none;
}

.rh-card:focus-visible,
.rh-btn:focus-visible {
  outline: 3px solid var(--rh-oro);
  outline-offset: 3px;
}

.rh-icono {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--rh-oro-suave);
  color: var(--rh-vino);
  font-size: 1.35rem;
}

.rh-destino {
  color: var(--rh-suave);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rh-card strong {
  color: var(--rh-navy-2);
  font-size: 1.2rem;
  line-height: 1.3;
}

.rh-desc {
  color: var(--rh-suave);
  font-size: 0.98rem;
  line-height: 1.6;
}

.rh-ir {
  margin-top: auto;
  padding-top: 6px;
  color: var(--rh-vino);
  font-size: 0.92rem;
  font-weight: 800;
}

@media (max-width: 991px) {
  .rh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rh-destacado {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .rh-hero {
    padding: 36px 18px 92px;
  }

  .rh-hero-sub {
    font-size: 1.05rem;
  }

  .rh-main {
    margin-top: -60px;
    padding: 0 12px 40px;
  }

  .rh-destacado {
    padding: 28px 20px;
    border-radius: 14px;
  }

  .rh-destacado h2 {
    font-size: 1.5rem;
  }

  .rh-btn {
    width: 100%;
  }

  .rh-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rh-seccion h2 {
    font-size: 1.38rem;
  }
}

@media print {
  .site-header,
  .mobile-menu-container,
  .site-footer,
  #whatsapp-widget,
  .rh-saltar {
    display: none !important;
  }

  .rh-body {
    padding-top: 0;
    background: #fff;
  }

  .rh-hero {
    padding: 0 0 8mm;
    background: none;
    color: #000;
  }

  .rh-hero h1,
  .rh-hero-sub,
  .rh-kicker,
  .rh-migas,
  .rh-migas a {
    color: #000 !important;
  }

  .rh-main {
    margin: 0;
  }

  .rh-card,
  .rh-destacado {
    box-shadow: none;
    break-inside: avoid;
  }
}
