/* ==========================================================================
   Estilos del Formulario Dinámico de Asesoría (Warm Brand Identity)
   Tipografía Unificada: Montserrat (Títulos/Encabezados) + Inter (Textos/Formularios)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
  --mv-red: #ED1C24;
  --mv-red-dark: #C41219;
  --mv-orange: #F58220;
  --mv-yellow: #FFC20E;
  --mv-bg-warm: #FDFBF8;
  --mv-bg-card: #FFFFFF;
  --mv-border: #EAE3DA;
  --mv-border-light: #F2ECE4;
  --mv-text: #1A1A1A;
  --mv-text-muted: #52525B;

  /* Sistema Tipográfico Unificado */
  --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.asesoria-modal-overlay,
.asesoria-modal-card {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.asesoria-title,
.form-group-title,
.asesoria-badge,
.step-number,
.asesoria-submit-btn {
  font-family: var(--font-heading) !important;
}

.asesoria-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 28, 26, 0.7);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-in-out;
}

.asesoria-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.asesoria-modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(31, 28, 26, 0.25);
  border: 1px solid var(--mv-border);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.asesoria-modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--mv-border-light);
  text-align: center;
  position: relative;
  background-color: #FFFFFF;
  background-image: url('/masvending/assets/img/fondos/patron-marca-agua.svg');
  background-repeat: repeat;
}

.asesoria-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #FFFFFF;
  border: 1px solid var(--mv-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mv-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.asesoria-modal-close:hover {
  background: var(--mv-red);
  color: #FFFFFF;
  border-color: var(--mv-red);
}

.asesoria-logo {
  height: 42px;
  margin-bottom: 12px;
}

.asesoria-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--mv-text);
  margin-bottom: 6px;
}

.asesoria-subtitle {
  font-size: 0.9rem;
  color: var(--mv-text-muted);
  line-height: 1.5;
  max-width: 540px;
  margin: 0 auto;
}

.asesoria-modal-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.asesoria-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 8px;
}

.asesoria-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--mv-red);
  background: #FFF4E5;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245, 130, 32, 0.25);
}

.asesoria-progress-bar {
  height: 4px;
  background: #F4EFEA;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.asesoria-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mv-yellow) 0%, var(--mv-orange) 50%, var(--mv-red) 100%);
  transition: width 0.3s ease;
}

.form-group-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mv-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--mv-text);
}

.form-field label span.required {
  color: var(--mv-red);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--mv-border);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--mv-text);
  background: #FFFFFF;
  transition: all 0.2s ease;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--mv-orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

/* Branch Options Cards (¿Cómo podemos ayudarte?) */
.service-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-option-card {
  border: 1.5px solid var(--mv-border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--mv-bg-warm);
}

.service-option-card:hover {
  border-color: var(--mv-orange);
  background: #FFF4E5;
  transform: translateY(-1px);
}

.service-option-card.selected {
  border-color: var(--mv-red);
  background: #FFF4E5;
  box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.2);
}

.service-option-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.service-option-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--mv-text);
  margin-bottom: 2px;
}

.service-option-info p {
  font-size: 0.82rem;
  color: var(--mv-text-muted);
  line-height: 1.35;
}

/* Radio & Checkbox Custom Groups */
.options-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.chip-checkbox,
.chip-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--mv-bg-warm);
  border: 1.5px solid var(--mv-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mv-text);
  transition: all 0.15s ease;
}

.chip-checkbox:hover,
.chip-radio:hover {
  background: #FFF4E5;
  border-color: var(--mv-orange);
}

.chip-checkbox input:checked + span,
.chip-radio input:checked + span {
  font-weight: 800;
  color: var(--mv-red);
}

.asesoria-legal-disclaimer {
  font-size: 0.78rem;
  color: var(--mv-text-muted);
  line-height: 1.4;
  text-align: center;
  margin-top: 10px;
}

.asesoria-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--mv-border-light);
}

.btn-asesoria-submit {
  background: linear-gradient(135deg, var(--mv-red) 0%, #D4141B 100%);
  color: #FFFFFF;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(237, 28, 36, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-asesoria-submit:hover {
  background: linear-gradient(135deg, #FF262F 0%, var(--mv-red) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 28, 36, 0.45);
}

.btn-asesoria-back {
  background: #FFFFFF;
  color: var(--mv-text);
  border: 1.5px solid var(--mv-border);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-asesoria-back:hover {
  background: var(--mv-bg-warm);
  border-color: var(--mv-orange);
  color: var(--mv-red);
}

/* Success Card */
.asesoria-success-box {
  text-align: center;
  padding: 32px 16px;
}

.asesoria-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(40, 167, 69, 0.15);
  color: #28A745;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.asesoria-priority-badge,
.asesoria-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
}

.asesoria-status-badge {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.priority-alta {
  background: rgba(237, 28, 36, 0.15);
  color: var(--mv-red);
}

.priority-media {
  background: rgba(245, 130, 32, 0.15);
  color: var(--mv-orange);
}

.priority-baja {
  background: rgba(255, 194, 14, 0.2);
  color: #925804;
}
