/**
 * Mándale Flores - Estilos PWA y Tarjeta en Mi Cuenta (v1.2.0)
 */

:root {
  --mf-coral: #e05368;
  --mf-coral-hover: #c93b51;
  --mf-coral-light: #fdf2f4;
  --mf-dark: #1e293b;
  --mf-text-muted: #64748b;
  --mf-border: #f1f5f9;
  --mf-radius: 16px;
  --mf-success: #10b981;
}

/* Tarjeta Principal en Mi Cuenta */
.mf-account-pwa-card {
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: var(--mf-radius);
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 10px 25px -5px rgba(224, 83, 104, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.mf-account-pwa-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e05368 0%, #f43f5e 50%, #fda4af 100%);
}

.mf-pwa-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.mf-pwa-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mf-coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mf-pwa-card-title {
  flex: 1;
}

.mf-pwa-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.mf-pwa-card-title h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--mf-dark);
}

.mf-pwa-card-title p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: var(--mf-text-muted);
}

/* Indicador Piloto LED Persistente */
.mf-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.mf-status-indicator .mf-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  transition: all 0.3s ease;
}

.mf-status-indicator.active {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.mf-status-indicator.active .mf-led {
  background: #10b981;
  box-shadow: 0 0 8px #10b981, 0 0 12px rgba(16, 185, 129, 0.6);
  animation: mfLedPulse 2s infinite;
}

@keyframes mfLedPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Grid de Acciones */
.mf-pwa-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 600px) {
  .mf-pwa-actions-grid {
    grid-template-columns: 1fr;
  }
}

.mf-pwa-action-box {
  background: #fafafa;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.mf-pwa-action-box:hover {
  background: #ffffff;
  border-color: #fecdd3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.mf-pwa-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f1f5f9;
}

.mf-pwa-action-info strong {
  display: block;
  font-size: 14px;
  color: var(--mf-dark);
}

.mf-pwa-action-info span {
  display: block;
  font-size: 12px;
  color: var(--mf-text-muted);
  margin-top: 2px;
}

/* Botones de Acción */
.mf-btn-pwa-primary {
  width: 100%;
  background: var(--mf-coral);
  color: #ffffff !important;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 4px 10px rgba(224, 83, 104, 0.2);
}

.mf-btn-pwa-primary:hover {
  background: var(--mf-coral-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(224, 83, 104, 0.3);
}

.mf-btn-pwa-primary.active {
  background: #059669;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}

.mf-btn-pwa-secondary {
  width: 100%;
  background: #ffffff;
  color: var(--mf-dark) !important;
  border: 1px solid #cbd5e1;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.mf-btn-pwa-secondary:hover {
  background: #f8fafc;
  border-color: var(--mf-coral);
  color: var(--mf-coral) !important;
}

/* Switch para Silenciar Correos */
.mf-email-toggle-container {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mf-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.mf-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mf-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.mf-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .mf-slider {
  background-color: var(--mf-coral);
}

input:checked + .mf-slider:before {
  transform: translateX(20px);
}

.mf-email-toggle-label strong {
  display: block;
  font-size: 13px;
  color: var(--mf-dark);
}

.mf-email-toggle-label span {
  display: block;
  font-size: 12px;
  color: var(--mf-text-muted);
}

/* Guía iOS */
.mf-ios-instructions {
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

.mf-ios-instructions h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--mf-dark);
}

.mf-ios-instructions ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}
