/* =========================================================================
   Página de presentación. Pública, sin cuenta.
   ========================================================================= */

/* ---------- Presentación ---------- */

.hero {
    padding-block: clamp(40px, 6vw, 76px);
    background:
        radial-gradient(ellipse 70% 60% at 12% 0%, var(--wheat-soft) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 92% 20%, var(--olive-soft) 0%, transparent 60%),
        var(--bg);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
}

.hero h1 {
    margin-top: 14px;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.hero__lead {
    max-width: 30rem;
    margin-top: 18px;
    font-size: 1.06rem;
    color: var(--ink-soft);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__note {
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--ink-faint);
}

/* Muestra del resultado, para que se vea antes de pulsar nada */
.preview {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(-1deg);
}

.preview__head {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.preview__dot {
    width: 9px;
    height: 9px;
    background: var(--line-strong);
    border-radius: 50%;
}

.preview__body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.preview__day {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    align-items: start;
}

.preview__daynum {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--terracotta);
    background: var(--terracotta-soft);
    border-radius: 50%;
}

.preview__meal {
    font-size: 0.86rem;
    color: var(--ink-soft);
    padding: 2px 0;
}

.preview__list {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px dashed var(--line-strong);
}

.preview__listhead {
    margin: 10px 0 5px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.preview__listhead:first-child {
    margin-top: 0;
}

.preview__item {
    display: flex;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--ink-soft);
    padding: 2px 0;
}

.preview__item span {
    font-weight: 600;
    color: var(--ink);
    min-width: 52px;
}

/* ---------- Cifras ---------- */

.stats {
    padding-block: 30px;
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.stats__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat__value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--terracotta);
}

.stat__label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ---------- Secciones ---------- */

.section--soft {
    background: var(--bg-soft);
}

.section-head {
    max-width: 620px;
    margin-bottom: 34px;
}

.section-head h2 {
    margin-top: 10px;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.section-head p {
    margin-top: 12px;
    color: var(--ink-soft);
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

/* ---------- Pasos ---------- */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.step-card {
    padding: 26px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.step-card__number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: var(--terracotta);
    border-radius: 50%;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.94rem;
    color: var(--ink-soft);
}

/* ---------- Secciones del supermercado ---------- */

.sections-list {
    display: grid;
    gap: 8px;
}

.sections-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.sections-list__icon {
    font-size: 1.15rem;
}

.sections-list__order {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink-faint);
    background: var(--bg-soft);
    border-radius: 50%;
}

/* ---------- Filtros de dieta ---------- */

.diet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.diet-card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--olive);
    border-radius: var(--radius-sm);
}

.diet-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.diet-card p {
    font-size: 0.89rem;
    color: var(--ink-soft);
}

/* ---------- Proteínas ---------- */

.protein-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.protein-card {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 22px 16px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--protein-color, var(--olive));
    border-radius: var(--radius-md);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.protein-card__icon {
    font-size: 1.7rem;
}

.protein-card__count {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
}

.protein-card__label {
    font-size: 0.85rem;
    color: var(--ink-faint);
}

/* ---------- Nota sobre la cuenta ---------- */

.account-note {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.account-note h2 {
    font-size: 1.5rem;
}

.account-note__list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.account-note__list li {
    position: relative;
    padding-left: 26px;
    color: var(--ink-soft);
}

.account-note__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--olive);
}

/* ---------- Cierre ---------- */

.closing {
    display: grid;
    gap: 18px;
    justify-items: center;
    padding: clamp(40px, 6vw, 64px) 30px;
    text-align: center;
    background: linear-gradient(140deg, var(--wheat-soft), var(--terracotta-soft));
    border-radius: var(--radius-lg);
}

.closing h2 {
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.closing p {
    color: var(--ink-soft);
}

/* ---------- Móvil ---------- */

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__preview {
        order: -1;
        max-width: 400px;
    }

    .preview {
        transform: none;
    }
}
