/* =====================================================================
   NUVESCI | RetaFitness — estilos propios (no alteran css/estilos.css)
   Verde petróleo #12372F, dorado #C8B477 (solo acento: con texto oscuro
   encima o sobre verde, contraste ≥ 4.5:1), marfil y tipografía legible.
   ===================================================================== */
:root {
  /* Paleta NUVESCI */
  --rf-verde: #12372F; --rf-verde-2: #1c4a40; --rf-verde-claro: #e3ece8;
  --rf-oro: #C8B477; --rf-oro-oscuro: #7a6a33; --rf-marfil: #F7F4EC; --rf-blanco: #fff;
  /* Texto (todos con contraste AA ≥ 4.5:1 sobre blanco y marfil) */
  --rf-tinta: #121c2a; --rf-tinta-2: #4a5566; --rf-tinta-3: #5f6b77;
  /* Superficies y bordes */
  --rf-fondo: var(--rf-marfil); --rf-superficie: #fff; --rf-superficie-2: #f6f8f7; --rf-borde: #dfe4e1; --rf-linea: #ddd6c3;
  /* Estados */
  --rf-bien: #1b7a45; --rf-bien-fondo: #e3f3ea; --rf-alerta: #b03a2e; --rf-alerta-fondo: #fbe9e6;
  --rf-aviso: #7a6a33; --rf-aviso-fondo: #f3ecd6; --rf-agua: #3a8fb7; --rf-agua-2: #2b6f91; --rf-grafico: #3f7556;
  --rf-rojo: #a8382c; --rf-rojo-claro: #f6e1dd;
  /* Radios: chips y campos · botones y cajas internas · tarjetas y hojas · pastilla */
  --rf-r-s: 10px; --rf-r-m: 14px; --rf-r-l: 20px; --rf-r-pill: 999px; --rf-radio: var(--rf-r-m);
  /* Sombras: tarjeta · realce · flotantes (hojas, botón +, avisos) */
  --rf-sombra-1: 0 1px 3px rgba(18, 28, 42, .07); --rf-sombra-2: 0 4px 14px rgba(18, 28, 42, .12); --rf-sombra-3: 0 16px 40px rgba(0, 0, 0, .3);
  /* Escala de texto */
  --rf-t-xs: .78rem; --rf-t-s: .9rem; --rf-t-m: 1rem; --rf-t-l: 1.2rem; --rf-t-xl: 1.6rem; --rf-t-2xl: 2.2rem; --rf-t-num: 2.8rem;
  --rf-display: "Marcellus", Georgia, serif; --rf-texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body.rf { margin: 0; min-height: 100vh; background: var(--rf-marfil); color: var(--rf-tinta); font-family: var(--rf-texto); font-size: 16px; line-height: 1.5; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
a { color: var(--rf-verde-2); }
:focus-visible { outline: 3px solid var(--rf-oro); outline-offset: 2px; border-radius: 6px; }
.rf-cabeza { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--rf-verde); border-bottom: 2px solid var(--rf-oro); }
.rf-logo img { height: 30px; width: auto; display: block; }
.rf-marca { display: inline-flex; align-items: center; gap: 8px; color: var(--rf-oro); font-family: var(--rf-display); font-size: var(--rf-t-l); letter-spacing: .04em; }
.rf-marca img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(200, 180, 119, .5); }
.rf-contenido { max-width: 760px; margin: 0 auto; padding: 18px 16px 24px; }
.rf-cargando { color: var(--rf-tinta-2); }
h1.rf-h1 { font-family: var(--rf-display); font-weight: 400; font-size: var(--rf-t-xl); color: var(--rf-verde); margin: 4px 0 4px; }
h2.rf-h2 { font-size: var(--rf-t-m); margin: 22px 0 10px; color: var(--rf-verde); }
.rf-sub { color: var(--rf-tinta-2); margin: 0 0 14px; }
.rf-tarjeta { background: var(--rf-superficie); border: 0; border-radius: var(--rf-r-l); box-shadow: var(--rf-sombra-1); padding: 16px; margin-bottom: 12px; }
.rf-aviso { background: var(--rf-aviso-fondo); border-left: 4px solid var(--rf-oro); border-radius: var(--rf-r-s); padding: 12px 14px; font-size: var(--rf-t-s); }
.rf-error { color: var(--rf-rojo); font-weight: 600; font-size: var(--rf-t-s); min-height: 1.2em; margin: 6px 0; }
.rf-vacio { text-align: center; color: var(--rf-tinta-2); padding: 22px 10px; }

/* botones cómodos para una mano */
.rf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--rf-r-m); border: 1.5px solid transparent;
  font: 600 1rem var(--rf-texto); cursor: pointer; text-decoration: none; }
.rf-btn-verde { background: var(--rf-verde); color: #fff; }
.rf-btn-verde:hover { background: var(--rf-verde-2); }
.rf-btn-oro { background: var(--rf-oro); color: var(--rf-verde); }
.rf-btn-borde { background: #fff; color: var(--rf-verde); border-color: var(--rf-verde); }
.rf-btn-peligro { background: #fff; color: var(--rf-rojo); border-color: var(--rf-rojo); }
.rf-btn-sm { min-height: 38px; padding: 8px 12px; font-size: var(--rf-t-s); }
.rf-btn:disabled { opacity: .55; cursor: wait; }
.rf-fila { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rf-acciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rf-accion { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; min-height: 84px; border-radius: var(--rf-radio); border: 1px solid var(--rf-linea);
  background: var(--rf-blanco); color: var(--rf-tinta); font: 600 1rem var(--rf-texto); text-align: left; cursor: pointer; text-decoration: none; }
.rf-accion small { font-weight: 400; color: var(--rf-tinta-2); }
.rf-accion:hover { border-color: var(--rf-verde); }
.rf-resumen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rf-dato { background: var(--rf-verde); color: #fff; border-radius: var(--rf-radio); padding: 12px; }
.rf-dato span { display: block; font-size: var(--rf-t-xs); color: var(--rf-oro); text-transform: uppercase; letter-spacing: .06em; }
.rf-dato strong { font-family: var(--rf-texto); font-weight: 700; font-size: var(--rf-t-l); font-variant-numeric: tabular-nums; } /* la serif confunde 0 con O */

/* formularios */
.rf-campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.rf-campo > label, .rf-campo legend { font-weight: 600; }
.rf-campo input, .rf-campo select, .rf-campo textarea { font: inherit; padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--rf-linea); border-radius: var(--rf-r-s); background: #fff; color: var(--rf-tinta); width: 100%; }
.rf-campo textarea { min-height: 90px; resize: vertical; }
.rf-campo input:focus, .rf-campo select:focus, .rf-campo textarea:focus { border-color: var(--rf-verde); outline: none; box-shadow: 0 0 0 3px rgba(18, 55, 47, .18); }
.rf-ayuda { color: var(--rf-tinta-2); font-size: var(--rf-t-s); font-weight: 400; }
.rf-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
fieldset.rf-campo { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.rf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-chip { position: relative; }
.rf-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rf-chip span { display: inline-block; padding: 10px 14px; border: 1.5px solid var(--rf-linea); border-radius: var(--rf-r-pill); background: #fff; min-height: 44px; }
.rf-chip input:checked + span { background: var(--rf-verde); border-color: var(--rf-verde); color: #fff; }
.rf-chip input:focus-visible + span { outline: 3px solid var(--rf-oro); outline-offset: 2px; }
.rf-progreso { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 8px 0 18px; }
.rf-progreso i { height: 8px; border-radius: var(--rf-r-pill); background: #e5e0d2; }
.rf-progreso i.hecho { background: var(--rf-oro); }
.rf-interruptor { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--rf-linea); }
.rf-interruptor input { width: 26px; height: 26px; accent-color: var(--rf-verde); flex: none; margin-top: 2px; }
.rf-interruptor strong { display: block; }

/* diario */
.rf-dia { margin-bottom: 18px; }
.rf-dia h3 { font-size: var(--rf-t-s); text-transform: uppercase; letter-spacing: .06em; color: var(--rf-oro-oscuro); margin: 0 0 8px; }
.rf-comida { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: #fff; border: 1px solid var(--rf-linea); border-radius: var(--rf-r-s); margin-bottom: 8px; }
.rf-comida img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--rf-r-s); flex: none; }
.rf-comida .rf-texto { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rf-etiqueta { display: inline-block; font-size: var(--rf-t-xs); font-weight: 700; padding: 2px 8px; border-radius: var(--rf-r-pill); background: var(--rf-verde-claro); color: var(--rf-verde); }
.rf-foto-previa { max-width: 160px; border-radius: var(--rf-r-s); display: block; margin-top: 8px; }

/* progreso */
.rf-grafico { margin: 0 0 12px; }
.rf-grafico svg { width: 100%; height: auto; display: block; }
.rf-grafico svg text { font-family: var(--rf-texto); }
.rf-tabla { width: 100%; border-collapse: collapse; font-size: var(--rf-t-s); }
.rf-tabla th, .rf-tabla td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rf-linea); }
.rf-tabla th { font-size: var(--rf-t-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--rf-tinta-2); }

/* recetas */
.rf-receta h3 { margin: 0 0 4px; font-size: var(--rf-t-m); color: var(--rf-verde); }
.rf-receta ul { margin: 6px 0; padding-left: 18px; }

/* navegación inferior */
.rf-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--rf-verde);
  border-top: 2px solid var(--rf-oro); padding-bottom: env(safe-area-inset-bottom); }
.rf-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 10px; min-height: 60px; color: #dfe9e4; text-decoration: none; font-size: var(--rf-t-xs); font-weight: 600; }
.rf-nav a span { font-size: var(--rf-t-l); line-height: 1; }
.rf-nav a.activo { color: var(--rf-oro); }

/* modal sencillo */
.rf-capa { position: fixed; inset: 0; z-index: 50; background: rgba(18, 55, 47, .55); display: flex; align-items: flex-end; justify-content: center; }
.rf-modal { background: var(--rf-marfil); width: min(560px, 100%); max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.rf-modal h2 { font-family: var(--rf-display); font-weight: 400; color: var(--rf-verde); margin: 0 0 12px; }
@media (min-width: 640px) { .rf-capa { align-items: center; } .rf-modal { border-radius: var(--rf-r-l); } }
.rf-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--rf-verde); color: #fff; padding: 10px 18px; border-radius: var(--rf-r-pill); z-index: 60; max-width: calc(100% - 32px); }
@media (max-width: 420px) { .rf-resumen { grid-template-columns: 1fr 1fr; } .rf-dos { grid-template-columns: 1fr; } }

/* pantalla de acceso propia de RetaFitness */
body.rf-en-acceso { background: radial-gradient(900px 420px at 85% -10%, rgba(200, 180, 119, .18), transparent 60%), linear-gradient(160deg, var(--rf-verde), #0b241f 75%); background-attachment: fixed; padding-bottom: 24px; }
body.rf-en-acceso .rf-contenido { max-width: 440px; padding-top: 28px; }
.rf-acceso { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rf-acceso-icono { width: 104px; height: 104px; border-radius: var(--rf-r-l); margin: 6px auto 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 0 1px rgba(200, 180, 119, .45); }
.rf-acceso-casa { color: #cfdcd6; font-size: var(--rf-t-xs); letter-spacing: .32em; margin: 0; }
.rf-acceso-marca { font-family: var(--rf-display); color: var(--rf-oro); font-size: var(--rf-t-2xl); letter-spacing: .06em; margin: 4px 0 2px; }
.rf-acceso-lema { color: #dfe9e4; margin: 0 0 20px; max-width: 32ch; }
.rf-acceso-caja { width: 100%; text-align: left; background: var(--rf-marfil); border-radius: var(--rf-r-l); padding: 22px 20px; box-shadow: var(--rf-sombra-3); border-top: 4px solid var(--rf-oro); }
.rf-acceso-caja h1 { font-family: var(--rf-display); font-weight: 400; color: var(--rf-verde); font-size: var(--rf-t-xl); margin: 0 0 14px; }
.rf-clave { display: flex; gap: 8px; }
.rf-clave input { flex: 1; min-width: 0; }
.rf-ancho { width: 100%; margin-top: 6px; }
.rf-centro { text-align: center; margin-top: 14px; }
/* crear cuenta */
.rf-separador { display: flex; align-items: center; gap: 10px; margin: 18px 0 4px; color: var(--rf-tinta-2); font-size: var(--rf-t-s); }
.rf-separador::before, .rf-separador::after { content: ""; flex: 1; height: 1px; background: var(--rf-linea); }
.rf-acepto { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 10px; font-size: var(--rf-t-s); line-height: 1.4; cursor: pointer; }
.rf-acepto input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--rf-verde); }
.rf-acepto a { color: var(--rf-verde); font-weight: 600; }
/* campo trampa para robots: fuera de la vista y de la lectura de pantalla */
.rf-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* navegación del cuestionario: alineada en teléfono, tableta y computadora */
#rf-q { max-width: none; } /* mismo ancho que la barra de avance: bordes alineados */
.rf-pasos-nav { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "atras sig"; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rf-linea); }
.rf-pasos-sig { grid-area: sig; justify-self: end; min-width: 180px; }
.rf-pasos-atras { grid-area: atras; justify-self: start; min-width: 140px; }
.rf-pasos-sec { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; color: var(--rf-tinta-2); }
.rf-enlace { background: none; border: 0; padding: 10px 6px; min-height: 44px; font: 600 .95rem var(--rf-texto); color: var(--rf-verde-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rf-enlace:hover { color: var(--rf-verde); }
@media (max-width: 599px) {
  /* Teléfono: «Continuar» arriba y a todo el ancho; «Volver» debajo, también a todo el ancho. */
  .rf-pasos-nav { grid-template-columns: 1fr; grid-template-areas: "sig" "atras"; }
  .rf-pasos-sig, .rf-pasos-atras { justify-self: stretch; min-width: 0; width: 100%; }
  span.rf-pasos-atras { display: none; }
}

/* Opciones del cuestionario ≠ botones de acción: tarjetas de selección con indicador (○ una opción, □ varias). */
.rf-chips { gap: 10px; }
.rf-chip span { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; min-height: 48px; border-radius: var(--rf-r-s);
  border: 1.5px solid var(--rf-linea); background: #fff; color: var(--rf-tinta); font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.rf-chip span::before { content: ""; flex: none; width: 20px; height: 20px; border: 2px solid #9aa8a2; border-radius: 6px; background: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; line-height: 1; color: #fff; }
.rf-chip input[type="radio"] + span::before { border-radius: 50%; }
.rf-chip:hover span { border-color: var(--rf-verde-2); }
.rf-chip input:checked + span { background: var(--rf-verde-claro); border-color: var(--rf-verde); color: var(--rf-verde); font-weight: 600; box-shadow: inset 0 0 0 1px var(--rf-verde); }
.rf-chip input:checked + span::before { content: "✓"; background: var(--rf-verde); border-color: var(--rf-verde); }
/* Botones de acción: rectangulares y sólidos/contorno, nunca con indicador. */
.rf-pasos-nav .rf-btn { border-radius: var(--rf-r-s); letter-spacing: .01em; }
@media (max-width: 360px) { .rf-logo img { height: 24px; } .rf-marca { font-size: var(--rf-t-s); } .rf-cabeza { padding: 8px 12px; } }

/* Acciones secundarias del cuestionario: franja discreta con dos botones fantasma e íconos */
.rf-pasos-sec { display: flex; justify-content: center; align-items: stretch; gap: 0; margin: 18px auto 0; width: fit-content; max-width: 100%;
  background: #fff; border: 1px solid var(--rf-linea); border-radius: var(--rf-r-pill); padding: 4px; box-shadow: var(--rf-sombra-1); }
.rf-sec-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px; border: 0; border-radius: var(--rf-r-pill); background: transparent;
  color: var(--rf-verde-2); font: 600 .92rem var(--rf-texto); letter-spacing: .01em; cursor: pointer; transition: background .15s, color .15s; }
.rf-sec-btn svg { width: 18px; height: 18px; color: var(--rf-oro-oscuro); flex: none; }
.rf-sec-btn:hover { background: var(--rf-verde-claro); color: var(--rf-verde); }
.rf-sec-btn:focus-visible { outline: 3px solid var(--rf-oro); outline-offset: 2px; }
.rf-sec-btn + .rf-sec-btn { position: relative; }
.rf-sec-btn + .rf-sec-btn::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 1px; background: var(--rf-linea); }
@media (max-width: 599px) {
  .rf-pasos-sec { width: 100%; border-radius: var(--rf-r-m); }
  .rf-sec-btn { flex: 1; justify-content: center; padding: 8px 10px; font-size: var(--rf-t-s); text-align: center; }
}
.rf-corto { display: none; }
@media (max-width: 599px) { .rf-largo { display: none; } .rf-corto { display: inline; } }

/* Estimación de nutrientes por foto */
.rf-ico { width: 18px; height: 18px; vertical-align: -3px; }
.rf-btn .rf-ico { color: var(--rf-verde); }
.rf-ia-aviso { background: #fff; border: 1px dashed var(--rf-oro); border-radius: var(--rf-r-s); padding: 10px 12px; margin-top: 10px; }
.rf-ia-aviso .rf-ico { color: var(--rf-oro-oscuro); }
#fc-ia { margin-top: 10px; }
.rf-nutri { background: #fff; border: 1px solid var(--rf-linea); border-left: 4px solid var(--rf-oro); border-radius: var(--rf-r-s); padding: 14px; margin-top: 10px; }
.rf-nutri-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.rf-nutri-cab strong { font-size: var(--rf-t-l); color: var(--rf-verde); font-variant-numeric: tabular-nums; }
.rf-nutri-conf { font-size: var(--rf-t-xs); font-weight: 700; padding: 3px 10px; border-radius: var(--rf-r-pill); text-transform: capitalize; }
.rf-conf-alta { background: var(--rf-verde-claro); color: var(--rf-verde); }
.rf-conf-media { background: var(--rf-aviso-fondo); color: var(--rf-oro-oscuro); }
.rf-conf-baja { background: var(--rf-rojo-claro); color: var(--rf-rojo); }
.rf-nutri-macros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rf-nutri-macros span { background: var(--rf-marfil); border-radius: var(--rf-r-s); padding: 8px; text-align: center; font-size: var(--rf-t-xs); color: var(--rf-tinta-2); }
.rf-nutri-macros b { display: block; font-size: var(--rf-t-m); color: var(--rf-tinta); font-variant-numeric: tabular-nums; }
.rf-nutri details { margin: 10px 0 6px; }
.rf-nutri summary { cursor: pointer; font-weight: 600; color: var(--rf-verde-2); }
.rf-nutri-lista { list-style: none; padding: 0; margin: 8px 0 0; }
.rf-nutri-lista li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--rf-linea); }
.rf-nutri-lista small { color: var(--rf-tinta-2); }
.rf-nutri-pie { margin: 8px 0 0; font-size: var(--rf-t-xs); }
.rf-nutri-mini { margin-top: 6px; font-size: var(--rf-t-s); color: var(--rf-verde-2); font-variant-numeric: tabular-nums; }
.rf-nutri-mini .rf-ico { width: 14px; height: 14px; color: var(--rf-oro-oscuro); }
.rf-dia-kcal { font-size: var(--rf-t-xs); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--rf-tinta-2); margin-left: 6px; }
@media (max-width: 420px) { .rf-nutri-macros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  /* Diario en teléfono: el texto usa todo el ancho y los botones van debajo. */
  .rf-comida { flex-wrap: wrap; }
  .rf-comida .rf-texto { flex: 1 1 calc(100% - 80px); }
  .rf-comida > .rf-fila { flex: 1 1 100%; justify-content: flex-end; }
}

/* instalar en el teléfono */
body.rf-en-acceso .rf-contenido { padding-top: calc(28px + env(safe-area-inset-top)); }
.rf-instalar { position: relative; width: 100%; text-align: left; border-radius: var(--rf-r-m); padding: 16px; margin: 16px 0 4px; }
.rf-instalar-acceso { background: rgba(255, 255, 255, .07); border: 1px solid rgba(200, 180, 119, .45); color: #eef3f0; }
.rf-instalar-tarjeta, .rf-instalar-perfil { background: var(--rf-verde); color: #eef3f0; border: 1px solid var(--rf-verde-2); margin-top: 18px; }
.rf-acceso-lema + .rf-instalar { margin: 0 0 16px; }
.rf-inst-cabeza { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; padding-right: 64px; }
.rf-instalar-acceso .rf-inst-cabeza, .rf-instalar-perfil .rf-inst-cabeza { padding-right: 0; }
.rf-inst-cabeza img { width: 52px; height: 52px; border-radius: var(--rf-r-s); flex: none; box-shadow: 0 0 0 1px rgba(200, 180, 119, .5); }
.rf-inst-cabeza strong { display: block; color: var(--rf-oro); font-size: var(--rf-t-m); }
.rf-inst-cabeza span { display: block; font-size: var(--rf-t-s); color: #cfdcd6; line-height: 1.35; }
.rf-inst-pasos { margin: 0; padding-left: 20px; font-size: var(--rf-t-s); display: grid; gap: 6px; }
.rf-inst-pasos strong, .rf-inst-nota strong { color: #fff; }
.rf-inst-nota { margin: 0 0 10px; font-size: var(--rf-t-s); }
.rf-ico-ios { width: 18px; height: 18px; vertical-align: -3px; color: #9cc8ff; }
.rf-instalar .rf-btn-borde { color: #fff; border-color: rgba(255, 255, 255, .5); background: transparent; }
.rf-inst-cerrar { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: #cfdcd6; font: inherit; font-size: var(--rf-t-xs); text-decoration: underline; cursor: pointer; padding: 4px; }
.rf-perfil-instalar .rf-instalar { margin-top: 4px; }
.rf-inv-icono { display: block; width: 72px; height: 72px; border-radius: var(--rf-r-l); margin: 6px 0 10px; box-shadow: var(--rf-sombra-3); }

/* guía de primeros pasos (inicio) */
.rf-guia { background: var(--rf-blanco); border: 1px solid var(--rf-oro); border-left: 5px solid var(--rf-oro); border-radius: var(--rf-radio); padding: 16px 16px 10px; margin: 6px 0 18px; }
.rf-guia-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rf-guia-cab .rf-h2 { margin: 0; }
.rf-guia-cuenta { font-weight: 700; color: var(--rf-oro-oscuro); font-size: var(--rf-t-s); white-space: nowrap; }
.rf-guia-lista { list-style: none; margin: 0; padding: 0; }
.rf-guia-lista li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rf-linea); }
.rf-guia-lista li:first-child { border-top: 0; }
.rf-guia-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-guia-marca { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--rf-linea); display: grid; place-items: center; font-weight: 800; font-size: var(--rf-t-s); color: var(--rf-blanco); }
.rf-guia-lista li.hecho .rf-guia-marca { background: var(--rf-verde); border-color: var(--rf-verde); }
.rf-guia-lista li.hecho strong { color: var(--rf-tinta-2); text-decoration: line-through; text-decoration-color: var(--rf-oro); }
.rf-guia-lista li.siguiente .rf-guia-marca { border-color: var(--rf-oro); box-shadow: 0 0 0 3px rgba(200, 180, 119, .3); }
.rf-guia-rutina { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rf-linea); }
.rf-guia-rutina summary { cursor: pointer; font-weight: 600; color: var(--rf-verde); }
.rf-guia-rutina ul { margin: 8px 0 4px; padding-left: 18px; color: var(--rf-tinta-2); font-size: var(--rf-t-s); }
.rf-guia-rutina li { margin: 4px 0; }
.rf-guia-ocultar { background: none; border: 0; color: var(--rf-tinta-2); text-decoration: underline; font: inherit; font-size: var(--rf-t-s); cursor: pointer; padding: 8px 0 2px; }
.rf-visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* medidas iniciales */
.rf-consejos summary { cursor: pointer; color: var(--rf-verde); }
.rf-consejos ul { margin: 10px 0 0; padding-left: 18px; color: var(--rf-tinta-2); }
.rf-consejos li { margin: 4px 0; }
.rf-medir { padding-top: 10px; border-top: 1px solid var(--rf-linea); }
.rf-medir-valor { display: flex; align-items: center; gap: 8px; max-width: 220px; }
.rf-medir-valor input { flex: 1; min-width: 0; }
.rf-medir-valor span { font-weight: 600; color: var(--rf-tinta-2); min-width: 42px; }
@media (max-width: 420px) { .rf-guia-lista li { grid-template-columns: 28px 1fr; } .rf-guia-lista li > .rf-btn { grid-column: 2; justify-self: start; } }
/* composición corporal */
.rf-dato small { display: block; font-size: var(--rf-t-xs); color: #cfdcd6; margin-top: 2px; }
.rf-dato-enlace { text-decoration: none; }
.rf-dato-enlace:hover, .rf-dato-enlace:focus-visible { outline: 2px solid var(--rf-oro); outline-offset: 2px; }
.rf-cmp .rf-h2 { margin-top: 0; }
.rf-cmp-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.rf-cmp-datos > div { background: var(--rf-verde-claro); border-radius: var(--rf-r-s); padding: 12px; }
.rf-cmp-datos span { display: block; font-size: var(--rf-t-xs); color: var(--rf-tinta-2); text-transform: uppercase; letter-spacing: .05em; }
.rf-cmp-datos strong { display: block; font-size: var(--rf-t-xl); color: var(--rf-verde); font-variant-numeric: tabular-nums; }
.rf-cmp-datos small { color: var(--rf-tinta-2); }
/* aviso al entrar: información pendiente */
.rf-aviso-lista { list-style: none; padding: 0; margin: 10px 0 16px; }
.rf-aviso-lista li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 8px 26px; border-top: 1px solid var(--rf-linea); position: relative; }
.rf-aviso-lista li::before { content: "!"; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--rf-oro); color: var(--rf-verde); font-weight: 800; font-size: var(--rf-t-xs); display: grid; place-items: center; }
@media (min-width: 421px) and (max-width: 700px) { .rf-resumen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* agua: meta diaria y avance */
.rf-agua { margin-top: 12px; }
.rf-agua.atrasada { border-color: var(--rf-oro); border-left: 5px solid var(--rf-oro); }
.rf-agua-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rf-agua-cab .rf-h2 { margin: 0; }
.rf-agua-cab strong { font-size: var(--rf-t-l); color: var(--rf-verde); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rf-agua-cab strong span { font-weight: 500; font-size: var(--rf-t-s); color: var(--rf-tinta-2); }
.rf-agua-barra { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; margin: 10px 0 6px; border: 0; border-radius: var(--rf-r-pill); background: #e5e0d2; overflow: hidden; }
.rf-agua-barra::-webkit-progress-bar { background: #e5e0d2; border-radius: var(--rf-r-pill); }
.rf-agua-barra::-webkit-progress-value { background: linear-gradient(90deg, #3a8fb7, #2b6f91); border-radius: var(--rf-r-pill); }
.rf-agua-barra::-moz-progress-bar { background: linear-gradient(90deg, #3a8fb7, #2b6f91); border-radius: var(--rf-r-pill); }
.rf-agua .rf-fila { margin-top: 8px; }
.rf-sin-borde { border: 0 !important; }
#pf-meta-ml { margin-top: 6px; max-width: 240px; }
/* campanita de notificaciones */
.rf-cabeza-der { display: inline-flex; align-items: center; gap: 12px; }
.rf-campana { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(200, 180, 119, .5); background: transparent; color: var(--rf-oro); display: grid; place-items: center; cursor: pointer; padding: 0; }
.rf-campana[hidden] { display: none; }
.rf-campana svg { width: 22px; height: 22px; transform-origin: 50% 10%; }
.rf-campana:hover, .rf-campana:focus-visible { background: rgba(200, 180, 119, .15); outline: none; box-shadow: 0 0 0 2px var(--rf-oro); }
.rf-campana-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--rf-r-pill); background: var(--rf-alerta); color: #fff; font: 700 .72rem/20px var(--rf-texto); text-align: center; box-shadow: 0 0 0 2px var(--rf-verde); }
.rf-campana-n[hidden] { display: none; }
/* «late»: hay avisos nuevos sin ver */
.rf-campana.late svg { animation: rf-campana-mueve 1.6s ease-in-out infinite; }
.rf-campana.late .rf-campana-n { animation: rf-campana-pulso 1.6s ease-out infinite; }
@keyframes rf-campana-mueve { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(9deg); } 40% { transform: rotate(-6deg); } 50% { transform: rotate(3deg); } }
@keyframes rf-campana-pulso { 0% { box-shadow: 0 0 0 2px var(--rf-verde), 0 0 0 2px rgba(192, 57, 43, .7); } 70% { box-shadow: 0 0 0 2px var(--rf-verde), 0 0 0 12px rgba(192, 57, 43, 0); } 100% { box-shadow: 0 0 0 2px var(--rf-verde), 0 0 0 2px rgba(192, 57, 43, 0); } }
@media (prefers-reduced-motion: reduce) { .rf-campana.late svg, .rf-campana.late .rf-campana-n { animation: none; } }
.rf-avisos { list-style: none; margin: 0 0 12px; padding: 0; }
.rf-avisos li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--rf-linea); }
.rf-avisos li:first-child { border-top: 0; }
.rf-avisos-ico { font-size: var(--rf-t-l); text-align: center; }
.rf-avisos-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 420px) { .rf-avisos li { grid-template-columns: 30px 1fr; } .rf-avisos li > .rf-btn { grid-column: 2; justify-self: start; } .rf-campana { width: 36px; height: 36px; } .rf-cabeza-der { gap: 8px; } }
@media (max-width: 360px) { .rf-marca { font-size: 0; gap: 0; } }
/* utilidades (en lugar de estilos en línea, que la política de seguridad CSP bloquea) */
.rf-mt-0 { margin-top: 0 !important; } .rf-mt-8 { margin-top: 8px; } .rf-mt-10 { margin-top: 10px; } .rf-mt-12 { margin-top: 12px; } .rf-mt-14 { margin-top: 14px; }
.rf-desliza { overflow-x: auto; }
.rf-sin-relleno { padding: 0 !important; }
/* hoja para registrar una medida: número grande + regla deslizable (estilo de app de salud) */
.rf-capa-hoja { align-items: flex-end !important; background: rgba(20, 30, 28, .45); }
.rf-hoja { position: relative; width: min(560px, 100%); max-height: 94vh; overflow: auto; background: #f2f3f1; border-radius: 28px 28px 0 0;
  padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); text-align: center; transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  box-shadow: var(--rf-sombra-3); overscroll-behavior: contain; }
.rf-hoja.abierta { transform: none; }
@media (prefers-reduced-motion: reduce) { .rf-hoja { transition: none; } }
.rf-hoja-asa { display: block; width: 40px; height: 5px; border-radius: var(--rf-r-pill); background: #d3d8dc; margin: 6px auto 16px; }
.rf-hoja h2 { margin: 0 0 8px; font: 700 1.45rem var(--rf-texto); color: var(--rf-tinta); }
.rf-hoja-como { margin: 0 auto 6px; max-width: 34ch; color: var(--rf-tinta-3); font-size: var(--rf-t-m); line-height: 1.45; }
.rf-hoja-num { display: inline-flex; align-items: baseline; justify-content: center; gap: 10px; margin: 18px auto 0; padding: 0 10px; background: none; border: 0; cursor: text; color: var(--rf-tinta); }
.rf-hoja-num strong { font: 800 clamp(3.2rem, 15vw, 4.4rem)/1 var(--rf-texto); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rf-hoja-num span { font: 500 1.5rem var(--rf-texto); color: #2b3646; }
.rf-hoja-num-edita input { width: 4.2ch; font: 800 clamp(3rem, 14vw, 4.2rem)/1.1 var(--rf-texto); text-align: center; border: 0; border-bottom: 3px solid var(--rf-verde); background: transparent; color: var(--rf-tinta); padding: 0; }
.rf-hoja-num-edita input:focus { outline: none; }
.rf-hoja-dif { margin: 8px 0 0; min-height: 1.4em; font-size: var(--rf-t-m); color: var(--rf-tinta-3); }
.rf-hoja-dif.bien { color: #1f9d55; font-weight: 700; }
.rf-hoja-dif.sube { color: var(--rf-alerta); font-weight: 700; }
.rf-hoja-dif.neutro { color: var(--rf-verde-2); font-weight: 700; }
.rf-regla { position: relative; height: 90px; margin: 18px -20px 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.rf-regla:active { cursor: grabbing; }
.rf-regla:focus-visible { box-shadow: inset 0 0 0 2px var(--rf-oro); border-radius: var(--rf-r-s); }
.rf-regla svg { display: block; width: 100%; height: 90px; }
.rf-regla svg text { font: 500 15px var(--rf-texto); fill: #8a95a3; }
.rf-regla-menor { stroke: #c6cfd8; stroke-width: 2; stroke-linecap: round; }
.rf-regla-mayor { stroke: #b4bfca; stroke-width: 2.2; stroke-linecap: round; }
.rf-regla-aguja { position: absolute; left: 50%; top: 40px; width: 4px; height: 48px; margin-left: -2px; border-radius: var(--rf-r-pill); background: #d62f2f; pointer-events: none; }
/* desvanecido en los bordes de la regla */
.rf-regla::before, .rf-regla::after { content: ""; position: absolute; top: 0; bottom: 0; width: 36px; pointer-events: none; z-index: 1; }
.rf-regla::before { left: 0; background: linear-gradient(90deg, #f2f3f1, rgba(242, 243, 241, 0)); }
.rf-regla::after { right: 0; background: linear-gradient(270deg, #f2f3f1, rgba(242, 243, 241, 0)); }
.rf-hoja-fecha { position: relative; display: flex; align-items: center; gap: 12px; margin: 26px 0 0; padding: 0 18px; min-height: 62px; background: #fff; border-radius: var(--rf-r-l); cursor: pointer; text-align: left; }
.rf-hoja-fecha-ico svg { width: 26px; height: 26px; display: block; color: var(--rf-verde-2); }
.rf-hoja-fecha-txt { flex: 1; font-weight: 600; font-size: var(--rf-t-m); color: var(--rf-tinta); }
.rf-hoja-fecha-val { color: var(--rf-tinta-3); font-size: var(--rf-t-m); }
.rf-hoja-fecha-flecha { color: var(--rf-tinta-3); font-size: var(--rf-t-xl); line-height: 1; margin-left: 4px; }
/* el selector de fecha nativo cubre la fila (se abre con un toque) sin verse */
.rf-hoja-fecha input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; cursor: pointer; }
.rf-hoja-fecha:focus-within { box-shadow: 0 0 0 3px var(--rf-oro); }
.rf-hoja .rf-error { text-align: center; }
.rf-hoja-ok { width: 100%; min-height: 58px; margin-top: 10px; border-radius: var(--rf-r-pill); font-size: var(--rf-t-l); background: var(--rf-grafico); }
.rf-hoja-ok:hover { background: #356649; }
.rf-hoja-borrar { color: var(--rf-rojo); display: block; margin: 6px auto 0; }
.rf-hoja-cancelar { display: block; margin: 2px auto 0; color: #6b7682; }
/* lista de medidas (toca una para registrarla) */
.rf-mlista { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.rf-mfila { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; background: #f6f7f5; border: 1.5px solid transparent; border-radius: var(--rf-r-m);
  font: inherit; color: var(--rf-tinta); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.rf-mfila:hover { border-color: var(--rf-verde-2); background: #fff; }
.rf-mfila-txt { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rf-mfila-txt .rf-ayuda { font-size: var(--rf-t-xs); }
.rf-mfila-val { font-weight: 700; color: var(--rf-tinta-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rf-mfila.hecho .rf-mfila-val { color: var(--rf-verde); }
.rf-mfila.hecho .rf-mfila-val::before { content: "✓ "; color: #1f9d55; }
.rf-mfila.falta { border-color: var(--rf-oro); background: #fbf7ea; }
.rf-mfila.falta .rf-mfila-txt .rf-ayuda { color: var(--rf-oro-oscuro); font-weight: 600; }
.rf-mfila-flecha { color: #9aa5af; font-size: var(--rf-t-xl); line-height: 1; }
.rf-modal .rf-mlista { max-height: 62vh; overflow: auto; }

/* ---- Dosis: diario personal (lista, frasco, figura del cuerpo y hoja de registro) ---- */
.rf-frasco { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rf-frasco p { margin: 4px 0 0; }
.rf-dlista { display: flex; flex-direction: column; gap: 12px; }
.rf-dfila { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; background: #fff; border: 0; border-radius: var(--rf-r-l); box-shadow: var(--rf-sombra-1);
  font: inherit; color: var(--rf-tinta); text-align: left; cursor: pointer; }
.rf-dfila:hover { box-shadow: 0 0 0 2px var(--rf-verde-claro); }
.rf-dfila-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--rf-r-m); background: #eef2ef; color: var(--rf-grafico); }
.rf-dfila-ico svg { width: 28px; height: 28px; }
.rf-dfila-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rf-dfila-dosis { font-size: var(--rf-t-m); color: var(--rf-tinta-2); font-weight: 500; }
.rf-dfila-dosis strong { font-size: var(--rf-t-l); font-weight: 700; color: var(--rf-tinta); font-variant-numeric: tabular-nums; }
.rf-dfila-sitio { color: var(--rf-tinta-3); font-size: var(--rf-t-s); }
.rf-dfila-fecha { flex: none; align-self: flex-start; margin-top: 4px; color: var(--rf-tinta-3); font-size: var(--rf-t-s); }
.rf-hoja-dosis { text-align: left; }
.rf-hoja-dosis h2 { text-align: center; }
.rf-segmento { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; background: #e2e6e3; border-radius: var(--rf-r-m); }
.rf-segmento label { position: relative; }
.rf-segmento input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rf-segmento span { display: block; padding: 10px 6px; text-align: center; border-radius: var(--rf-r-s); font-weight: 600; color: var(--rf-tinta-2); }
.rf-segmento input:checked + span { background: #fff; color: var(--rf-tinta); box-shadow: var(--rf-sombra-1); }
.rf-segmento input:focus-visible + span { outline: 3px solid var(--rf-oro); }
.rf-dosis-calc { margin: -4px 0 14px; color: var(--rf-tinta-3); }
.rf-dosis-calc strong { display: block; font-size: var(--rf-t-2xl); color: var(--rf-tinta); font-variant-numeric: tabular-nums; }
.rf-dosis-calc .rf-enlace { padding: 4px; min-height: 0; }
.rf-campo-titulo { font-weight: 600; margin: 4px 0 6px; }
.rf-figura-caja { background: #fff; border-radius: var(--rf-r-l); padding: 10px 6px 4px; }
.rf-figura { display: block; width: 100%; max-width: 380px; margin: 0 auto; height: auto; }
.rf-fig-cuerpo { fill: #e6ebe8; stroke: #c9d2cd; stroke-width: 1.2; }
.rf-fig-txt { font: 600 13px var(--rf-texto); fill: var(--rf-tinta-3); }
.rf-fig-lado { font: 500 11px var(--rf-texto); fill: var(--rf-tinta-3); }
.rf-sitio { cursor: pointer; outline: none; }
.rf-sitio circle { fill: rgba(63, 117, 86, .12); stroke: var(--rf-grafico); stroke-width: 2; transition: fill .15s; }
.rf-sitio .rf-sitio-punto { fill: var(--rf-grafico); stroke: none; }
.rf-sitio.reciente circle { stroke: var(--rf-oro); fill: rgba(200, 180, 119, .22); }
.rf-sitio.reciente .rf-sitio-punto { fill: var(--rf-oro-oscuro); }
.rf-sitio:hover circle, .rf-sitio:focus-visible circle { fill: rgba(63, 117, 86, .3); }
.rf-sitio:focus-visible circle:first-child { stroke: var(--rf-oro); stroke-width: 3.5; }
.rf-sitio.elegido circle { fill: var(--rf-grafico); stroke: #1f4d36; }
.rf-sitio.elegido .rf-sitio-punto { fill: #fff; }
.rf-sitio-txt { min-height: 2.6em; margin: 8px 0 12px; color: var(--rf-tinta-2); font-size: var(--rf-t-s); text-align: center; }
.rf-nav { grid-template-columns: repeat(5, 1fr); }
.rf-nav a span svg { width: 1.25rem; height: 1.25rem; display: block; }

/* ---- Progreso: cuadrícula de medidas con minigráfica y detalle con gráfica curva (diseño propio NUVESCI) ---- */
.rf-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rf-mtarjeta { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 104px; min-width: 0; padding: 14px 14px 12px; background: #fff;
  border: 0; border-radius: var(--rf-r-l); box-shadow: var(--rf-sombra-1); font: inherit; color: var(--rf-tinta); text-align: left; cursor: pointer; }
.rf-mtarjeta:hover { box-shadow: 0 0 0 2px var(--rf-verde-claro); }
.rf-mtarjeta.ancha { grid-column: 1 / -1; background: linear-gradient(135deg, var(--rf-verde), #1f5446); color: #fff; }
.rf-mtarjeta.ancha .rf-mt-nombre { color: var(--rf-oro); }
.rf-mtarjeta.ancha .rf-mval small { color: #cfe0d8; }
.rf-mtarjeta.ancha .rf-mini { width: 110px; height: 40px; }
.rf-mtarjeta.ancha .rf-mini-linea { stroke: var(--rf-oro); }
.rf-mtarjeta.ancha .rf-mini-area { fill: rgba(200, 180, 119, .25); }
.rf-mtarjeta.ancha .rf-mini-fin { fill: #fff; stroke: var(--rf-oro); }
.rf-mtarjeta.vacia { background: #f8f9f8; box-shadow: inset 0 0 0 1.5px var(--rf-borde); }
.rf-mt-nombre { font-weight: 600; font-size: var(--rf-t-s); color: var(--rf-tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-mt-fila { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rf-mval { font-weight: 800; font-size: var(--rf-t-xl); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rf-mval small { font-size: var(--rf-t-xs); font-weight: 600; color: var(--rf-tinta-3); margin-left: 3px; }
.rf-mt-agregar { margin-left: auto; color: var(--rf-verde-2); font-weight: 700; font-size: var(--rf-t-s); }
.rf-pastilla { flex: none; padding: 3px 8px; border-radius: var(--rf-r-pill); font-size: var(--rf-t-xs); font-weight: 700; background: #eceff1; color: var(--rf-tinta-2); white-space: nowrap; }
.rf-pastilla.bien { background: var(--rf-bien-fondo); color: var(--rf-bien); }
.rf-pastilla.sube { background: var(--rf-alerta-fondo); color: var(--rf-alerta); }
.rf-pastilla.neutro { background: var(--rf-verde-claro); color: var(--rf-verde-2); }
.rf-mtarjeta.ancha .rf-pastilla { background: rgba(255, 255, 255, .16); color: #fff; }
.rf-mini { flex: none; width: 58px; height: 26px; margin-left: auto; overflow: visible; }
.rf-mini-linea { fill: none; stroke: var(--rf-grafico); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rf-mini.sube .rf-mini-linea { stroke: #c0392b; }
.rf-mini-area { fill: rgba(63, 117, 86, .1); stroke: none; }
.rf-mini.sube .rf-mini-area { fill: rgba(192, 57, 43, .08); }
.rf-mini-fin { fill: var(--rf-oro); stroke: #fff; stroke-width: 1.5; }
.rf-mt-nombre { flex: 1; min-width: 0; }

.rf-detalle-cab { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin: 0 0 14px; }
.rf-detalle-cab h1 { margin: 0; text-align: center; font: 700 1.2rem var(--rf-texto); color: var(--rf-tinta); }
.rf-volver { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--rf-sombra-1);
  color: var(--rf-tinta); text-decoration: none; font-size: var(--rf-t-xl); line-height: 1; padding-bottom: 3px; }
.rf-graf-caja { background: #fff; border-radius: var(--rf-r-l); padding: 14px 14px 10px; box-shadow: var(--rf-sombra-1); }
.rf-seg4 { grid-template-columns: repeat(4, 1fr); }
.rf-seg4 span { padding: 9px 2px; font-size: var(--rf-t-s); }
.rf-actual { display: flex; align-items: baseline; gap: 8px; margin: 8px 4px 0; flex-wrap: wrap; }
.rf-actual strong { font-size: var(--rf-t-num); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--rf-tinta); font-variant-numeric: tabular-nums; }
.rf-actual > span:not(.rf-pastilla) { font-size: var(--rf-t-l); color: var(--rf-tinta-3); }
.rf-actual .rf-pastilla { font-size: var(--rf-t-s); padding: 5px 12px; align-self: center; }
.rf-graf2 { margin: 6px 0 0; }
.rf-graf2 svg { display: block; width: 100%; height: auto; overflow: visible; }
.rf-graf2 figcaption { margin: 4px 4px 0; }
.rf-g-rejilla { stroke: #e3e7e5; stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.rf-g-eje { font: 500 21px var(--rf-texto); fill: var(--rf-tinta-3); }
.rf-g-linea { fill: none; stroke: var(--rf-grafico); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.rf-g-ult { font: 800 24px var(--rf-texto); fill: var(--rf-tinta); }
.rf-gp { cursor: pointer; outline: none; }
.rf-gp-toque { fill: transparent; }
.rf-gp-c { fill: #fff; stroke: var(--rf-grafico); stroke-width: 3; transition: r .15s; }
.rf-gp.ult .rf-gp-c { fill: var(--rf-oro); stroke: #fff; stroke-width: 3; }
.rf-gp-halo { fill: rgba(200, 180, 119, .3); }
.rf-gp.activo .rf-gp-c, .rf-gp:focus-visible .rf-gp-c { stroke: var(--rf-verde); stroke-width: 4; }
.rf-gp:focus-visible .rf-gp-toque { stroke: var(--rf-oro); stroke-width: 3; }
.rf-globo rect { fill: var(--rf-tinta); }
.rf-globo text { font: 600 20px var(--rf-texto); fill: #fff; }
.rf-hist-cab { display: flex; align-items: baseline; justify-content: space-between; }
.rf-hist-cab span { color: var(--rf-tinta-3); font-size: var(--rf-t-s); }
.rf-hist { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rf-hfila { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 14px; background: #fff; border: 0; border-radius: var(--rf-r-l); box-shadow: var(--rf-sombra-1);
  font: inherit; color: var(--rf-tinta); text-align: left; cursor: pointer; }
.rf-hfila:hover { box-shadow: 0 0 0 2px var(--rf-verde-claro); }
.rf-hpunto { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--rf-grafico); }
.rf-hpunto.actual { background: var(--rf-oro); border-color: #e9dfbf; }
.rf-htxt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rf-htxt strong { font-weight: 600; }
.rf-htxt em { font-style: normal; font-size: var(--rf-t-xs); font-weight: 700; padding: 2px 8px; margin-left: 4px; border-radius: var(--rf-r-pill); background: var(--rf-verde-claro); color: var(--rf-verde-2); vertical-align: 2px; }
.rf-htxt small { color: var(--rf-tinta-3); font-size: var(--rf-t-s); }
.rf-hdif { font-weight: 700; font-size: var(--rf-t-s); color: var(--rf-verde-2); }
.rf-hdif.bien { color: var(--rf-bien); } .rf-hdif.sube { color: var(--rf-alerta); }
.rf-hval { font-weight: 800; font-size: var(--rf-t-l); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rf-hval small { font-size: var(--rf-t-xs); font-weight: 600; color: var(--rf-tinta-3); margin-left: 3px; }
.rf-boton-fijo { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); padding: 10px 0 4px; background: linear-gradient(transparent, var(--rf-marfil) 35%); z-index: 5; }
.rf-boton-fijo .rf-hoja-ok { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .rf-gp-c { transition: none; } }

/* ---- Suplementos y medicamentos (tarjeta de Inicio) ---- */
.rf-supl { border: 0; border-radius: var(--rf-r-l); box-shadow: var(--rf-sombra-1); }
.rf-supl-cab { display: flex; align-items: center; gap: 10px; }
.rf-supl-cab h2 { flex: 1; margin: 0; font-size: var(--rf-t-l); color: var(--rf-tinta); }
.rf-supl-ico svg { display: block; width: 26px; height: 26px; color: var(--rf-verde); }
.rf-redondo { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #eef2ef; color: var(--rf-tinta);
  font: 400 1.9rem/1 var(--rf-texto); cursor: pointer; padding-bottom: 3px; }
.rf-redondo:hover { background: var(--rf-verde-claro); }
.rf-supl-vacio { text-align: center; color: var(--rf-tinta-3); margin: 18px 8px 6px; }
.rf-supl-agregar { display: block; margin: 0 auto; text-decoration: none; color: #2b3646; font-size: var(--rf-t-m); }
.rf-supl-cuenta { margin: 10px 0 8px; }
.rf-tomas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rf-tomas li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--rf-r-m); background: #f6f7f6; }
.rf-tomas li.toca { background: #fbf5e3; box-shadow: inset 3px 0 0 var(--rf-oro); }
.rf-toma-check { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid #b9c4bf; background: #fff; color: transparent; cursor: pointer; padding: 0; }
.rf-toma-check svg { width: 22px; height: 22px; }
.rf-tomas li.toca .rf-toma-check { border-color: var(--rf-oro-oscuro); }
.rf-tomas li.hecha .rf-toma-check { background: var(--rf-grafico); border-color: var(--rf-grafico); color: #fff; }
.rf-toma-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; background: none; border: 0; padding: 4px 0; font: inherit; color: var(--rf-tinta); text-align: left; cursor: pointer; }
.rf-toma-txt strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-toma-txt small { color: var(--rf-tinta-3); }
.rf-toma-txt small b { color: var(--rf-oro-oscuro); }
.rf-tomas li.hecha .rf-toma-txt strong { color: var(--rf-tinta-3); text-decoration: line-through; text-decoration-color: #9aa8a2; }
.rf-supl-todos { display: block; margin: 8px auto 0; }
.rf-horas { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-hora { display: inline-flex; align-items: center; gap: 2px; }
.rf-hora input { font: inherit; padding: 10px 12px; min-height: 48px; border: 1.5px solid var(--rf-linea); border-radius: var(--rf-r-s); background: #fff; color: var(--rf-tinta); }
.rf-hora-quitar { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--rf-rojo); font-size: var(--rf-t-l); cursor: pointer; }
.rf-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.rf-dia-chip { position: relative; }
.rf-dia-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rf-dia-chip span { display: grid; place-items: center; min-height: 44px; border-radius: var(--rf-r-s); border: 1.5px solid var(--rf-linea); background: #fff; font-weight: 600; font-size: var(--rf-t-s); }
.rf-dia-chip input:checked + span { background: var(--rf-verde); border-color: var(--rf-verde); color: #fff; }
.rf-dia-chip input:focus-visible + span { outline: 3px solid var(--rf-oro); outline-offset: 2px; }

/* ---- Botón + de Inicio y menú de acciones rápidas (verde NUVESCI con íconos dorados) ---- */
.rf-fab { position: fixed; right: max(18px, calc(50% - 300px)); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 25; display: grid; place-items: center;
  width: 62px; height: 62px; border: 0; border-radius: 50%; background: linear-gradient(145deg, var(--rf-grafico), var(--rf-verde)); color: #fff; cursor: pointer;
  box-shadow: 0 8px 22px rgba(18, 55, 47, .35), 0 0 0 3px rgba(200, 180, 119, .55); transition: transform .2s; }
.rf-fab svg { width: 30px; height: 30px; transition: transform .2s; }
.rf-fab.abierto { z-index: 55; }
.rf-fab.abierto svg { transform: rotate(45deg); }
.rf-capa-rapido { z-index: 50; align-items: flex-end; background: rgba(12, 24, 21, .45); padding: 0 12px calc(158px + env(safe-area-inset-bottom)); }
.rf-rapido { width: min(520px, 100%); background: linear-gradient(170deg, #173f36, #0e2a24); border-radius: var(--rf-r-l); padding: 8px; box-shadow: var(--rf-sombra-3);
  border: 1px solid rgba(200, 180, 119, .35); animation: rf-sube .2s ease-out; }
@keyframes rf-sube { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.rf-rapido-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; border-radius: var(--rf-r-l); background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.rf-rapido-item + .rf-rapido-item { border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0 0 18px 18px; }
.rf-rapido-item:hover, .rf-rapido-item:focus-visible { background: rgba(255, 255, 255, .07); outline: none; }
.rf-rapido-item:focus-visible { box-shadow: inset 0 0 0 2px var(--rf-oro); }
.rf-rapido-ico { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(200, 180, 119, .14); color: var(--rf-oro); }
.rf-rapido-ico svg { width: 26px; height: 26px; }
.rf-ri-agua .rf-rapido-ico { color: #8fd0e6; background: rgba(143, 208, 230, .12); }
.rf-ri-supl .rf-rapido-ico { color: #b9e4c9; background: rgba(185, 228, 201, .12); }
.rf-rapido-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rf-rapido-txt strong { font-size: var(--rf-t-m); font-weight: 600; }
.rf-rapido-txt small { color: #b9c9c2; font-size: var(--rf-t-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .rf-rapido { animation: none; } .rf-fab, .rf-fab svg { transition: none; } }
.rf-rapido { max-height: calc(100vh - 176px - env(safe-area-inset-bottom)); max-height: calc(100dvh - 176px - env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; }
.rf-capa-rapido { padding-top: 12px; }
#rf-app:has(.rf-fab) { padding-bottom: 76px; }

/* ---- Actividades: elegir, registrar e historial ---- */
.rf-buscar { position: relative; margin: 0 0 6px; }
.rf-buscar svg { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--rf-tinta-3); }
.rf-buscar input { width: 100%; min-height: 54px; padding: 12px 16px 12px 48px; border: 0; border-radius: var(--rf-r-l); background: #fff; box-shadow: var(--rf-sombra-1); font: inherit; color: var(--rf-tinta); }
.rf-buscar input:focus { outline: none; box-shadow: 0 0 0 3px rgba(63, 117, 86, .3); }
.rf-agrupo h2 { margin: 20px 2px 10px; font-size: var(--rf-t-s); font-weight: 600; color: var(--rf-tinta-2); }
.rf-alista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rf-afila { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; background: #fff; border: 0; border-radius: var(--rf-r-l); box-shadow: var(--rf-sombra-1);
  font: inherit; color: var(--rf-tinta); text-align: left; cursor: pointer; }
.rf-afila:hover { box-shadow: 0 0 0 2px var(--rf-verde-claro); }
.rf-afila-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--rf-r-m); font-size: var(--rf-t-l); background: #eef2ef; }
.rf-g-cardio .rf-afila-ico, .rf-afila-ico.rf-g-cardio { background: #fdf1e2; }
.rf-g-fuerza .rf-afila-ico, .rf-afila-ico.rf-g-fuerza { background: #e8eef9; }
.rf-g-deportes .rf-afila-ico, .rf-afila-ico.rf-g-deportes { background: #e5f4ea; }
.rf-g-mente .rf-afila-ico, .rf-afila-ico.rf-g-mente { background: #f1ecf8; }
.rf-g-otros .rf-afila-ico, .rf-afila-ico.rf-g-otros { background: #f7f2e3; }
.rf-afila-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: var(--rf-t-m); font-weight: 500; }
.rf-afila-txt strong { font-weight: 600; }
.rf-afila-txt small { color: var(--rf-tinta-3); font-size: var(--rf-t-s); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-afila-kcal { flex: none; font-weight: 800; font-size: var(--rf-t-l); text-align: right; line-height: 1.1; }
.rf-afila-kcal small { display: block; font-size: var(--rf-t-xs); font-weight: 600; color: var(--rf-tinta-3); }
.rf-act-resumen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rf-act-resumen > div { padding: 14px; border-radius: var(--rf-r-l); background: linear-gradient(140deg, var(--rf-verde), #1f5446); color: #fff; }
.rf-act-resumen span { display: block; font-size: var(--rf-t-xs); color: var(--rf-oro); text-transform: uppercase; letter-spacing: .06em; }
.rf-act-resumen strong { display: block; font-size: var(--rf-t-xl); font-weight: 800; }
.rf-act-resumen small { color: #cfe0d8; }
.rf-ancho { display: flex; width: 100%; }
.rf-act-cab { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.rf-act-cab h2 { margin: 0; }
.rf-act-min { display: flex; flex-direction: column; align-items: center; margin: 6px 0 8px; }
.rf-act-min label { font-weight: 600; color: var(--rf-tinta-3); }
.rf-act-min div { display: flex; align-items: baseline; gap: 8px; }
.rf-act-min input { width: 3.2ch; border: 0; border-bottom: 3px solid var(--rf-verde); background: transparent; text-align: center; font: 800 3.4rem/1.1 var(--rf-texto); color: var(--rf-tinta); padding: 0; }
.rf-act-min input:focus { outline: none; border-bottom-color: var(--rf-oro); }
.rf-act-min span { font: 500 1.4rem var(--rf-texto); color: #2b3646; }
.rf-act-atajos { justify-content: center; margin-bottom: 12px; }
.rf-chip-b { min-height: 40px; padding: 8px 14px; border-radius: var(--rf-r-pill); border: 1.5px solid var(--rf-linea); background: #fff; font: 600 .92rem var(--rf-texto); color: #2b3646; cursor: pointer; }
.rf-chip-b.activo { background: var(--rf-verde); border-color: var(--rf-verde); color: #fff; }
.rf-seg3 { grid-template-columns: repeat(3, 1fr); }
.rf-act-kcal { text-align: center; margin: 0 0 12px; color: var(--rf-tinta-3); font-size: var(--rf-t-m); }
.rf-act-kcal strong { font-size: var(--rf-t-xl); color: var(--rf-tinta); }

/* ---- Inicio: accesos a actividades y síntomas ---- */
.rf-mini-tarjetas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.rf-mini-t { display: flex; align-items: center; gap: 10px; padding: 14px 12px; background: #fff; border-radius: var(--rf-r-l); box-shadow: var(--rf-sombra-1); text-decoration: none; color: var(--rf-tinta); min-width: 0; }
.rf-mini-t:hover { box-shadow: 0 0 0 2px var(--rf-verde-claro); }
.rf-mini-t-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--rf-r-s); background: #eef2ef; font-size: var(--rf-t-l); }
.rf-mini-t > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.rf-mini-t strong { font-size: var(--rf-t-s); }
.rf-mini-t small { color: var(--rf-tinta-3); font-size: var(--rf-t-xs); }
.rf-ri-actividad .rf-rapido-ico { color: #f6c48b; background: rgba(246, 196, 139, .14); }
.rf-ri-sintoma .rf-rapido-ico { color: #f2a7a0; background: rgba(242, 167, 160, .14); }

/* ---- Registro de síntomas: barras de 0 a 10 ---- */
.rf-si-fecha .rf-campo input { background: #fff; }
.rf-si-caja { background: #fff; border-radius: var(--rf-r-l); padding: 6px 18px 18px; box-shadow: var(--rf-sombra-1); }
.rf-si-fila { padding: 14px 0 6px; }
.rf-si-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.rf-si-cab label { font-weight: 600; color: var(--rf-tinta); }
.rf-si-cab output { font-size: var(--rf-t-s); color: var(--rf-tinta-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rf-rango { --p: 0%; --c: var(--rf-grafico); -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; cursor: pointer; }
.rf-rango[data-nivel="2"] { --c: #c99a2e; } .rf-rango[data-nivel="3"] { --c: var(--rf-alerta); }
.rf-rango::-webkit-slider-runnable-track { height: 10px; border-radius: var(--rf-r-pill); background: linear-gradient(to right, var(--c) var(--p), #e9edeb var(--p)); }
.rf-rango::-moz-range-track { height: 10px; border-radius: var(--rf-r-pill); background: #e9edeb; }
.rf-rango::-moz-range-progress { height: 10px; border-radius: var(--rf-r-pill); background: var(--c); }
.rf-rango::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--c); box-shadow: var(--rf-sombra-1); }
.rf-rango::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--c); box-shadow: var(--rf-sombra-1); }
.rf-rango:focus-visible { outline: 3px solid var(--rf-oro); outline-offset: 4px; border-radius: var(--rf-r-pill); }
.rf-si-pie { text-align: center; border-top: 1px solid #edf0ee; margin-top: 12px; padding-top: 14px; }
.rf-si-pie p { margin: 0 0 10px; color: var(--rf-tinta-2); }
.rf-si-hist { align-items: flex-start; }
.rf-si-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.rf-si-chip { padding: 3px 9px; border-radius: var(--rf-r-pill); font-size: var(--rf-t-xs); font-weight: 600; background: #eef2ef; color: var(--rf-grafico); }
.rf-si-chip.n2 { background: #fbf1d9; color: #8a6a12; } .rf-si-chip.n3 { background: #fbe4e1; color: #a5322a; }
.rf-si-op { padding: 10px 0; align-items: center; }
.rf-si-op span { flex: 1; }
.rf-si-propio { font-style: normal; font-size: var(--rf-t-xs); padding: 2px 7px; border-radius: var(--rf-r-pill); background: var(--rf-verde-claro); color: var(--rf-verde-2); margin-left: 4px; }

/* ---- Progreso: pestañas Medidas / Bioimpedancia ---- */
.rf-pestanas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 6px 0 16px; background: #fff; border-radius: var(--rf-r-m); box-shadow: var(--rf-sombra-1); }
.rf-pestanas a { display: block; padding: 11px 6px; text-align: center; border-radius: var(--rf-r-s); font-weight: 600; color: var(--rf-tinta); text-decoration: none; }
.rf-pestanas a[aria-current="page"] { background: var(--rf-tinta); color: #fff; }

/* ---- Fotos de progreso ---- */
.rf-fotos-t { border: 0; border-radius: var(--rf-r-l); box-shadow: var(--rf-sombra-1); }
.rf-fotos-cab { display: flex; align-items: center; justify-content: space-between; color: var(--rf-tinta); text-decoration: none; margin-bottom: 12px; }
.rf-fotos-cab h2 { margin: 0; font-size: var(--rf-t-l); }
.rf-fotos-cab span { font-size: var(--rf-t-xl); color: var(--rf-tinta-3); line-height: 1; }
.rf-fotos-par { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 14px; }
.rf-fotos-par > .rf-ayuda { grid-column: 2 / 4; margin: 0; }
.rf-fotos-flecha { font-size: var(--rf-t-xl); color: var(--rf-tinta-3); }
.rf-foto-mini { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: var(--rf-r-m); overflow: hidden; background: #eceff1; }
.rf-foto-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-foto-mini figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: rgba(18, 28, 42, .62); color: #fff; font-size: var(--rf-t-s); font-weight: 600; }
.rf-foto-previa-g, .rf-foto-grande { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: var(--rf-r-m); background: #eceff1; margin-bottom: 12px; }
.rf-comparar-par { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rf-comparar-par figure { margin: 0; min-width: 0; }
.rf-comparar-par img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--rf-r-m); background: #eceff1; }
.rf-comparar-par figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.rf-comparar-par label { font-weight: 700; color: var(--rf-verde); font-size: var(--rf-t-s); }
.rf-comparar-par select { font: inherit; font-size: var(--rf-t-s); padding: 8px; min-height: 42px; border: 1.5px solid var(--rf-linea); border-radius: var(--rf-r-s); background: #fff; width: 100%; }
.rf-comparar-par small { color: var(--rf-tinta-3); }
.rf-fotos-grid { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rf-fotos-grid button { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.rf-fotos-grid img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--rf-r-s); background: #eceff1; }
.rf-fotos-grid span { display: block; font-size: var(--rf-t-xs); color: var(--rf-tinta-3); margin-top: 3px; }

/* ---- IMC con barra de colores (escala 15–40: cortes en 14 %, 40 % y 60 %) ---- */
.rf-imc { border: 0; border-radius: var(--rf-r-l); box-shadow: var(--rf-sombra-1); }
.rf-imc-cab { display: flex; align-items: center; justify-content: space-between; }
.rf-imc-cab h2 { margin: 0; font-size: var(--rf-t-l); color: var(--rf-tinta); }
.rf-ayuda-btn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #9aa5ae; background: #fff; color: var(--rf-tinta-3); font: 700 .95rem var(--rf-texto); cursor: pointer; }
.rf-imc-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.rf-imc-num { font-size: var(--rf-t-num); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--rf-tinta); font-variant-numeric: tabular-nums; }
.rf-imc-cat { padding: 6px 14px; border-radius: var(--rf-r-pill); font-weight: 700; }
.rf-imc-cat.bajo { background: #e1eefa; color: #1d5f99; }
.rf-imc-cat.sano { background: #e3f3ea; color: #1b7a45; }
.rf-imc-cat.sobre { background: #fdf0dc; color: #96580a; }
.rf-imc-cat.obeso { background: #fbe9e6; color: #b03a2e; }
.rf-imc-formula { margin: 6px 0 16px; color: var(--rf-tinta-3); font-size: var(--rf-t-s); }
.rf-imc-barra { --x: 50%; position: relative; height: 12px; border-radius: var(--rf-r-pill);
  background: linear-gradient(90deg, #2b88d8 0 14%, #2ea85a 14% 40%, #f0a020 40% 60%, #dc3b30 60% 100%); }
.rf-imc-marca { position: absolute; top: -5px; left: var(--x); width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: var(--rf-tinta); box-shadow: 0 0 0 2px #fff; }
.rf-imc-et { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; font-size: var(--rf-t-xs); font-weight: 600; text-align: center; }
.rf-imc-et .bajo { color: #1d6fb8; }
.rf-imc-et .sano { color: #1b7a45; }
.rf-imc-et .sobre { color: #a8610b; }
.rf-imc-et .obeso { color: #b03a2e; }
.rf-lista-simple { padding-left: 20px; margin: 6px 0 10px; }

/* ---- Bioimpedancia ---- */
.rf-bio-vacio { text-align: center; border: 0; border-radius: var(--rf-r-l); padding: 26px 20px; box-shadow: var(--rf-sombra-1); }
.rf-bio-vacio h2 { margin: 14px 0 6px; font-size: var(--rf-t-l); color: var(--rf-tinta); }
.rf-bio-vacio p { color: var(--rf-tinta-3); margin: 0 0 18px; }
.rf-bio-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #f0f2f1; color: var(--rf-tinta); }
.rf-bio-ico svg { width: 34px; height: 34px; }
.rf-bio-botones { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 4px; }
.rf-bio-botones .rf-btn { border-radius: var(--rf-r-pill); min-height: 52px; font-size: var(--rf-t-m); }
.rf-bio-botones .rf-ico { width: 22px; height: 22px; }
.rf-bio-botones .rf-btn-verde .rf-ico { color: #fff; }
.rf-bio-ult { border: 0; border-radius: var(--rf-r-l); box-shadow: var(--rf-sombra-1); }
.rf-bio-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rf-bio-dato { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: var(--rf-r-m); background: var(--rf-superficie-2); }
.rf-bio-dato > span:first-child { font-size: var(--rf-t-xs); color: var(--rf-tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-bio-dato strong { font-size: var(--rf-t-l); font-weight: 800; color: var(--rf-tinta); font-variant-numeric: tabular-nums; }
.rf-bio-dato strong small { font-size: var(--rf-t-xs); font-weight: 600; color: var(--rf-tinta-3); margin-left: 3px; }
.rf-bio-dato .rf-pastilla { align-self: flex-start; }
.rf-bio-h3 { font-size: var(--rf-t-s); margin: 16px 0 8px; color: var(--rf-tinta); }
.rf-bio-calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.rf-bio-calc > div { background: #fff; border-radius: var(--rf-r-m); padding: 12px; min-width: 0; box-shadow: var(--rf-sombra-1); }
.rf-bio-ult .rf-bio-calc > div { background: var(--rf-verde-claro); box-shadow: var(--rf-sombra-1); }
.rf-bio-calc span { display: block; font-size: var(--rf-t-xs); color: var(--rf-tinta-3); min-height: 2.4em; }
.rf-bio-calc strong { display: block; font-size: var(--rf-t-l); font-weight: 800; color: var(--rf-tinta); font-variant-numeric: tabular-nums; }
.rf-bio-fecha { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #fff; border-radius: var(--rf-r-l); box-shadow: var(--rf-sombra-1); margin-bottom: 10px; }
.rf-bio-fecha > span { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.rf-bio-fecha .rf-ico { width: 22px; height: 22px; color: var(--rf-verde-2); }
.rf-bio-fecha input { font: inherit; border: 0; background: transparent; color: var(--rf-tinta-3); text-align: right; min-height: 40px; }
.rf-bio-doc { display: flex; align-items: center; gap: 12px; padding: 10px; background: #fff; border-radius: var(--rf-r-l); box-shadow: var(--rf-sombra-1); margin-bottom: 8px; }
.rf-bio-doc img, .rf-bio-pdf { flex: none; width: 56px; height: 56px; border-radius: var(--rf-r-s); object-fit: cover; background: #eceff1; }
.rf-bio-pdf { display: grid; place-items: center; background: var(--rf-alerta-fondo); color: var(--rf-alerta); font-weight: 800; font-size: var(--rf-t-s); }
.rf-bio-doc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rf-bio-campos { background: #fff; border-radius: var(--rf-r-l); padding: 4px 16px; box-shadow: var(--rf-sombra-1); margin-bottom: 14px; }
.rf-bio-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef1f0; }
.rf-bio-fila:last-child { border-bottom: 0; }
.rf-bio-fila label { flex: 1; min-width: 0; color: var(--rf-tinta); }
.rf-bio-in { flex: none; display: flex; align-items: center; gap: 4px; width: 152px; padding: 0 10px 0 4px; background: #f0f2f3; border-radius: var(--rf-r-m); }
.rf-bio-in:focus-within { box-shadow: 0 0 0 2px var(--rf-verde); }
.rf-bio-in input { flex: 1; min-width: 0; font: inherit; border: 0; background: transparent; text-align: right; padding: 12px 4px; min-height: 46px; color: var(--rf-tinta); }
.rf-bio-in input:focus { outline: none; }
.rf-bio-in select { flex: none; font: inherit; font-weight: 700; color: var(--rf-verde-2); border: 0; background: transparent; min-height: 40px; padding: 0 2px; }
.rf-bio-suf { flex: none; color: var(--rf-tinta-3); font-size: var(--rf-t-s); }
.rf-bio-pl { margin-bottom: 8px; }
.rf-bio-pl summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 8px 2px 12px; list-style: none; }
.rf-bio-pl summary::-webkit-details-marker { display: none; }
.rf-bio-pl summary::after { content: "\2304"; font-size: var(--rf-t-xl); color: var(--rf-tinta-2); line-height: 1; transition: transform .2s; }
.rf-bio-pl[open] summary::after { transform: rotate(180deg); }
.rf-bio-pl summary span { display: flex; flex-direction: column; }
.rf-bio-pl summary strong { font-size: var(--rf-t-l); color: var(--rf-tinta); }
.rf-bio-pl summary small { color: var(--rf-tinta-3); }

/* ---- Foto de perfil ---- */
.rf-perfil-cab { display: flex; align-items: center; gap: 14px; }
.rf-avatar-btn { position: relative; flex: none; width: 76px; height: 76px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.rf-avatar { display: block; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--rf-oro); }
.rf-avatar-ini { display: grid; place-items: center; background: var(--rf-verde); color: var(--rf-oro); font: 700 1.6rem var(--rf-texto); }
.rf-avatar-cam { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--rf-verde); box-shadow: var(--rf-sombra-1); }
.rf-avatar-cam svg { width: 18px; height: 18px; }
.rf-perfil-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.rf-enlace { padding: 4px 0; border: 0; background: none; color: var(--rf-rojo); font: 600 .9rem var(--rf-texto); text-decoration: underline; cursor: pointer; }
.rf-nav-avatar { display: block; width: 1.6rem; height: 1.6rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #dfe9e4; }
.rf-nav a.activo .rf-nav-avatar { box-shadow: 0 0 0 2px var(--rf-oro); }
@media (prefers-reduced-motion: reduce) { .rf-bio-pl summary::after { transition: none; } }

/* ---- Registrar agua: vasos dibujados + ml ---- */
.rf-hoja-agua { text-align: left; }
.rf-hoja-agua h2 { text-align: center; }
.rf-agua-hoy { background: #fff; border-radius: var(--rf-r-l); padding: 12px 12px 10px; margin: 4px 0 14px; box-shadow: var(--rf-sombra-1); }
.rf-agua-hoy:has(.rf-agua-fila:empty) .rf-agua-fila { display: none; }
.rf-agua-fila { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.rf-agua-fila .rf-vaso { width: 22px; height: 31px; }
.rf-agua-hoy p { margin: 8px 0 0; text-align: center; font-size: var(--rf-t-s); color: var(--rf-tinta-2); }
.rf-agua-hoy strong { color: var(--rf-agua-2); }
.rf-vaso { display: block; overflow: visible; }
.rf-vaso-borde { fill: none; stroke: #8aa9b8; stroke-width: 2.2; stroke-linejoin: round; }
.rf-vaso-agua { fill: #3a8fb7; }
.rf-vaso-nuevo { fill: #9fd4c0; }
.rf-botella-tapa { fill: #2b6f91; }
.rf-agua-ops { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rf-agua-op { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; background: #fff; border-radius: var(--rf-r-m);
  box-shadow: inset 0 0 0 1.5px var(--rf-borde); text-align: center; cursor: pointer; min-width: 0; }
.rf-agua-op input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rf-agua-op.activo { box-shadow: inset 0 0 0 2.5px var(--rf-agua-2); background: #eef7fb; }
.rf-agua-op:focus-within { outline: 3px solid var(--rf-oro); outline-offset: 2px; }
.rf-agua-dib { display: flex; align-items: flex-end; justify-content: center; gap: 1px; height: 46px; }
.rf-agua-dib .rf-vaso { width: 30px; height: 42px; }
.rf-agua-dib .rf-vaso + .rf-vaso { margin-left: -6px; }
.rf-agua-op strong { font-size: var(--rf-t-s); color: var(--rf-tinta); line-height: 1.15; }
.rf-agua-op small { font-size: var(--rf-t-xs); color: var(--rf-tinta-3); line-height: 1.2; }
.rf-agua-otra { margin: 14px 0 6px; }
.rf-agua-paso { display: flex; align-items: center; justify-content: center; gap: 14px; }
.rf-agua-paso .rf-btn { width: 52px; min-height: 52px; padding: 0; border-radius: 50%; font-size: var(--rf-t-xl); line-height: 1; }
.rf-agua-paso output { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.rf-agua-paso output strong { font-size: var(--rf-t-xl); color: var(--rf-tinta); }
.rf-agua-paso output span { color: var(--rf-tinta-3); font-size: var(--rf-t-s); }
@media (max-width: 420px) { .rf-agua-ops { grid-template-columns: repeat(3, 1fr); } }

/* ---- Vasos que se llenan en las tarjetas de agua (Inicio y Diario) y cantidad elegida en la hoja ---- */
.rf-agua-fila-tarjeta { justify-content: flex-start; gap: 3px; margin: 10px 0 8px; }
.rf-agua-fila-tarjeta .rf-vaso { width: 24px; height: 34px; }
.rf-vaso-extra .rf-vaso-borde { stroke: #9fd4c0; stroke-dasharray: 3 3; }
.rf-vaso-sube .rf-vaso-agua { transform-box: fill-box; transform-origin: 50% 100%; animation: rf-vaso-llenar .9s ease-out both; }
@keyframes rf-vaso-llenar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.rf-agua-cant-dib { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; min-height: 34px; margin-top: 8px; }
.rf-agua-cant-dib .rf-vaso { width: 22px; height: 31px; }
@media (prefers-reduced-motion: reduce) { .rf-vaso-sube .rf-vaso-agua { animation: none; } }

/* ---- Guía para instalar en iPhone/iPad (Safari): tarjeta abajo con flecha hacia «Compartir» ---- */
.rf-guia-ios { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: min(440px, calc(100% - 24px)); display: flex; flex-direction: column; align-items: center; }
.rf-guia-ipad { bottom: auto; top: calc(14px + env(safe-area-inset-top)); right: 14px; left: auto; transform: none; flex-direction: column-reverse; align-items: flex-end; }
.rf-guia-ios-caja { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 40px 14px 14px; background: var(--rf-verde); color: #eef3f0; border: 1px solid var(--rf-oro); border-radius: var(--rf-r-l); box-shadow: var(--rf-sombra-3); }
.rf-guia-ios-caja img { flex: none; width: 48px; height: 48px; border-radius: var(--rf-r-s); }
.rf-guia-ios-caja strong { display: block; color: var(--rf-oro); margin-bottom: 4px; }
.rf-guia-ios-caja ol { margin: 0; padding-left: 18px; font-size: var(--rf-t-s); line-height: 1.45; }
.rf-guia-ios-caja ol span { color: #bcd0c7; font-size: var(--rf-t-xs); }
.rf-guia-ios-caja .rf-ico-ios { width: 18px; height: 18px; vertical-align: -3px; color: #7fb6e8; }
.rf-guia-ios-x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: var(--rf-t-l); cursor: pointer; }
.rf-guia-ios-flecha { display: block; font-size: var(--rf-t-2xl); line-height: 1; color: var(--rf-oro); text-shadow: 0 2px 6px rgba(0, 0, 0, .35); animation: rf-guia-salto 1.1s ease-in-out infinite; }
.rf-guia-ipad .rf-guia-ios-flecha { margin-right: 18px; animation-name: rf-guia-salto-arriba; }
@keyframes rf-guia-salto { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes rf-guia-salto-arriba { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .rf-guia-ios-flecha { animation: none; } }

/* ---- Sistema de diseño (27-11-2026): foco visible uniforme en tarjetas-botón y opciones con radio oculto ---- */
.rf-mtarjeta:focus-visible, .rf-hfila:focus-visible, .rf-dfila:focus-visible, .rf-agua-op:focus-within, .rf-segmento label:focus-within span { outline: 3px solid var(--rf-oro); outline-offset: 2px; }

/* ---- Inicio tipo tablero (paso 2): «Tu semana», racha, tarjetas de peso y dosis ---- */
.rf-semana-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rf-semana-cab h2 { margin: 0; font-size: var(--rf-t-l); color: var(--rf-tinta); }
.rf-racha { padding: 4px 10px; border-radius: var(--rf-r-pill); background: var(--rf-aviso-fondo); color: var(--rf-aviso); font-weight: 700; font-size: var(--rf-t-s); white-space: nowrap; }
.rf-sem-dias { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rf-sem-col { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; border-radius: var(--rf-r-m); }
.rf-sem-col.hoy { background: var(--rf-superficie-2); box-shadow: inset 0 0 0 1.5px var(--rf-borde); }
.rf-sem-col .rf-vaso { width: 26px; height: 36px; }
.rf-vaso-meta .rf-vaso-borde { stroke: var(--rf-agua-2); stroke-width: 3; }
.rf-sem-puntos { display: flex; gap: 2px; min-height: 6px; }
.rf-sem-puntos i { width: 6px; height: 6px; border-radius: 50%; background: var(--rf-oro); }
.rf-sem-puntos i.vacio { background: var(--rf-borde); }
.rf-sem-barra { width: 10px; height: 28px; }
.rf-sem-pista { fill: var(--rf-superficie-2); stroke: var(--rf-borde); stroke-width: .8; }
.rf-sem-act { fill: var(--rf-grafico); }
.rf-sem-letra { font-size: var(--rf-t-xs); font-weight: 700; color: var(--rf-tinta-3); }
.rf-sem-col.hoy .rf-sem-letra { color: var(--rf-tinta); }
.rf-sem-letra b { color: var(--rf-alerta); margin-right: 1px; }
.rf-sem-leyenda { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; margin: 10px 0 2px; font-size: var(--rf-t-xs); color: var(--rf-tinta-3); }
.rf-sem-leyenda i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.rf-sem-leyenda .l-agua { background: var(--rf-agua); } .rf-sem-leyenda .l-com { background: var(--rf-oro); border-radius: 50%; } .rf-sem-leyenda .l-act { background: var(--rf-grafico); }
.rf-sem-leyenda b { color: var(--rf-alerta); }
.rf-sem-res { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rf-borde); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.rf-sem-res li { font-size: var(--rf-t-xs); color: var(--rf-tinta-3); line-height: 1.3; }
.rf-sem-res strong { display: block; font-size: var(--rf-t-l); color: var(--rf-tinta); }
.rf-tablero-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.rf-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px; background: var(--rf-superficie); border: 0; border-radius: var(--rf-r-l);
  box-shadow: var(--rf-sombra-1); color: var(--rf-tinta); text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.rf-tile:hover { box-shadow: var(--rf-sombra-2); }
.rf-tile:focus-visible { outline: 3px solid var(--rf-oro); outline-offset: 2px; }
.rf-tile-fila { display: flex; align-items: center; gap: 6px; }
.rf-tile-et { font-size: var(--rf-t-s); font-weight: 600; color: var(--rf-tinta-2); }
.rf-tile > strong { font-size: var(--rf-t-xl); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rf-tile > strong small { font-size: var(--rf-t-s); font-weight: 600; color: var(--rf-tinta-3); }
.rf-tile > small { font-size: var(--rf-t-xs); color: var(--rf-tinta-3); line-height: 1.4; }
.rf-tile-vacio { background: var(--rf-superficie-2); box-shadow: inset 0 0 0 1.5px var(--rf-borde); }
.rf-enlace-fila { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 12px; background: var(--rf-superficie); border-radius: var(--rf-r-l);
  box-shadow: var(--rf-sombra-1); color: var(--rf-tinta); text-decoration: none; }
.rf-enlace-fila > span:first-child { font-size: 1.4rem; }
.rf-enlace-fila > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.rf-enlace-fila small { color: var(--rf-tinta-3); font-size: var(--rf-t-s); }
.rf-enlace-fila:focus-visible { outline: 3px solid var(--rf-oro); outline-offset: 2px; }
@media (max-width: 360px) { .rf-tablero-2 { grid-template-columns: 1fr; } }

/* ---- Peso con meta y análisis (paso 3) ---- */
.rf-meta-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rf-meta-editar { color: var(--rf-verde-2); }
.rf-meta-barra { display: block; width: 100%; height: 12px; margin: 10px 0 6px; }
.rf-meta-mini { height: 8px; margin: 6px 0 2px; }
.rf-meta-pista { fill: var(--rf-superficie-2); stroke: var(--rf-borde); stroke-width: .5; }
.rf-meta-avance { fill: var(--rf-grafico); }
.rf-meta-num { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: var(--rf-t-s); color: var(--rf-tinta-3); }
.rf-meta-num strong { color: var(--rf-tinta); }
.rf-meta-ritmo, .rf-meta-proy { margin: 10px 0 0; font-size: var(--rf-t-s); color: var(--rf-tinta-2); }
.rf-meta-ritmo span { color: var(--rf-tinta-3); }
.rf-meta-aviso { margin-top: 10px; }
.rf-g-meta { stroke: var(--rf-oro-oscuro); stroke-width: 2; stroke-dasharray: 8 6; }
.rf-g-meta-txt { font: 600 19px var(--rf-texto); fill: var(--rf-oro-oscuro); }
.rf-g-dosis { fill: var(--rf-alerta); stroke: #fff; stroke-width: 2; }
.rf-g-leyenda { display: flex; gap: 14px; margin-bottom: 4px; }
.rf-g-leyenda i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.rf-g-leyenda .l-dosis { border-radius: 50%; background: var(--rf-alerta); }
.rf-g-leyenda .l-meta { height: 0; border-top: 2px dashed var(--rf-oro-oscuro); }

/* ---- Inicio pulido (27-11-2026): encabezado con foto, títulos de tarjeta iguales, sin ruido en «Tu semana» ---- */
.rf-saludo { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.rf-saludo-av { flex: none; border-radius: 50%; text-decoration: none; }
.rf-saludo-av .rf-avatar { width: 56px; height: 56px; font-size: var(--rf-t-l); box-shadow: 0 0 0 2px var(--rf-oro); }
.rf-saludo-av:focus-visible { outline: 3px solid var(--rf-oro); outline-offset: 3px; }
.rf-saludo .rf-h1 { margin: 0; line-height: 1.15; }
.rf-saludo .rf-sub { margin: 0 0 2px; font-size: var(--rf-t-s); }
/* Mismo encabezado en Agua, Suplementos y Tu semana: ícono en pastilla de color, título y dato a la derecha. */
.rf-cab-t { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rf-cab-t h2, .rf-cab-t .rf-h2 { flex: 1; margin: 0; font-size: var(--rf-t-l); font-weight: 700; color: var(--rf-tinta); }
.rf-cab-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--rf-r-m); }
.rf-cab-ico svg { width: 20px; height: 20px; }
.rf-cab-ico.i-agua { background: #e6f2f8; color: var(--rf-agua-2); }
.rf-cab-ico.i-supl { background: var(--rf-verde-claro); color: var(--rf-verde); }
.rf-cab-ico.i-semana { background: var(--rf-aviso-fondo); color: var(--rf-aviso); }
.rf-cab-ico.i-semana .rf-ico { width: 20px; height: 20px; color: var(--rf-aviso); }
.rf-agua-cab.rf-cab-t { align-items: center; }
.rf-supl-cab .rf-supl-ico { display: none; }
.rf-supl-vacio { text-align: left; margin: -2px 0 0 46px; font-size: var(--rf-t-s); color: var(--rf-tinta-3); }
.rf-agua-fila-tarjeta { margin-top: 2px; }
/* Tu semana: los días sin registros quedan suaves; sin barras ni puntos de relleno. */
.rf-sem-col.sin .rf-vaso, .rf-sem-col.sin .rf-sem-letra { opacity: .55; }
.rf-sem-puntos { min-height: 6px; }
.rf-sem-barra { min-height: 28px; }
/* El botón + va al borde de la pantalla (no encima de las tarjetas en pantallas anchas). */
.rf-fab { right: calc(18px + env(safe-area-inset-right)); }

/* ---- Dosis: próxima aplicación, calculadora de jeringa y progreso de la foto (diseño propio NUVESCI) ---- */
.rf-prox .rf-cab-t .rf-enlace { color: var(--rf-verde-2); font-size: var(--rf-t-s); }
.rf-prox-num { margin: 2px 0 4px; font-size: var(--rf-t-2xl); font-weight: 800; color: var(--rf-tinta); letter-spacing: -.01em; }
.rf-prox-num span { font-size: var(--rf-t-l); color: var(--rf-alerta); margin-right: 4px; }
.rf-prox.atrasada { box-shadow: inset 4px 0 0 var(--rf-alerta), var(--rf-sombra-1); }
.rf-prox.atrasada .rf-meta-avance { fill: var(--rf-alerta); }
.rf-prox-barra { margin: 6px 0 12px; }
.rf-prox-cuando { display: flex; flex-direction: column; margin: 0; }
.rf-prox-cuando span { font-size: var(--rf-t-s); color: var(--rf-tinta-3); }
.rf-prox-cuando strong { font-size: var(--rf-t-l); color: var(--rf-tinta); }
.rf-prox-hist { display: block; text-align: center; margin-top: 10px; color: var(--rf-verde-2); font-weight: 600; text-decoration: none; }
.rf-tile-ico svg { width: 30px; height: 30px; color: var(--rf-verde); }
.rf-pa-cada { margin-bottom: 8px; }
.rf-calc-res { text-align: center; }
.rf-calc-et { margin: 0; font-size: var(--rf-t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rf-tinta-3); }
.rf-calc-num { margin: 2px 0 0; font-size: var(--rf-t-num); font-weight: 800; line-height: 1; color: var(--rf-tinta); font-variant-numeric: tabular-nums; }
.rf-calc-num small { font-size: var(--rf-t-l); color: var(--rf-verde-2); margin-left: 4px; }
.rf-calc-sub { margin: 6px 0 4px; color: var(--rf-tinta-2); }
.rf-calc-vacio { color: var(--rf-tinta-3); margin: 6px 0; }
.rf-jeringa { display: block; width: 100%; max-width: 420px; margin: 6px auto 0; }
.rf-jer-cuerpo { fill: var(--rf-superficie-2); stroke: var(--rf-borde); stroke-width: 1.5; }
.rf-jer-liquido { fill: var(--rf-grafico); opacity: .85; }
.rf-jer-marca { stroke: var(--rf-tinta-3); stroke-width: 1; }
.rf-jer-marca.larga { stroke: var(--rf-tinta-2); stroke-width: 1.6; }
.rf-jer-num { font: 600 10px var(--rf-texto); fill: var(--rf-tinta-3); }
.rf-jer-embolo { fill: var(--rf-tinta); }
.rf-jer-vastago { stroke: var(--rf-tinta-3); stroke-width: 3; }
.rf-jer-tope { fill: var(--rf-tinta-3); }
.rf-jer-aguja { stroke: var(--rf-tinta-3); stroke-width: 1.5; }
.rf-jer-punta { fill: var(--rf-oro); }
.rf-jer-indicador { fill: var(--rf-oro-oscuro); }
.rf-calc-paso { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: var(--rf-t-l); color: var(--rf-tinta); }
.rf-calc-paso span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rf-verde-claro); color: var(--rf-verde); font-size: var(--rf-t-s); }
.rf-calc-par { display: flex; align-items: center; gap: 8px; }
.rf-calc-par > span { color: var(--rf-tinta-3); font-size: var(--rf-t-l); }
.rf-calc-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--rf-superficie-2); border-radius: var(--rf-r-m); box-shadow: inset 0 0 0 1.5px var(--rf-borde); }
.rf-calc-in:focus-within { box-shadow: inset 0 0 0 2px var(--rf-verde); }
.rf-calc-in input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font: 700 var(--rf-t-xl) var(--rf-texto); color: var(--rf-tinta); padding: 10px 0; }
.rf-calc-in input:focus { outline: none; }
.rf-calc-in span { color: var(--rf-tinta-3); font-weight: 600; }
.rf-calc-uno { max-width: 220px; }
.rf-calc-conc { margin: 10px 0 0; font-size: var(--rf-t-s); color: var(--rf-tinta-2); }
.rf-foto-analiza { position: relative; display: inline-block; }
.rf-foto-progreso { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18, 55, 47, .45); border-radius: var(--rf-r-s); color: #fff; }
.rf-foto-progreso svg { position: absolute; width: min(140px, 90%); height: auto; }
.rf-fp-pista { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 8; }
.rf-fp-arco { fill: none; stroke: var(--rf-oro); stroke-width: 8; stroke-linecap: round; }
.rf-fp-txt { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 110px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.rf-fp-txt strong { font-size: var(--rf-t-xl); }
.rf-fp-txt span { font-size: var(--rf-t-xs); line-height: 1.2; }
