@font-face {
   font-family: 'Theater';
   src: url('../fonts/Theater-Bold.woff2') format('woff2');
   font-weight: bold;
   font-style: normal;
   font-display: swap;
}

:root {
   --primary: rgba(205, 97, 73, 1);
   --primary-glow: rgba(205, 97, 73, 0.35);
   --accent-orange: rgba(205, 97, 73, 1);
   --red-btn: #FF1A00;
   --red-btn-hover: #E01500;
   --card-bg: rgba(0, 0, 0, 1);
   --card-hover: #19191E;
   --card-border: rgba(255, 255, 255, 0.08);
   --text-muted: #B3B3B3;
   --positive-aura: #40D4E0;
   --negative-aura: rgba(205, 97, 73, 1);
   --gold-aura: #FFBE3B;
}

* {
   box-sizing: border-box;
}

.ff-theater {
   font-family: 'Theater', sans-serif !important;
}

.text-primary {
   color: var(--primary) !important;
}

.text-aura-total {
   font-size: clamp(3.75rem, 4rem + 6.25vw, 10rem);
}

.aura {
   color: rgba(57, 181, 74, 1) !important;
}

.no-aura {
   color: rgba(255, 0, 0, 1) !important;
}

.box-award {
   background: rgba(255, 0, 0, 1);
   border-radius: 24px;
   padding: 32px 22px;
   text-align: center;
   animation: fadeIn 0.45s ease;
}

body {
   background: linear-gradient(180deg, #000000 0%, #1B1B1F 36%, #F77B67 100%);
   background-size: cover;
   background-attachment: fixed;
   background-position: center;
   font-family: 'Barlow', sans-serif;
   color: #FFFFFF;
   min-height: 100vh;
   margin: 0;
   padding: 0;
   overflow-x: hidden;
}

.progress-wrapper {
   width: 100%;
   height: 8px;
   background-color: #FFFFFF;
   border-radius: 999px;
   overflow: hidden;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);

   .progress-bar-fill {
      height: 100%;
      width: 33.33%;
      background: var(--primary);
      border-radius: 999px;
      transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
   }
}

/* Tarjeta de la pregunta */
.question-box {
   background: var(--card-bg);
   border: 1px solid var(--card-border);
   border-radius: 20px;
   padding: 22px 20px;
   color: #ffffff;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
   margin-bottom: 16px;
   animation: fadeIn 0.35s ease;
}

/* Opciones de respuesta */
.options-list {
   display: flex;
   gap: 12px;
   margin-bottom: 24px;
}

.option-card {
   background: var(--card-bg);
   border: 1.5px solid var(--card-border);
   border-radius: 20px;
   padding: 16px 18px;
   display: flex;
   align-items: flex-start;
   gap: 14px;
   cursor: pointer;
   transition: all 0.22s ease;
   position: relative;
   user-select: none;
   animation: fadeIn 0.35s ease;
   margin-top: 1rem;
}

.option-card:hover {
   background: var(--card-hover);
   border-color: rgba(229, 86, 61, 0.4);
   transform: translateY(-1px);
}

.option-card.selected {
   background: #1A1718;
   border-color: var(--accent-orange);
   box-shadow: 0 0 18px var(--primary-glow);
}

.option-letter {
   font-size: 1.35rem;
   font-weight: 500;
   color: #FFFFFF;
   line-height: 1.25;
   min-width: 22px;
}

.option-content {
   display: flex;
   flex-direction: column;
   gap: 4px;
   flex: 1;
}

.option-text {
   font-size: 0.96rem;
   font-weight: 500;
   line-height: 1.35;
   color: #FFFFFF;
}

.option-aura-sub {
   font-size: 0.82rem;
   font-style: italic;
   font-weight: 400;
   letter-spacing: 0.2px;
}

.option-aura-sub.aura-neg {
   color: var(--negative-aura);
}

.option-aura-sub.aura-pos {
   color: var(--positive-aura);
}

.option-aura-sub.aura-high {
   color: var(--gold-aura);
}

/* Badge de OXXO / parches salvando su aura */
.oxxo-pill-badge {
   border: 1.2px solid rgba(205, 97, 73, 0.45);
   background: rgba(16, 16, 18, 0.65);
   backdrop-filter: blur(8px);
   border-radius: 16px;
   padding: 9px 18px;
   font-size: 0.85rem;
   color: #E2E2E6;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   margin-bottom: 24px;
   width: fit-content;
   max-width: 100%;
   margin-left: auto;
   margin-right: auto;
}

.pulse-dot {
   width: 13px;
   height: 13px;
   background-color: #5CD65C;
   border-radius: 50%;
   display: inline-block;
   position: relative;
   box-shadow: 0 0 8px #5CD65C;
}

.pulse-dot::after {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   border-radius: 50%;
   background-color: #5CD65C;
   animation: dotPulse 1.8s infinite ease-out;
}

/* Botón Siguiente */
.btn-primary-aura {
   background: rgba(255, 0, 0, 1);
   color: #FFFFFF;
   border: none;
   border-radius: 16px;
   font-size: 1.28rem;
   font-weight: 700;
   letter-spacing: 0.3px;
   padding: 15px 30px;
   cursor: pointer;
   transition: all 0.22s ease;
   box-shadow: 0 8px 30px rgba(255, 26, 0, 0.38);
   text-align: center;
   text-decoration: none;
}

.btn-primary-aura:hover:not(:disabled) {
   background: rgba(255, 0, 0, 0.8);
   transform: translateY(-2px);
   box-shadow: 0 12px 28px rgba(255, 26, 0, 0.5);
   color: #FFFFFF;
}

.btn-primary-aura:active:not(:disabled) {
   transform: translateY(0);
}

.btn-primary-aura:disabled {
   opacity: 0.45;
   cursor: not-allowed;
   box-shadow: none;
   transform: none;
}

/* Pantalla de resultados */
.result-card {
   background: var(--card-bg);
   border: 1.5px solid rgba(229, 86, 61, 0.3);
   border-radius: 24px;
   padding: 32px 22px;
   text-align: center;
   box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
   animation: fadeIn 0.45s ease;
}

.result-title {
   font-size: 1.5rem;
   font-weight: 800;
   margin-bottom: 10px;
   color: #FFFFFF;
}

/* Animaciones */
@keyframes dotPulse {
   0% {
      transform: scale(1);
      opacity: 0.8;
   }

   70% {
      transform: scale(2.4);
      opacity: 0;
   }

   100% {
      transform: scale(2.4);
      opacity: 0;
   }
}

@keyframes fadeIn {
   from {
      opacity: 0;
      transform: translateY(8px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* Responsive */
@media (max-width: 380px) {
   .question-box {
      font-size: 0.98rem;
   }
}

/* =========================================
   FORMULARIO DE CAPTURA (PASO DE RESPUESTA)
   ========================================= */
.form-lead-section {
   animation: fadeIn 0.4s ease;
   width: 100%;
}

.form-lead-header {
   margin-bottom: 20px;
}

.form-lead-label {
   color: #F3F3F5;
   font-size: 0.95rem;
   font-weight: 500;
   margin-bottom: 6px;
   letter-spacing: 0.2px;
}

.form-lead-input {
   background-color: #170E0D;
   border: 1.2px solid rgba(255, 255, 255, 0.25);
   border-radius: 12px;
   height: 46px;
   padding: 10px 14px;
   color: #FFFFFF;
   font-size: 0.96rem;
   font-family: 'Barlow', sans-serif;
   outline: none;
   transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
   width: 100%;
}

.form-lead-input:focus {
   border-color: var(--accent-orange);
   box-shadow: 0 0 10px rgba(229, 86, 61, 0.35);
   background-color: #1f1211;
}

.form-lead-input::placeholder {
   color: #6C6C75;
}

.select-id {
   width: 58px;
   flex-shrink: 0;
   padding: 10px 4px;
   text-align: center;
   cursor: pointer;
   appearance: none;
   -webkit-appearance: none;
   -moz-appearance: none;
   background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
   background-repeat: no-repeat;
   background-position: right 4px center;
   background-size: 11px;
   padding-right: 16px;
}

.select-id option {
   background-color: #170E0D;
   color: #FFFFFF;
}

.input-id-number {
   flex: 1;
   min-width: 0;
}

.form-lead-alert {
   background: rgba(229, 86, 61, 0.15);
   border: 1px solid var(--negative-aura);
   border-radius: 12px;
   padding: 10px 14px;
   font-size: 0.85rem;
   color: #FFAAA0;
   margin-bottom: 16px;
   animation: fadeIn 0.3s ease;
}

.btn-primary-aura.is-loading {
   opacity: 0.75;
   pointer-events: none;
}

/* =========================================
   ESTILOS DE LA PÁGINA HOME Y BIENVENIDA
   ========================================= */

.welcome-box {
   background: rgba(14, 14, 18, 0.78);
   border: 1.5px solid rgba(229, 86, 61, 0.28);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border-radius: 24px;
   padding: 28px 24px;
   text-align: center;
   box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55);
   margin-bottom: 24px;
   animation: fadeIn 0.35s ease;
   position: relative;
   overflow: hidden;
}

.welcome-box::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 3px;
   background: linear-gradient(90deg, #FF1A00 0%, #E5563D 50%, #FFBE3B 100%);
}

.welcome-badge-wrap {
   display: flex;
   justify-content: center;
   margin-bottom: 14px;
}

.welcome-badge {
   background: rgba(229, 86, 61, 0.16);
   border: 1px solid var(--accent-orange);
   color: #FF8F7D;
   padding: 6px 16px;
   border-radius: 999px;
   font-size: 0.82rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 1.2px;
   display: inline-flex;
   align-items: center;
   gap: 6px;
}

.welcome-title {
   font-size: 1.85rem;
   font-weight: 800;
   color: #FFFFFF;
   margin-bottom: 10px;
   line-height: 1.2;
}

.welcome-desc {
   font-size: 1.02rem;
   color: #D2D2D8;
   line-height: 1.48;
   margin-bottom: 22px;
   max-width: 620px;
   margin-left: auto;
   margin-right: auto;
}

.welcome-features {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 12px;
   background: rgba(255, 255, 255, 0.04);
   border: 1px solid rgba(255, 255, 255, 0.06);
   border-radius: 16px;
   padding: 16px 10px;
}

.feature-item {
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
}

.feature-icon {
   font-size: 1.6rem;
   margin-bottom: 4px;
   line-height: 1;
}

.feature-title {
   font-size: 0.92rem;
   font-weight: 700;
   color: #FFFFFF;
   line-height: 1.2;
}

.feature-sub {
   font-size: 0.74rem;
   color: var(--text-muted);
   margin-top: 2px;
}

/* Tarjeta del formulario de Home */
.home-form-card {
   background: var(--card-bg);
   border: 1.5px solid rgba(229, 86, 61, 0.32);
   border-radius: 24px;
   padding: 30px 24px;
   box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65);
   animation: fadeIn 0.45s ease;
   margin-bottom: 24px;
}

.step-indicator {
   font-size: 0.78rem;
   letter-spacing: 1.5px;
   color: var(--accent-orange);
   font-weight: 700;
   text-transform: uppercase;
   margin-bottom: 6px;
   display: inline-block;
}

.form-title {
   font-size: 1.5rem;
   font-weight: 800;
   color: #FFFFFF;
   margin-bottom: 4px;
}

.form-subtitle {
   font-size: 0.92rem;
   color: var(--text-muted);
   margin-bottom: 0;
}

.terms-label {
   display: flex;
   align-items: flex-start;
   gap: 10px;
   font-size: 0.82rem;
   color: #B8B8C0;
   cursor: pointer;
   line-height: 1.35;
   user-select: none;
   margin-bottom: 18px;
}

.terms-checkbox {
   accent-color: var(--accent-orange);
   width: 17px;
   height: 17px;
   flex-shrink: 0;
   margin-top: 2px;
   cursor: pointer;
}

.terms-text a {
   color: #FF8F7D;
   text-decoration: underline;
}

/* Botón secundario en resultados */
.btn-secondary-aura {
   background: rgba(255, 255, 255, 0.05);
   color: #CFCFD5;
   border: 1px solid var(--card-border);
   border-radius: 16px;
   font-size: 1.05rem;
   font-weight: 600;
   padding: 13px 20px;
   width: 100%;
   cursor: pointer;
   transition: all 0.2s ease;
   text-decoration: none;
   display: block;
   text-align: center;
}

.btn-secondary-aura:hover {
   background: rgba(255, 255, 255, 0.1);
   color: #FFFFFF;
   border-color: rgba(255, 255, 255, 0.2);
   transform: translateY(-1px);
}

.result-actions-grid {
   display: flex;
   flex-direction: column;
   gap: 12px;
   margin-top: 24px;
}

@media screen and (max-width: 767px) {
   .options-list {
      flex-direction: column;
   }
}

@media (max-width: 576px) {
   .welcome-features {
      grid-template-columns: 1fr 1fr 1fr;
      padding: 12px 6px;
   }

   .welcome-title {
      font-size: 1.45rem;
   }

   .feature-title {
      font-size: 0.8rem;
   }

   .feature-sub {
      font-size: 0.68rem;
   }
}