/* ════════════════════════════════
   MODAL SUSCRIPCIÓN — Freeze Foods
   ════════════════════════════════ */
.sm-overlay {
    position: fixed; inset: 0; z-index: 99998;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: smFadeIn 0.25s ease;
}
@keyframes smFadeIn { from { opacity: 0; } to { opacity: 1; } }

.sm-card {
    background: #fff;
    border-radius: 24px;
    width: 100%; max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0,0,0,0.22);
    animation: smSlideIn 0.3s cubic-bezier(.4,0,.2,1);
    position: relative;
}
@keyframes smSlideIn {
    from { transform: translateY(24px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.sm-header {
    background: linear-gradient(135deg, #184080, #1a4a9a);
    color: white;
    padding: 28px 32px 24px;
    border-radius: 24px 24px 0 0;
    position: relative;
}
.sm-cerrar {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.15); border: none;
    border-radius: 50%; color: white; font-size: 16px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.sm-cerrar:hover { background: rgba(255,255,255,0.25); }
.sm-plan-nombre { font-size: 1.5rem; font-weight: 900; margin-bottom: 4px; }
.sm-plan-desc { font-size: 0.88rem; color: rgba(255,255,255,0.75); margin-bottom: 16px; }
.sm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-chip {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem; font-weight: 600;
    padding: 4px 12px; border-radius: 20px;
}
.sm-chip.naranja { background: rgba(255,107,53,0.25); border-color: rgba(255,107,53,0.5); color: #ffa07a; }

.sm-body { padding: 28px 32px; }

/* Frecuencia */
.sm-seccion-titulo {
    font-size: 0.8rem; font-weight: 800; letter-spacing: 1.5px;
    text-transform: uppercase; color: #94a3b8; margin-bottom: 14px;
}
.sm-frecuencias { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.sm-frec-opcion {
    border: 2px solid #e2e8f0; border-radius: 14px;
    padding: 14px 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.2s;
}
.sm-frec-opcion:hover { border-color: #184080; background: #f8faff; }
.sm-frec-opcion.activa {
    border-color: #184080;
    background: linear-gradient(135deg, #f0f4ff, #f8faff);
    box-shadow: 0 2px 12px rgba(24,64,128,0.1);
}
.sm-frec-izq { display: flex; align-items: center; gap: 12px; }
.sm-frec-radio {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #e2e8f0; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: border-color 0.2s;
}
.sm-frec-opcion.activa .sm-frec-radio { border-color: #184080; }
.sm-frec-radio-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #184080; display: none;
}
.sm-frec-opcion.activa .sm-frec-radio-dot { display: block; }
.sm-frec-info {}
.sm-frec-nombre { font-weight: 700; color: #184080; font-size: 0.95rem; }
.sm-frec-tag {
    font-size: 0.7rem; font-weight: 600; padding: 2px 8px;
    border-radius: 20px; margin-left: 8px;
    background: #dcfce7; color: #166534;
}
.sm-frec-envio { font-size: 0.78rem; color: #64748b; margin-top: 2px; }
.sm-frec-envio.gratis { color: #16a34a; font-weight: 600; }
.sm-frec-precio { font-size: 1.2rem; font-weight: 900; color: #184080; }

/* Total */
.sm-resumen {
    background: #f8faff; border-radius: 14px;
    padding: 16px 20px; margin-bottom: 20px;
    border: 1px solid #e8efff;
}
.sm-resumen-fila {
    display: flex; justify-content: space-between;
    font-size: 0.88rem; color: #475569; margin-bottom: 6px;
}
.sm-resumen-fila:last-child { margin-bottom: 0; }
.sm-resumen-total {
    display: flex; justify-content: space-between;
    font-size: 1.1rem; font-weight: 900; color: #184080;
    border-top: 1px solid #e2e8f0; padding-top: 10px; margin-top: 10px;
}
.sm-btn-principal {
    width: 100%; padding: 16px;
    background: #ff6b35; color: white; border: none;
    border-radius: 14px; font-size: 1rem; font-weight: 800;
    cursor: pointer; font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}
.sm-btn-principal:hover { background: #e05a28; transform: translateY(-2px); }
.sm-btn-principal:disabled { background: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; }

/* Personalizada — lista de productos */
.sm-productos-grid {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 20px;
    max-height: 280px; overflow-y: auto;
    padding-right: 4px;
}
.sm-prod-item {
    display: flex; align-items: center; gap: 12px;
    background: #f8faff; border-radius: 12px;
    padding: 12px 14px; border: 1px solid #e8efff;
}
.sm-prod-emoji { font-size: 1.4rem; flex-shrink: 0; }
.sm-prod-info { flex: 1; }
.sm-prod-nombre { font-weight: 600; color: #184080; font-size: 0.88rem; }
.sm-prod-peso { font-size: 0.74rem; color: #94a3b8; }
.sm-prod-precio { font-weight: 700; color: #184080; font-size: 0.9rem; margin-right: 12px; white-space: nowrap; }
.sm-prod-ctrl {
    display: flex; align-items: center; gap: 8px;
    background: white; border-radius: 8px;
    padding: 4px 8px; border: 1px solid #e2e8f0;
}
.sm-prod-ctrl button {
    width: 26px; height: 26px; border-radius: 6px;
    border: none; background: #f0f4ff;
    color: #184080; font-size: 15px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.sm-prod-ctrl button:hover { background: #184080; color: white; }
.sm-prod-ctrl span { min-width: 20px; text-align: center; font-weight: 700; color: #184080; font-size: 0.9rem; }
.sm-minimo-aviso {
    background: #fff7ed; border: 1px solid #fed7aa;
    color: #9a3412; font-size: 0.8rem; border-radius: 8px;
    padding: 8px 12px; margin-bottom: 12px; text-align: center;
}

@media (max-width: 600px) {
    .sm-card { border-radius: 16px; max-height: 95vh; }
    .sm-header { padding: 22px 20px 18px; border-radius: 16px 16px 0 0; }
    .sm-body { padding: 20px; }
    .sm-frec-opcion { flex-wrap: wrap; gap: 8px; }
}
