/* ═══════════════════════════════════════════
   Suscripción Café Munallpa — Estilos v5.0
   ═══════════════════════════════════════════ */

.scafe-wrap *, .scafe-wrap *::before, .scafe-wrap *::after {
    box-sizing: border-box; margin: 0; padding: 0;
}
.scafe-wrap {
    max-width: 520px; margin: 0 auto;
    padding: 1.5rem 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
}

/* ── Encabezado del plan ── */
.scafe-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 14px;
    border: 1px solid #e8e8e8; border-left-width: 4px;
    background: #fafafa; margin-bottom: 20px;
}
.scafe-badge {
    color: #fff; font-size: 13px; font-weight: 700;
    padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.scafe-sub { font-size: 13px; color: #666; }

/* ── Barra de progreso ── */
.scafe-progress { display: flex; gap: 6px; margin-bottom: 4px; }
.scafe-step {
    flex: 1; height: 4px; border-radius: 999px;
    background: #ebebeb; transition: background .3s;
}
.scafe-step.done { background: #6C5CE7; }
.scafe-progress-labels { display: flex; margin-bottom: 20px; }
.scafe-progress-labels span {
    flex: 1; font-size: 9px; color: #bbb;
    text-align: center; text-transform: uppercase; letter-spacing: .05em;
}

/* ── Secciones ── */
.scafe-section { margin-bottom: 20px; }
.scafe-hidden  { display: none !important; }
.scafe-label {
    font-size: 10px; font-weight: 700; letter-spacing: .1em;
    color: #888; text-transform: uppercase; margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.scafe-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: #aaa; font-size: 12px; }

/* ── Pills ── */
.scafe-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.scafe-pill {
    padding: 9px 18px; border-radius: 12px;
    border: 1.5px solid #ddd; background: #fff;
    color: #333; font-size: 13px; cursor: pointer;
    transition: all .15s; font-family: inherit;
    text-align: center; line-height: 1.4;
}
.scafe-pill strong { display: block; font-size: 15px; }
.scafe-pill small  { color: #888; font-size: 11px; }
.scafe-pill em     { color: #6C5CE7; font-style: normal; font-weight: 700; font-size: 13px; }
.scafe-pill:hover  { border-color: #aaa; }
.scafe-pill.sel    { background: #2D1B6B; border-color: #2D1B6B; color: #fff; }
.scafe-pill.sel small,
.scafe-pill.sel em { color: #c4b5fd; }

/* ── Contador ── */
.scafe-counter {
    font-size: 13px; color: #6C5CE7; font-weight: 600;
    margin-bottom: 10px; padding: 6px 12px;
    background: #EAE6FF; border-radius: 8px; display: inline-block;
}

/* ── Tarjetas de café ── */
.scafe-coffees { display: flex; flex-direction: column; gap: 10px; }
.scafe-card {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; border-radius: 14px;
    border: 1.5px solid #e8e8e8; background: #fff;
    cursor: pointer; transition: all .15s; position: relative;
}
.scafe-card:hover { border-color: #bbb; }
.scafe-card.sel   { border-color: #6C5CE7; background: #EAE6FF; }
.scafe-card img   { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.scafe-noimg {
    width: 60px; height: 60px; border-radius: 10px;
    background: #D6CDFA; display: flex; align-items: center;
    justify-content: center; font-size: 26px; flex-shrink: 0;
}
.scafe-card-body { flex: 1; min-width: 0; }
.scafe-cname  { font-size: 15px; font-weight: 600; color: #111; }
.scafe-cdesc  { font-size: 12px; color: #999; margin-top: 2px; }

/* Badge de cantidad */
.scafe-qty {
    position: absolute; top: 8px; right: 8px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #6C5CE7; color: #fff;
    font-size: 12px; font-weight: 700;
    display: none; align-items: center; justify-content: center;
}

/* ── Resumen ── */
.scafe-summary {
    margin-top: 10px; padding: 10px 14px;
    background: #f0edff; border-radius: 10px;
    font-size: 13px; color: #5a4aa8; font-weight: 500;
    min-height: 0;
}
.scafe-error {
    padding: 12px; background: #fff0f0; border-radius: 8px;
    color: #c00; font-size: 13px;
}

/* ── Formulario de datos ── */
.scafe-user-box {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    background: #f5f5f5; margin-bottom: 12px;
}
.scafe-avatar { font-size: 28px; }
.scafe-form   { display: flex; flex-direction: column; gap: 10px; }
.scafe-field  { display: flex; flex-direction: column; gap: 4px; }
.scafe-field label { font-size: 12px; color: #666; font-weight: 500; }
.scafe-field input,
.scafe-field textarea {
    padding: 10px 14px; border-radius: 10px;
    border: 1.5px solid #ddd; font-family: inherit;
    font-size: 14px; transition: border .15s; width: 100%;
}
.scafe-field input:focus,
.scafe-field textarea:focus { outline: none; border-color: #6C5CE7; }
.scafe-field textarea { resize: vertical; min-height: 72px; }
.scafe-login-hint { font-size: 12px; color: #aaa; }
.scafe-login-hint a { color: #6C5CE7; }

/* ── Botón CTA ── */
.scafe-cta {
    width: 100%; padding: 16px; border-radius: 999px; border: none;
    background: #var(--sc, 6C5CE7); color: #fff;
    font-size: 16px; font-weight: 700; cursor: pointer;
    font-family: inherit; transition: opacity .15s, transform .1s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 4px;
    background-color: #6C5CE7;
}
.scafe-cta:hover   { opacity: .88; }
.scafe-cta:active  { transform: scale(.98); }
.scafe-cta.disabled {
    background: #e8e8e8 !important; color: #aaa;
    cursor: not-allowed; pointer-events: none;
}

/* ── Loader ── */
.scafe-loader {
    display: none; align-items: center; justify-content: center;
    gap: 10px; padding: 14px; font-size: 14px; color: #666;
}
.scafe-spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 3px solid #ddd; border-top-color: #6C5CE7;
    animation: sc-spin .7s linear infinite; display: inline-block;
}
@keyframes sc-spin { to { transform: rotate(360deg); } }

/* ── Nota al pie ── */
.scafe-foot {
    font-size: 12px; color: #bbb; text-align: center;
    margin-top: 14px; line-height: 1.6;
}

/* ═══════════════════════════════════════════
   MIS SUSCRIPCIONES — Mi Cuenta WooCommerce
   ═══════════════════════════════════════════ */
.scafe-mi-sub {
    border: 1.5px solid #e8e8e8; border-radius: 14px;
    margin-bottom: 16px; overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.scafe-mi-sub__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: #fafafa;
    border-bottom: 1px solid #eee;
}
.scafe-mi-sub__header strong { font-size: 15px; color: #111; }
.scafe-mi-sub__header small  { font-size: 12px; color: #999; }
.scafe-mi-sub__body {
    padding: 14px 18px; display: grid;
    grid-template-columns: 1fr 1fr; gap: 6px 16px;
}
.scafe-mi-sub__body p { font-size: 13px; color: #444; margin: 0; }
.scafe-mi-sub__actions {
    padding: 12px 18px; border-top: 1px solid #eee;
    background: #f9f9f9; display: flex; gap: 8px; flex-wrap: wrap;
    align-items: center;
}
.scafe-pendiente-msg { font-size: 13px; color: #856404; margin: 0; }

/* ── Badges de estado ── */
.scafe-estado {
    padding: 4px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
.scafe-estado--activa    { background: #d4edda; color: #155724; }
.scafe-estado--pausada   { background: #fff3cd; color: #856404; }
.scafe-estado--cancelada { background: #f8d7da; color: #721c24; }
.scafe-estado--pendiente { background: #d1ecf1; color: #0c5460; }
