/* ==========================================================================
   BahBah design system — "Frutal juguetona"
   Canonical reference: design_handoff_bahbah_redesign/BahBah Redesign.dc.html
   (canvas turn 4, screens 4a-4j, lines 34-515). Do not hand-tune values here
   without checking the canvas first — colors/sizes are transcribed from it.
   ========================================================================== */

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --bb-forest: #35502F; --bb-leaf: #7FB35A; --bb-leaf-light: #8FBC6E;
  --bb-mint: #DDEED2; --bb-screen-leaf: #F5F9EF; --bb-cream: #FFFDF7;
  --bb-cta: #F08B4F; --bb-cta-shadow: rgba(240,139,79,.35);
  --bb-streak: #FFE9A8; --bb-warn-bg: #FFF3D6; --bb-warn-border: #F5D98B;
  --bb-muted: #9AA88F; --bb-on-green: #54683F; --bb-green-link: #557A34;
  --bb-input-border: #E2E8D6; --bb-stars: #EFB73E;
  --bb-card-shadow: 0 1px 3px rgba(62,112,67,.08);
  --bb-sheet-shadow: 0 -8px 30px rgba(41,60,35,.2);
  --bb-font: "Baloo 2", -apple-system, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */

.bb-body {
  margin: 0;
  font-family: var(--bb-font);
  background: var(--bb-cream);
  color: var(--bb-forest);
  min-height: 100dvh;
}

/* Full-screen wrapper. Modifiers set the background; base leaves it to
   .bb-body's cream so plain screens (4b, 4c, 4g underlay, 4i) need no
   modifier at all. */
.bb-screen {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: 96px; /* clears the floating tab bar / FAB */
}

.bb-screen--leaf { background: var(--bb-screen-leaf); }
.bb-screen--gradient { background: linear-gradient(180deg, var(--bb-mint) 0%, var(--bb-cream) 55%); padding-bottom: 0; }
.bb-screen--gradient-45 { background: linear-gradient(180deg, var(--bb-mint) 0%, var(--bb-cream) 45%); padding-bottom: 0; }
.bb-screen--celebrate { background: var(--bb-leaf); color: #fff; padding-bottom: 0; }

.bb-container { padding: 0 24px; }

/* ==========================================================================
   Typography
   ========================================================================== */

.bb-title {
  margin: 0;
  font-weight: 800;
  font-size: 29px;
  line-height: 1.1;
}

.bb-title--md { font-size: 26px; }
.bb-title--lg { font-size: 34px; }
.bb-title--hero { font-size: 40px; line-height: 1; }

.bb-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--bb-muted);
}

.bb-subtitle--welcome {
  font-size: 15px;
  color: #7B8A6E;
  line-height: 1.4;
  max-width: 260px;
  margin: 6px auto 0;
}

.bb-eyebrow {
  font-size: 15px;
  font-weight: 800;
  color: var(--bb-mint);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bb-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #B3BCA8;
}
.bb-divider::before,
.bb-divider::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: #EDEAE0;
}

.bb-link-muted { font-size: 13px; font-weight: 600; color: var(--bb-muted); text-align: center; }
.bb-link-green { font-weight: 800; color: var(--bb-green-link); font-size: 12.5px; }
.bb-link-cta { font-weight: 800; color: var(--bb-cta); font-size: 12.5px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.bb-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.bb-btn--forest { background: var(--bb-forest); color: #fff; }

.bb-btn--cta {
  background: var(--bb-cta);
  color: #fff;
  font-size: 15px;
  padding: 14px;
  box-shadow: 0 6px 18px var(--bb-cta-shadow);
}

.bb-btn--dark {
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
}

.bb-btn--outline {
  background: #fff;
  border: 1.5px solid var(--bb-input-border);
  color: var(--bb-forest);
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
}

/* Compact inline button — not shown standalone on the canvas; sized down
   from the base pill for places later screens need a small non-block CTA. */
.bb-btn--sm {
  display: inline-block;
  width: auto;
  padding: 10px 20px;
  font-size: 13px;
}

/* Card-style outline button — canvas lines 501-502 (profile 50/50 row). */
.bb-btn--outline-card {
  background: #fff;
  border: 1.5px solid var(--bb-input-border);
  border-radius: 16px;
  padding: 11px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--bb-green-link);
}

.bb-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F6E8;
  color: var(--bb-green-link);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

/* ==========================================================================
   Forms / chips
   ========================================================================== */

.bb-field { display: block; }

.bb-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--bb-forest);
  margin-bottom: 6px;
}

.bb-input {
  background: #fff;
  border: 1.5px solid var(--bb-input-border);
  border-radius: 16px;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--bb-forest);
  width: 100%;
  box-sizing: border-box;
}
.bb-input:focus {
  outline: none;
  border: 2px solid var(--bb-leaf);
  padding: 12.5px 15.5px;
}

/* Birthday day/month/year selects (Rails date_select). Day and year get a
   fixed width to match their shorter content; month grows to fill the row. */
.bb-date-selects { display: flex; gap: 8px; }
.bb-date-selects select.bb-input {
  flex: 1;
  min-width: 0;
  padding-right: 34px;
  appearance: none;
  -webkit-appearance: none;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2335502F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.bb-date-selects select.bb-input:nth-of-type(1) { flex: 0 0 88px; }
.bb-date-selects select.bb-input:nth-of-type(3) { flex: 0 0 110px; }

.bb-textarea {
  background: #fff;
  border: 1.5px solid var(--bb-input-border);
  border-radius: 16px;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--bb-forest);
  width: 100%;
  box-sizing: border-box;
  min-height: 70px;
  resize: none;
}
.bb-textarea:focus {
  outline: none;
  border: 2px solid var(--bb-leaf);
  padding: 12.5px 15.5px;
}

.bb-chip-row { display: flex; gap: 7px; flex-wrap: wrap; }

.bb-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--bb-input-border);
  color: #6B7A5E;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 12.5px;
  font-family: inherit;
  transition: 150ms ease;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.bb-chip input {
  position: absolute;
  opacity: 0;
}
.bb-chip:has(input:checked) {
  background: var(--bb-leaf);
  color: #fff;
  font-weight: 800;
  border-color: var(--bb-leaf);
}
.bb-chip:has(input:checked)::after { content: " ✓"; }

/* Larger chip used in the "register food" sheet (when / reaction rows). */
.bb-chip--md { padding: 8px 16px; font-size: 13px; }

/* Custom free-text allergy tags ("+ Otra"): the pre-existing/added tag list,
   plus the reveal row (text input + add button) used to create a new one. */
.bb-tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }

.bb-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bb-leaf);
  color: #fff;
  border-radius: 999px;
  padding: 7px 10px 7px 14px;
  font-weight: 800;
  font-size: 12.5px;
}
.bb-tag button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.bb-other-row { display: flex; gap: 7px; align-items: center; margin-top: 8px; }
.bb-other-row[hidden] { display: none; }
.bb-other-row .bb-input { flex: 1; min-width: 0; }
.bb-other-row .bb-row-action { flex: none; }

.bb-check-square {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border-radius: 7px;
  border: 1.5px solid var(--bb-input-border);
  background: #fff;
  cursor: pointer;
  line-height: 1;
}
.bb-check-square input {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.bb-check-square::after {
  content: "✓";
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
}
.bb-check-square:has(input:checked) {
  background: var(--bb-leaf);
  border-color: var(--bb-leaf);
}
.bb-check-square:has(input:checked)::after { opacity: 1; }

/* ==========================================================================
   Pills / badges
   ========================================================================== */

.bb-logo-tile {
  width: 116px;
  height: 116px;
  border-radius: 36px;
  background: #fff;
  border: 4px solid #CDE3C3;
  box-shadow: 0 8px 26px rgba(53,80,47,.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bb-logo-tile img { width: 72px; height: auto; }
.bb-logo-tile--sm {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: var(--bb-mint);
  border: 0;
  box-shadow: none;
}

.bb-avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-avatar--lg {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  background: #fff;
  border: 4px solid #CDE3C3;
  box-shadow: 0 6px 20px rgba(53,80,47,.12);
  font-size: 52px;
}
.bb-avatar--md {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  background: #fff;
  border: 4px solid #CDE3C3;
  box-shadow: 0 4px 14px rgba(53,80,47,.12);
  font-size: 46px;
}
.bb-avatar--sm {
  width: 56px;
  height: 56px;
  background: #CDE3C3;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  font-size: 30px;
}

.bb-feature-pill {
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bb-green-link);
  box-shadow: 0 1px 3px rgba(62,112,67,.1);
  white-space: nowrap;
}

.bb-streak-pill {
  display: inline-block;
  background: var(--bb-streak);
  border-radius: 14px;
  padding: 7px 12px;
  font-weight: 800;
  color: #8A6A12;
  font-size: 14px;
}

.bb-age-pill {
  display: inline-block;
  background: var(--bb-streak);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 800;
  color: #8A6A12;
  white-space: nowrap;
}
.bb-age-pill[hidden] { display: none; }

.bb-dots { display: flex; justify-content: center; gap: 6px; }
.bb-dot { width: 7px; height: 7px; border-radius: 4px; background: #CBDDBC; }
.bb-dot.is-active { width: 26px; height: 7px; background: var(--bb-leaf); }

/* ==========================================================================
   Cards
   ========================================================================== */

.bb-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--bb-card-shadow);
}

.bb-home-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 64px 22px 10px;
}
.bb-home-header__text { flex: 1; }

.bb-hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #8FBC6E, #5D9C60);
  border-radius: 24px;
  padding: 18px 20px;
  color: #fff;
  margin: 8px 22px 14px;
}
.bb-hero-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.bb-hero-card__label { font-size: 15px; font-weight: 700; opacity: .9; margin: 0; }
.bb-hero-card__food { font-size: 28px; font-weight: 800; line-height: 1.1; margin: 2px 0 8px; }
.bb-hero-card__cta {
  display: inline-block;
  background: #fff;
  color: #3E7043;
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.bb-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 22px;
}

.bb-cat-card {
  display: block;
  text-decoration: none;
  border-radius: 22px;
  padding: 16px 14px 14px;
}
.bb-cat-card__emoji { display: block; font-size: 30px; }
.bb-cat-card__name { display: block; font-weight: 800; font-size: 16px; color: var(--cat-text); margin-top: 4px; }
.bb-cat-card__meta { display: block; font-size: 12px; font-weight: 700; color: var(--cat-meta); }
.bb-cat-card .bb-progress { margin-top: 8px; }

.bb-gamify-card {
  background: linear-gradient(135deg, #FFF7E0, #FFEFC2);
  border: 1.5px dashed #EBCB74;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bb-streak-card {
  background: var(--bb-streak);
  border-radius: 18px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bb-stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 9px 15px;
  box-shadow: 0 1px 3px rgba(62,112,67,.1);
  text-align: center;
}
.bb-stat-card__number { font-size: 19px; font-weight: 800; color: var(--bb-forest); line-height: 1; }
.bb-stat-card__label { font-size: 10px; font-weight: 700; color: var(--bb-muted); }

/* ==========================================================================
   Progress bars
   ========================================================================== */

@keyframes bb-fill {
  from { transform: scaleX(0); }
}

.bb-progress {
  height: 8px;
  background: rgba(255,255,255,.7);
  border-radius: 4px;
  overflow: hidden;
}
.bb-progress--lg { height: 10px; border-radius: 5px; }
.bb-progress--glass { background: rgba(255,255,255,.3); }
.bb-progress--dark-glass { background: rgba(255,255,255,.25); }

.bb-progress__fill {
  height: 100%;
  border-radius: inherit;
  /* Category cards define --cat-bar via a .bb-pal--* modifier; screens
     without one (streak bars on the category header / celebration screen)
     fall back to the streak-yellow fill used on both those screens. */
  background: var(--cat-bar, var(--bb-streak));
  transform-origin: left;
  animation: bb-fill .4s ease-out;
}

/* ==========================================================================
   Tab bar
   ========================================================================== */

.bb-tabbar {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bb-forest);
  border-radius: 999px;
  padding: 8px;
  display: flex;
  gap: 4px;
  z-index: 40;
}

.bb-tabbar__item {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 20px;
  color: #9DB894;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.bb-tabbar__item.is-active { background: var(--bb-leaf-light); }

.bb-fab {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: inline-block;
  border: 0;
  cursor: pointer;
  background: var(--bb-cta);
  border-radius: 999px;
  padding: 14px 30px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 6px 18px var(--bb-cta-shadow);
}

/* ==========================================================================
   Checklist rows (category food list)
   ========================================================================== */

.bb-cat-header {
  background: var(--bb-leaf);
  color: #fff;
  padding: 64px 22px 18px;
  border-radius: 0 0 30px 30px;
}
.bb-cat-header__counter {
  background: #fff;
  color: #3E7043;
  border-radius: 14px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 15px;
}
.bb-cat-header .bb-back {
  background: rgba(255,255,255,.25);
  color: #fff;
}

.bb-food-row {
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--bb-card-shadow);
}
.bb-food-row--warn {
  background: var(--bb-warn-bg);
  border: 1.5px solid var(--bb-warn-border);
  box-shadow: none;
}

.bb-food-row__check {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-food-row__check--done {
  background: var(--bb-leaf);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.bb-food-row__check--empty {
  border: 2.5px solid #D9E4CC;
}
.bb-food-row__check--warn {
  background: var(--bb-stars);
  font-size: 14px;
}

.bb-food-row__stars {
  font-size: 13px;
  color: var(--bb-stars);
  letter-spacing: 1px;
}
.bb-food-row__stars .dim { opacity: .25; }

.bb-nutrient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
.bb-nutrient-chip {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
  color: var(--bb-green-link);
  background: #E8F2DC;
}
.bb-nutrient-chip[data-nutrient="iron"] { color: #B4562F; background: #FDE8DC; }
.bb-nutrient-chip[data-nutrient="folate"] { color: #557A34; background: #E8F2DC; }
.bb-nutrient-chip[data-nutrient="choline"] { color: #3F6699; background: #E1EBF8; }

.bb-row-action {
  display: inline-block;
  background: #F1F6E8;
  border: 0;
  border-radius: 999px;
  padding: 6px 13px;
  font-weight: 800;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--bb-green-link);
  text-decoration: none;
  cursor: pointer;
}
.bb-row-action--white { background: #fff; color: #B08A2E; }

/* ==========================================================================
   Sheet (register-food bottom sheet, over <dialog>)
   ========================================================================== */

@keyframes bb-slide-up {
  from { transform: translateY(100%); }
}

.bb-sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 0;
  background: var(--bb-cream);
  border-radius: 28px 28px 0 0;
  padding: 10px 22px 34px;
  box-shadow: var(--bb-sheet-shadow);
  max-height: 92dvh;
  overflow-y: auto;
  box-sizing: border-box;
}
.bb-sheet[open] { animation: bb-slide-up .25s ease-out; }
.bb-sheet::backdrop {
  background: rgba(41,60,35,.45);
  backdrop-filter: blur(2px);
}

.bb-sheet__handle {
  width: 40px;
  height: 5px;
  background: #E2DFD2;
  border-radius: 3px;
  margin: 0 auto 14px;
}

.bb-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F6E8;
  color: #7B9A63;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.bb-sheet [data-action="modal#close"] {
  display: none;
}

.bb-food-tile {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--cat-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.bb-warn-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bb-warn-bg);
  border: 1.5px solid var(--bb-warn-border);
  border-radius: 14px;
  padding: 10px 13px;
  font-size: 11.5px;
  font-weight: 700;
  color: #8A6A12;
  line-height: 1.35;
}

/* ==========================================================================
   Faces (mood picker)
   ========================================================================== */

.bb-faces {
  background: #fff;
  border: 1.5px solid var(--bb-input-border);
  border-radius: 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bb-face {
  position: relative;
  text-align: center;
  transition: 150ms;
}
.bb-face input {
  position: absolute;
  opacity: 0;
}
.bb-face__emoji {
  font-size: 27px;
  filter: grayscale(1);
  opacity: .45;
  transition: 150ms;
}
.bb-face__label {
  display: none;
  font-size: 9px;
  font-weight: 800;
  color: var(--bb-leaf);
  margin-top: 1px;
}
.bb-face:has(input:checked) { transform: scale(1.25); }
.bb-face:has(input:checked) .bb-face__emoji { filter: none; opacity: 1; }
.bb-face:has(input:checked) .bb-face__label { display: block; }

/* ==========================================================================
   Celebration screen
   ========================================================================== */

@keyframes bb-fall {
  from { transform: translateY(-30px) rotate(var(--r, 0deg)); opacity: 0; }
  to { opacity: 1; }
}

.bb-confetti {
  position: absolute;
  transform: rotate(var(--r, 0deg));
  animation: bb-fall .6s ease-out;
}

.bb-celebrate__circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 68px;
  box-shadow: 0 10px 34px rgba(41,60,35,.28);
}

/* ==========================================================================
   Rules / profile sections
   ========================================================================== */

.bb-rule-card {
  border-radius: 22px;
  padding: 16px 18px;
}
.bb-rule-card__header { display: flex; align-items: center; gap: 10px; }
.bb-rule-card__tile {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}
.bb-rule-card__title { font-size: 17px; font-weight: 800; line-height: 1.15; }
.bb-rule-card__body {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cat-body, var(--cat-meta));
  margin-top: 10px;
}
.bb-rule-card__source {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--cat-meta);
  margin-top: 9px;
}
.bb-rule-card__chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.bb-rule-card__chip {
  background: #fff;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cat-text);
  white-space: nowrap;
}

.bb-section-card {
  border-radius: 20px;
  padding: 14px 16px;
}
.bb-section-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.bb-section-card__title { font-size: 14.5px; font-weight: 800; flex: 1; }
.bb-section-card__badge {
  background: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--cat-text);
}

/* Profile screen (4j) — white rows inside .bb-section-card (allergy /
   ban entries) and the favorites chip row. */
.bb-section-card__rows { display: flex; flex-direction: column; gap: 7px; }
.bb-section-card__row {
  background: #fff;
  border-radius: 14px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bb-section-card__row-icon { font-size: 20px; }
.bb-section-card__row-title { font-size: 13.5px; font-weight: 800; color: var(--cat-text); line-height: 1.1; }
.bb-section-card__row-detail { font-size: 11px; font-weight: 600; color: var(--cat-meta); }

.bb-section-card__chips { display: flex; gap: 7px; flex-wrap: wrap; }
.bb-section-card__chip {
  background: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cat-text);
  white-space: nowrap;
}

.bb-badge { text-align: center; }
.bb-badge-row { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.bb-badge__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}
.bb-badge__label {
  font-size: 9px;
  font-weight: 800;
  color: var(--cat-text);
  margin-top: 3px;
}
.bb-badge.is-locked { opacity: .4; }

/* ==========================================================================
   Category / card color palettes
   ========================================================================== */

.bb-pal--frutas   { --cat-bg:#FFE3D0; --cat-text:#8A4B2D; --cat-meta:#C0764F; --cat-bar:#F08B4F; }
.bb-pal--verduras { --cat-bg:#DDEED2; --cat-text:#3E5F2E; --cat-meta:#7B9A63; --cat-bar:#7FB35A; --cat-body: var(--bb-on-green); }
.bb-pal--cereales { --cat-bg:#FBEFC9; --cat-text:#7C5F1C; --cat-meta:#B49239; --cat-bar:#E2B93B; --cat-body:#96803B; }
.bb-pal--grasas   { --cat-bg:#E2EBD2; --cat-text:#4A5F2A; --cat-meta:#88996A; --cat-bar:#93A664; }
.bb-pal--prot_vegetal { --cat-bg:#F3E4D3; --cat-text:#6E4E2C; --cat-meta:#A9825B; --cat-bar:#B78B54; }
.bb-pal--prot_animal  { --cat-bg:#F8DFDA; --cat-text:#84402F; --cat-meta:#BC7361; --cat-bar:#D96B4F; --cat-body:#A06450; }
.bb-pal--durazno  { --cat-bg:#FFF0DC; --cat-text:#8A4B2D; --cat-meta:#9A6A48; --cat-bar:#F08B4F; }
.bb-pal--otros    { --cat-bg:#DDEED2; --cat-text:#3E5F2E; --cat-meta:#7B9A63; --cat-bar:#7FB35A; --cat-body: var(--bb-on-green); }
.bb-cat-card, .bb-rule-card, .bb-section-card { background:var(--cat-bg); color:var(--cat-text); }

/* ==========================================================================
   Utilities
   ========================================================================== */

.bb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bb-text-center { text-align: center; }
a article {
  cursor: pointer;
  transition: transform 0.1s ease;
}

a article:hover {
  transform: translateY(-1px);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Ocultar todos los breakpoints por defecto */
.bp-xs, .bp-sm, .bp-md, .bp-lg { display: none; }
      
/* Mostrar solo el breakpoint actual */
@media (max-width: 47.9375em) { .bp-xs { display: inline; } }
@media (min-width: 48em) and (max-width: 63.9375em) { .bp-sm { display: inline; } }
@media (min-width: 64em) and (max-width: 74.9375em) { .bp-md { display: inline; } }
@media (min-width: 75em) { .bp-lg { display: inline; } }
/* app/assets/stylesheets/floating_footer.css */

/* Footer flotante en esquina inferior derecha */
.floating-footer {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1000;
  
  /* Estilos base de PicoCSS */
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  
  /* Tamaño y espaciado */
  padding: 0.5rem 1rem;
  min-width: 400px;
  max-width: 600px;
  
  /* Transiciones suaves */
  transition: all 0.3s ease;
  opacity: 0.9;
}

.floating-footer:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Contenido del footer */
.floating-footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  text-align: center;
}

.floating-footer-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.floating-footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}

.floating-footer-links a:hover {
  background-color: var(--primary-hover);
  color: var(--primary-inverse);
}

/* Versión compacta del footer */
.floating-footer.compact {
  padding: 0.4rem;
  min-width: auto;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.floating-footer.compact .floating-footer-content {
  display: none;
}

.floating-footer.compact .footer-toggle {
  display: block;
  font-size: 1.2rem;
}

.footer-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

/* Responsive: en móviles hacer más pequeño */
@media (max-width: 768px) {
  .floating-footer {
    bottom: 4rem; /* Espacio para navegación móvil */
    right: 0.5rem;
    min-width: 150px;
    font-size: 0.7rem;
  }
  
  .floating-footer-links a {
    font-size: 0.65rem;
    padding: 0.15rem 0.3rem;
  }
}

/* Tema oscuro */
@media (prefers-color-scheme: dark) {
  .floating-footer {
    background: var(--card-background-color);
    border-color: var(--card-border-color);
  }
}

/* Variante para Hotwire Native */
.native-app .floating-footer {
  bottom: 5rem; /* Más espacio en apps nativas */
}

/* Animación de entrada */
@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 0.9;
  }
}

.floating-footer {
  animation: slideInFromRight 0.5s ease-out;
}
/* ==========================================================================
   BahBah Landing v2 — "Frutal juguetona"
   Canonical reference: design_handoff_bahbah_redesign_landing/screenshots
   5a-landing-light.png / 5b-landing-dark.png (+ README "Landing page" section).
   Scoped entirely under .lv-page — the landing keeps living on the legacy
   `application` layout (Pico CDN) and isolates itself with its own tokens,
   exactly like the previous landing.css did.
   ========================================================================== */

/* ==========================================================================
   Tokens — light values live on .lv-page; dark values apply BOTH via the OS
   media query AND via an explicit [data-theme] toggle set on <html> by
   theme_controller.js. [data-theme="light"] re-declares light values so an
   explicit user choice always wins over prefers-color-scheme.
   ========================================================================== */

.lv-page {
  --lv-bg: #FFFDF7;
  --lv-band: #F5F9EF;
  --lv-card: #FEFEFE;
  --lv-text: #35502F;
  --lv-muted: #9AA88F;
  --lv-mint: #DDEED2;
  --lv-peach: #FFF0DC;
  --lv-yellow: #FBEFC9;
  --lv-rose: #F8DFDA;
  --lv-on-rose: #84402F;
  --lv-on-yellow: #7C5F1C;
  --lv-on-peach: #8A4B2D;

  /* Unchanged in dark mode (per README token map) */
  --lv-orange: #F08B4F;
  --lv-orange-shadow: rgba(240, 139, 79, .35);
  --lv-leaf: #7FB35A;
  --lv-leaf-light: #8FBC6E;
  --lv-link: #557A34;
  --lv-frame: #2A3A20;
  --lv-chip: #FFFDF7;
  --lv-streak-chip: #FFE9A8;
  --lv-bar-track: rgba(0, 0, 0, .08);

  --lv-font: "Baloo 2", -apple-system, sans-serif;
  --lv-radius-band: 48px;
  --lv-radius-card: 24px;
  --lv-shadow-card: 0 4px 20px rgba(53, 80, 47, .08);
  --lv-shadow-cta: 0 6px 18px var(--lv-orange-shadow);
}

@media (prefers-color-scheme: dark) {
  .lv-page {
    --lv-bg: #141B10;
    --lv-band: #1B2513;
    --lv-card: #26311C;
    --lv-text: #EDF3E3;
    --lv-muted: #8CA080;
    --lv-mint: #2A3A20;
    --lv-peach: #3A3120;
    --lv-yellow: #3B331A;
    --lv-rose: #37211C;
    --lv-on-rose: #F2B7A6;
    --lv-on-yellow: #EAD595;
    --lv-on-peach: #F2C6A6;
    --lv-link: #8FBC6E;
    --lv-bar-track: rgba(255, 255, 255, .14);
    --lv-shadow-card: 0 4px 20px rgba(0, 0, 0, .35);
  }
}

[data-theme="dark"] .lv-page {
  --lv-bg: #141B10;
  --lv-band: #1B2513;
  --lv-card: #26311C;
  --lv-text: #EDF3E3;
  --lv-muted: #8CA080;
  --lv-mint: #2A3A20;
  --lv-peach: #3A3120;
  --lv-yellow: #3B331A;
  --lv-rose: #37211C;
  --lv-on-rose: #F2B7A6;
  --lv-on-yellow: #EAD595;
  --lv-on-peach: #F2C6A6;
  --lv-link: #8FBC6E;
  --lv-bar-track: rgba(255, 255, 255, .14);
  --lv-shadow-card: 0 4px 20px rgba(0, 0, 0, .35);
}

[data-theme="light"] .lv-page {
  --lv-bg: #FFFDF7;
  --lv-band: #F5F9EF;
  --lv-card: #FEFEFE;
  --lv-text: #35502F;
  --lv-muted: #9AA88F;
  --lv-mint: #DDEED2;
  --lv-peach: #FFF0DC;
  --lv-yellow: #FBEFC9;
  --lv-rose: #F8DFDA;
  --lv-on-rose: #84402F;
  --lv-on-yellow: #7C5F1C;
  --lv-on-peach: #8A4B2D;
  --lv-link: #557A34;
  --lv-bar-track: rgba(0, 0, 0, .08);
  --lv-shadow-card: 0 4px 20px rgba(53, 80, 47, .08);
}

/* ==========================================================================
   Base / page scope
   ========================================================================== */

.lv-page {
  font-family: var(--lv-font);
  color: var(--lv-text);
  background: var(--lv-bg);
  /* Break out of Pico's .container */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: hidden;
  transition: background-color .2s ease, color .2s ease;
}

.lv-page h1, .lv-page h2, .lv-page h3, .lv-page h4 {
  font-family: var(--lv-font);
  font-weight: 800;
  margin: 0;
}

.lv-page p { margin: 0; }
.lv-page ul { list-style: none; margin: 0; padding: 0; }
.lv-page a { text-decoration: none; }

.lv-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   Reveal-on-scroll (Stimulus `reveal` controller) — carried over from the
   previous landing.css so the entrance animations keep working.
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: .2s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: .3s; }

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Floating nav pill
   ========================================================================== */

.lv-nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .5rem .75rem .5rem .5rem;
  background: var(--lv-card);
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .14);
  backdrop-filter: blur(12px);
  transition: top .4s cubic-bezier(.34, 1.56, .64, 1), background-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.lv-nav.visible {
  box-shadow: 0 6px 28px rgba(0, 0, 0, .2);
}

.lv-nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--lv-text);
  font-weight: 800;
  font-size: .95rem;
}

.lv-nav-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lv-chip);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.lv-nav-brand-icon img { width: 22px; height: 22px; object-fit: contain; }

.lv-nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.lv-nav-link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--lv-link);
  transition: opacity .15s ease;
}

.lv-nav-link:hover { opacity: .7; }

.lv-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem 1.1rem;
  background: var(--lv-orange);
  color: #fff;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease;
}

.lv-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--lv-shadow-cta);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.lv-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--lv-mint) 0%, var(--lv-bg) 65%);
  padding: 7rem 0 4rem;
  transition: background .2s ease;
}

.lv-hero-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  gap: 48px;
}

.lv-hero-copy { max-width: 700px; }

.lv-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  background: var(--lv-card);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--lv-text);
  box-shadow: var(--lv-shadow-card);
  margin-bottom: 1.25rem;
}

.lv-hero-title {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--lv-text);
  margin-bottom: 1rem;
}

.lv-hero-sub {
  font-size: 17px;
  font-weight: 600;
  color: var(--lv-muted);
  line-height: 1.55;
  margin-bottom: .85rem;
}

.lv-sparkle {
  font-size: 15px;
  font-weight: 800;
  color: var(--lv-orange);
  margin-bottom: 1.75rem;
}

.lv-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.lv-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.85rem;
  border-radius: 50px;
  font-family: var(--lv-font);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.lv-btn--primary {
  background: var(--lv-orange);
  color: #fff;
  box-shadow: var(--lv-shadow-cta);
}

.lv-btn--primary:hover { transform: translateY(-2px); }

.lv-btn--outline {
  background: var(--lv-card);
  color: var(--lv-text);
  border: 2px solid var(--lv-text);
}

.lv-btn--outline:hover { transform: translateY(-2px); }

.lv-guides {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.lv-guides-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--lv-muted);
}

.lv-guide-chip {
  padding: .3rem .75rem;
  background: var(--lv-card);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--lv-link);
  box-shadow: var(--lv-shadow-card);
}

/* ==========================================================================
   Hero mockup (HTML/CSS phone — no PNG, so it adapts to dark mode)
   ========================================================================== */

.lv-mockup {
  display: flex;
  justify-content: center;
}

.lv-mockup-frame {
  width: 300px;
  background: var(--lv-frame);
  border-radius: 40px;
  padding: 10px;
  transform: rotate(3deg);
  box-shadow: 0 30px 60px rgba(20, 30, 15, .3);
}

.lv-mockup-screen {
  background: var(--lv-bg);
  border-radius: 32px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lv-mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lv-mockup-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lv-chip);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.lv-mockup-headline { flex: 1; min-width: 0; }

.lv-mockup-greeting {
  font-size: 14px;
  font-weight: 800;
  color: var(--lv-text);
}

.lv-mockup-count {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--lv-muted);
}

.lv-mockup-streak {
  padding: .25rem .55rem;
  background: var(--lv-streak-chip);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  /* Fixed dark text: this chip's background is intentionally theme-invariant
     (unchanged in dark mode), so it must not use the themed --lv-text color. */
  color: #5A4A1F;
  flex-shrink: 0;
}

.lv-mockup-card {
  background: linear-gradient(135deg, var(--lv-leaf-light) 0%, var(--lv-leaf) 100%);
  border-radius: 16px;
  padding: 14px;
  color: #fff;
}

.lv-mockup-card-label { font-size: 11px; font-weight: 700; opacity: .9; }
.lv-mockup-card-food { font-size: 19px; font-weight: 800; margin: 2px 0 8px; }

.lv-mockup-card-cta {
  display: inline-block;
  background: #fff;
  color: var(--lv-leaf);
  padding: .3rem .8rem;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
}

.lv-mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lv-mockup-tile {
  border-radius: 14px;
  padding: 10px;
}

.lv-mockup-tile--frutas { background: var(--lv-peach); color: var(--lv-on-peach); }
.lv-mockup-tile--verduras { background: var(--lv-mint); color: var(--lv-text); }
.lv-mockup-tile--cereales { background: var(--lv-yellow); color: var(--lv-on-yellow); }
.lv-mockup-tile--prot-animal { background: var(--lv-rose); color: var(--lv-on-rose); }

.lv-mockup-tile-emoji { display: block; font-size: 18px; }
.lv-mockup-tile-name { display: block; font-size: 11.5px; font-weight: 800; margin-top: 2px; }

.lv-mockup-bar {
  display: block;
  width: 100%;
  margin-top: 8px;
  height: 5px;
  border-radius: 3px;
  background: var(--lv-bar-track);
  overflow: hidden;
}

.lv-mockup-bar-fill { display: block; height: 100%; border-radius: 3px; }
.lv-mockup-tile--frutas .lv-mockup-bar-fill { width: 60%; background: #F08B4F; }
.lv-mockup-tile--verduras .lv-mockup-bar-fill { width: 45%; background: #7FB35A; }
.lv-mockup-tile--cereales .lv-mockup-bar-fill { width: 35%; background: #E2B93B; }
.lv-mockup-tile--prot-animal .lv-mockup-bar-fill { width: 70%; background: #D96B4F; }

/* ==========================================================================
   Section titles (shared: reglas, beneficios, cómo usar)
   ========================================================================== */

.lv-section {
  padding: 4.5rem 0;
}

.lv-section-title {
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  color: var(--lv-text);
  margin-bottom: .5rem;
}

.lv-section-sub {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--lv-muted);
  margin-bottom: 2.75rem;
}

/* ==========================================================================
   Las reglas de oro
   ========================================================================== */

.lv-rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lv-rule-card {
  border-radius: var(--lv-radius-card);
  padding: 28px;
}

.lv-rule-card--mint { background: var(--lv-mint); color: var(--lv-text); }
.lv-rule-card--peach { background: var(--lv-peach); color: var(--lv-on-peach); }

.lv-rule-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.lv-rule-card-tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--lv-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--lv-shadow-card);
}

.lv-rule-card-title { font-size: 19px; font-weight: 800; }

.lv-rule-card-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.lv-rule-card-list li {
  list-style: none;
  position: relative;
  padding: .3rem 0 .3rem 1.5rem;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.lv-rule-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .3rem;
  font-weight: 800;
  color: var(--lv-leaf);
}

.lv-rule-card-list strong { font-weight: 800; }

.lv-rule-card-source {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--lv-muted);
}

.lv-rule-card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--lv-on-peach);
  transition: opacity .15s ease;
}

.lv-rule-card-link:hover { opacity: .75; }

/* ==========================================================================
   Bands (full-bleed rounded sections — "evitar" / "cómo usar")
   ========================================================================== */

.lv-band {
  border-radius: var(--lv-radius-band);
  margin: 0 32px;
  padding: 3.5rem 0;
}

.lv-band .lv-container { padding: 0 32px; }

.lv-band--rose { background: var(--lv-rose); }
.lv-band--soft { background: var(--lv-band); }

.lv-band .lv-section-title { color: var(--lv-on-rose); }
.lv-band .lv-section-sub { color: var(--lv-muted); }
.lv-band--soft .lv-section-title { color: var(--lv-text); }
.lv-band--rose .lv-section-sub { color: var(--lv-on-rose); opacity: .75; }

/* ===== Avoid grid ===== */

.lv-avoid-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lv-avoid-card {
  background: var(--lv-card);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--lv-shadow-card);
  transition: transform .2s ease;
}

.lv-avoid-card:hover { transform: translateY(-3px); }

.lv-avoid-card-tile { display: block; font-size: 44px; line-height: 1; margin-bottom: .75rem; }

.lv-avoid-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--lv-on-rose);
  margin-bottom: .35rem;
}

.lv-avoid-card-body {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lv-on-rose);
  opacity: .85;
  line-height: 1.5;
}

/* ==========================================================================
   Beneficios
   ========================================================================== */

.lv-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lv-benefit-card {
  border-radius: 18px;
  padding: 1.5rem;
}

.lv-benefit-card--rose { background: var(--lv-rose); }
.lv-benefit-card--mint { background: var(--lv-mint); }
.lv-benefit-card--yellow { background: var(--lv-yellow); }
.lv-benefit-card--peach { background: var(--lv-peach); }

.lv-benefit-card-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lv-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: .85rem;
  box-shadow: var(--lv-shadow-card);
}

.lv-benefit-card-title { font-size: 15px; font-weight: 800; margin-bottom: .3rem; }
.lv-benefit-card-body { font-size: 12.5px; font-weight: 600; line-height: 1.5; opacity: .85; }

.lv-benefit-card--rose .lv-benefit-card-title,
.lv-benefit-card--rose .lv-benefit-card-body { color: var(--lv-on-rose); }

.lv-benefit-card--mint .lv-benefit-card-title,
.lv-benefit-card--mint .lv-benefit-card-body { color: var(--lv-text); }

.lv-benefit-card--yellow .lv-benefit-card-title,
.lv-benefit-card--yellow .lv-benefit-card-body { color: var(--lv-on-yellow); }

.lv-benefit-card--peach .lv-benefit-card-title,
.lv-benefit-card--peach .lv-benefit-card-body { color: var(--lv-on-peach); }

/* ==========================================================================
   Cómo usar
   ========================================================================== */

.lv-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.lv-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lv-leaf);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .85rem;
}

.lv-step-title { font-size: 16px; font-weight: 800; color: var(--lv-text); margin-bottom: .3rem; }
.lv-step-body { font-size: 13px; font-weight: 600; color: var(--lv-muted); line-height: 1.5; }

.lv-tips-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--lv-card);
  border-radius: var(--lv-radius-card);
  padding: 1.75rem;
  box-shadow: var(--lv-shadow-card);
}

.lv-tips-title { font-size: 15px; font-weight: 800; color: var(--lv-text); margin-bottom: .85rem; }

.lv-tips-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.lv-tips-list li {
  list-style: none;
  position: relative;
  padding: .3rem 0 .3rem 1.6rem;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lv-text);
}

.lv-tips-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .3rem;
  font-weight: 800;
  color: var(--lv-leaf);
}

.lv-tips-final {
  margin-top: .6rem;
  padding-top: .6rem;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--lv-orange);
}

/* ==========================================================================
   CTA final
   ========================================================================== */

.lv-cta-final {
  position: relative;
  overflow: hidden;
  max-width: 1116px;
  margin: 0 auto;
  border-radius: 36px;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #8FBC6E 0%, #5D9C60 100%);
  color: #fff;
}

.lv-cta-final::before,
.lv-cta-final::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  pointer-events: none;
}

.lv-cta-final::before { width: 180px; height: 180px; top: -60px; left: -60px; }
.lv-cta-final::after { width: 220px; height: 220px; bottom: -80px; right: -60px; }

.lv-cta-final-title {
  position: relative;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
}

.lv-cta-final-sub {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 2rem;
}

.lv-cta-final .lv-btn--primary { position: relative; }

/* ==========================================================================
   Footer
   ========================================================================== */

/* The old layout's floating footer duplicates the landing's own footer. */
body:has(.lv-page) .floating-footer { display: none !important; }

.lv-footer {
  padding: 2.5rem 0 3rem;
}

.lv-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--lv-mint);
}

.lv-footer-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.lv-footer-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lv-chip);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lv-footer-brand-icon img { width: 22px; height: 22px; object-fit: contain; }

.lv-footer-name { font-size: 14px; font-weight: 800; color: var(--lv-text); }
.lv-footer-tagline { font-size: 11px; font-weight: 600; color: var(--lv-muted); }

.lv-footer-links {
  display: flex;
  gap: 1.5rem;
}

.lv-footer-links a {
  font-size: 13px;
  font-weight: 800;
  color: var(--lv-link);
}

.lv-footer-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--lv-muted);
  text-align: right;
}

/* ==========================================================================
   Responsive — breakpoints at 900px (hero → 1 col) and 600px (grids 4 → 2 → 1)
   ========================================================================== */

@media (max-width: 900px) {
  .lv-container { padding: 0 24px; }

  .lv-hero { padding: 6.5rem 0 3rem; }
  .lv-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .lv-hero-copy { max-width: none; text-align: center; margin: 0 auto; }
  .lv-cta-row { justify-content: center; }
  .lv-guides { justify-content: center; }
  .lv-hero-title { font-size: 42px; }
  .lv-mockup-frame { width: 240px; }

  .lv-band { margin: 0 20px; }
  .lv-avoid-grid { grid-template-columns: 1fr 1fr; }
  .lv-benefits-grid { grid-template-columns: 1fr 1fr; }
  .lv-steps { grid-template-columns: 1fr 1fr; gap: 32px 20px; }

  .lv-cta-final-title { font-size: 28px; }
}

@media (max-width: 600px) {
  .lv-nav { gap: .75rem; padding: .4rem .6rem .4rem .4rem; }
  .lv-nav-links { gap: .6rem; }
  .lv-nav-link:not(.lv-nav-cta) { display: none; }

  .lv-hero-title { font-size: 34px; }
  .lv-hero-sub { font-size: 15px; }

  .lv-avoid-grid { grid-template-columns: 1fr; }
  .lv-benefits-grid { grid-template-columns: 1fr; }
  .lv-steps { grid-template-columns: 1fr; gap: 24px; }

  .lv-section-title { font-size: 26px; }
  .lv-cta-final { padding: 3rem 1.5rem; border-radius: 28px; }
  .lv-cta-final-title { font-size: 24px; }

  .lv-footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .lv-footer-meta { text-align: left; }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */


details ul {
  list-style: none !important;
  padding-left: 0 !important;
}

details ul li {
  list-style: none !important;
  margin-left: 0;
}


.fa-square-check {
  animation: checkAnimation 0.3s ease-in-out;
}

@keyframes checkAnimation {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Alertas flotantes */
.alerts-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  pointer-events: none;
}

.floating-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  animation: slideInAlert 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.floating-alert.alert-dismissing {
  animation: slideOutAlert 0.3s ease-in forwards;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  font-weight: 500;
}

.alert-content i {
  font-size: 18px;
  flex-shrink: 0;
}

.alert-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  color: inherit;
  opacity: 0.7;
}

.alert-close:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.2);
}

/* Tipos de alerta */
.alert-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-left: 4px solid #34d399;
}

.alert-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-left: 4px solid #f87171;
}

.alert-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-left: 4px solid #fbbf24;
}

.alert-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-left: 4px solid #60a5fa;
}

/* Animaciones */
@keyframes slideInAlert {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutAlert {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .alerts-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .floating-alert {
    padding: 14px 16px;
    font-size: 14px;
  }

  .alert-content i {
    font-size: 16px;
  }
}


