/* Rhea · componentes.css · V4.1 (look limpio: fondo blanco, tarjetas grises, sin líneas ni mayúsculas espaciadas)
   Clases que se repiten en varias pantallas. Las de una sola pantalla viven en sistema/pantallas/<pantalla>.css.
   Todo valor sale de tokens.css. BEM: bloque, bloque__parte, bloque--variante.
   Celular: menos de 860 px. Escritorio: 860 px o más (los marcos de documentación son de 390 y 1280 px). */

/* =========================================================
   1. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--blanco); color: var(--tinta); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--tinta); }
a:hover { color: var(--frambuesa); }
h1, h2, h3, p { margin: 0; }
.es-boton { text-decoration: none; }
body:not(.ver-futuro) .futuro { display: none !important; }
.oculto-celular { display: none; }

/* Espacio de imagen. Las fotos de prenda y de look nunca se recortan: el archivo real va con object-fit: contain. */
.img-slot { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; padding: var(--space-2); background: var(--gris-claro); color: var(--gris); font: 400 12px/16px var(--font-sans); text-align: center; overflow: hidden; }
.img-slot img { width: 100%; height: 100%; object-fit: contain; }
.img-slot--3x4 { aspect-ratio: 3 / 4; }
.img-slot--4x5 { aspect-ratio: 4 / 5; }
.img-slot--1x1 { aspect-ratio: 1 / 1; }
.img-slot--4x3 { aspect-ratio: 4 / 3; }
.img-slot--16x9 { aspect-ratio: 16 / 9; }
.img-slot--fondo { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.img-slot--redondo { border-radius: 50%; }
.gancho-img { width: 100%; height: 100%; object-fit: contain; }

/* Ícono Lucide en línea */
.rh-icon { flex: none; display: block; width: 20px; height: 20px; }
.rh-tabbar .rh-icon { box-sizing: content-box; width: 24px; height: 24px; padding: 7px 19px; border-radius: var(--radius-pill); color: var(--gris-icono); }
.inicio-clima .rh-icon, .menu-sup__comprar .rh-icon { width: 16px; height: 16px; }
.rh-aviso__icono .rh-icon { width: 11px; height: 11px; }
.inicio-listo__check .rh-icon { width: 18px; height: 18px; }
.prenda-elegible__palomita .rh-icon { width: 14px; height: 14px; }

/* =========================================================
   2. Marcos de la app
   ========================================================= */
/* Celular: 390 × 844 */
.app { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--blanco); overflow: hidden; }
.app__contenido { flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; }
.app__contenido--con-pestanas { padding-bottom: 96px; }
.app__franja { display: none; }
.barra-celular { height: 44px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 0 28px; font: 500 14px/1 var(--font-sans); }
.barra-celular__isla { width: 110px; height: 30px; border-radius: var(--radius-pill); background: var(--tinta); }

/* Escritorio: 1280 de ancho, el contenido llega a 1440 como máximo */
.app--escritorio { height: 100%; }
.app__pagina { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 40px; }

/* Cabeza de la app en celular: solo "rhea" (el gancho y el nombre nunca van juntos) */
.app-cabeza { position: relative; z-index: 5; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--blanco); border-bottom: 1px solid var(--linea-suave); }
.app-cabeza__derecha { display: flex; align-items: center; gap: 10px; }
.marca-rhea { display: inline-flex; align-items: center; min-height: 44px; margin: -4px 0; padding: 0; border: 0; background: none; text-decoration: none; font: 400 28px/22px var(--font-serif); letter-spacing: -0.01em; color: var(--frambuesa); }
.marca-rhea--escritorio { font-size: 32px; line-height: 26px; }

/* Botón Stylist (celular) */
.boton-stylist { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 6px; border-radius: var(--radius-pill); border: 0; background: var(--gris-claro); text-decoration: none; font: 500 13px/1 var(--font-sans); color: var(--tinta); }

/* Insignia de gancho: círculo con el gancho del plan */
.insignia-gancho { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: var(--gancho-terciopelo-badge); }
.insignia-gancho--metal { background: var(--gancho-metal-badge); }
.insignia-gancho--madera { background: var(--gancho-madera-badge); }
.insignia-gancho--terciopelo { background: var(--gancho-terciopelo-badge); }
.insignia-gancho--chica { width: 20px; height: 20px; }
.insignia-gancho--grande { width: 40px; height: 40px; padding: 6px; }

/* Avatar con su gancho; en celular lleva el número de prendas por revisar, en escritorio un puntito */
.avatar { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--rosa-suave); text-decoration: none; font: 400 18px/1 var(--font-serif); color: var(--frambuesa); }
.avatar--chico { width: 24px; height: 24px; font-size: 12px; }
.avatar--tarjeta { position: absolute; top: 8px; left: 8px; z-index: 2; width: 26px; height: 26px; font-size: 13px; box-shadow: 0 0 0 2px var(--blanco); }
.avatar__gancho { position: absolute; right: -6px; bottom: -4px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--blanco); box-shadow: 0 0 0 1.5px var(--blanco); display: flex; }
.avatar__contador { position: absolute; top: -5px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--frambuesa); color: var(--blanco); box-shadow: 0 0 0 1.5px var(--blanco); display: flex; align-items: center; justify-content: center; font: 600 11px/1 var(--font-sans); }
.avatar__punto { position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--frambuesa); box-shadow: 0 0 0 2px var(--blanco); }

/* Menú de arriba (escritorio): rhea · Inicio, Mi clóset, Mi editorial, Rhea Stylist · Antes de comprar, gancho, avatar */
.menu-sup { position: relative; z-index: 40; flex: none; background: var(--blanco); border-bottom: 1px solid var(--linea-suave); }
.menu-sup__fila { max-width: 1440px; margin: 0 auto; padding: 0 40px; height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.menu-sup__nav { justify-self: center; display: flex; align-items: center; gap: 4px; height: 72px; }
.menu-sup__link { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius-pill); text-decoration: none; font: 400 14px/1 var(--font-sans); white-space: nowrap; color: var(--gris); }
.menu-sup__link:hover { color: var(--tinta); background: var(--gris-claro); }
.menu-sup__link--activo { color: var(--tinta); font-weight: 600; background: var(--gris-claro); }
.menu-sup__derecha { justify-self: end; display: flex; align-items: center; gap: 12px; }
.menu-sup__comprar { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--linea-suave); text-decoration: none; font: 400 14px/1 var(--font-sans); white-space: nowrap; color: var(--tinta); }
.menu-sup__gancho { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--frambuesa); text-decoration: none; box-shadow: var(--shadow-fab); padding: 10px; }
.menu-sup__gancho .gancho-img { filter: brightness(0) invert(1); }

/* Menú del avatar (escritorio): se abre debajo del avatar */
.menu-avatar { position: absolute; top: 64px; right: 40px; z-index: 45; width: 280px; padding: 6px; background: var(--blanco); border: 0; border-radius: var(--radius-card); box-shadow: var(--sombra-suave); display: flex; flex-direction: column; }
.menu-avatar__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; font: 400 15px/20px var(--font-sans); color: var(--tinta); }
.menu-avatar__item:hover { background: var(--gris-claro); color: var(--tinta); }
.menu-avatar__item--salir { margin-top: 6px; color: var(--gris); }
.menu-avatar__contador { min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--frambuesa); color: var(--blanco); display: inline-flex; align-items: center; justify-content: center; font: 600 12px/1 var(--font-sans); }

/* Barra inferior (celular) */
.rh-tabbar-caja { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; }
.rh-tabbar { display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; align-items: end; height: 92px; padding: 0 4px 20px; background: var(--blanco-a85); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--linea-suave); }
.rh-tabbar__tab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; padding-top: 6px; white-space: nowrap; border: 0; background: none; text-decoration: none; font: 400 11px/14px var(--font-sans); color: var(--gris); }
.rh-tabbar__tab--activo { color: var(--tinta); font-weight: 600; }
.rh-tabbar__tab--activo .rh-icon { color: var(--frambuesa); background: var(--rosa-suave); }
.rh-tabbar__centro { display: flex; justify-content: center; }
.rh-fab { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 4px; border-radius: 50%; background: var(--frambuesa); box-shadow: var(--shadow-fab); padding: 12px; text-decoration: none; }

/* =========================================================
   3. Controles
   ========================================================= */
.rh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--size-btn-lg); padding: 0 24px; border-radius: var(--radius-pill); border: 0; cursor: pointer; text-decoration: none; font: 600 15px/1 var(--font-sans); white-space: nowrap; }
.rh-btn--primary { background: var(--frambuesa); color: var(--on-frambuesa); }
.rh-btn--primary:hover { background: var(--frambuesa-hover); color: var(--on-frambuesa); }
.rh-btn--secondary { background: var(--gris-claro); color: var(--tinta); box-shadow: none; font-weight: 600; }
.rh-btn--secondary:hover { background: var(--linea-suave); color: var(--tinta); }
.rh-btn--tinta { background: var(--tinta); color: var(--blanco); font-weight: 600; }
.rh-btn--tinta:hover { color: var(--blanco); }
.rh-btn--lg { height: 48px; padding: 0 28px; }
.rh-btn--md { height: var(--size-btn-md); padding: 0 18px; font-size: 14px; }
.rh-btn--full { width: auto; min-width: 200px; align-self: center; }
.rh-btn[aria-disabled="true"] { background: var(--gris-claro); color: var(--gris); }

.enlace { display: inline-flex; align-items: center; min-height: 36px; padding: 0; border: 0; background: none; cursor: pointer; font: 400 14px/20px var(--font-sans); color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }
.enlace--gris { color: var(--gris); font-size: 13px; line-height: 18px; }
.enlace--borrar { color: var(--borrar); }
.enlaces-fila { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--gris); font: 400 13px/18px var(--font-sans); white-space: nowrap; }

.rh-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 0; background: var(--gris-claro); cursor: pointer; text-decoration: none; font: 400 14px/1 var(--font-sans); color: var(--tinta); white-space: nowrap; }
.rh-chip--activo { background: var(--tinta); color: var(--blanco); }
.rh-chip--ocasion { padding-left: 3px; gap: 8px; background: var(--rosa-suave); color: var(--frambuesa); }
.rh-chip--ocasion.rh-chip--activo { background: var(--rosa-suave); color: var(--frambuesa); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--frambuesa); }
.rh-chip__ilustracion { flex: none; width: 36px; height: 36px; padding: 2px; border-radius: 50%; background: var(--blanco); }
.rh-chip--chico.rh-chip--ocasion { min-height: 40px; }
.rh-chip--chico { min-height: 32px; padding: 0 12px; font-size: 13px; }
.rh-chip:disabled { opacity: var(--opacity-disabled); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips--fila { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }

.buscador { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--gris-claro); border: 0; color: var(--tinta); }
.buscador__campo { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: 400 16px/20px var(--font-sans); color: var(--tinta); }

.pestanas { overflow-x: auto; scrollbar-width: none; display: inline-flex; align-self: flex-start; max-width: 100%; gap: 2px; padding: 4px; border-radius: var(--radius-pill); background: var(--gris-claro); }
.pestanas__tab { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--radius-pill); text-decoration: none; font: 400 14px/1 var(--font-sans); color: var(--gris); }
.pestanas__tab--activa { color: var(--tinta); font-weight: 600; background: var(--blanco); box-shadow: var(--sombra-suave); }
.pestanas__numero { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--frambuesa); color: var(--blanco); display: inline-flex; align-items: center; justify-content: center; font: 600 10px/1 var(--font-sans); letter-spacing: 0; }

/* Etiquetas */
.rh-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font: 500 12px/14px var(--font-sans); white-space: nowrap; background: var(--rosa-suave); color: var(--frambuesa); }
.rh-tag--set { background: var(--tinta); color: var(--blanco); }
.rh-tag--nueva { background: var(--frambuesa); color: var(--blanco); border-radius: var(--radius-pill); }
.rh-tag--muy-pronto { background: var(--mantequilla); color: var(--tinta); border-radius: var(--radius-pill); }
.rh-tag--destacada { background: var(--rosa-polvo); color: var(--tinta); border-radius: var(--radius-pill); }
.rh-tag--conectado { background: var(--olivo); color: var(--blanco); border-radius: var(--radius-pill); }
.rh-tag--editado { background: var(--gris-claro); color: var(--tinta); border-radius: var(--radius-pill); }

/* Textos que se repiten */
.sobretitulo { font: 400 13px/18px var(--font-sans); color: var(--gris); }
.titulo-pantalla { font: 400 34px/1.05 var(--font-serif); letter-spacing: -0.01em; }
.titulo-pantalla em { font-style: italic; }
.titulo-seccion { font: 400 26px/1.1 var(--font-serif); }
.titulo-seccion em { font-style: italic; }
.texto-gris { font: 400 13px/18px var(--font-sans); color: var(--gris); }
.rhea-linea { font: italic 400 14px/20px var(--font-serif); color: var(--gris); text-wrap: pretty; }
.rhea-linea--centro { text-align: center; }
.rhea-linea--grande { font-size: 17px; line-height: 1.3; color: var(--tinta); }

/* Regresar (barra de arriba en celular) */
.barra-atras { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; border: 0; background: none; cursor: pointer; text-decoration: none; font: 500 14px/20px var(--font-sans); color: var(--tinta); }
/* Título grande de pantalla en escritorio */
.titulo-escritorio { font: 400 48px/1 var(--font-serif); letter-spacing: -0.01em; }
.titulo-escritorio em { font-style: italic; }

/* Ruta (escritorio) */
.ruta { display: flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; font: 400 13px/18px var(--font-sans); color: var(--gris); }
.ruta__link { text-decoration: none; color: var(--gris); }
.ruta__link:hover { color: var(--frambuesa); }
.ruta__actual { color: var(--tinta); }

/* Campos de formulario */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo__etiqueta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 500 13px/18px var(--font-sans); color: var(--tinta); }
.campo__opcional { font-weight: 400; color: var(--gris); }
.campo__caja { position: relative; display: flex; align-items: center; }
.campo__entrada { width: 100%; height: 52px; padding: 0 16px; border-radius: var(--radius-dato); border: 1px solid transparent; background: var(--gris-claro); outline: none; font: 400 16px/20px var(--font-sans); color: var(--tinta); }
.campo__entrada:focus { border-color: var(--tinta); }
.campo__entrada--con-boton { padding-right: 88px; }
.campo__boton { position: absolute; right: 8px; min-height: 40px; padding: 0 10px; border: 0; background: none; cursor: pointer; font: 500 13px/1 var(--font-sans); color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }
.campo__sufijo { position: absolute; right: 16px; font: 400 14px/1 var(--font-sans); color: var(--gris); }
.campo__ayuda { font: 400 13px/18px var(--font-sans); color: var(--gris); }
.campo--error .campo__entrada { border-color: var(--borrar); }
.campo__error { font: 400 13px/18px var(--font-sans); color: var(--borrar); }
.campo--fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.formulario { display: flex; flex-direction: column; gap: 16px; }
.separador-o { display: flex; align-items: center; gap: 12px; font: 400 13px/18px var(--font-sans); color: var(--gris); }
.separador-o::before, .separador-o::after { content: ""; flex: 1; height: 1px; background: var(--linea-suave); }
.rh-btn--apple, .rh-btn--google { background: var(--gris-claro); color: var(--tinta); box-shadow: none; font-weight: 600; }

/* Opción grande que se marca (Conocernos, metas, Elige tu gancho) */
.opcion-tarjeta { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border-radius: var(--radius-dato); border: 0; background: var(--gris-claro); cursor: pointer; text-align: left; font: 400 16px/22px var(--font-sans); color: var(--tinta); }
.opcion-tarjeta--marcada { background: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--tinta); }
.opcion-tarjeta:disabled { opacity: var(--opacity-disabled); }
.opcion-tarjeta__marca { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--tinta-a20); display: flex; align-items: center; justify-content: center; color: var(--blanco); }
.opcion-tarjeta--marcada .opcion-tarjeta__marca { border-color: var(--tinta); background: var(--tinta); }
.opciones { display: flex; flex-direction: column; gap: 8px; }

/* Interruptor (Permisos, Ajustes) */
.interruptor { flex: none; position: relative; width: 48px; height: 28px; border-radius: var(--radius-pill); background: var(--tinta-a20); border: 0; padding: 0; cursor: pointer; }
.interruptor::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--blanco); box-shadow: 0 1px 3px var(--tinta-a20); transition: left .2s; }
.interruptor--prendido { background: var(--olivo); }
.interruptor--prendido::after { left: 23px; }
.interruptor:disabled { opacity: var(--opacity-disabled); }
.renglon-ajuste { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0; }
.renglon-ajuste__texto { display: flex; flex-direction: column; gap: 2px; font: 400 16px/22px var(--font-sans); }
.renglon-ajuste__texto .texto-gris { font-size: 13px; }

/* Tres puntos: cargando, Rhea escribiendo, botón procesando */
.rh-btn__dots { display: inline-flex; gap: 4px; }
.rh-btn__dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: rhTypeDot 1.2s infinite; }
.rh-btn__dots i:nth-child(2) { animation-delay: .15s; }
.rh-btn__dots i:nth-child(3) { animation-delay: .3s; }
.rh-btn__dots--grande i { width: 7px; height: 7px; }

/* Esqueleto (cargando listas y cuadrículas) */
.esqueleto { border-radius: var(--radius-dato); background: linear-gradient(90deg, var(--gris-claro) 0%, var(--esqueleto-brillo) 50%, var(--gris-claro) 100%); background-size: 200% 100%; animation: rhShimmer 1.4s linear infinite; }

/* Columna centrada de escritorio para pantallas de una columna (Ajustes, Rhevende, Antes de comprar, Bloqueo, Perfil): 820 px */
.columna-escritorio { width: 100%; max-width: 820px; margin: 0 auto; padding: 32px 0 64px; }

/* =========================================================
   4. Tarjetas
   ========================================================= */
/* Prenda: imagen 3:4 + texto de alto fijo, para que la cuadrícula quede pareja */
.prenda-tarjeta { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--tinta); }
.prenda-tarjeta__foto { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-foto); background: var(--gris-claro); overflow: hidden; }
.prenda-tarjeta__etiquetas { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 4px; }
.prenda-tarjeta__texto { height: 38px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.prenda-tarjeta__marca { font: 400 12px/14px var(--font-sans); color: var(--gris); }
.prenda-tarjeta__nombre { font: 400 14px/19px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Prenda elegible (Set, La elijo yo, ¿Cuál prenda?) */
.prenda-elegible { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 0; border-radius: var(--radius-dato); background: var(--gris-claro); cursor: pointer; text-align: left; color: var(--tinta); }
.prenda-elegible--marcada { box-shadow: inset 0 0 0 2px var(--frambuesa); }
.prenda-elegible__foto { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--gris-claro); }
.prenda-elegible__nombre { height: 32px; overflow: hidden; font: 400 12px/16px var(--font-sans); }
.prenda-elegible__palomita { position: absolute; top: 10px; right: 10px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: var(--frambuesa); color: var(--blanco); display: flex; align-items: center; justify-content: center; }

/* Look armado por piezas: aparece cuando una prenda del look cambió */
.look-armado { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 6px; height: 100%; }
.look-armado__pieza { position: relative; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 6px; border: 0; border-radius: var(--radius-dato); background: var(--gris-claro); }
.look-armado__pieza--nueva { box-shadow: inset 0 0 0 1.5px var(--frambuesa), 0 0 0 3px var(--frambuesa-a14), 0 0 18px var(--frambuesa-a30); animation: rhBrillo 1.6s ease-out 1; }
.look-armado__foto { position: relative; flex: 1; min-height: 0; }
.look-armado__nombre { font: 400 11px/14px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-armado__nueva { position: absolute; top: 6px; left: 6px; z-index: 2; }
.look-cambio { display: flex; gap: 8px; }
.look-cambio .rh-btn { flex: 1; }

/* Plática con Rhea (Nuevo viaje, Stylist, Genera un look, Pídele un cambio) */
.platica { flex: 1; min-height: 0; overflow: auto; padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.platica__rhea { align-self: flex-start; max-width: 86%; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--gris-claro); border: 0; font: italic 400 17px/1.3 var(--font-serif); }
.platica__tu { align-self: flex-end; max-width: 80%; padding: 10px 14px; border-radius: 16px 4px 16px 16px; background: var(--tinta); color: var(--blanco); font: 400 15px/20px var(--font-sans); }
.platica__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.platica__escribir { flex: none; padding: 10px 16px 16px; display: flex; gap: 8px; background: var(--blanco); }
.platica__escribir .buscador { flex: 1; }
.platica__enviar { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--frambuesa); color: var(--blanco); display: flex; align-items: center; justify-content: center; }
.platica__puntos { display: inline-flex; gap: 4px; }
.platica__puntos i { width: 7px; height: 7px; border-radius: 50%; background: var(--gris); animation: rhTypeDot 1.2s infinite; }
.platica__puntos i:nth-child(2) { animation-delay: .15s; }
.platica__puntos i:nth-child(3) { animation-delay: .3s; }
.platica--escritorio { max-width: 720px; width: 100%; margin: 0 auto; }
.platica__looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* Look en cuadrícula: imagen 3:4 + texto de alto fijo */
.look-tarjeta { min-width: 0; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--tinta); }
.look-tarjeta__foto { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-foto); background: var(--gris-claro); overflow: hidden; }
.look-tarjeta__texto { height: 40px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.look-tarjeta__nombre { font: 400 18px/22px var(--font-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-tarjeta__acciones { display: flex; gap: 12px; }
.rejilla-looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.rejilla-looks--escritorio { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }

/* =========================================================
   5. Hojas, modales y paneles
   ========================================================= */
.rh-velo { position: absolute; inset: 0; z-index: 50; background: var(--scrim); }
/* Celular: hoja de abajo */
.rh-hoja { position: absolute; left: 0; right: 0; bottom: 0; z-index: 60; max-height: calc(100% - 48px); display: flex; flex-direction: column; background: var(--blanco); border-radius: 24px 24px 0 0; overflow: hidden; box-shadow: var(--sombra-suave); }
.rh-hoja--alta { height: calc(100% - 48px); }
.rh-hoja__asa { align-self: center; flex: none; width: 40px; height: 4px; margin: 12px 0 6px; border-radius: var(--radius-pill); background: var(--tinta-a20); }
.rh-hoja__cabeza { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 24px 10px; }
.rh-hoja__titulo { flex: 1; font: 400 30px/1.05 var(--font-serif); }
.rh-hoja__sub { font: 400 13px/18px var(--font-sans); color: var(--gris); }
.rh-hoja__icono { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--tinta); }
.rh-hoja__icono--atras { margin-left: -12px; }
.rh-hoja__icono--cerrar { margin-right: -10px; }
.rh-hoja__cuerpo { flex: 1; min-height: 0; overflow: auto; padding: 0 24px 24px; display: flex; flex-direction: column; gap: 4px; }
.rh-hoja__pie { flex: none; display: flex; align-items: center; gap: 16px; padding: 12px 24px 20px; }
.rh-hoja__pie .rh-btn { flex: 1; }
/* Escritorio: la misma hoja es una ventana al centro, de 520 a 720 px */
.rh-hoja--centro { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 560px; max-width: calc(100% - 48px); max-height: calc(100% - 64px); border-radius: var(--radius-foto); }
.rh-hoja--centro .rh-hoja__asa { display: none; }
.rh-hoja--centro .rh-hoja__cabeza { padding-top: 20px; }
.rh-hoja--ancha { width: 720px; height: min(760px, calc(100% - 64px)); }
.rh-hoja--angosta { width: 520px; }
/* Escritorio: panel lateral derecho (chat de Rhea en la Maleta) */
.panel-lateral { position: absolute; top: 0; right: 0; bottom: 0; z-index: 60; width: 440px; display: flex; flex-direction: column; background: var(--blanco); border-left: 0; box-shadow: var(--sombra-suave); }
.app--escritorio .panel-lateral { top: 75px; }

/* Renglón de opción (motivos de No me gusta, Hoja del gancho) */
.opcion-renglon { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; text-decoration: none; font: 400 16px/20px var(--font-sans); color: var(--tinta); }
.opcion-renglon__flecha { font: 400 20px/1 var(--font-sans); color: var(--gris); }

/* =========================================================
   6. Avisos y estados
   ========================================================= */
/* Aviso chiquito: arriba, se cierra solo a los 2 s */
.rh-aviso { position: absolute; left: 20px; right: 20px; top: 54px; z-index: 70; display: flex; justify-content: center; pointer-events: none; }
.rh-aviso__capsula { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: var(--radius-pill); background: var(--tinta); color: var(--blanco); font: 400 13px/18px var(--font-sans); box-shadow: var(--sombra-suave); }
.rh-aviso__icono { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--olivo); display: flex; align-items: center; justify-content: center; }
.rh-aviso__icono--error { background: var(--borrar); }
.rh-aviso__icono--pronto { background: var(--mantequilla); color: var(--tinta); }
.rh-aviso--escritorio { top: 88px; }
/* Aviso con Deshacer: abajo, dura 5 s */
.aviso-deshacer { position: absolute; left: 16px; right: 16px; bottom: 96px; z-index: 75; display: flex; justify-content: center; }
.aviso-deshacer--escritorio { bottom: 32px; }
.aviso-deshacer__caja { width: 100%; max-width: 420px; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px 6px 16px; border-radius: var(--radius-card); background: var(--tinta); color: var(--blanco); font: 400 14px/20px var(--font-sans); box-shadow: var(--sombra-suave); }
.aviso-deshacer__texto { flex: 1; }
.aviso-deshacer__boton { min-height: 40px; padding: 0 12px; border: 0; background: none; cursor: pointer; color: var(--blanco); font: 600 14px/1 var(--font-sans); text-decoration: underline; text-underline-offset: 3px; }

/* Bloque de estado: vacíos, sin conexión, error */
.rh-estado { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 32px; text-align: center; }
.rh-estado__titulo { font: 400 34px/1.1 var(--font-serif); text-wrap: balance; }
.rh-estado__titulo em { font-style: italic; }
.rh-estado__texto { max-width: 320px; font: 400 15px/22px var(--font-sans); color: var(--gris); }
.rh-estado__acciones { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 8px; }

/* Bloque de función que todavía no está: se ve con "Muy pronto" y al tocarla sale un aviso chiquito. No es .futuro (eso se oculta). */
.muy-pronto { display: inline-flex; align-items: center; gap: 8px; }

/* =========================================================
   7. Animaciones
   ========================================================= */
@keyframes rhHolaIn { from { transform: translate(var(--dx), var(--dy)) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rhHolaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes rhDrop { from { transform: translateY(-70px) rotate(-8deg); opacity: 0; } 70% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes rhTypeDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes rhStamp { from { transform: scale(1.9); opacity: 0; } 60% { transform: scale(.92); opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes rhShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* Brillo suave de la prenda nueva en un look (No me gusta › Que Rhea proponga otra) */
@keyframes rhBrillo { from { box-shadow: 0 0 0 0 var(--frambuesa-a50); } to { box-shadow: 0 0 0 3px var(--frambuesa-a14), 0 0 18px var(--frambuesa-a30); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* ---- V4.2 · Tabla de planes (Mi membresía; la misma de la web W2) ----
   Celular: se lee completa a 390 px, sin deslizar de lado. Los nombres van sin «El» y los precios sin «MXN al mes»
   (.tabla-planes__largo se oculta). En escritorio (.app--escritorio) se ven completos. */
.tabla-planes { width: 100%; color: var(--tinta); }
.tabla-planes__tabla { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font: 400 12px/1.35 var(--font-sans); }
.tabla-planes__titulo { caption-side: top; text-align: left; padding: 0 0 16px; font: 400 30px/1.05 var(--font-serif); }
.tabla-planes__col-funcion { width: 31%; }
.tabla-planes__nota { padding: 0 8px 14px 0; text-align: left; vertical-align: bottom; font: 400 12px/16px var(--font-sans); color: var(--gris); }
.tabla-planes__plan { padding: 0 4px 14px; text-align: center; vertical-align: bottom; }
.tabla-planes__nombre, .tabla-planes__precio, .tabla-planes__prueba { display: block; }
.tabla-planes__nombre { font: 400 18px/1 var(--font-serif); white-space: nowrap; }
.tabla-planes__precio { margin-top: 2px; font: 600 14px/20px var(--font-sans); white-space: nowrap; }
.tabla-planes__prueba { font: 400 12px/16px var(--font-sans); color: var(--gris); text-wrap: balance; }
.tabla-planes__largo { display: none; }
.tabla-planes tbody th, .tabla-planes tbody td { padding: 12px 4px; vertical-align: middle; }
.tabla-planes tbody th { padding-left: 10px; text-align: left; font-weight: 400; text-wrap: pretty; border-radius: 14px 0 0 14px; }
.tabla-planes tbody td { text-align: center; font-weight: 500; text-wrap: balance; }
.tabla-planes tbody td:last-child { border-radius: 0 14px 14px 0; }
.tabla-planes tbody tr:nth-child(odd) th, .tabla-planes tbody tr:nth-child(odd) td { background: var(--gris-claro); }
.tabla-planes__no { color: var(--gris-icono); font-weight: 400; }
.tabla-planes .rh-tag { height: auto; min-height: 24px; padding: 0 6px; font-size: 10px; }
.app--escritorio .tabla-planes__tabla { font-size: 14px; }
.app--escritorio .tabla-planes__titulo { font-size: 40px; }
.app--escritorio .tabla-planes__col-funcion { width: 30%; }
.app--escritorio .tabla-planes__largo { display: inline; }
.app--escritorio .tabla-planes__nombre { font-size: 26px; }
.app--escritorio .tabla-planes__plan { padding: 0 8px 14px; }
.app--escritorio .tabla-planes tbody th, .app--escritorio .tabla-planes tbody td { padding: 12px 8px; }
.app--escritorio .tabla-planes tbody th { padding-left: 14px; }
.app--escritorio .tabla-planes .rh-tag { padding: 0 10px; font-size: 12px; }
