/* ======================= */
/* ESTILOS BASE DEL FORMULARIO */
/* ======================= */

.contenedor {
  width: 98%;
  max-width: 1000px;
  margin: 0 auto;
}

body {
  font-family: Arial, sans-serif;
  background-color: white;
  color: #6C3BAA;
  margin: 0;
  padding: 0;
}

.form-container {
  width: 90%;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: transparent;
  border-radius: 10px;
}

.form-container h1 {
  text-align: left;
}

label {
  font-size: 16px;
  display: block;
  margin: 10px 0 5px;
  text-align: left;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

.btn {
  background-color: #6C3BAA;
  color: white;
  padding: 10px;
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
}

.btn:hover {
  background-color: #FADA5E;
  color: #6C3BAA;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .form-container {
    width: 98%;
    padding: 15px;
  }

  .form-container h1 {
    text-align: center;
  }
}

/* ======================= */
/* SWITCH PERSONALIZADO */
/* ======================= */

/* Contenedor de fila: switch a la izquierda, texto a la derecha */
.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin: 20px 0;
}

.switch-text {
  flex: 1;
  text-align: justify;
  font-size: 18px;
  line-height: 1.4;
}

/* Estilo del switch */
.switch {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 45px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* Fondo del switch */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d32f2f; /* rojo apagado */
  border-radius: 45px;
  transition: background-color 0.3s;
}

/* Botón circular con icono */
.slider::before {
  content: "✕";
  position: absolute;
  height: 45px;
  width: 45px;
  left: 0;
  top: 0;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 22px;
  color: #d32f2f;
  transition: transform 0.3s, content 0.3s, color 0.3s;
}

/* Estado activado */
.switch input:checked + .slider {
  background-color: #4caf50; /* verde */
}

.switch input:checked + .slider::before {
  transform: translateX(45px);
  content: "✓";
  color: #1b5e20;
}

/* ======================= */
/* FAQ — SIEMPRE VISIBLE   */
/* ======================= */

#faqSection {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    border: 3px solid #6C3BAA;
    border-radius: 15px;
    background: #faf7ff;
    box-shadow: 0px 5px 12px rgba(0,0,0,0.15);
}

/* Título */
.faq-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    color: #6C3BAA;
    margin-bottom: 25px;
}

/* Botón cerrar */
.faq-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: #6C3BAA;
    color: white;
    border: none;
    font-size: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

.faq-close:hover {
    background: #FADA5E;
    color: #6C3BAA;
}

/* Caja general FAQ */
.faqContainer {
    margin-top: 20px;
}

/* Cada ítem */
.faq-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.1);
}

/* Pregunta estática */
.faq-question-static {
    font-size: 16px; /* tamaño estándar */
    font-weight: bold;
    color: #6C3BAA;
    margin-bottom: 10px;
    text-align: left;
}

/* Respuesta visible */
.faq-answer-static {
    font-size: 16px; /* tamaño estándar */
    line-height: 1.5;
    color: #333;
    text-align: left;
}

/* Compatibilidad con pantallas pequeñas */
@media (max-width: 768px) {
    #faqSection {
        padding: 20px;
    }
}
