/* v2 product info page — .lp-* ("lottery page"). Same palette as .lc-*/.lw-*.
 * Single-column stack of three white cards (hero, description, schedule) plus
 * a four-up quick-links row at the bottom.
 *
 * Selectors are scoped with `.lp-page` to beat legacy cb_mob.min.css rules
 * like `section h2 { text-align: center }`, `section { padding: 25px 0 45px }`,
 * and `body div#main h2 { padding: 6px 0 }` which would otherwise mangle the
 * hero and section spacing. */

.lp-page {
    --lp-accent:      #428c00;
    --lp-accent-dark: #386f04;
    --lp-yellow:      #f1c40f;
    --lp-ink:         #1f1f1f;
    --lp-muted:       #6b6b6b;
    --lp-border:      #e1e1e1;
    --lp-bg-soft:     #f7f7f7;
    --lp-card-radius: 12px;
    max-width: 980px;
    margin: 0 auto 40px;
    padding: 24px;
    background: #eef1f4;             /* soft panel so white cards have contrast */
    border-radius: 16px;
    text-align: left;                /* override body { text-align: justify } */
}
.lp-page * { box-sizing: border-box; }

/* Kill the legacy <section> padding/heading centering inside our page. */
.lp-page section { padding: 0; }
.lp-page section h2,
.lp-page section h3,
.lp-page section h4 { text-align: left; }

/* --- Hero ----------------------------------------------------------- */
.lp-page .lp-hero {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-card-radius);
    overflow: hidden;
    margin: 0 0 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .04);
}
.lp-page .lp-hero::before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, var(--lp-accent) 0%, var(--lp-accent-dark) 100%);
}
.lp-page .lp-hero-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 26px 28px;
}
.lp-page .lp-hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex: 0 0 auto;
}
.lp-page .lp-hero-text { flex: 1; min-width: 0; }
.lp-page h2.lp-hero-name {
    margin: 0;
    padding: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    line-height: 1.15;
    color: var(--lp-ink);
    text-align: left;
}
.lp-page .lp-hero-sub {
    margin: 8px 0 0;
    padding: 0;
    font-size: 15px;
    color: var(--lp-muted);
    line-height: 1.5;
    text-align: left;
}
.lp-page .lp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.lp-page .lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f4ec;
    color: var(--lp-accent-dark);
    border: 1px solid #d8e6cf;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}
.lp-page .lp-chip .glyphicon { font-size: 11px; top: 0; }

/* --- Generic content card ------------------------------------------ */
.lp-page .lp-card {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-card-radius);
    padding: 22px 26px;
    margin: 0 0 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .04);
}
.lp-page h3.lp-card-title,
.lp-page .lp-card-title {
    margin: 0 0 14px;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--lp-ink);
    text-align: left;
}

/* --- Description --------------------------------------------------- */
.lp-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}
.lp-desc p { margin: 0 0 12px; }
.lp-desc p:last-child { margin-bottom: 0; }

/* --- Schedule (grouped by pattern) --------------------------------
 * Days that share the same set of times are merged into a single row, so
 * a uniform 7-day product becomes one row labeled "Toda la semana" instead
 * of seven near-identical rows of pills. */
.lp-page .lp-sched {
    display: flex;
    flex-direction: column;
}
.lp-page .lp-sched-group {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid #eceff1;
}
.lp-page .lp-sched-group:first-child { border-top: 0; padding-top: 4px; }
.lp-page .lp-sched-group--off { opacity: .55; }
.lp-page .lp-sched-group-days {
    flex: 0 0 160px;
    font-weight: 700;
    font-size: 14px;
    color: var(--lp-ink);
    letter-spacing: .3px;
    line-height: 28px;          /* visually centers on the first pill row */
}
.lp-page .lp-sched-group-times {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}
.lp-page .lp-time-pill {
    display: inline-flex;
    align-items: center;
    background: var(--lp-bg-soft);
    border: 1px solid #e1e1e1;
    color: var(--lp-ink);
    padding: 4px 11px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
    line-height: 20px;
}
.lp-page .lp-sched-empty {
    color: var(--lp-muted);
    font-size: 13px;
    font-style: italic;
    line-height: 28px;
}

/* --- Quick-links — 4 result-view cards ----------------------------- */
.lp-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
a.lp-link,
a.lp-link:link,
a.lp-link:visited {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #428c00;
    background-image: none;
    border: 0;
    border-radius: 12px;
    padding: 18px 44px 16px 18px;
    color: #fff;
    text-decoration: none;
    transition: background-color .15s ease;
    position: relative;
    min-height: 100px;
    box-shadow: 0 2px 6px rgba(56, 111, 4, .18);
}
a.lp-link:hover,
a.lp-link:focus,
a.lp-link:active {
    background-color: #386f04;
    text-decoration: none;
    color: #fff;
}
.lp-link-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 4px;
}
.lp-link-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
.lp-link-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.4;
}
.lp-link-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #fff;
}

/* --- Responsive ---------------------------------------------------- */
@media (max-width: 768px) {
    .lp-page { padding: 16px; }
    .lp-page .lp-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
    }
    .lp-page .lp-hero-logo { width: 92px; height: 92px; }
    .lp-page h2.lp-hero-name { font-size: 24px; }
    .lp-page .lp-card { padding: 18px 20px; }
    .lp-page .lp-sched-group {
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
    }
    .lp-page .lp-sched-group-days { flex: 0 0 auto; line-height: 1.2; }
    .lp-page .lp-sched-empty { line-height: 1.2; }
    .lp-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .lp-links { grid-template-columns: 1fr; }
    a.lp-link { min-height: 0; }
}
