/* ═══════════════════════════════════════════════════════════════════
   NutriRenal · identidad propia del producto (negro + teal + naranja;
   Syne, Inter y Playfair Display). Todo va bajo .nr para no mezclarse
   con el sistema de JOU, que solo aporta cabecera y pie.
   ═══════════════════════════════════════════════════════════════════ */

.nr {
  --nr-bg: #000000;
  --nr-surface: #111111;
  --nr-surface-2: #1A1A25;
  --nr-text: #FFFFFF;
  --nr-muted: #888899;
  --nr-border: #2A2A3A;
  --nr-accent: #34C2C9;
  --nr-accent-hover: #5FD3D8;
  --nr-on-accent: #000000;
  --nr-accent-soft: rgba(52, 194, 201, .08);
  --nr-accent-border: rgba(52, 194, 201, .2);
  --nr-orange: #F0761E;
  --nr-font-heading: "Syne", sans-serif;
  --nr-font-body: "Inter", sans-serif;
  --nr-font-mono: "JetBrains Mono", monospace;
  --nr-radius: 16px;
  /* Mismos márgenes que la cabecera y el pie de JOU */
  --nr-max: calc(1392px + 48px);

  background: var(--nr-bg);
  color: var(--nr-text);
  font-family: var(--nr-font-body);
  font-feature-settings: normal;
  line-height: 1.65;
}

@media (prefers-color-scheme: light) {
  .nr {
    --nr-bg: #FFFFFF;
    --nr-surface: #F5F5F7;
    --nr-surface-2: #EAEAEA;
    --nr-text: #111111;
    --nr-muted: #666666;
    --nr-border: #E0E0E0;
    --nr-accent: #0B717A;
    --nr-accent-hover: #0C5E7E;
    --nr-on-accent: #FFFFFF;
    --nr-accent-soft: rgba(11, 113, 122, .1);
    --nr-accent-border: rgba(11, 113, 122, .25);
    /* Naranja del pulso oscurecido en claro para el texto (4,99:1 sobre blanco) */
    --nr-orange: #B5530F;
  }
}

.nr :focus-visible {
  outline: 3px solid var(--nr-accent);
  outline-offset: 3px;
}

.nr ::selection { background: var(--nr-accent); color: var(--nr-on-accent); }

.nr h1, .nr h2, .nr h3, .nr h4 {
  font-family: var(--nr-font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.nr h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 12px; }

.nr-container {
  width: 100%;
  max-width: var(--nr-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 599px) {
  .nr-container { padding: 0 16px; }
}

.nr-section { padding: 72px 0; }
.nr-section--alt { background: var(--nr-surface); }

.nr-label {
  display: block;
  margin-bottom: 8px;
  color: var(--nr-accent);
  font-family: var(--nr-font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.nr-subtitle {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--nr-muted);
}

.nr-accent { color: var(--nr-accent); }
.nr-orange { color: var(--nr-orange); }

/* ─── Botones ─── */
.nr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: var(--nr-font-body);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}

.nr-btn .icon { width: 16px; height: 16px; fill: currentColor; }

.nr-btn--primary {
  background: var(--nr-accent);
  border-color: var(--nr-accent);
  color: var(--nr-on-accent);
}

.nr-btn--primary:hover { background: var(--nr-accent-hover); border-color: var(--nr-accent-hover); }

.nr-btn--secondary {
  background: transparent;
  border-color: var(--nr-border);
  color: var(--nr-text);
}

.nr-btn--secondary:hover { border-color: var(--nr-accent); color: var(--nr-accent); }

.nr-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Portada ─── */
.nr-hero {
  padding: clamp(64px, 10vw, 120px) 0 72px;
  text-align: center;
}

.nr-hero .nr-container { max-width: 760px; }

.nr-hero__symbol {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
}

.nr-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--nr-accent-border);
  border-radius: 100px;
  background: var(--nr-accent-soft);
  color: var(--nr-accent);
  font-family: var(--nr-font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nr-pill .icon { width: 16px; height: 16px; fill: currentColor; }

.nr-wordmark {
  margin-top: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
}

.nr-wordmark span {
  color: var(--nr-accent);
  font-family: "Playfair Display", serif;
  font-style: italic;
}

.nr-hero__lead {
  max-width: 520px;
  margin: 16px auto 32px;
  color: var(--nr-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.nr-hero .nr-actions { justify-content: center; }

/* ─── Tarjetas de funciones ─── */
.nr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

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

.nr-card {
  padding: 20px;
  border: 1px solid var(--nr-border);
  border-radius: var(--nr-radius);
  background: var(--nr-bg);
}

.nr-card__icon,
.nr-secure__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--nr-accent-soft);
  color: var(--nr-accent);
}

.nr-card__icon svg,
.nr-secure__icon svg { width: 24px; height: 24px; }

.nr-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.nr-card p { color: var(--nr-muted); font-size: .92rem; line-height: 1.6; }

/* ─── Lista «qué te permite hacer» ─── */
.nr-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

@media (max-width: 767px) { .nr-features { grid-template-columns: 1fr; } }

.nr-feature { display: flex; align-items: flex-start; gap: 12px; }

.nr-feature__check {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--nr-accent-soft);
  color: var(--nr-accent);
}

.nr-feature__check svg { width: 18px; height: 18px; }
.nr-feature h3 { margin-bottom: 2px; font-size: 1.02rem; }
.nr-feature p { color: var(--nr-muted); font-size: .9rem; line-height: 1.55; }

/* ─── Vistas de la app (maquetas de teléfono) ─── */
.nr-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  justify-items: center;
  margin-top: 32px;
}

@media (max-width: 1023px) {
  .nr-screens { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
}

.nr .phone-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; margin: 0; }

.nr .phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(160deg, #243b44, #0c1c22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.nr .phone__notch { position: absolute; z-index: 5; top: 16px; left: 50%; width: 90px; height: 22px; border-radius: 0 0 14px 14px; background: #0a1418; transform: translateX(-50%); }
.nr .phone__screen { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border-radius: 26px; background: #FAFDFC; color: #191C1C; font-family: "Poppins", sans-serif; line-height: 1.4; }
.nr .phone__caption { margin-top: 12px; color: var(--nr-muted); font-family: var(--nr-font-mono); font-size: .78rem; letter-spacing: .06em; text-align: center; }
.nr .scr__top { padding: 26px 16px 12px; }
.nr .scr__eyebrow { color: #0E8A93; font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.nr .scr__title { margin-top: 2px; color: #00494B; font-family: "Playfair Display", serif; font-size: 22px; font-style: italic; font-weight: 700; line-height: 1.1; }
.nr .scr__body { flex: 1; overflow: hidden; padding: 0 16px 16px; }
.nr .scr__body--chat { display: flex; flex-direction: column; }
.nr .rings { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0 14px; }
.nr .ring { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; }
.nr .ring__dial { display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%; }
.nr .ring__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #FAFDFC; }
.nr .ring__val { color: #00494B; font-size: 13px; font-weight: 700; line-height: 1; }
.nr .ring__unit { color: #5B6B6B; font-size: 7px; }
.nr .ring__label { color: #3F4948; font-size: 9.5px; font-weight: 600; }
.nr .r-k { background: conic-gradient(#00696B 0 62%, #DCEBEA 0); }
.nr .r-na { background: conic-gradient(#F0761E 0 78%, #DCEBEA 0); }
.nr .r-p { background: conic-gradient(#0E8A93 0 41%, #DCEBEA 0); }
.nr .nrcard { margin-bottom: 9px; padding: 11px 12px; border: 1px solid #E2ECEB; border-radius: 16px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(12, 94, 126, .05); }
.nr .nrcard__h { display: flex; align-items: center; justify-content: space-between; }
.nr .nrcard__t { color: #12201F; font-size: 12.5px; font-weight: 600; }
.nr .nrcard__s { margin-top: 1px; color: #6A7A79; font-size: 10px; }
.nr .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.nr .chip { padding: 3px 7px; border-radius: 100px; font-size: 8.5px; font-weight: 600; }
.nr .chip--k { background: rgba(0, 105, 107, .1); color: #00696B; }
.nr .chip--na { background: rgba(240, 118, 30, .12); color: #C95E12; }
.nr .chip--p { background: rgba(14, 138, 147, .1); color: #0E8A93; }
.nr .scr__search { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; padding: 9px 12px; border-radius: 100px; background: #EDF4F3; color: #6A7A79; font-size: 11px; }
.nr .scr__search svg { width: 13px; height: 13px; }
.nr .scr__fab { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 16px; background: #00696B; color: #FFFFFF; box-shadow: 0 6px 16px rgba(0, 73, 75, .4); font-size: 22px; line-height: 1; }
.nr .bubble { max-width: 82%; margin-bottom: 9px; padding: 9px 12px; border-radius: 16px; font-size: 11px; line-height: 1.45; }
.nr .bubble--user { margin-left: auto; border-bottom-right-radius: 5px; background: #00696B; color: #FFFFFF; }
.nr .bubble--ai { border: 1px solid #E2ECEB; border-bottom-left-radius: 5px; background: #FFFFFF; color: #1A2726; }
.nr .bubble--ai b { color: #00696B; }
.nr .sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.nr .sugg span { padding: 5px 9px; border: 1px solid rgba(14, 138, 147, .3); border-radius: 100px; color: #0E8A93; font-size: 9px; font-weight: 600; }
.nr .scr__inputbar { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 8px 12px; border: 1px solid #E2ECEB; border-radius: 100px; background: #FFFFFF; color: #8A9A99; font-size: 10.5px; }
.nr .scr__inputbar span { margin-left: auto; color: #00696B; font-size: 14px; }

/* ─── Privacidad ─── */
.nr-secure {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  text-align: center;
}

@media (max-width: 767px) { .nr-secure { grid-template-columns: 1fr; } }

.nr-secure__icon { margin: 0 auto 8px; }
.nr-secure h3 { margin-bottom: 4px; font-size: 1rem; }
.nr-secure p { color: var(--nr-muted); font-size: .86rem; line-height: 1.5; }

/* ─── Aviso de lanzamiento ─── */
.nr-notify {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin-top: 24px;
}

.nr-notify__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nr-notify label { font-weight: 600; font-size: .95rem; }

.nr-notify input[type="email"] {
  flex: 1 1 240px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--nr-border);
  border-radius: 12px;
  background: var(--nr-bg);
  color: var(--nr-text);
  font-family: var(--nr-font-body);
  font-size: 1rem;
}

.nr-notify input[aria-invalid="true"] { border: 2px solid #FF6B6B; }

.nr-notify .field__error,
.nr-notify .form__message {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .9rem;
}

.nr-notify .field__error[hidden],
.nr-notify .form__message[hidden] { display: none; }

.nr-notify .field__error { color: #FF6B6B; }
.nr-notify .form__message[data-tone="ok"] { color: var(--nr-accent); }
.nr-notify .form__message[data-tone="info"] { color: var(--nr-text); }
.nr-notify .form__message[data-tone="error"] { color: #FF6B6B; }
.nr-notify .form__message a { color: inherit; }
.nr-notify .icon { width: 16px; height: 16px; margin-top: 3px; fill: currentColor; flex: none; }
.nr-notify .form__legal { color: var(--nr-muted); font-size: .85rem; }

@media (prefers-color-scheme: light) {
  .nr-notify input[aria-invalid="true"] { border-color: #C80C0C; }
  .nr-notify .field__error,
  .nr-notify .form__message[data-tone="error"] { color: #C80C0C; }
}

/* ─── Llamada final ─── */
.nr-cta { text-align: center; }
.nr-cta p { max-width: 440px; margin: 0 auto 24px; color: var(--nr-muted); }
.nr-cta .nr-actions { justify-content: center; }
