/* Ronda site — page-level styles. Built on top of tokens.css. */

.rnd-site {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--rnd-font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  position: relative;
  overflow: hidden;
}
.rnd-site *, .rnd-site *::before, .rnd-site *::after { box-sizing: border-box; }

/* ------- Layout container ------- */
.rs-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ------- Top nav ------- */
.rs-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.rs-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.rs-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
  color: var(--fg);
}
.rs-logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-fg);
  font-family: var(--rnd-font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0;
}
.rs-nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 13px; color: var(--fg-muted);
}
.rs-nav-links a { color: inherit; text-decoration: none; transition: color 120ms ease; }
.rs-nav-links a:hover { color: var(--fg); }
.rs-nav-cta {
  display: flex; align-items: center; gap: 10px;
}

/* ------- Eyebrow ------- */
.rs-eyebrow {
  font-family: var(--rnd-font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.rs-eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--border-strong);
}
.rs-eyebrow.no-rule::before { display: none; }
.rs-eyebrow .accent { color: var(--accent); }

/* ------- Headlines ------- */
.rs-h1 {
  font-size: clamp(56px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
  text-wrap: pretty;
}
.rs-h1 em { font-style: normal; color: var(--accent); }
.rs-h1 .muted { color: var(--fg-faint); }

.rs-h2 {
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  text-wrap: pretty;
  max-width: 26ch;
}

.rs-lead {
  font-size: 19px;
  line-height: 1.45;
  color: var(--fg-muted);
  max-width: 52ch;
  margin: 24px 0 0;
  text-wrap: pretty;
}

.rs-section {
  padding: 120px 0;
  position: relative;
}
.rs-section.tight { padding: 96px 0; }
.rs-section + .rs-section {
  border-top: 1px solid var(--border);
}

/* ------- Hero ------- */
.rs-hero {
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.rs-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.rs-hero-cta {
  display: flex; gap: 12px; margin-top: 40px; align-items: center;
}
.rs-hero-meta {
  display: flex; gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--rnd-font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rs-hero-meta strong {
  color: var(--fg);
  font-weight: 500;
}

/* Backdrop grid in hero */
.rs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 30%, black 30%, transparent 80%);
  pointer-events: none;
}

/* ------- Buttons (extends tokens.css btn) ------- */
.rs-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 0 18px;
  height: 44px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: transparent; color: var(--fg);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 80ms ease;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.rs-btn.primary {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}
.rs-btn.primary:hover { background: var(--accent-hover); }
.rs-btn.outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--fg);
}
.rs-btn.outline:hover { background: var(--surface-1); border-color: var(--fg-muted); }
.rs-btn.ghost { color: var(--fg-muted); }
.rs-btn.ghost:hover { color: var(--fg); }
.rs-btn.sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }

/* ------- Cards ------- */
.rs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* ------- Stat ticker (after hero) ------- */
.rs-ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rs-ticker-item {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.rs-ticker-item:last-child { border-right: none; }
.rs-ticker-label {
  font-family: var(--rnd-font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-faint);
}
.rs-ticker-value {
  font-family: var(--rnd-font-mono);
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-weight: 500;
  font-feature-settings: "ss01", "tnum";
}
.rs-ticker-hint {
  font-size: 12px; color: var(--fg-muted);
}

/* ------- Section header ------- */
.rs-sechead {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
.rs-sechead .left {
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--rnd-font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rs-sechead .num {
  font-size: 14px; color: var(--accent);
}

/* ------- Problemas grid ------- */
.rs-problems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.rs-problem {
  background: var(--surface);
  padding: 36px 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  min-height: 240px;
}
.rs-problem .num {
  font-family: var(--rnd-font-mono);
  font-size: 11px; color: var(--fg-faint);
  letter-spacing: 0.14em;
}
.rs-problem h3 {
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.rs-problem p {
  font-size: 14px; line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
  max-width: 42ch;
}
.rs-problem .quote {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  font-family: var(--rnd-font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}

/* ------- Modules ------- */
.rs-modules { display: flex; flex-direction: column; gap: 28px; }
.rs-module {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  padding: 64px 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.rs-module.flip { grid-template-columns: 1.15fr 1fr; }
.rs-module.flip .rs-module-text { order: 2; }
.rs-module.flip .rs-module-art { order: 1; }
.rs-module.feature {
  grid-template-columns: 1fr;
  padding: 64px 56px 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% 20%,
      color-mix(in oklab, var(--accent) 15%, transparent), transparent 70%),
    var(--surface);
}
.rs-module.feature .rs-module-text { padding-bottom: 32px; }
.rs-module.feature .rs-module-art { width: 100%; margin: 0 auto; }
.rs-module-text { display: flex; flex-direction: column; gap: 14px; }
.rs-module-text h3 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.rs-module-text p {
  font-size: 15px; line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
  max-width: 46ch;
}
.rs-module-tag {
  font-family: var(--rnd-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.rs-module-bullets {
  margin: 8px 0 0; padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--fg);
}
.rs-module-bullets li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.rs-module-bullets li:first-child { border-top: none; padding-top: 12px; }
.rs-module-bullets .k {
  font-family: var(--rnd-font-mono);
  font-size: 11px; color: var(--fg-faint);
  letter-spacing: 0.1em; flex-shrink: 0; width: 56px;
  padding-top: 2px;
}

/* ------- Para quién es ------- */
.rs-personas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.rs-persona { background: var(--surface); padding: 32px; min-height: 320px;
  display: flex; flex-direction: column; gap: 16px;
}
.rs-persona .role {
  font-family: var(--rnd-font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--fg-faint); text-transform: uppercase;
}
.rs-persona h4 {
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.015em; margin: 0;
}
.rs-persona ul {
  margin: auto 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; color: var(--fg-muted); line-height: 1.45;
}
.rs-persona li { display: flex; gap: 10px; }
.rs-persona li::before {
  content: ""; width: 6px; height: 6px;
  background: var(--accent); border-radius: 2px;
  flex-shrink: 0; margin-top: 6px;
}

/* ------- Diferenciadores ------- */
.rs-diff {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.rs-diff-row {
  display: grid; grid-template-columns: 80px 320px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.rs-diff-row .k {
  font-family: var(--rnd-font-mono);
  font-size: 11px; color: var(--fg-faint);
  letter-spacing: 0.1em; padding-top: 6px;
}
.rs-diff-row h4 {
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.015em; margin: 0;
  text-wrap: balance;
}
.rs-diff-row p {
  font-size: 15px; line-height: 1.5;
  color: var(--fg-muted); margin: 0;
  max-width: 56ch;
}

/* ------- CTA final ------- */
.rs-cta-final {
  padding: 120px 56px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%,
      color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rs-cta-final h2 {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
.rs-cta-final p {
  font-size: 18px; color: var(--fg-muted);
  margin: 20px 0 36px; line-height: 1.4;
}
.rs-cta-final .ctas {
  display: inline-flex; gap: 12px;
}

/* ------- Footer ------- */
.rs-footer { padding: 64px 0 80px; }
.rs-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.rs-footer h5 {
  font-family: var(--rnd-font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--fg-faint); text-transform: uppercase;
  margin: 0 0 16px;
}
.rs-footer ul { margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px;
}
.rs-footer ul a { color: var(--fg-muted); text-decoration: none; }
.rs-footer ul a:hover { color: var(--fg); }
.rs-footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--rnd-font-mono);
  font-size: 11px; color: var(--fg-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ------- WhatsApp floating ------- */
.rs-wa {
  position: absolute;
  right: 32px; bottom: 32px;
  z-index: 30;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px 0 16px;
  border-radius: 999px;
  background: oklch(0.62 0.16 150);
  color: oklch(0.99 0 0);
  font-family: var(--rnd-font-display);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  box-shadow: 0 12px 32px -8px oklch(0.5 0.16 150 / 0.55);
  letter-spacing: -0.005em;
}
.rs-wa-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: oklch(0.99 0 0);
  color: oklch(0.5 0.16 150);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Material Symbols Rounded"; font-size: 16px;
}

/* ------- Photo placeholder ------- */
.rs-photo {
  background:
    repeating-linear-gradient(135deg,
      var(--surface-1) 0 16px,
      var(--surface-2) 16px 32px);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.rs-photo .label {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--rnd-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-faint);
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 8px; border-radius: 6px;
}

/* ------- Responsive breakpoints ------- */
@media (max-width: 1180px) {
  .rs-container { padding: 0 40px; }
  .rs-hero-grid { gap: 48px; }
  .rs-module { padding: 48px 40px; gap: 40px; }
  .rs-module.feature { padding: 48px 40px 0; }
  .rs-cta-final { padding: 96px 40px; }
}

@media (max-width: 920px) {
  .rs-container { padding: 0 28px; }
  .rs-section { padding: 88px 0; }
  .rs-hero { padding: 64px 0 88px; }

  .rs-h1 { font-size: clamp(44px, 9vw, 60px); }
  .rs-h2 { font-size: clamp(32px, 5vw, 40px); }
  .rs-lead { font-size: 17px; }

  .rs-nav-links { display: none; }

  .rs-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .rs-hero-meta { flex-wrap: wrap; gap: 16px; }

  .rs-ticker { grid-template-columns: repeat(2, 1fr); }
  .rs-ticker-item:nth-child(2n) { border-right: none; }
  .rs-ticker-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

  .rs-sechead { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }

  .rs-problems { grid-template-columns: 1fr; }

  .rs-module,
  .rs-module.flip { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
  .rs-module.flip .rs-module-text { order: 1; }
  .rs-module.flip .rs-module-art { order: 2; }
  .rs-module.feature { padding: 40px 28px 0; }
  .rs-module-text h3 { font-size: 26px; }

  .rs-personas { grid-template-columns: repeat(2, 1fr); }
  .rs-persona { min-height: 280px; }

  .rs-diff-row { grid-template-columns: 56px 1fr; gap: 20px; }
  .rs-diff-row p { grid-column: 2; max-width: none; }

  .rs-cta-final { padding: 88px 28px; }
  .rs-cta-final h2 { font-size: clamp(40px, 7vw, 56px); }
  .rs-cta-final .ctas { flex-direction: column; width: 100%; max-width: 320px; }
  .rs-cta-final .ctas .rs-btn { width: 100%; }

  .rs-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .rs-footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 560px) {
  .rs-container { padding: 0 20px; }
  .rs-section { padding: 72px 0; }
  .rs-hero { padding: 48px 0 72px; }

  .rs-nav-cta .rs-btn.ghost { display: none; }

  .rs-h1 { font-size: clamp(40px, 11vw, 52px); letter-spacing: -0.03em; }
  .rs-h2 { font-size: clamp(28px, 8vw, 36px); }
  .rs-lead { font-size: 16px; }

  .rs-hero-cta { flex-direction: column; align-items: stretch; }
  .rs-hero-cta .rs-btn { width: 100%; }
  .rs-hero-meta { font-size: 10px; padding-top: 20px; margin-top: 40px; }

  .rs-ticker { grid-template-columns: 1fr; }
  .rs-ticker-item { border-right: none; border-bottom: 1px solid var(--border); }
  .rs-ticker-item:last-child { border-bottom: none; }
  .rs-ticker-value { font-size: 24px; }

  .rs-problem { padding: 28px 24px 24px; min-height: 0; }
  .rs-problem h3 { font-size: 19px; }

  .rs-module,
  .rs-module.flip,
  .rs-module.feature { padding: 32px 22px; border-radius: 14px; }
  .rs-module.feature { padding: 32px 22px 0; }
  .rs-module-text h3 { font-size: 22px; }

  .rs-personas { grid-template-columns: 1fr; }
  .rs-persona { min-height: 0; padding: 28px 24px; }
  .rs-persona ul { margin-top: 8px; }

  .rs-diff-row { padding: 22px 0; }
  .rs-diff-row .k { font-size: 10px; }
  .rs-diff-row h4 { font-size: 18px; }
  .rs-diff-row p { font-size: 14px; }

  .rs-cta-final { padding: 72px 22px; }

  .rs-footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .rs-wa { right: 16px; bottom: 16px; height: 48px; padding: 0 16px 0 14px; font-size: 13px; }
  .rs-wa span:not(.rs-wa-icon) { display: none; }
  .rs-wa { padding: 0; width: 48px; justify-content: center; }
}
