/* lpm-front.css — LP Membership frontend styles */

/* ══════════════════════════════════════
   PRODUCT PRICE BADGE ("Con Plan Ahorro")
   ══════════════════════════════════════ */

.lpm-member-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f0faf4 0%, #e6f4ec 100%);
    border: 1px solid #c3e6cd;
    border-radius: 10px;
    font-family: var(--lp-font-body, 'Inter', system-ui, sans-serif);
    font-size: 14px;
    line-height: 1.4;
    -webkit-font-smoothing: auto;
}
.lpm-member-price--active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cd 100%);
    border-color: #8cc5a0;
}
.lpm-member-icon {
    flex-shrink: 0;
    color: #1B3C2D;
    opacity: 0.7;
}
.lpm-member-label {
    font-weight: 600;
    color: #1B3C2D;
    white-space: nowrap;
}
.lpm-member-amount {
    font-weight: 800;
    color: #1B3C2D;
    font-size: 16px;
}
.lpm-member-save {
    font-size: 11px;
    color: #fff;
    font-weight: 700;
    background: #16a34a;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.lpm-member-cta {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #F5821F !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .15s;
}
.lpm-member-cta:hover {
    color: #d06a10 !important;
}

/* Shop loop — compact badge */
.woocommerce ul.products li.product .lpm-member-price {
    font-size: 12px;
    padding: 6px 10px;
    margin-top: 4px;
    border-radius: 8px;
}
.woocommerce ul.products li.product .lpm-member-price .lpm-member-amount {
    font-size: 13px;
}
.woocommerce ul.products li.product .lpm-member-price .lpm-member-save {
    font-size: 10px;
    padding: 1px 6px;
}
.woocommerce ul.products li.product .lpm-member-price .lpm-member-cta {
    display: none;
}

/* ══════════════════════════════════════
   MY ACCOUNT — MEMBERSHIP DASHBOARD
   ══════════════════════════════════════ */

.lpm-dashboard {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    -webkit-font-smoothing: auto;
}

/* ── Hero / Status Card ── */
.lpm-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #E07318 0%, #F5821F 100%);
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(245,130,31,.2);
}
.lpm-hero--inactive {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    box-shadow: 0 4px 20px rgba(75,85,99,.18);
}
.lpm-hero__badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.lpm-hero__info {
    flex: 1;
}
.lpm-hero__title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.lpm-hero__detail {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    margin-top: 4px;
    line-height: 1.5;
}
.lpm-hero__detail strong {
    color: #fff;
}

/* Tag (Activo / Inactivo) */
.lpm-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
    line-height: 1.4;
}
.lpm-tag--active {
    background: rgba(34,197,94,.2);
    color: #86efac;
}
.lpm-tag--inactive {
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
}

/* ── Stats / Benefits Grid ── */
.lpm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.lpm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s;
}
.lpm-stat:hover {
    border-color: #fdd9b5;
    box-shadow: 0 2px 12px rgba(245,130,31,.08);
}
.lpm-stat__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.lpm-stat__icon--savings  { background: #dcfce7; color: #16a34a; }
.lpm-stat__icon--calendar { background: #dbeafe; color: #2563eb; }
.lpm-stat__icon--shipping { background: #fef3c7; color: #d97706; }
.lpm-stat__icon--points   { background: #fce7f3; color: #db2777; }
.lpm-stat__value {
    font-size: 22px;
    font-weight: 800;
    color: #2A2A2A;
    line-height: 1.2;
}
.lpm-stat__label {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

/* ── Section Title ── */
.lpm-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #2A2A2A;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

/* ── Renewal Section ── */
.lpm-renewal {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    background: #f9fafb;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-top: 4px;
}
.lpm-renewal__text {
    flex: 1;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}
.lpm-renewal__text strong {
    color: #1B3C2D;
    font-size: 14px;
}

/* ── Buttons ── */
a.lpm-btn,
a.lpm-btn:link,
a.lpm-btn:visited,
.lpm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F5821F !important;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(245,130,31,.2);
    white-space: nowrap;
    flex-shrink: 0;
}
a.lpm-btn:hover,
.lpm-btn:hover {
    background: #E07318 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245,130,31,.3);
    color: #fff !important;
}
.lpm-btn--primary {
    background: linear-gradient(135deg, #E07318, #F5821F);
    padding: 14px 28px;
    font-size: 15px;
    margin-top: 8px;
}

/* ── Legacy classes (keep for backwards compat) ── */
.lpm-cta {
    display: inline-block;
    background: #F5821F;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: background 0.2s;
}
.lpm-cta:hover { background: #E07318; color: #fff !important; }
.lpm-renew-btn {
    display: inline-block;
    background: #F5821F;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.lpm-renew-btn:hover { background: #E07318; color: #fff !important; }

/* ══════════════════════════════════════
   CART SAVINGS BANNER
   ══════════════════════════════════════ */

.lpm-cart-savings {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-left: 4px solid #F5821F;
    border-radius: 10px;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
    -webkit-font-smoothing: auto;
}
.lpm-cart-savings svg {
    flex-shrink: 0;
    color: #F5821F;
}
.lpm-cart-savings strong {
    color: #9a3412;
}

/* ── Per-item savings under product name ── */
.lpm-cart-item-saving {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    line-height: 1.4;
    -webkit-font-smoothing: auto;
}
.lpm-cart-item-saving svg {
    flex-shrink: 0;
    color: #16a34a;
}
.lpm-cart-item-cta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.4;
    -webkit-font-smoothing: auto;
}
.lpm-cart-item-cta svg {
    flex-shrink: 0;
    color: #F5821F;
}
.lpm-cart-item-cta a {
    color: #F5821F !important;
    font-weight: 700;
    text-decoration: none !important;
}
.lpm-cart-item-cta a:hover {
    text-decoration: underline !important;
}
.lpm-cart-item-cta strong {
    color: #9a3412;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 768px) {
    .lpm-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .lpm-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .lpm-renewal {
        flex-direction: column;
        text-align: center;
    }
    .lpm-cart-savings {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .lpm-member-price {
        flex-wrap: wrap;
        font-size: 12px;
        padding: 8px 10px;
    }
    .lpm-member-label {
        white-space: normal;
    }
    .lpm-member-cta {
        margin-left: 0;
        width: 100%;
        margin-top: 4px;
    }
    .lpm-member-amount {
        font-size: 14px;
    }
    .lpm-stats {
        grid-template-columns: 1fr;
    }
    .lpm-btn,
    a.lpm-btn,
    a.lpm-btn:link {
        white-space: normal;
        padding: 10px 18px;
        font-size: 13px;
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    .lpm-cart-savings {
        padding: 10px 12px;
        gap: 8px;
        font-size: 13px;
        border-radius: 8px;
    }
    .lpm-cart-item-saving,
    .lpm-cart-item-cta {
        font-size: 11px;
    }
    .lpm-hero__title {
        font-size: 16px;
    }
    .lpm-hero__detail {
        font-size: 12px;
    }
    .lpm-renewal {
        padding: 14px 16px;
        gap: 12px;
    }
}
