/* css/paginas/soporte.css — Centro de ayuda (pages/soporte.html) */

.soporte-header {
  display: flex;
  align-items: center;
  justify-content: center;
}
.soporte-logo { height: 34px; }

.soporte {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--espacio-md) var(--espacio-md) 96px;
  display: grid;
  gap: var(--espacio-md);
}

/* ── Encabezado */
.soporte-hero {
  background: var(--gradiente-135);
  color: var(--blanco);
  border-radius: var(--radio-xl);
  padding: var(--espacio-lg);
  box-shadow: var(--sombra-btn);
}
.soporte-titulo {
  color: var(--blanco);
  font-family: var(--fuente-titulos);
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: var(--espacio-sm);
}
.soporte-intro { color: var(--blanco); line-height: 1.5; }

/* ── Tarjetas */
.soporte-card {
  background: var(--fondo-card);
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio-lg);
  padding: var(--espacio-lg);
  box-shadow: var(--sombra-card);
}
.soporte-subtitulo {
  font-family: var(--fuente-titulos);
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: var(--espacio-md);
}

/* ── Preguntas frecuentes */
.faq { display: grid; gap: var(--espacio-sm); }
.faq-item {
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio-md);
  background: var(--fondo-input);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 44px 14px var(--espacio-md);
  font-weight: 800;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: var(--espacio-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--morado);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 var(--espacio-md) var(--espacio-md);
  color: var(--texto-secundario);
  line-height: 1.6;
}
.faq-item a { color: var(--morado); font-weight: 800; }

/* ── Con / sin sesión (soporte.js pone la clase en <body>) */
.soporte-form,
#soporteMisTickets { display: none; }
.con-sesion .soporte-form { display: block; }
.con-sesion #soporteMisTickets { display: block; }
.con-sesion .soporte-sin-sesion { display: none; }
.soporte-sin-sesion p { color: var(--texto-secundario); line-height: 1.6; margin-bottom: var(--espacio-md); }
.soporte-btn { width: 100%; }

/* ── Formulario */
.soporte-form select,
.soporte-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--borde-input);
  border-radius: var(--radio-md);
  background: var(--fondo-input);
  font-family: var(--fuente);
  font-size: var(--fuente-size);
  color: var(--texto-principal);
}
.soporte-form textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.soporte-form select:focus,
.soporte-form textarea:focus { border-color: var(--borde-focus); box-shadow: var(--sombra-focus); outline: none; }
.soporte-contador { text-align: right; font-size: var(--fuente-size-xs); color: var(--texto-muted); margin-top: 4px; }

/* ── Mis solicitudes */
.soporte-lista { display: grid; gap: 12px; }
.soporte-vacio { color: var(--texto-muted); text-align: center; padding: var(--espacio-md) 0; }
.ticket {
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio-md);
  padding: 14px var(--espacio-md);
}
.ticket-cabecera { display: flex; align-items: center; justify-content: space-between; gap: var(--espacio-sm); margin-bottom: 6px; }
.ticket-tema { font-weight: 900; }
.ticket-mensaje { color: var(--texto-secundario); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-fecha { font-size: var(--fuente-size-xs); color: var(--texto-muted); margin-top: 6px; }
.ticket-respuesta {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radio-md);
  background: var(--morado-light);
  border-left: 4px solid var(--morado);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.ticket-respuesta-quien { font-weight: 900; color: var(--morado-dk); margin-bottom: 4px; }

/* ── Conversación de cada solicitud */
.ticket-conversacion { display: grid; gap: 10px; }
.ticket-burbuja {
  padding: 12px 14px;
  border-radius: var(--radio-md);
  background: var(--fondo-hover);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.ticket-burbuja .ticket-respuesta-quien { color: var(--texto-secundario); }
.ticket-conversacion .ticket-respuesta { margin-top: 0; }
.ticket-responder { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ticket-responder textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  border: 1.5px solid var(--borde-input);
  border-radius: var(--radio-md);
  background: var(--fondo-input);
  font-family: var(--fuente);
  font-size: var(--fuente-size);
  resize: vertical;
}
.ticket-responder textarea:focus { border-color: var(--borde-focus); box-shadow: var(--sombra-focus); outline: none; }
.ticket-responder-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-responder .ticket-responder-btn { width: auto; margin-left: auto; padding-inline: 28px; white-space: nowrap; }
.soporte-form .adjunto { margin-bottom: var(--espacio-md); }
.ticket-cerrado { margin-top: 10px; font-size: var(--fuente-size-sm); color: var(--texto-muted); }
.ticket--destacado { border-color: var(--morado); box-shadow: 0 0 0 3px var(--morado-light); }
