/* rochibarrantes.com — hacienda: piedra oscura, cuero curtido, bronce y botones verde pasto */

:root {
  --r-piedra: #201c18;
  --r-piedra-2: #2a241f;
  --r-cuero: #3a2c22;
  --r-cuero-2: #47362a;
  --r-silla: #c47a3d;
  --r-silla-hi: #d98f52;
  --r-bronce: #d9a441;
  --r-crema: #f2e6d4;
  --r-texto: #ece0cf;
  --r-tenue: #bba78f;
  --r-costura: rgba(242, 230, 212, 0.28);
  --r-borde: rgba(217, 164, 65, 0.22);
  --r-borde-2: rgba(217, 164, 65, 0.42);

  --r-pasto: #1fa35b;
  --r-pasto-hi: #28bd6b;
  --r-pasto-lo: #167d45;
  --r-blanco: #ffffff;
  --r-oscuro: #1a120b;

  --r-titulo: "Bitter", Georgia, "Times New Roman", serif;
  --r-cuerpo: "Rubik", "Segoe UI", Roboto, Arial, sans-serif;

  --r-ancho: 1180px;
  --r-pad: clamp(1rem, 4vw, 2.4rem);
  --r-alto: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--r-alto) + 20px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 90% 0, rgba(217, 164, 65, 0.12), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 14px),
    var(--r-piedra);
  color: var(--r-texto);
  font-family: var(--r-cuerpo);
  font-size: 1.05rem;
  line-height: 1.74;
}

body.rb-quieto { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--r-bronce); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.rb-salto {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 900;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  background: var(--r-bronce);
  color: var(--r-oscuro);
  font-weight: 700;
  text-decoration: none;
}
.rb-salto:focus { top: 12px; }

.rb-marco { width: min(100% - 2 * var(--r-pad), var(--r-ancho)); margin-inline: auto; }

/* ---------- botones ---------- */

.rb-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 8px;
  font-family: var(--r-cuerpo);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.rb-btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed currentColor;
  border-radius: 5px;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.rb-btn:hover::after { opacity: 0.75; }
.rb-btn:active { transform: translateY(1px); }

.rb-btn--pasto { background: var(--r-pasto); color: var(--r-blanco); box-shadow: 0 6px 0 var(--r-pasto-lo); }
.rb-btn--pasto:hover { background: var(--r-pasto-hi); }
.rb-btn--pasto:active { box-shadow: 0 2px 0 var(--r-pasto-lo); transform: translateY(4px); }

.rb-btn--suela { background: var(--r-silla); color: var(--r-oscuro); box-shadow: 0 6px 0 #8f5426; }
.rb-btn--suela:hover { background: var(--r-silla-hi); }
.rb-btn--suela:active { box-shadow: 0 2px 0 #8f5426; transform: translateY(4px); }

.rb-btn--xl { min-height: 56px; padding: 0.9rem 1.9rem; font-size: 1.02rem; }

/* ---------- cabecera ---------- */

.rb-tope {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(26, 18, 11, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--r-cuero-2);
  box-shadow: 0 3px 0 -1px var(--r-borde);
}
.rb-tope__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--r-alto);
  width: min(100% - 2 * var(--r-pad), var(--r-ancho));
  margin-inline: auto;
}

.rb-sello { display: inline-flex; align-items: center; gap: 0.55rem; flex-shrink: 0; color: var(--r-crema); text-decoration: none; }
.rb-sello__a {
  display: grid;
  place-items: center;
  width: 54px;
  height: 40px;
  border-radius: 6px;
  background: var(--r-silla);
  color: var(--r-oscuro);
  font-family: var(--r-titulo);
  font-size: 1.15rem;
  font-weight: 800;
  outline: 1px dashed rgba(26, 18, 11, 0.55);
  outline-offset: -5px;
}
.rb-sello__b { color: var(--r-bronce); font-family: var(--r-titulo); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

.rb-nav { margin-left: auto; }
.rb-nav ul { display: flex; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.rb-ruta {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.7rem;
  color: var(--r-tenue);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.rb-ruta::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 6px;
  border-bottom: 2px dashed var(--r-bronce);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.rb-ruta:hover,
.rb-ruta[aria-current="true"] { color: var(--r-crema); }
.rb-ruta:hover::after,
.rb-ruta[aria-current="true"]::after { opacity: 1; }

.rb-tope__cta { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.9rem; white-space: nowrap; box-shadow: 0 4px 0 var(--r-pasto-lo); }

.rb-abre {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0 0.95rem;
  border: 1px solid var(--r-borde-2);
  border-radius: 8px;
  background: var(--r-cuero);
  color: var(--r-crema);
  font-family: var(--r-cuerpo);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.rb-abre__ico { position: relative; width: 18px; height: 2px; background: var(--r-bronce); }
.rb-abre__ico::before,
.rb-abre__ico::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--r-bronce); }
.rb-abre__ico::before { top: -6px; }
.rb-abre__ico::after { top: 6px; }

/* alforja: hoja inferior móvil */

.rb-alforja { position: fixed; inset: 0; z-index: 400; display: flex; align-items: flex-end; background: rgba(10, 6, 3, 0.62); }
.rb-alforja[hidden] { display: none; }
.rb-alforja__in {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 88dvh;
  padding: 1rem var(--r-pad) calc(1.3rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  background: linear-gradient(180deg, var(--r-cuero-2), var(--r-cuero));
  border-radius: 22px 22px 0 0;
  border-top: 3px solid var(--r-silla);
  box-shadow: inset 0 0 0 6px var(--r-cuero), inset 0 0 0 7px var(--r-costura);
  animation: rb-sube 0.26s ease;
}
@keyframes rb-sube { from { transform: translateY(100%); } to { transform: none; } }
.rb-alforja__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 0.8rem; }
.rb-alforja__x {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--r-borde-2);
  border-radius: 50%;
  background: var(--r-piedra-2);
  color: var(--r-crema);
  cursor: pointer;
}
.rb-alforja__l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.rb-alforja__a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 0.9rem;
  border-radius: 10px;
  background: rgba(26, 18, 11, 0.45);
  border: 1px dashed var(--r-costura);
  color: var(--r-crema);
  font-weight: 600;
  text-decoration: none;
}
.rb-alforja__a::before { content: ""; width: 8px; height: 8px; margin-right: 0.7rem; border-radius: 50%; background: var(--r-bronce); box-shadow: 0 0 0 2px rgba(217, 164, 65, 0.3); }
.rb-alforja__a:hover { border-color: var(--r-bronce); background: rgba(26, 18, 11, 0.7); }
.rb-alforja__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1.2rem; }

/* ---------- portada ---------- */

.rb-portada { padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(2.6rem, 5vw, 4.2rem); }
.rb-portada__rej { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }

.rb-portada__texto {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 14px;
  background: var(--r-cuero);
  box-shadow: inset 0 0 0 8px var(--r-cuero), inset 0 0 0 9px var(--r-costura), 0 30px 50px -30px rgba(0, 0, 0, 0.9);
}
.rb-portada__texto::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 70px;
  height: 22px;
  margin-left: -35px;
  border-radius: 6px;
  background: var(--r-bronce);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18);
}
.rb-h1 {
  margin: 0 0 1rem;
  color: var(--r-crema);
  font-family: var(--r-titulo);
  font-size: clamp(1.9rem, 1.25rem + 2.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}
.rb-portada__texto p { color: var(--r-texto); }
.rb-portada__btns { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.4rem; }

.rb-portada__foto { position: relative; margin: 0; padding: 10px; border-radius: 16px; background: linear-gradient(135deg, #6b4a31, #3a2a1d 60%, #5a3d27); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95); }
.rb-portada__foto img { width: 100%; aspect-ratio: 1380 / 752; object-fit: cover; border-radius: 10px; }
.rb-portada__foto::before,
.rb-portada__foto::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3cf86, var(--r-bronce) 55%, #8a6420);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}
.rb-portada__foto::before { top: -6px; left: -6px; }
.rb-portada__foto::after { right: -6px; bottom: -6px; }

/* ---------- bloques de cuero ---------- */

.rb-corral { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.6rem, 3.5vw, 2.4rem); max-width: 960px; padding-bottom: clamp(3rem, 6vw, 5rem); }
.rb-corral > * { min-width: 0; }

.rb-cuero {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 14px;
  background: var(--r-piedra-2);
  border: 1px solid var(--r-borde);
  box-shadow: inset 0 0 0 7px var(--r-piedra-2), inset 0 0 0 8px var(--r-costura);
}
.rb-cuero__cab { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.rb-cuero__remache {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3cf86, var(--r-bronce) 55%, #8a6420);
  color: var(--r-oscuro);
  font-family: var(--r-titulo);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}
.rb-h2 {
  margin: 0;
  color: var(--r-crema);
  font-family: var(--r-titulo);
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
.rb-cuero__cont > :last-child,
.rb-bolsillo > :last-child { margin-bottom: 0; }

.rb-bolsillo {
  margin-top: 1.3rem;
  padding: 1.15rem 1.25rem;
  border-radius: 10px;
  background: var(--r-cuero);
  border: 1px dashed var(--r-costura);
}
.rb-cuero__cont > .rb-bolsillo:first-child { margin-top: 0; }
.rb-h3 {
  margin: 0 0 0.6rem;
  color: var(--r-silla-hi);
  font-family: var(--r-titulo);
  font-size: clamp(1.07rem, 1rem + 0.35vw, 1.24rem);
  font-weight: 700;
  line-height: 1.3;
}

.rb-boton { margin: 1.6rem 0 0.5rem; }

/* tablas */

.rb-tabla {
  margin: 1.1rem 0;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--r-borde-2);
  background: rgba(26, 18, 11, 0.55);
  -webkit-overflow-scrolling: touch;
}
.rb-tabla table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.rb-tabla--ancha table { min-width: 560px; }
.rb-tabla thead th {
  padding: 0.8rem 1rem;
  background: var(--r-cuero-2);
  color: var(--r-bronce);
  font-family: var(--r-titulo);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px dashed var(--r-borde-2);
}
.rb-tabla tbody th,
.rb-tabla tbody td { padding: 0.72rem 1rem; text-align: left; vertical-align: top; }
.rb-tabla tbody tr + tr > * { border-top: 1px solid var(--r-borde); }
.rb-tabla tbody th { color: var(--r-crema); font-weight: 600; }
.rb-tabla tbody tr:hover { background: rgba(196, 122, 61, 0.1); }

/* listas */

.rb-clavos { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.rb-clavos li { position: relative; padding-left: 1.6rem; line-height: 1.6; }
.rb-clavos li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0.15rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3cf86, var(--r-bronce) 60%, #8a6420);
}

.rb-pasos { display: grid; gap: 0.5rem; margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: rb-p; }
.rb-pasos li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.6rem 0.9rem 0.6rem 0.6rem;
  border-radius: 10px;
  background: rgba(26, 18, 11, 0.4);
  border-left: 3px solid var(--r-silla);
  counter-increment: rb-p;
  line-height: 1.45;
}
.rb-pasos li::before {
  content: counter(rb-p);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: var(--r-pasto);
  color: var(--r-blanco);
  font-family: var(--r-titulo);
  font-weight: 800;
}

/* preguntas */

.rb-qa { display: grid; gap: 0.7rem; }
.rb-qa__it { border-radius: 12px; background: var(--r-cuero); border: 1px dashed var(--r-costura); }
.rb-qa__it[open] { border-style: solid; border-color: var(--r-bronce); }
.rb-qa__s { display: flex; align-items: center; gap: 0.9rem; min-height: 60px; padding: 0.9rem 1.1rem; list-style: none; cursor: pointer; }
.rb-qa__s::-webkit-details-marker { display: none; }
.rb-qa__s::after {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  margin-left: auto;
  border-right: 2.5px solid var(--r-bronce);
  border-bottom: 2.5px solid var(--r-bronce);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}
.rb-qa__it[open] .rb-qa__s::after { transform: rotate(-135deg) translate(-2px, -2px); }
.rb-qa__n { flex-shrink: 0; color: var(--r-silla-hi); font-family: var(--r-titulo); font-weight: 800; }
.rb-qa__q { margin: 0; color: var(--r-crema); font-family: var(--r-titulo); font-size: 1.04rem; font-weight: 700; line-height: 1.4; }
.rb-qa__r { padding: 0 1.1rem 1.15rem calc(1.1rem + 1.5rem + 0.9rem); }
.rb-qa__r p { margin: 0; }

/* ---------- pie ---------- */

.rb-pie { background: #16100b; border-top: 3px solid var(--r-cuero-2); }
.rb-pie__rej { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 2rem; align-items: start; padding: 2.8rem 0 1.6rem; }
.rb-pie__edad { display: flex; align-items: center; gap: 0.7rem; margin: 1rem 0 0; color: var(--r-tenue); font-size: 0.93rem; }
.rb-edad { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px dashed var(--r-bronce); color: var(--r-bronce); font-size: 0.82rem; font-weight: 700; }
.rb-pie__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.rb-pie__nav a { display: inline-block; padding: 0.4rem 0; color: var(--r-texto); text-decoration: none; }
.rb-pie__nav a:hover { color: var(--r-bronce); }
.rb-pie__btns { display: grid; gap: 0.9rem; }
.rb-pie__copy { margin: 0; padding: 1rem 0 1.6rem; border-top: 1px dashed var(--r-borde); color: var(--r-tenue); font-size: 0.88rem; }

.rb-subir {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3cf86, var(--r-bronce) 55%, #8a6420);
  color: var(--r-oscuro);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.rb-subir.rb-subir--ver { opacity: 1; visibility: visible; }

/* ---------- adaptación ---------- */

@media (max-width: 1180px) {
  .rb-nav { display: none; }
  .rb-abre { display: inline-flex; }
  .rb-tope__cta { margin-left: auto; }
}

@media (max-width: 900px) {
  .rb-portada__rej { grid-template-columns: minmax(0, 1fr); }
  .rb-portada__foto { order: -1; }
  .rb-pie__rej { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --r-alto: 62px; }
  body { font-size: 1rem; }
  .rb-sello__b { display: none; }
  .rb-abre__txt { display: none; }
  .rb-abre { width: 46px; padding: 0; justify-content: center; }
  .rb-tope__cta { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
  .rb-portada__btns .rb-btn,
  .rb-boton .rb-btn { width: 100%; }
  .rb-cuero { padding: 1.15rem; box-shadow: inset 0 0 0 5px var(--r-piedra-2), inset 0 0 0 6px var(--r-costura); }
  .rb-bolsillo { padding: 1rem; }
  .rb-alforja__ctas { grid-template-columns: minmax(0, 1fr); }
  .rb-qa__r { padding-left: 1.1rem; }
}
