/* Inicio y Mi cuenta */

/* ---------- Portada ---------- */
.hero { padding: 2rem 0 2.5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-title { margin: .8rem 0 .4rem; }
.hero-title img { width: min(100%, 460px); height: auto; }
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25rem 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; color: var(--ink-soft); }
.hero-facts strong { color: var(--ink); }

.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-disc {
    aspect-ratio: 1; border-radius: 50%; background: var(--rosa);
    border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--amarillo), 8px 8px 0 3px var(--ink);
    overflow: hidden; display: grid; place-items: center;
}
.hero-disc img { width: 100%; height: 100%; object-fit: cover; }
.hero-sticker {
    position: absolute; left: -6px; bottom: 12%;
    background: var(--amarillo); border: var(--stroke); box-shadow: var(--pop-sm);
    font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
    padding: .5rem 1rem; border-radius: 999px; transform: rotate(-6deg);
}

@media (min-width: 860px) {
    .hero { padding: 3.5rem 0 4rem; }
    .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

/* ---------- Secciones ---------- */
.section { padding: 3rem 0; }
.section-tint { background: var(--celeste-wash); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.5rem; max-width: 60ch; }
.section-head p { margin: 0; }

/* Presentaciones */
.pres-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.pres-card {
    background: var(--paper); border: var(--stroke); border-radius: var(--radius-lg); box-shadow: var(--pop);
    overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
}
.pres-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.pres-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-bottom: var(--stroke); }
.pres-body { padding: 1rem 1.1rem 1.2rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.pres-body h3 { font-size: 1.6rem; margin: 0; }
.pres-body .muted { margin: 0; font-size: .92rem; }
.pres-body .price { font-size: 1.35rem; background: var(--amarillo); border: var(--stroke); border-radius: 999px; padding: .15rem .7rem; }
.pres-card:nth-child(2) .pres-body .price { background: var(--rosa); }
.pres-card:nth-child(3) .pres-body .price { background: var(--celeste); }

/* Catálogo de sabores */
.flavor-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1.25rem; }
.search { position: relative; display: block; max-width: 520px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search input {
    width: 100%; min-height: 50px; padding: .7rem 1rem .7rem 2.75rem; border-radius: 999px;
    border: var(--stroke); background: var(--paper); font-size: 1rem;
}
.search input:focus { outline: none; box-shadow: 3px 3px 0 var(--celeste-dark); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0; min-height: 40px; padding: .4rem 1rem; border-radius: 999px;
    border: 2px solid var(--ink); background: var(--paper); font-weight: 700; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip .count { font-weight: 600; opacity: .7; margin-left: 4px; }

.flavor-group + .flavor-group { margin-top: 1.75rem; }
.flavor-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: .75rem; }
.flavor-group-head h3 { margin: 0; font-size: 1.3rem; }
.flavor-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.flavor-pills li {
    background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px;
    padding: .45rem .8rem; line-height: 1.25;
}
.flavor-pills li strong { font-weight: 700; }
.flavor-pills li small { display: block; color: var(--ink-soft); font-size: .8rem; }
.flavor-group[data-slug="pura"] .flavor-pills li { background: var(--celeste-light); }
.empty { padding: 1.5rem; text-align: center; color: var(--ink-soft); background: var(--paper); border-radius: var(--radius); border: 2px dashed var(--line); }

/* Pasos (es un proceso real, por eso va numerado) */
.steps { list-style: none; counter-reset: paso; padding: 0; margin: 0 0 2rem; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.steps li {
    counter-increment: paso; position: relative; background: var(--paper); border: var(--stroke);
    border-radius: var(--radius-lg); padding: 1.1rem 1.1rem 1.1rem 4rem; display: flex; flex-direction: column; gap: 2px;
}
.steps li::before {
    content: counter(paso); position: absolute; left: 1rem; top: 1rem;
    width: 2.2rem; height: 2.2rem; border-radius: 50%; border: var(--stroke); background: var(--amarillo);
    display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
}
.steps li:nth-child(2)::before { background: var(--rosa); }
.steps li:nth-child(3)::before { background: var(--celeste); }
.steps li:nth-child(4)::before { background: var(--paper); }
.steps strong { font-family: var(--font-display); font-size: 1.1rem; }
.steps span { color: var(--ink-soft); }

/* Información */
.info-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.info-card { border: var(--stroke); border-radius: var(--radius-lg); padding: 1.2rem; }
.info-card h3 { margin-bottom: .3rem; }
.info-card p { margin: 0; }
.info-celeste { background: var(--celeste-light); }
.info-amarillo { background: var(--amarillo-wash); }
.info-rosa { background: var(--rosa-wash); }

/* ---------- Mi cuenta ---------- */
.auth-wrap { max-width: 460px; margin: 2rem auto; padding: 0 var(--gutter); }
.auth-wrap h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
.tabs { display: flex; gap: 6px; background: var(--paper); border: var(--stroke); border-radius: 999px; padding: 4px; margin-bottom: 1.25rem; }
.tabs button {
    flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--amarillo); box-shadow: inset 0 0 0 2px var(--ink); }
.account-grid { display: grid; gap: 20px; max-width: var(--maxw); margin: 2rem auto; padding: 0 var(--gutter); }
@media (min-width: 900px) { .account-grid { grid-template-columns: 360px 1fr; align-items: start; } }
.order-history { display: flex; flex-direction: column; gap: 12px; }
.history-item { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 1rem; }
.history-item header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: .4rem; }
.history-item ul { margin: .3rem 0; padding-left: 1.1rem; color: var(--ink-soft); }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }

/* Celulares: tarjetas horizontales y portada más compacta */
@media (max-width: 600px) {
    .hero { padding-top: 1.25rem; }
    .hero-art { width: min(78%, 300px); }
    .pres-grid { gap: 14px; }
    .pres-card { flex-direction: row; align-items: stretch; }
    .pres-card img { width: 38%; height: auto; aspect-ratio: 1; object-fit: cover; border-bottom: 0; border-right: var(--stroke); }
    .pres-body { flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; padding: .9rem; }
    .pres-body h3 { font-size: 1.45rem; }
}

/* Enlaces de texto con área táctil cómoda */
.link-btn { min-height: 44px; display: inline-flex; align-items: center; padding: .25rem .5rem; }
