/* ==========================================================================
   MAESTRO IM V5 — DISEÑO MADRE DE DIAGNÓSTICOS (CSS MINIMALISTA Y AISLADO)
   ========================================================================== */

   .ms-v5-container .ms-v5-node.is-hidden,
   .ms-v5-container .ms-v5-back-nav.is-hidden,
   .ms-v5-container .ms-v5-form.is-hidden {
       display: none !important;
   }
   
   .ms-v5-container {
       max-width: 620px;
       margin: 0 auto;
       background: #11131B;
       color: #F8FAFC;
       padding: 30px;
       border-radius: 16px;
       border: 1px solid #2B3240;
       box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
       font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
       box-sizing: border-box;
   }
   
   .ms-v5-container .ms-v5-back-nav {
       margin-bottom: 20px;
   }
   
   .ms-v5-container .ms-v5-back-btn {
       background: transparent;
       border: none;
       color: #94A3B8;
       cursor: pointer;
       font-size: 0.9rem;
       padding: 0;
       font-weight: 500;
       transition: color 0.2s ease;
   }
   
   .ms-v5-container .ms-v5-back-btn:hover {
       color: #00C8FF;
   }
   
   .ms-v5-container .ms-v5-title {
       color: #d4af37;
       margin: 0 0 20px 0;
       font-size: 1.4rem;
       font-weight: 700;
       letter-spacing: -0.3px;
   }
   
   .ms-v5-container .ms-v5-question-text {
       font-size: 1.15rem;
       font-weight: 600;
       margin-bottom: 20px;
       line-height: 1.4;
       color: #F8FAFC;
   }
   
   .ms-v5-container .ms-v5-options-grid {
       display: flex;
       flex-direction: column;
       gap: 12px;
   }
   
   .ms-v5-container .ms-v5-option-btn {
       padding: 16px 20px;
       background: #1B202D;
       border: 1px solid #2B3240;
       color: #F8FAFC;
       border-radius: 10px;
       text-align: left;
       font-size: 1rem;
       cursor: pointer;
       font-weight: 500;
       transition: all 0.2s ease;
       outline: none;
   }
   
   .ms-v5-container .ms-v5-option-btn:hover {
       background: #252B3C;
       border-color: #00C8FF;
       transform: translateY(-1px);
   }
   
   .ms-v5-container .ms-v5-option-btn:active {
       transform: translateY(0);
   }
   
   .ms-v5-container .ms-v5-contact-grid {
       display: flex;
       flex-direction: column;
       gap: 14px;
   }
   
   .ms-v5-container .ms-v5-input {
       width: 100%;
       padding: 14px 16px;
       background: #0B0D13 !important;
       border: 1px solid #2B3240 !important;
       color: #FFFFFF !important;
       border-radius: 8px;
       font-size: 1rem;
       box-sizing: border-box;
       outline: none;
       transition: border-color 0.2s ease;
   }
   
   .ms-v5-container .ms-v5-input::placeholder {
       color: #94A3B8 !important;
       opacity: 1 !important;
   }
   
   .ms-v5-container .ms-v5-input:-ms-input-placeholder {
       color: #94A3B8 !important;
   }
   
   .ms-v5-container .ms-v5-input::-ms-input-placeholder {
       color: #94A3B8 !important;
   }
   
   .ms-v5-container .ms-v5-input:focus {
       border-color: #00C8FF !important;
   }
   
   .ms-v5-container .ms-v5-submit-btn,
   .ms-v5-container .ms-v5-next-btn {
       padding: 16px;
       background: linear-gradient(90deg, #00C8FF, #007BFF);
       color: #FFFFFF;
       border: none;
       border-radius: 10px;
       font-size: 1rem;
       font-weight: 700;
       cursor: pointer;
       margin-top: 10px;
       transition: opacity 0.2s ease;
       width: 100%;
   }
   
   .ms-v5-container .ms-v5-submit-btn:hover,
   .ms-v5-container .ms-v5-next-btn:hover {
       opacity: 0.9;
   }
   
   .ms-v5-container .ms-v5-status {
       margin-top: 20px;
       font-size: 0.95rem;
       text-align: center;
       line-height: 1.5;
   }
   
   .ms-v5-container .ms-v5-status-loading { color: #00C8FF; font-weight: 600; }
   .ms-v5-container .ms-v5-status-success { color: #00FF66; font-weight: 600; }
   .ms-v5-container .ms-v5-status-error   { color: #FF5500; font-weight: 600; }
   
   /* ==========================================================================
      TARJETA DE RESULTADO EN PANTALLA (ADICIÓN AISLADA)
      ========================================================================== */
   
   .ms-v5-screen-result {
       background: #FFFFFF;
       color: #111827;
       border-radius: 12px;
       padding: 32px 28px;
       box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
       margin-top: 10px;
       box-sizing: border-box;
       animation: fadeIn 0.4s ease-in-out;
   }
   
   @keyframes fadeIn {
       from { opacity: 0; transform: translateY(8px); }
       to { opacity: 1; transform: translateY(0); }
   }
   
   .ms-v5-result-header {
       border-bottom: 1px solid #E5E7EB;
       padding-bottom: 18px;
       margin-bottom: 22px;
   }
   
   .ms-v5-badge {
       display: inline-block;
       background: #F3E8FF;
       color: #6d2b7d;
       font-size: 0.75rem;
       font-weight: 700;
       text-transform: uppercase;
       letter-spacing: 0.8px;
       padding: 4px 10px;
       border-radius: 4px;
       margin-bottom: 10px;
   }
   
   .ms-v5-result-title {
       font-size: 1.5rem;
       font-weight: 800;
       color: #111827;
       margin: 0 0 8px 0;
       letter-spacing: -0.4px;
   }
   
   .ms-v5-email-notice {
       font-size: 0.88rem;
       color: #15803D;
       margin: 0;
       font-weight: 600;
   }
   
   .ms-v5-result-body {
       font-size: 0.98rem;
       line-height: 1.75;
       color: #374151;
   }
   
   .ms-v5-paragraph {
       margin: 0 0 16px 0;
   }
   
   .ms-v5-cta-container {
       text-align: center;
       margin: 20px 0;
   }
   
   .ms-v5-web-btn {
       display: inline-block;
       background-color: #6d2b7d;
       color: #FFFFFF !important;
       font-size: 0.92rem;
       font-weight: 700;
       padding: 12px 26px;
       border-radius: 6px;
       text-decoration: none !important;
       transition: background-color 0.2s ease;
   }
   
   .ms-v5-web-btn:hover {
       background-color: #582265;
   }
   
   @media (max-width: 600px) {
       .ms-v5-container {
           padding: 20px 16px;
           border-radius: 12px;
       }
   
       .ms-v5-screen-result {
           padding: 22px 18px;
       }
   
       .ms-v5-result-title {
           font-size: 1.25rem;
       }
   
       .ms-v5-web-btn {
           width: 100%;
           box-sizing: border-box;
       }
   }
   
   /* ==========================================================================
      SISTEMA DE TARJETAS POST-IT (ANIMACIÓN ESTÁNDAR PIVOTADA EN REPOSO Y HOVER)
      ========================================================================== */
   
   .mim-postit {
       position: relative !important;
       transform-origin: 15% 0% !important;
       transform: rotate(-1.5deg) !important;
       transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
       box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
   }
   
   .mim-postit:nth-child(even) {
       transform-origin: 85% 0% !important;
       transform: rotate(1.5deg) !important;
   }
   
   .mim-postit:hover {
       transform: rotate(-3.5deg) translateY(-5px) !important;
       box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35) !important;
       z-index: 10 !important;
   }
   
   .mim-postit:nth-child(even):hover {
       transform: rotate(3.5deg) translateY(-5px) !important;
   }