/* ============================================
   ONA Club · App v2 (diseño de octubre 2026)
   Barra inferior nueva, Inicio, tiras de días, ticket QR y portadas
   (Actividades, Eventos, Comunidad, Mi perfil). Se carga la última.
   ============================================ */

/* ── Barra inferior: Actividades · Eventos · Inicio · Comunidad · Mi perfil ── */
.bnav {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 460px;
    height: 68px;
    padding: 0 6px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 18px 44px rgba(94, 79, 63, 0.16), 0 3px 10px rgba(94, 79, 63, 0.06);
    z-index: var(--z-bottom-nav, 210);
}
.bnav__item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--color-primary-dark);
    text-decoration: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.bnav__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.bnav__icon svg { stroke-width: 1.6; }
.bnav__label {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-secondary, #7a6a5b);
}
.bnav__item:active .bnav__icon { transform: scale(.88); }

/* Activo: disco elevado, más grande y en relieve */
.bnav__item.is-active {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    margin: -22px 2px 0;
    align-self: flex-start;
    border-radius: 50%;
    color: #fff;
    background:
        radial-gradient(120% 90% at 30% 18%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%),
        linear-gradient(160deg, #a38d76 0%, #8a7762 45%, #6e5d4b 100%);
    border: 4px solid var(--bg-cream, #f7f1ea);
    box-shadow:
        0 14px 26px rgba(94, 79, 63, .36),
        0 4px 8px rgba(94, 79, 63, .18),
        inset 0 2px 1px rgba(255, 255, 255, .35),
        inset 0 -5px 10px rgba(46, 36, 27, .28);
    animation: bnavPop .45s cubic-bezier(.34, 1.56, .64, 1);
}
.bnav__item.is-active .bnav__icon svg { width: 27px; height: 27px; stroke-width: 1.8; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); }
.bnav__item.is-active .bnav__label {
    color: #fff;
    font-size: 10px;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .02em;
    text-transform: none;
    font-weight: 600;
}
@keyframes bnavPop {
    0% { transform: translateY(10px) scale(.82); }
    100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .bnav__item.is-active { animation: none; }
}

/* Globo de no leídos (Comunidad) */
.bnav__badge {
    position: absolute;
    top: -5px;
    right: -9px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border: 2px solid #fff;
    display: none;
}
.bnav__badge.is-on { display: block; }
.bnav__item.is-active .bnav__badge { border-color: #8a7762; }

/* Pantallas muy estrechas: etiquetas algo más pequeñas */
@media (max-width: 360px) {
    .bnav__label { font-size: 8px; letter-spacing: .03em; }
    .bnav__item.is-active { width: 70px; height: 70px; }
    /* Inicio: «Ver ubicaciones» pasa a dos líneas en vez de pisar la temperatura */
    .hv2-weather__temp { font-size: 21px; }
    .hv2-weather__map { white-space: normal; text-align: left; line-height: 1.2; font-size: 12.5px; }
    .hv2-ring { padding: 12px 6px; }
    .hv2-ring .gauge { width: 104px !important; height: 104px !important; }
    .hv2-ring__title { font-size: 10px; letter-spacing: .14em; }
    .hv2-ring__foot { gap: 5px; }
    .hv2-ring__foot > span + span { padding-left: 5px; }
}

/* ── Piezas comunes ── */
.hv2-card {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(94, 79, 63, .07), 0 1px 3px rgba(94, 79, 63, .05);
}
.hv2-skel { min-height: 196px; background: linear-gradient(100deg, rgba(255,255,255,.6) 30%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.6) 70%); background-size: 300% 100%; animation: hv2Shine 1.4s linear infinite; }
@keyframes hv2Shine { to { background-position: -150% 0; } }

.gauge { position: relative; margin: 0 auto; }
.gauge svg { width: 100%; height: 100%; display: block; }
.gauge__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 6px; }
.gauge__in b { font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1; color: var(--text-heading); }
.gauge__in small { margin-top: 6px; font-size: 10px; letter-spacing: .08em; font-weight: 600; color: var(--text-secondary); }

/* ── Inicio v2 ── */
.hv2 { display: flex; flex-direction: column; gap: 14px; }
.hv2-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.hv2-head__hello {
    margin: 0; font-family: var(--font-display); font-weight: 400;
    font-size: clamp(28px, 8.4vw, 40px); line-height: 1.04; color: var(--text-heading); letter-spacing: -.01em;
}
.hv2-head__hello em { font-style: italic; font-weight: 500; color: #7d6853; font-size: 1.22em; }
.hv2-qr {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 12px 9px; border-radius: 22px; border: 1px solid rgba(255,255,255,.95);
    background: rgba(255,255,255,.85); box-shadow: 0 10px 26px rgba(94,79,63,.10); cursor: pointer;
    transition: transform .2s ease;
}
.hv2-qr:active { transform: scale(.96); }
.hv2-qr__code { width: 76px; height: 76px; display: block; background: #f4ede4; border-radius: 6px; overflow: hidden; }
.hv2-qr__code img, .hv2-qr__code canvas { width: 76px !important; height: 76px !important; display: block; }
.hv2-qr__label { font-size: 10.5px; letter-spacing: .28em; font-weight: 600; color: var(--text-secondary); }

.hv2-weather { display: flex; align-items: center; padding: 10px 10px 10px 10px; gap: 6px; }
.hv2-weather__now { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding-right: 8px; border-right: 1px solid rgba(94,79,63,.12); }
.hv2-weather__art { display: flex; }
.hv2-weather__city { font-size: 14px; color: var(--text-heading); font-weight: 500; }
.hv2-weather__temp { font-family: var(--font-display); font-size: 25px; line-height: 1.1; color: var(--text-heading); white-space: nowrap; }
.hv2-weather__temp span { color: var(--text-muted); }
.hv2-weather__map {
    flex: 0 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; white-space: nowrap;
    font: inherit; font-size: 13px; color: var(--text-secondary); cursor: pointer; padding: 10px 2px 10px 6px;
}
.hv2-weather__map svg:first-child { color: #8a7762; }

.hv2-rings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hv2-ring {
    display: flex; flex-direction: column; align-items: center; padding: 14px 8px; cursor: pointer; min-width: 0;
    font: inherit; color: inherit; text-align: center;
}
.hv2-ring .gauge { width: 118px !important; height: 118px !important; }
.hv2-ring__title { margin-top: -6px; font-size: 10.5px; letter-spacing: .22em; font-weight: 600; color: var(--text-secondary); }
.hv2-ring__foot { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; width: 100%; }
.hv2-ring__foot > span { display: flex; align-items: center; gap: 5px; color: #8a7762; min-width: 0; }
.hv2-ring__foot > span > svg { flex: 0 0 auto; width: 16px; height: 16px; }
.hv2-ring__foot > span + span { padding-left: 7px; border-left: 1px solid rgba(94,79,63,.12); }
.hv2-ring__foot i { display: flex; flex-direction: column; font-style: normal; font-size: 10.5px; min-width: 0; color: var(--text-secondary); text-align: left; line-height: 1.15; }
.hv2-ring__foot i b { font-family: var(--font-display); font-size: 17px; color: var(--text-heading); font-weight: 500; }
.hv2-ring__cta { font-size: 13px; color: #7d6853; font-weight: 600; gap: 2px !important; }

.hv2-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 4px; }
.hv2-stats > button {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 4px; border: 0; background: none;
    font: inherit; color: #8a7762; cursor: pointer; min-width: 0;
}
.hv2-stats > button + button { border-left: 1px solid rgba(94,79,63,.10); }
.hv2-stats b { font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.1; color: var(--text-heading); }
.hv2-stats span { font-size: 9.5px; letter-spacing: .12em; font-weight: 600; color: var(--text-secondary); text-align: center; }
.hv2-stats__reward .hv2-stats__rname { font-size: 15px; line-height: 1.15; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hv2-stats__reward span { font-size: 9.5px; letter-spacing: .04em; }

.hv2-classes { padding: 14px 12px 12px; }
.hv2-sec { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 10px; }
.hv2-sec__title { margin: 0; font-size: 12px; letter-spacing: .3em; font-weight: 600; color: var(--text-secondary); }
.hv2-sec__more { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; color: var(--text-heading); text-decoration: none; }
.hv2-day { margin-top: 10px; min-height: 96px; }
.hv2-day__empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 90px; color: var(--text-muted); font-size: 14px; }
.hv2-day__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.hv2-day__track::-webkit-scrollbar { display: none; }
.hv2-cls {
    flex: 0 0 92%; scroll-snap-align: start; display: flex; align-items: stretch; gap: 0; padding: 0; overflow: hidden;
    border: 1px solid rgba(94,79,63,.08); border-radius: 18px; background: #fbf7f2; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.hv2-day__track .hv2-cls:only-child { flex-basis: 100%; }
.hv2-cls__img { flex: 0 0 38%; min-height: 112px; background: #e9dfd2 center/cover no-repeat; }
.hv2-cls__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 12px; min-width: 0; }
.hv2-cls__body b { font-family: var(--font-display); font-size: 19px; font-weight: 500; line-height: 1.15; color: var(--text-heading); }
.hv2-cls__body span { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.3; color: var(--text-secondary); }
.hv2-cls__body span svg { flex: 0 0 auto; margin-top: 1px; color: #8a7762; }
.hv2-cls__body em { font-style: normal; color: #4f8a5b; font-weight: 600; }
.hv2-cls__go { align-self: center; flex: 0 0 auto; margin-right: 10px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--text-heading); box-shadow: 0 2px 6px rgba(94,79,63,.08); }

.hv2-event {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%;
    min-height: 168px; padding: 20px 20px 18px; border: 0; border-radius: 24px; overflow: hidden; cursor: pointer; text-align: left;
    color: #fff; font: inherit;
    background: linear-gradient(90deg, rgba(43,33,24,.88) 0%, rgba(43,33,24,.55) 55%, rgba(43,33,24,.2) 100%), var(--bg, linear-gradient(135deg, #6f5c4a, #3b3027)) center/cover no-repeat;
    box-shadow: 0 14px 30px rgba(43,33,24,.22);
}
.hv2-event__eyebrow { font-size: 11px; letter-spacing: .26em; font-weight: 600; opacity: .9; }
.hv2-event__title { font-family: var(--font-display); font-size: clamp(25px, 7vw, 32px); line-height: 1.08; }
.hv2-event__title em { font-style: italic; }
.hv2-event__btn { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--text-heading); font-size: 14px; font-weight: 600; }

.hv2-armario { display: flex; flex-direction: column; gap: 12px; }
.hv2-armario__hero {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; min-height: 200px; padding: 22px 20px;
    border: 0; border-radius: 24px; cursor: pointer; text-align: left; font: inherit; color: var(--text-heading);
    background: linear-gradient(90deg, rgba(244,236,226,.97) 0%, rgba(244,236,226,.86) 46%, rgba(244,236,226,0) 78%), var(--bg, linear-gradient(135deg, #efe5d8, #d9c9b4)) right center/cover no-repeat;
    box-shadow: 0 10px 26px rgba(94,79,63,.10);
}
.hv2-armario__eyebrow { font-size: 11px; letter-spacing: .3em; font-weight: 600; color: var(--text-secondary); }
.hv2-armario__title { font-family: var(--font-display); font-size: clamp(25px, 7vw, 32px); line-height: 1.08; }
.hv2-armario__title em { font-style: italic; color: var(--brown-ink); }
.hv2-armario__text { max-width: 58%; font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.hv2-armario__btn { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; background: #7d6853; color: #fff; font-size: 13.5px; font-weight: 600; }
.hv2-armario__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hv2-prod { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.hv2-prod__img { aspect-ratio: 3 / 4; border-radius: 14px; background: #ece2d6 center/cover no-repeat; }
.hv2-prod__img:not([style]) {
    background: #ece2d6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7762' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / 28px no-repeat;
}
.hv2-prod__name { font-size: 11.5px; color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv2-prod__price { font-size: 12px; font-weight: 700; color: #7d6853; }

/* ── Tira de días con flechas: el elegido crece y se centra (img 13) ── */
.dstrip { display: flex; align-items: center; gap: 4px; }
.dstrip__arrow {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center;
    background: #f1e9df; color: var(--text-heading); cursor: pointer; transition: opacity .2s ease, transform .15s ease;
}
.dstrip__arrow:active { transform: scale(.9); }
.dstrip__arrow:disabled { opacity: .35; cursor: default; }
.dstrip__track {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity;
    scrollbar-width: none; padding: 10px 14px 18px;
}
.dstrip__track::-webkit-scrollbar { display: none; }
.dstrip__day {
    flex: 0 0 auto; width: 46px; height: 62px; scroll-snap-align: center; border-radius: 15px; border: 1px solid rgba(94,79,63,.08);
    background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer;
    color: var(--text-heading); font: inherit; position: relative;
    transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), background .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.dstrip__dow { font-size: 9.5px; letter-spacing: .08em; color: var(--text-secondary); font-weight: 600; }
.dstrip__num { font-family: var(--font-display); font-size: 21px; line-height: 1.05; font-weight: 500; }
.dstrip__dot { width: 5px; height: 5px; border-radius: 50%; background: transparent; margin-top: 2px; }
.dstrip__day.has-dot .dstrip__dot { background: #8a7762; }
.dstrip__day[data-dist="2"] { transform: scale(.94); opacity: .9; }
.dstrip__day[data-dist="3"] { transform: scale(.86); opacity: .62; }
.dstrip__day.is-active {
    transform: scale(1.14); z-index: 1; color: #fff; border-color: transparent;
    background: var(--grad-primary);
    box-shadow: 0 4px 9px rgba(94,79,63,.24), inset 0 1px 0 rgba(255,255,255,.3);
}
.dstrip__day.is-active .dstrip__dow { color: rgba(255,255,255,.85); }
.dstrip__day.is-active .dstrip__dot { background: #fff !important; }
@media (prefers-reduced-motion: reduce) { .dstrip__day { transition: none; } }

/* ── QR tipo ticket (img 12) ── */
.qrt {
    position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center;
    background: rgba(20, 15, 11, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .22s ease;
}
.qrt.is-open { opacity: 1; }
.qrt__card {
    width: 100%; max-width: 460px; max-height: 94vh; overflow-y: auto; padding: 14px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    border-radius: 30px 30px 0 0; color: #f3ece3;
    background: radial-gradient(120% 60% at 50% 0%, #3a2f25 0%, #1d1712 60%, #15110d 100%);
    box-shadow: 0 -20px 50px rgba(0,0,0,.35);
    transform: translateY(30px); transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}
.qrt.is-open .qrt__card { transform: none; }
@media (min-width: 620px) { .qrt { align-items: center; } .qrt__card { border-radius: 30px; } }
.qrt__bar { display: flex; align-items: center; justify-content: space-between; }
.qrt__back { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qrt__title { display: flex; flex-direction: column; align-items: center; font-size: 17px; font-weight: 600; }
.qrt__title small { font-size: 12px; font-weight: 400; color: rgba(243,236,227,.6); margin-top: 2px; }
.qrt__frame { position: relative; width: 260px; height: 260px; margin: 22px auto 10px; display: flex; align-items: center; justify-content: center; }
.qrt__code { width: 228px; height: 228px; padding: 4px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #1f1912; }
.qrt__code img, .qrt__code canvas { width: 220px !important; height: 220px !important; }
.qrt__corner { position: absolute; width: 34px; height: 34px; border: 3px solid rgba(243,236,227,.55); }
.qrt__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.qrt__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 18px; }
.qrt__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 18px; }
.qrt__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.qrt__scan {
    position: absolute; left: 22px; right: 22px; top: 50%; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, #c9a77c, transparent); box-shadow: 0 0 12px rgba(201,167,124,.8);
    animation: qrtScan 2.6s ease-in-out infinite;
}
@keyframes qrtScan { 0%, 100% { transform: translateY(-104px); } 50% { transform: translateY(104px); } }
@media (prefers-reduced-motion: reduce) { .qrt__scan { animation: none; } }
.qrt__hint { text-align: center; margin: 0 0 14px; font-size: 13px; color: rgba(243,236,227,.65); }
.qrt__err { color: #a33; font-size: 13px; text-align: center; padding: 10px; }
.qrt__res {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; margin-bottom: 16px;
    border-radius: 18px; border: 1px solid rgba(243,236,227,.18); background: rgba(255,255,255,.05); color: #fff; font: inherit; text-align: left; cursor: pointer;
}
.qrt__res-k { display: block; font-size: 12px; color: rgba(243,236,227,.6); }
.qrt__res-v { display: block; font-size: 15.5px; font-weight: 600; margin-top: 2px; }
.qrt__details h4 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; font-size: 19px; color: #f3ece3; }
.qrt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.qrt__item { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.qrt__item > svg { flex: 0 0 auto; color: #c9a77c; margin-top: 2px; }
.qrt__item span { display: block; font-size: 11.5px; color: rgba(243,236,227,.55); }
.qrt__item strong { display: block; font-size: 14px; font-weight: 600; margin-top: 1px; color: #f3ece3; overflow-wrap: anywhere; }
.qrt__dl { margin: 18px auto 0; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(243,236,227,.25); background: none; color: #f3ece3; font: inherit; font-size: 13.5px; cursor: pointer; }

/* ── Actividades: resumen del bono y tres pestañas ── */
.act-sum {
    width: 100%; display: flex; align-items: center; gap: 4px; margin: -4px 0 14px; padding: 10px 12px;
    border-radius: 18px; border: 1px solid rgba(255,255,255,.95); background: rgba(255,255,255,.8);
    box-shadow: 0 6px 18px rgba(94,79,63,.07); font: inherit; color: var(--text-heading); cursor: pointer; text-align: left;
}
.act-sum__item { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.act-sum__item + .act-sum__item { border-left: 1px solid rgba(94,79,63,.10); }
.act-sum__item b { font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.act-sum__item small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }
.act-sum__go { color: var(--text-muted); display: flex; }
.act-sum--empty { justify-content: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.act-sum--empty b { color: #7d6853; }
.act-tabs .tab { flex: 1; min-width: 0; padding-left: 6px; padding-right: 6px; white-space: nowrap; }
.esp-days-wrap .dstrip { width: 100%; }
#esp-days { overflow: visible; display: block; padding: 0; flex: 1 1 auto; min-width: 0; }

/* ── Configuración (Mi perfil → Configuración) ── */
.cfg { display: flex; flex-direction: column; gap: 18px; padding-bottom: 12px; max-width: 760px; margin-left: auto; margin-right: auto; }
.cfg-sec { display: flex; flex-direction: column; gap: 10px; }
.cfg-sec__title {
    margin: 0 4px; font-family: var(--font-family); font-size: 12px; font-weight: 600;
    letter-spacing: .26em; text-transform: uppercase; color: var(--text-secondary);
}
.cfg-card {
    padding: 14px 16px; border-radius: 22px;
    background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 10px 28px rgba(94, 79, 63, .07), 0 1px 3px rgba(94, 79, 63, .05);
}
.cfg-card:empty { display: none; }
.cfg-card__title {
    display: flex; align-items: center; gap: 8px; margin: 0 0 6px;
    font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--text-heading);
}
.cfg-card__title svg { color: #8a7762; }
.cfg-card .settings-row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(94, 79, 63, .08); }
.cfg-card .settings-row > .toggle, .cfg-card .settings-row > span:last-child { flex: 0 0 auto; }
.cfg-card .settings-row:last-child { border-bottom: 0; }
.cfg-card .settings-row > div { min-width: 0; }
.cfg-card--list { padding: 4px 6px; }
.cfg-row {
    display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 16px;
    color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.cfg-row + .cfg-row { border-top: 1px solid rgba(94, 79, 63, .07); border-radius: 0 0 16px 16px; }
.cfg-row:active { background: rgba(138, 119, 98, .08); }
.cfg-row:focus-visible { outline: 2px solid #7d6853; outline-offset: -2px; }
.cfg-row__ico {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #f5eee6; color: #7d6853;
}
.cfg-row__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cfg-row__txt b { font-weight: 600; font-size: 15px; color: var(--text-heading); }
.cfg-row__txt small { font-size: 12.5px; line-height: 1.3; color: var(--text-secondary); }
.cfg-row__go { flex: 0 0 auto; color: var(--text-muted); }
.cfg-logout {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: center;
    padding: 12px 22px; border: 1px solid rgba(184, 92, 76, .25); border-radius: 999px;
    background: rgba(255, 255, 255, .7); color: #a24f41; font: inherit; font-weight: 600; cursor: pointer;
}
.cfg-logout:active { transform: scale(.97); }
.cfg-version { margin: -6px 0 0; text-align: center; font-size: 12px; color: var(--text-secondary); }

/* Mis datos: enlace a Configuración */
.cfg-link {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    color: var(--text-heading); text-decoration: none;
}
.cfg-link > svg:first-child { color: #8a7762; flex: 0 0 auto; }
.cfg-link > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cfg-link small { font-size: 12.5px; color: var(--text-secondary); }

/* Actividades: acceso a las clases online */
.act-online {
    display: flex; align-items: center; gap: 12px; margin: 4px 0 var(--space-md, 16px); padding: 12px 14px;
    border-radius: 20px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 8px 22px rgba(94, 79, 63, .07); color: inherit; text-decoration: none;
}
.act-online__ico {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: #f5eee6; color: #7d6853;
}
.act-online__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.act-online__txt b { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--text-heading); }
.act-online__txt small { font-size: 12.5px; color: var(--text-secondary); }
.act-online > svg:last-child { flex: 0 0 auto; color: var(--text-muted); }

/* Panel de notificaciones en móvil: oscurece lo de detrás como las demás hojas inferiores */
.notif-panel--sheet { box-shadow: 0 0 0 100vmax rgba(30, 22, 15, .38), 0 -10px 30px rgba(30, 22, 15, .12); }

/* Tarjeta de clase de Inicio en móvil: toda la tarjeta ya es el enlace; el chevron
   aparte le quitaba ancho al texto y partía «Calzada de Valdunciel» en varias líneas */
@media (max-width: 420px) {
    .hv2-cls__go { display: none; }
    .hv2-cls__img { flex-basis: 36%; }
}

/* Clase sin foto en Inicio: color suave del tipo e icono (el color de la admin puede ser muy claro,
   así que solo tiñe el fondo; el icono va oscurecido para que se vea) */
.hv2-cls__img--flat {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, color-mix(in srgb, var(--type-color) 26%, #f6efe6), color-mix(in srgb, var(--type-color) 12%, #e9dfd2));
    color: color-mix(in srgb, var(--type-color) 45%, #4a3d31);
}
.hv2-cls__img--flat svg { opacity: .85; }
