/* ==========================================================================
   Tu Lista — Bebés Prenacer
   Sistema visual público (padres e invitados)
   Dirección: papel cálido, tipografía editorial, teselas de color.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset y tokens
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

[hidden] {
    display: none !important;
}

:root {
    /* Papel e ink */
    --paper: #f6f3ec;
    --paper-deep: #eee9df;
    --surface: #fffdf8;
    --surface-soft: #fbf8f1;
    --ink: #231f26;
    --ink-soft: #403a41;
    --muted: #6b635d;
    --line: rgba(35, 31, 38, 0.1);
    --line-strong: rgba(35, 31, 38, 0.18);

    /* Teselas */
    --mint: #cfe8d2;
    --mint-deep: #a9d3b0;
    --mint-ink: #2d5638;
    --coral: #f58f79;
    --coral-deep: #ec7059;
    --coral-ink: #5f2218;
    --butter: #f6d678;
    --butter-deep: #ecc45c;
    --butter-ink: #6b5310;
    --blush: #eedcd5;
    --blush-ink: #6d4438;
    --sky: #d7e4f2;
    --sky-ink: #2d4a68;

    /* Forma */
    --r-xs: 12px;
    --r-sm: 16px;
    --r-md: 22px;
    --r-lg: 28px;
    --r-xl: 36px;
    --r-pill: 999px;

    /* Sombra */
    --shadow-xs: 0 1px 2px rgba(35, 31, 38, 0.05);
    --shadow-sm: 0 2px 8px rgba(35, 31, 38, 0.05), 0 10px 24px -18px rgba(35, 31, 38, 0.25);
    --shadow-md: 0 4px 12px rgba(35, 31, 38, 0.05), 0 24px 48px -28px rgba(35, 31, 38, 0.32);
    --shadow-lg: 0 40px 80px -40px rgba(35, 31, 38, 0.4);

    /* Tipografía */
    --font: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Medidas */
    --shell: 1180px;
    --gutter: clamp(18px, 4vw, 40px);
    --header-h: 74px;
    --nav-h: 74px;
}

/* --------------------------------------------------------------------------
   2. Tipografía
   -------------------------------------------------------------------------- */

.display,
.h1,
.h2,
.h3 {
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.02;
    text-wrap: balance;
}

.display {
    font-size: clamp(2.35rem, 6.2vw, 4.35rem);
}

.display em {
    font-style: normal;
    color: var(--coral-ink);
    background: linear-gradient(transparent 62%, var(--butter) 62%);
    padding-inline: 0.04em;
}

.h1 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    letter-spacing: -0.04em;
}

.h2 {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    letter-spacing: -0.035em;
}

.h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    letter-spacing: -0.02em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--coral);
    transform: rotate(45deg);
}

.lede {
    max-width: 54ch;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.6;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.82rem;
    line-height: 1.45;
}

.tiny {
    font-size: 0.72rem;
    line-height: 1.4;
}

.strong {
    font-weight: 700;
}

.mono {
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.page-main {
    padding-top: clamp(28px, 5vw, 56px);
    padding-bottom: 48px;
}

.page-main--tight {
    padding-top: clamp(18px, 3vw, 32px);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stack--sm {
    gap: 10px;
}

.stack--lg {
    gap: 28px;
}

.row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.row--between {
    justify-content: space-between;
}

.row--end {
    justify-content: flex-end;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 18px;
}

.grid-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.sticky {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

/* --------------------------------------------------------------------------
   4. Marca y cabecera
   -------------------------------------------------------------------------- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mark {
    display: grid;
    grid-template-columns: repeat(2, 12px);
    grid-template-rows: repeat(2, 12px);
    gap: 2px;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.mark i {
    display: block;
    width: 100%;
    height: 100%;
}

.mark i:nth-child(1) {
    background: var(--ink);
    border-radius: 0 0 100% 0;
}

.mark i:nth-child(2) {
    background: var(--coral);
    border-radius: 0 0 0 100%;
}

.mark i:nth-child(3) {
    background: var(--butter);
    border-radius: 100% 0 0 0;
}

.mark i:nth-child(4) {
    background: var(--mint);
    border-radius: 0 100% 0 0;
}

.mark--lg {
    grid-template-columns: repeat(2, 26px);
    grid-template-rows: repeat(2, 26px);
    gap: 4px;
    width: 56px;
    height: 56px;
}

.mark--xl {
    grid-template-columns: repeat(2, 42px);
    grid-template-rows: repeat(2, 42px);
    gap: 6px;
    width: 90px;
    height: 90px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand__name {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.045em;
}

.brand__sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(246, 243, 236, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.app-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
}

.app-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 15px;
    border-radius: var(--r-pill);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 180ms ease, color 180ms ease;
}

.app-nav__link:hover {
    background: rgba(35, 31, 38, 0.05);
    color: var(--ink);
}

.app-nav__link.is-active {
    background: var(--ink);
    color: var(--paper);
}

.app-nav__badge {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding-inline: 5px;
    border-radius: var(--r-pill);
    background: var(--coral);
    color: var(--ink);
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
}

.app-nav__link.is-active .app-nav__badge {
    background: var(--butter);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-btn__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding-inline: 4px;
    border: 2px solid var(--paper);
    border-radius: var(--r-pill);
    background: var(--coral);
    color: var(--ink);
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
}

.icon-btn:hover {
    border-color: var(--line-strong);
    background: var(--surface-soft);
}

.icon-btn:active {
    transform: scale(0.96);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 4px 6px 4px 4px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
}

.user-chip__avatar {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--mint-ink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.user-chip__meta {
    display: flex;
    flex-direction: column;
    padding-right: 10px;
    line-height: 1.15;
}

.user-chip__name {
    max-width: 15ch;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip__role {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   5. Navegación móvil
   -------------------------------------------------------------------------- */

.mobile-nav {
    position: fixed;
    z-index: 80;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    display: none;
    align-items: stretch;
    gap: 2px;
    max-width: 480px;
    margin-inline: auto;
    padding: 7px;
    border: 1px solid rgba(35, 31, 38, 0.09);
    border-radius: 26px;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.mobile-nav__link {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 54px;
    padding: 6px 4px;
    border-radius: 19px;
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 180ms ease, color 180ms ease;
}

.mobile-nav__link.is-active {
    background: var(--ink);
    color: var(--paper);
}

.mobile-nav__link.is-active .mobile-nav__badge {
    background: var(--butter);
    color: var(--ink);
}

.mobile-nav__badge {
    position: absolute;
    top: 5px;
    right: calc(50% - 20px);
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding-inline: 4px;
    border-radius: var(--r-pill);
    background: var(--coral);
    color: var(--ink);
    font-size: 0.6rem;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   6. Cabecera de página
   -------------------------------------------------------------------------- */

.page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.page-head__copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 760px;
}

.page-head__aside {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: rgba(255, 253, 248, 0.6);
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 600;
}

.meta-chip svg {
    color: var(--muted);
}

.meta-chip--ink {
    border-color: transparent;
    background: var(--ink);
    color: var(--paper);
}

.meta-chip--mint {
    border-color: transparent;
    background: var(--mint);
    color: var(--mint-ink);
}

/* Tarjeta de bienvenida / progreso */
.hero-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 18px;
    align-items: center;
    min-width: min(100%, 300px);
    padding: 22px;
    border-radius: var(--r-lg);
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow-md);
}

.hero-card__label {
    color: rgba(246, 243, 236, 0.62);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-card__number {
    display: block;
    margin-top: 2px;
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
}

.hero-card__text {
    margin-top: 6px;
    color: rgba(246, 243, 236, 0.72);
    font-size: 0.76rem;
}

.hero-card__art {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    transform: rotate(-4deg);
}

.hero-card__art span {
    display: block;
    aspect-ratio: 1;
    border-radius: 14px;
}

.hero-card__art span:nth-child(1) {
    background: var(--mint);
    border-radius: 14px 14px 14px 3px;
}

.hero-card__art span:nth-child(2) {
    background: var(--coral);
    border-radius: 14px 14px 3px 14px;
}

.hero-card__art span:nth-child(3) {
    background: var(--butter);
    border-radius: 14px 3px 14px 14px;
}

.hero-card__art span:nth-child(4) {
    background: rgba(246, 243, 236, 0.1);
    border: 1px solid rgba(246, 243, 236, 0.18);
    border-radius: 3px 14px 14px 14px;
}

/* --------------------------------------------------------------------------
   7. Tarjetas y superficies
   -------------------------------------------------------------------------- */

.card {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.card--pad {
    padding: clamp(20px, 3vw, 30px);
}

.card--flush {
    overflow: hidden;
}

.card--mint {
    border-color: transparent;
    background: var(--mint);
    color: var(--mint-ink);
}

.card--coral {
    border-color: transparent;
    background: var(--coral);
    color: var(--coral-ink);
}

.card--butter {
    border-color: transparent;
    background: var(--butter);
    color: var(--butter-ink);
}

.card--blush {
    border-color: transparent;
    background: var(--blush);
    color: var(--blush-ink);
}

.card--ink {
    border-color: transparent;
    background: var(--ink);
    color: var(--paper);
}

.card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.card__title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card__sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
}

.card--ink .card__sub,
.card--ink .muted {
    color: rgba(246, 243, 236, 0.65);
}

.section {
    margin-top: clamp(34px, 5vw, 56px);
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section__title {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.section__note {
    color: var(--muted);
    font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   8. Estadísticas
   -------------------------------------------------------------------------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 20px;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--line);
}

.stat__icon {
    position: absolute;
    top: 16px;
    right: 16px;
    color: currentColor;
    opacity: 0.55;
}

.stat__label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.72;
}

.stat__value {
    display: block;
    margin-top: 12px;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.stat__hint {
    display: block;
    margin-top: 6px;
    font-size: 0.74rem;
    opacity: 0.7;
}

.stat--mint {
    border-color: transparent;
    background: var(--mint);
    color: var(--mint-ink);
}

.stat--butter {
    border-color: transparent;
    background: var(--butter);
    color: var(--butter-ink);
}

.stat--coral {
    border-color: transparent;
    background: var(--coral);
    color: var(--coral-ink);
}

.stat--ink {
    border-color: transparent;
    background: var(--ink);
    color: var(--paper);
}

/* --------------------------------------------------------------------------
   9. Botones y enlaces
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--paper);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.985);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.app-nav__link:focus-visible,
.mobile-nav__link:focus-visible,
.chip:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--butter-deep);
    outline-offset: 2px;
}

.btn--block {
    width: 100%;
}

.btn--sm {
    min-height: 38px;
    padding: 8px 15px;
    font-size: 0.78rem;
}

.btn--lg {
    min-height: 54px;
    padding: 14px 26px;
    font-size: 0.95rem;
}

.btn--soft {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.btn--soft:hover {
    border-color: var(--line-strong);
    background: var(--surface-soft);
}

.btn--mint {
    background: var(--mint);
    color: var(--mint-ink);
}

.btn--coral {
    background: var(--coral);
    color: var(--coral-ink);
}

.btn--butter {
    background: var(--butter);
    color: var(--butter-ink);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
}

.btn--ghost:hover {
    background: rgba(35, 31, 38, 0.05);
    box-shadow: none;
}

.btn--danger {
    background: transparent;
    color: var(--coral-ink);
    border-color: rgba(122, 46, 32, 0.22);
}

.btn--danger:hover {
    background: rgba(245, 143, 121, 0.14);
}

.btn[disabled],
.btn.is-disabled {
    opacity: 0.48;
    pointer-events: none;
}

.link {
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.link:hover {
    text-decoration-color: var(--ink);
}

.link--quiet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
}

.link--quiet:hover {
    color: var(--ink);
}

.link--arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.link--arrow svg {
    transition: transform 180ms ease;
}

.link--arrow:hover svg {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   10. Pills, chips y etiquetas
   -------------------------------------------------------------------------- */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--paper-deep);
    color: var(--ink-soft);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
}

.pill--plain::before {
    display: none;
}

.pill--mint {
    background: var(--mint);
    color: var(--mint-ink);
}

.pill--butter {
    background: var(--butter);
    color: var(--butter-ink);
}

.pill--coral {
    background: var(--coral);
    color: var(--coral-ink);
}

.pill--ink {
    background: var(--ink);
    color: var(--paper);
}

.pill--outline {
    border: 1px solid var(--line-strong);
    background: transparent;
}

.chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
    display: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.chip:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.chip.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.chip__count {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding-inline: 5px;
    border-radius: var(--r-pill);
    background: rgba(35, 31, 38, 0.08);
    font-size: 0.64rem;
    font-weight: 800;
}

.chip.is-active .chip__count {
    background: rgba(246, 243, 236, 0.16);
}

/* --------------------------------------------------------------------------
   11. Barra de herramientas y búsqueda
   -------------------------------------------------------------------------- */

.toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.search {
    position: relative;
    flex: 1;
    min-width: 210px;
}

.search svg {
    position: absolute;
    top: 50%;
    left: 16px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.search input {
    width: 100%;
    min-height: 46px;
    padding: 10px 16px 10px 46px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    font-size: 0.86rem;
}

.search input::placeholder {
    color: var(--muted);
}

.toolbar__spacer {
    flex: 1;
}

/* --------------------------------------------------------------------------
   12. Productos
   -------------------------------------------------------------------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 18px;
}

.product {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product:hover {
    border-color: rgba(35, 31, 38, 0.16);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.product__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-soft);
}

.product__media img {
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
    background: #fff;
    transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product:hover .product__media img {
    transform: scale(1.035);
}

.product__media .pill {
    position: absolute;
    top: 12px;
    left: 12px;
    box-shadow: 0 2px 8px rgba(35, 31, 38, 0.12);
}

.product__media--contain img {
    object-fit: contain;
    padding: 16px;
    background: #fff;
}

.product__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.product__kicker {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product__name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.product__name a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.product__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.price {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.price--lg {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    letter-spacing: -0.045em;
}

.product__actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.product__actions .btn {
    flex: 1;
}

/* Dos acciones en la misma tarjeta: se apilan para no partir el texto. */
.product__actions--stack {
    flex-direction: column;
}

.product__actions--stack > * {
    flex: 1 1 100%;
}

.product__actions--stack form {
    display: flex;
}

.product__note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.4;
}

.product__note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.product--muted .product__media {
    opacity: 0.62;
}

/* Instalar en el móvil */
.install-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 26px;
    padding: 18px 22px;
    border: 1px solid rgba(35, 31, 38, 0.08);
    border-radius: var(--r-md);
    background: var(--butter);
    color: var(--butter-ink);
}

.install-card__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(35, 31, 38, 0.14);
}

.install-card__copy {
    flex: 1 1 220px;
    min-width: 0;
}

.install-card__title {
    margin-top: 2px;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.install-card__text {
    margin-top: 4px;
    font-size: 0.8rem;
    line-height: 1.45;
    opacity: 0.78;
}

.install-card__hint {
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
}

.install-card__actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.install-card--compact {
    align-items: flex-start;
    margin-top: 0;
}

@media (max-width: 560px) {
    .install-card__actions {
        width: 100%;
    }

    .install-card__actions .btn {
        flex: 1;
    }
}

/* Estado vacío */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: clamp(36px, 7vw, 72px) 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-lg);
    background: rgba(255, 253, 248, 0.5);
    text-align: center;
}

.empty__art {
    display: grid;
    grid-template-columns: repeat(2, 38px);
    grid-template-rows: repeat(2, 38px);
    gap: 5px;
    transform: rotate(-3deg);
}

.empty__art span {
    display: block;
    border-radius: 12px;
}

.empty__art span:nth-child(1) {
    background: var(--mint);
    border-radius: 12px 12px 12px 3px;
}

.empty__art span:nth-child(2) {
    background: var(--coral);
    border-radius: 12px 12px 3px 12px;
}

.empty__art span:nth-child(3) {
    background: var(--butter);
    border-radius: 12px 3px 12px 12px;
}

.empty__art span:nth-child(4) {
    background: var(--ink);
    border-radius: 3px 12px 12px 12px;
}

.empty__title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.empty__text {
    max-width: 40ch;
    color: var(--muted);
    font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   13. Detalle de producto
   -------------------------------------------------------------------------- */

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
}

.detail__media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: #fff;
    aspect-ratio: 1 / 1;
}

.detail__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(18px, 4vw, 42px);
}

.detail__media .pill {
    position: absolute;
    top: 18px;
    left: 18px;
}

.detail__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 4px;
}

.detail__title {
    font-size: clamp(1.8rem, 3.8vw, 2.7rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.detail__desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.detail__facts {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.fact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.86rem;
}

.fact__label {
    color: var(--muted);
    font-weight: 600;
}

.fact__value {
    font-weight: 700;
    text-align: right;
}

.note-box {
    padding: 16px 18px;
    border-radius: var(--r-sm);
    background: var(--butter);
    color: var(--butter-ink);
    font-size: 0.86rem;
    line-height: 1.5;
}

.note-box__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
}

.detail__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail__actions .row {
    gap: 10px;
}

/* --------------------------------------------------------------------------
   14. Cesta
   -------------------------------------------------------------------------- */

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}

.cart-item__img {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--r-xs);
    background: var(--surface-soft);
}

.cart-item__img img {
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
    background: #fff;
}

.cart-item__body {
    min-width: 0;
}

.cart-item__name {
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item__meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.74rem;
}

.cart-item__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.cart-item__price {
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cart-item__remove {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cart-item__remove:hover {
    color: var(--coral-ink);
}

.summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
}

.summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.84rem;
}

.summary__total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.summary__total span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.summary__total strong {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
}

/* CTA fija de la cesta en móvil */
.cart-mobile-bar {
    position: fixed;
    z-index: 70;
    right: 12px;
    bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 480px;
    margin-inline: auto;
    padding: 10px 10px 10px 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.cart-mobile-bar__total {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.cart-mobile-bar__total span {
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cart-mobile-bar__total strong {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.cart-mobile-bar .btn {
    min-height: 44px;
    padding: 10px 18px;
}

@media (max-width: 900px) {
    body.has-cart-bar .page-main {
        padding-bottom: 150px;
    }

    .cart-mobile-bar {
        display: flex;
    }
}

/* --------------------------------------------------------------------------
   15. Formularios
   -------------------------------------------------------------------------- */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field--full {
    grid-column: 1 / -1;
}

.field label,
.field__label {
    padding-left: 3px;
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    font-size: 0.92rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--line-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--ink);
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 214, 120, 0.45);
}

.field input[readonly],
.field input:disabled {
    background: var(--paper-deep);
    color: var(--muted);
}

.field__hint {
    padding-left: 3px;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.check input {
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    accent-color: var(--ink);
    flex-shrink: 0;
}

/* Opciones de entrega / pago */
.option-list {
    display: grid;
    gap: 8px;
}

.option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.option:hover {
    border-color: var(--line-strong);
}

.option:has(input:checked) {
    border-color: var(--ink);
    background: var(--surface-soft);
}

.option input {
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    accent-color: var(--ink);
    flex-shrink: 0;
}

.option__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option__title {
    font-size: 0.86rem;
    font-weight: 700;
}

.option__desc {
    color: var(--muted);
    font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   16. Invitados
   -------------------------------------------------------------------------- */

.invite-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(22px, 4vw, 32px);
    border-radius: var(--r-lg);
    background: var(--ink);
    color: var(--paper);
}

.invite-card::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: -40px;
    bottom: -50px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(245, 143, 121, 0.38), transparent 65%);
    pointer-events: none;
}

.invite-card > * {
    position: relative;
    z-index: 1;
}

.invite-card__label {
    color: rgba(246, 243, 236, 0.62);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.invite-card__title {
    max-width: 26ch;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.invite-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 16px;
    border: 1px solid rgba(246, 243, 236, 0.16);
    border-radius: var(--r-sm);
    background: rgba(246, 243, 236, 0.08);
}

.invite-link code {
    flex: 1;
    overflow: hidden;
    color: rgba(246, 243, 236, 0.88);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invite-link .btn {
    min-height: 36px;
    padding: 7px 13px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.72rem;
}

.invite-card__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(246, 243, 236, 0.6);
    font-size: 0.72rem;
}

.guest-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.guest-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
}

.guest-row:last-child {
    border-bottom: 0;
}

.avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blush);
    color: var(--blush-ink);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.avatar--mint {
    background: var(--mint);
    color: var(--mint-ink);
}

.avatar--butter {
    background: var(--butter);
    color: var(--butter-ink);
}

.avatar--coral {
    background: var(--coral);
    color: var(--coral-ink);
}

.guest-row__body {
    min-width: 0;
}

.guest-row__name {
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guest-row__meta {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guest-row__side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-guest {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}

.add-guest summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.add-guest summary::-webkit-details-marker {
    display: none;
}

.add-guest summary span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.add-guest__body {
    padding: 0 20px 22px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

@media (min-width: 760px) {
    .add-guest__body {
        padding-top: 20px;
    }
}

/* --------------------------------------------------------------------------
   17. Perfil
   -------------------------------------------------------------------------- */

.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.profile-card .avatar {
    width: 58px;
    height: 58px;
    font-size: 1rem;
}

.profile-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.profile-card__meta {
    color: var(--muted);
    font-size: 0.78rem;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.side-nav__link:hover {
    background: rgba(35, 31, 38, 0.05);
    color: var(--ink);
}

.side-nav__link.is-active {
    background: var(--ink);
    color: var(--paper);
}

/* --------------------------------------------------------------------------
   18. Contacto
   -------------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 190px;
    padding: 22px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

a.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.contact-card__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--paper-deep);
    color: var(--ink);
}

.contact-card--mint .contact-card__icon {
    background: var(--mint);
    color: var(--mint-ink);
}

.contact-card--coral .contact-card__icon {
    background: var(--coral);
    color: var(--coral-ink);
}

.contact-card--butter .contact-card__icon {
    background: var(--butter);
    color: var(--butter-ink);
}

.contact-card__label {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-card__value {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.contact-card__note {
    margin-top: auto;
    color: var(--muted);
    font-size: 0.76rem;
}

.hours {
    display: grid;
    gap: 0;
}

.hours__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.84rem;
}

.hours__row:last-child {
    border-bottom: 0;
}

.hours__day {
    color: var(--muted);
}

.hours__time {
    font-weight: 700;
    text-align: right;
}

.map {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: var(--r-md);
    background:
        linear-gradient(135deg, rgba(207, 232, 210, 0.45), rgba(246, 243, 236, 0.2)),
        repeating-linear-gradient(0deg, transparent 0 27px, rgba(35, 31, 38, 0.06) 27px 28px),
        repeating-linear-gradient(90deg, transparent 0 27px, rgba(35, 31, 38, 0.06) 27px 28px);
}

.map__pin {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50% 50% 50% 8px;
    background: var(--coral);
    color: var(--coral-ink);
    transform: translate(-50%, -60%) rotate(-45deg);
    box-shadow: var(--shadow-md);
}

.map__pin svg {
    transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   19. Avisos y mensajes
   -------------------------------------------------------------------------- */

.flash {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-size: 0.84rem;
    line-height: 1.45;
    animation: flash-in 320ms ease both;
}

@keyframes flash-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash--success {
    border-color: rgba(45, 86, 56, 0.18);
    background: var(--mint);
    color: var(--mint-ink);
}

.flash--error {
    border-color: rgba(122, 46, 32, 0.18);
    background: #f9d9d1;
    color: var(--coral-ink);
}

.flash--info {
    border-color: rgba(45, 74, 104, 0.16);
    background: var(--sky);
    color: var(--sky-ink);
}

.flash__icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--r-sm);
    background: var(--paper-deep);
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.45;
}

.notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--muted);
}

.notice--butter {
    background: var(--butter);
    color: var(--butter-ink);
}

.notice--mint {
    background: var(--mint);
    color: var(--mint-ink);
}

/* --------------------------------------------------------------------------
   20. Autenticación
   -------------------------------------------------------------------------- */

.auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
}

.auth__aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(28px, 5vw, 56px);
    background: var(--ink);
    color: var(--paper);
}

.auth__aside::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(207, 232, 210, 0.35), transparent 68%);
}

.auth__aside::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -90px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(245, 143, 121, 0.28), transparent 68%);
}

.auth__aside > * {
    position: relative;
    z-index: 1;
}

.auth__aside .mark i:nth-child(1) {
    background: var(--paper);
}

.auth__aside .mark i:nth-child(2) {
    background: var(--coral);
}

.auth__aside .mark i:nth-child(3) {
    background: var(--butter);
}

.auth__aside .mark i:nth-child(4) {
    background: var(--mint);
}

.auth__quote {
    max-width: 22ch;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.02;
    text-wrap: balance;
}

.auth__quote em {
    font-style: normal;
    color: var(--butter);
}

.auth__art {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 74px));
    gap: 7px;
    width: max-content;
    transform: rotate(-4deg);
}

.auth__art span {
    aspect-ratio: 1;
    border-radius: 18px;
}

.auth__art span:nth-child(1) {
    background: var(--mint);
    border-radius: 18px 18px 18px 4px;
}

.auth__art span:nth-child(2) {
    background: var(--coral);
    border-radius: 18px 18px 4px 18px;
}

.auth__art span:nth-child(3) {
    background: var(--butter);
    border-radius: 18px 4px 18px 18px;
}

.auth__art span:nth-child(4) {
    background: rgba(246, 243, 236, 0.1);
    border: 1px solid rgba(246, 243, 236, 0.18);
    border-radius: 4px 18px 18px 18px;
}

.auth__foot {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(246, 243, 236, 0.55);
    font-size: 0.72rem;
}

.auth__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(26px, 5vw, 64px);
    background: var(--paper);
}

.auth__box {
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
}

.auth__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
}

.auth__title {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.auth__sub {
    color: var(--muted);
    font-size: 0.9rem;
}

.auth__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth__divider::before,
.auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth__foot-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.78rem;
}

.auth__panel {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: rgba(255, 253, 248, 0.6);
}

.auth__panel-title {
    margin-bottom: 6px;
    font-size: 0.86rem;
    font-weight: 700;
}

.auth__panel-text {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.auth__switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   21. Pie
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: clamp(48px, 7vw, 84px);
    padding: 34px 0 calc(34px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.site-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 330px;
}

.site-footer__text {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

.site-footer__links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.site-footer__links a {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.site-footer__links a:hover {
    color: var(--ink);
}

.site-footer__legal {
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.68rem;
}

/* --------------------------------------------------------------------------
   22. Utilidades
   -------------------------------------------------------------------------- */

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

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 6px !important; }
.mt-2 { margin-top: 12px !important; }
.mt-3 { margin-top: 18px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 32px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 6px !important; }
.mb-2 { margin-bottom: 12px !important; }
.mb-3 { margin-bottom: 18px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 32px !important; }

.divider {
    height: 1px;
    background: var(--line);
}

.kbd {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.7rem;
}

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .grid-main {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 24px;
    }

    .app-nav {
        gap: 0;
    }

    .app-nav__link {
        padding-inline: 11px;
        font-size: 0.82rem;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 66px;
    }

    .app-nav,
    .user-chip__meta {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    body {
        padding-bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom, 0px));
    }

    .page-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }

    .page-head__aside {
        justify-content: flex-start;
    }

    .hero-card {
        width: 100%;
        min-width: 0;
    }

    .grid-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .sticky {
        position: static;
    }

    .detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .detail__media {
        aspect-ratio: 4 / 3;
        border-radius: var(--r-lg);
    }

    .auth {
        grid-template-columns: minmax(0, 1fr);
        min-height: 100dvh;
    }

    .auth__aside {
        min-height: 220px;
        padding: 24px;
        gap: 20px;
    }

    .auth__quote {
        max-width: 18ch;
        font-size: clamp(1.7rem, 7vw, 2.4rem);
    }

    .auth__art {
        grid-template-columns: repeat(2, 46px);
    }

    .auth__foot {
        display: none;
    }

    .auth__main {
        padding: 26px 20px 40px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .stat-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .stat-grid,
    .stat-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat--wide {
        grid-column: 1 / -1;
    }

    .stat {
        min-height: 112px;
        padding: 16px;
    }

    .stat__value {
        font-size: 2.1rem;
    }

    .grid-2,
    .grid-3,
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product__media {
        aspect-ratio: 16 / 10;
    }

    .cart-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .cart-item__side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 8px;
        border-top: 1px solid var(--line);
    }

    .guest-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .guest-row__side {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 53px;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-card {
        min-height: 150px;
    }

    .section__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .page-main {
        padding-bottom: 30px;
    }

    .invite-link {
        flex-wrap: wrap;
    }

    .invite-link code {
        width: 100%;
        flex-basis: 100%;
        white-space: normal;
        word-break: break-all;
    }

    .invite-link .btn {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .brand__sub {
        display: none;
    }

    .brand__name {
        font-size: 1.05rem;
    }

    .icon-btn {
        width: 38px;
        height: 38px;
    }

    .header-actions {
        gap: 5px;
    }
}

@media (max-width: 420px) {
    .user-chip {
        padding-right: 4px;
    }

    .user-chip__meta {
        display: none;
    }

    .hero-card {
        grid-template-columns: minmax(0, 1fr) 92px;
    }

    .hero-card__number {
        font-size: 2.2rem;
    }

    .mobile-nav__link {
        font-size: 0.56rem;
    }
}

/* --------------------------------------------------------------------------
   24. Movimiento reducido
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   25. Impresión
   -------------------------------------------------------------------------- */

@media print {
    .app-header,
    .mobile-nav,
    .site-footer,
    .btn,
    .toolbar {
        display: none !important;
    }

    body {
        padding: 0;
        background: #fff;
    }

    .card,
    .product {
        box-shadow: none;
        border-color: #ddd;
    }
}
