/* ===== CONTENEDOR PRINCIPAL ===== */
.simulador-container {
  max-width: 820px;
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 2rem 2.5rem;
  transition: all 0.2s;
}

header {
  margin-bottom: 2rem;
}
header h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
header h1 .visual-anchor {
  color: var(--brand-gold);
  font-size: 2rem;
}
header p {
  color: var(--text-secondary);
  margin-top: 0.4rem;
  font-size: 1rem;
}
.header {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.header a {
    color: var(--blue-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.header a:hover {
    color: var(--brand-gold);
    text-decoration: none;
}

.footer a {
    color: var(--blue-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-weight: 500;
    transition: color 0.15s;
}

.footer a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* ===== FORMULARIO ===== */
.form-diagnostico .form-group {
  margin-bottom: 1.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}
input,
select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

/* ===== BOTONES DEL SIMULADOR ===== */
.btn-primary {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-hover));
  color: white;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(58, 134, 255, 0.4);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== RESULTADOS Y ALERTAS ===== */
.resultados-container {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.resultado-card {
  padding: 0.5rem 0;
}
.indice-display {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0.8rem 0;
}
.indice-numero {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Etiquetas de Nivel */
.indice-nivel {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.2rem 1.2rem;
  border-radius: 40px;
  text-transform: uppercase;
}
.nivel-rojo { background: var(--red-accent); color: var(--text-badge-dark); }
.nivel-amarillo { background: var(--brand-gold); color: var(--text-badge-dark); }
.nivel-verde { background: var(--green-accent); color: var(--text-badge-dark); }

/* Cajas de Alerta */
.alerta-box {
  padding: 1rem 1.5rem;
  border-radius: 16px;
  margin: 1rem 0;
  border-left: 4px solid var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}
.alerta-box.rojo { border-left-color: var(--red-accent); background: var(--bg-alert-red); }
.alerta-box.amarillo { border-left-color: var(--brand-gold); background: var(--bg-alert-yellow); }
.alerta-box.verde { border-left-color: var(--green-accent); background: var(--bg-alert-green); }

/* Cajas de Detalle */
.detalle-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
}
.detalle-box ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}
.detalle-box li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding: 0.4rem 0;
}
.detalle-box li span:last-child {
  font-weight: 700;
  color: var(--text-primary);
}

.punto-equilibrio {
  background: var(--bg-card-hover);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  margin: 1.2rem 0;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

/* ===== SOLUCIÓN PARA CENTRAR EL FOOTER ===== */

/* ===== LLAMADO A LA ACCIÓN (CTA) ===== */
.cta-container {
  margin: 1.5rem 0 1rem;
  padding: 1.5rem;
  background: var(--bg-card-hover);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  text-align: center;
}
.cta-container h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.cta-container p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.cta-container .btn-cta {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-hover));
  color: var(--text-badge-dark);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cta-container .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
}
.cta-container .btn-cta-secundario {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: all 0.2s ease;
}
.cta-container .btn-cta-secundario:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .simulador-container {
    padding: 1.5rem;
  }
  .form-row, .detalle-box ul {
    grid-template-columns: 1fr;
  }
  .indice-numero {
    font-size: 2.6rem;
  }
}

/* ============================================================
            SECCIÓN FAQ - ESTILOS
    ============================================================ */
.faq-section {
    margin-top: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--border-light);
}

.faq-title {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--text-primary);
}
.faq-title .material-icons {
    color: var(--brand-gold);
    font-size: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s;
    padding: 15px;
    margin-top: 30px;
}
.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-question .material-icons {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-question .material-icons {
    transform: rotate(180deg);
}

.faq-question-text {
    flex: 1;
}

.faq-answer {
    padding: 4px 20px 20px 52px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}
.faq-answer p {
    margin-bottom: 8px;
}
.faq-answer ul,
.faq-answer ol {
    margin: 8px 0 8px 20px;
}
.faq-answer li {
    margin-bottom: 4px;
}
.faq-answer strong {
    color: var(--text-primary);
}
.faq-answer .faq-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 20px;
    background: var(--brand-gold);
    color: #0b132b;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.faq-answer .faq-cta:hover {
    background: var(--brand-gold-hover);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 640px) {
    .faq-title {
        font-size: 1.4rem;
    }
    .faq-question {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
    .faq-answer {
        padding: 4px 16px 16px 44px;
        font-size: 0.85rem;
    }
}