:root {
  --mbm-gold: #f9c828ba;
  --mbm-dark: #111827;
  --mbm-gray: #6b7280;
  --mbm-font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.mbm-wrapper {
  width: 100%;
  background: #f3f4f6;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  box-sizing: border-box;
  font-family: var(--mbm-font-family);
}

.mbm-card {
  background: #fff;
  width: 100%;
  max-width: 1200px;
  min-height: 650px;
  border-radius: 24px;
  display: flex;
  overflow: visible;
  gap: 36px;
  padding: 16px;
  box-sizing: border-box;
}


.mbm-sidebar {
  width: 300px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-radius:12px;
  overflow: visible;
  background: var(--mbm-gold);
}

/* Sidebar Header (Negro) */
.mbm-sidebar-header {
  background: var(--mbm-dark);
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 12px 12px 0 0;
  padding: 16px;
}
.mbm-logo-img {
  max-height: 40px;
  width: auto;
  display: block;
}

.mbm-sidebar-steps-container {
  flex-grow: 1;
  padding: 30px 25px;
}
.mbm-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mbm-step {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  opacity: 0.5;
  font-size: 13px;
  font-weight: 600;
  color: var(--mbm-gray);
  transition: 0.3s;
}
.mbm-step.active {
  opacity: 1;
  color: var(--mbm-dark);
  transform: translateX(5px);
}
.step-num {
  width: 24px;
  height: 24px;
  border: 2px solid #ccc;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  background: #fff;
  font-size: 11px;
}
.mbm-step.active .step-num {
  border-color: var(--mbm-gold);
  color: var(--mbm-dark);
}

/* --- CONTENIDO (DERECHA) --- */
.mbm-content {
  flex-grow: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: #fff;
}


.step-content {
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mbm-header {
  margin-bottom: 35px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: none;
  padding-bottom: 0;
}

.mbm-title-section h6 {
  font-size: 18px;
  font-weight: 700;
  color: var(--mbm-dark);
  margin: 0;
  line-height: 1.2;
}
.mbm-title-section p {
  font-size: 14px;
  color: var(--mbm-gray);
  margin: 0;
  max-width: 500px;
  line-height: 1.4;
}

.mbm-help-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo shown above results */
.mbm-result-logo {
  display: block;
  max-height: 48px;
  margin: 0 auto 12px;
}

.mbm-help-text {
  text-align: right;
  font-size: 13px;
  color: var(--mbm-gray);
  line-height: 1.3;
}
.mbm-help-text strong {
  display: block;
  color: var(--mbm-dark);
}
.mbm-help-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- FORMULARIO Y INPUTS --- */
.form-step {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}
.form-step.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--mbm-dark);
}
.mbm-subtitle {
  font-size: 13px;
  color: var(--mbm-gray);
  margin-top: -15px;
  margin-bottom: 20px;
  display: block;
}

/* Grid de Opciones */
.mbm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}


.mbm-opt {
  cursor: pointer;
  position: relative;
}
.mbm-opt input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

/* La tarjeta del input */
.opt-card {
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mbm-dark);
  transition: 0.2s all ease;
  font-size: 12px;
  font-weight: 300;
  background: #fff;
}

/* El círculo visual (el "fake checkbox") */
.opt-indicator {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--mbm-gray);
  background: transparent;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: 0.12s all ease;
}

/* Hover */
.mbm-opt:hover .opt-card {
  border-color: #ccc;
  background: #f9fafb;
}

.mbm-opt input:checked + .opt-card {
  border: 1px solid var(--mbm-gold);
}

.mbm-opt input:checked + .opt-card .opt-indicator {
  border:4px solid  var(--mbm-gold);
  background: #ffffff;
  width: 18px;
  height: 18px;
}

/* Footer Buttons (Más compactos) */
.form-footer {
  margin-top: 100px;
  padding-top: 12px;
  border-top: none;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-next, .btn-back, .btn-restart {
  background: #f7e69a !important;
  border-left: 2px solid var(--mbm-gold) !important;
  border-bottom: 2px solid var(--mbm-gold) !important;
  border-right: 2px solid var(--mbm-gold)!important;
  border-top: none !important;
  color: var(--mbm-dark) !important;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 24px;
  text-decoration: none;
}

.results-container {
  display: none;
  text-align: center;
}
.results-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
   margin-top: 30px;
}

.prop-card {
  background: white;
  border: 1px solid var(--mbm-light-gray);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s;
  text-align: left;
  position: relative;
}
.prop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Destacar al Ganador #1 */
.prop-card.rank-0 {
  border: 3px solid #FACC15;
  transform: scale(1.03);
  z-index: 10;
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.3);
}

.badge-0 { background: #FACC15; color: black; }

.prop-card.rank-1 {
    border: 3px solid #9CA3AF;
    z-index: 5;
}
.badge-1 { background: #9CA3AF; color: white; }

.prop-card.rank-2 {
    border: 3px solid #CD7F32;
    z-index: 5;
}
.badge-2 { background: #CD7F32; color: white; }

.podio-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.prop-card.rank-0::before {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--mbm-gold);
  color: black;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
}

/* --- ESTILOS DE LA LISTA DE MATCHES (10 Puntos) --- */
.prop-analysis {
    margin: 15px 0;
    background: #F9FAFB;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #eee;
}
.analysis-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 8px;
    text-align: center;
}
.match-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 5px 10px;
}
.match-item-yes, .match-item-no {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.match-item-yes { color: #059669; font-weight: 600; } 
.match-item-no { color: #9CA3AF; text-decoration: line-through; opacity: 0.7; } 

.chk-yes { color: #10B981; font-weight: bold; }
.chk-no { color: #EF4444; font-weight: bold; }

.prop-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.prop-body {
  padding: 15px;
}
.prop-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--mbm-dark);
  margin: 0 0 5px 0;
}
.prop-price {
  font-size: 16px;
  color: var(--mbm-gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.prop-reason {
  font-size: 12px;
  color: var(--mbm-gray);
  line-height: 1.4;
  margin-bottom: 15px;
  background: #f3f4f6;
  padding: 8px;
  border-radius: 8px;
}

.prop-reasons-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prop-reasons-list li {
  margin: 6px 0;
  padding-left: 0;
  font-size: 12px;
  color: var(--mbm-gray);
  display: flex;
  align-items: flex-start;
  line-height: 1.3;
}

.prop-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #f7e69a !important;
  border-left: 2px solid var(--mbm-gold) !important;
  border-bottom: 2px solid var(--mbm-gold) !important;
  border-right: 2px solid var(--mbm-gold)!important;
  border-top: none !important;
  color: black;
  padding: 10px 0;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .mbm-card {
    flex-direction: column;
    border-radius: 0;
    height: auto;
    gap: 0;
  }
  .mbm-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    margin-right: 0;
    box-shadow: none;
    background: var(--mbm-cream);
  }
  .mbm-content {
    box-shadow: none;
    border-radius: 0;
  }
  .mbm-sidebar-steps-container {
    display: none;
  }
  .mbm-content {
    padding: 15px 5px;
  }
  .mbm-header {
    flex-direction: column;
    gap: 10px;
  }
  .mbm-help-section {
    align-self: flex-start;
  }
  .mbm-grid {
    grid-template-columns: 1fr;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
}

  .mbm-progress-wrap {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  .mbm-progress {
    flex: 1 1 auto;
    background: #f1f1f1;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
  }
  .mbm-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--mbm-gold);
    transition: width 300ms ease;
  }
  .mbm-progress-text {
    font-size: 12px;
    color: var(--mbm-gray);
    white-space: nowrap;
  }

@media (max-width: 767px) {
  .mbm-help-section { display: flex; align-items: center; gap: 104px; }
  .mbm-help-text { text-align: left; flex: 1 1 auto; }
  .mbm-help-img { display: block; text-align: right;}
  .form-footer { margin-top: 5px; }
  .mbm-progress-wrap { display: flex; }
  .mbm-card {
    padding: 5px;
  }
  .mbm-result-logo { max-height: 40px; margin-bottom: 10px; }

  .mbm-sidebar-header {
    padding: 5px;
  }

  .step-content{
    padding: 10px;
  }

  .mbm-grid{
    gap: 5px;
  }
  .mbm-header{
    margin-bottom: 5px;
  }
  .question-title {
    margin-bottom: 10px;
  }

  .opt-card {
    padding: 5px 16px;
  }
}

.mbm-admin-row {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}
