/* ─────────────────────────────────────────────────────────────────
   soporte.css — Vista "Contáctanos" (formulario de soporte)
   Reutiliza de app.css: @font-face AmsiPro, :root (--blue), body.usuario-body,
   .fondo-logos, .usuario-header, .logout-button.
───────────────────────────────────────────────────────────────── */

.sop-layout {
  position: relative;
  z-index: 2;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  padding: 22px 18px 40px;
}

.sop-form,
.sop-success {
  width: 100%;
  max-width: 540px;
  margin: auto;            /* centra vertical y horizontalmente en el espacio restante */
  display: flex;
  flex-direction: column;
}

/* el atributo hidden debe ganar sobre el display:flex de arriba */
.sop-form[hidden],
.sop-success[hidden] { display: none; }

/* ── Tarjeta ────────────────────────────────────────────────────── */
.sop-card {
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(10, 56, 153, 0.22);
  border-radius: 22px;
  padding: 42px 22px 26px;
  margin-top: 26px;        /* deja espacio para la pill que sobresale arriba */
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 12px 36px rgba(4, 31, 84, 0.12);
}

/* ── Título "CONTÁCTANOS" (pill roja, sobre el borde superior) ───── */
.sop-title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  background: #CD3639;
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 6vw, 34px);
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 10px 36px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(205, 54, 57, 0.35);
}

.sop-subtitle {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(14px, 3.6vw, 18px);
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  line-height: 1.35;
  margin: 0 0 18px;
}
.sop-subtitle strong { font-weight: 900; }

/* ── Bloque Call Center (teléfono + horario) ────────────────────── */
.sop-callcenter {
  text-align: center;
  margin: 0 0 14px;
}
.sop-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 7vw, 38px);
  color: #CD3639;
  text-decoration: none;
  line-height: 1.1;
}
.sop-tel-icon { font-size: 0.8em; }
.sop-hours {
  font-family: 'AmsiPro', sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 3.4vw, 16px);
  color: var(--blue);
  margin: 2px 0 0;
}

.sop-faq-link {
  text-align: center;
  margin: 0 0 16px;
}
.sop-faq-link a {
  font-family: 'AmsiPro', sans-serif;
  font-weight: 800;
  font-size: clamp(13px, 3.4vw, 16px);
  color: var(--blue);
  text-decoration: underline;
}

/* ── Pie legal ──────────────────────────────────────────────────── */
.sop-footer {
  width: 100%;
  max-width: 540px;
  margin: 18px auto 0;
  text-align: center;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 600;
  font-size: clamp(10px, 2.6vw, 12px);
  color: rgba(10, 56, 153, 0.7);
  line-height: 1.4;
}
.sop-footer strong { font-weight: 900; color: var(--blue); }

/* ── FAQ (acordeón) ─────────────────────────────────────────────── */
.sop-card--plain { padding-top: 26px; }

.sop-title--faq {
  position: static;
  transform: none;
  white-space: normal;
  display: block;
  width: fit-content;
  max-width: 92%;
  margin: 0 auto 18px;
  text-align: center;
  line-height: 1.05;
  font-size: clamp(20px, 5.6vw, 30px);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: #fff;
  border: 1.5px solid rgba(10, 56, 153, 0.18);
  border-radius: 14px;
  padding: 4px 16px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: clamp(15px, 4vw, 18px);
  color: var(--blue);
  padding: 12px 28px 12px 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4em;
  font-weight: 900;
  color: #CD3639;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  font-family: 'AmsiPro', sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 3.6vw, 16px);
  color: var(--blue);
  line-height: 1.4;
  margin: 0 0 12px;
}
.faq-tel { color: #CD3639; font-weight: 900; text-decoration: none; }

/* Anchor que se ve como botón (Contáctanos en la vista FAQ) */
.sop-submit--link {
  display: block;
  text-align: center;
  text-decoration: none;
}

/* ── Labels ─────────────────────────────────────────────────────── */
.sop-label {
  display: block;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 4.2vw, 20px);
  color: var(--blue);
  margin: 16px 0 7px;
}

/* ── Campos ─────────────────────────────────────────────────────── */
.sop-select,
.sop-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  border: 1.5px solid rgba(10, 56, 153, 0.22);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sop-select {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  padding: 14px 44px 14px 18px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230A3899' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
/* color gris cuando aún no se elige tema (option deshabilitada seleccionada) */
.sop-select:required:invalid { color: #8a93a6; }
.sop-select option { color: var(--blue); }

.sop-textarea {
  border-radius: 18px;
  padding: 14px 18px;
  min-height: 120px;
  resize: vertical;
  line-height: 1.35;
}
.sop-textarea::placeholder { color: #8a93a6; font-weight: 700; }

.sop-select:focus,
.sop-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 56, 153, 0.14);
}

.sop-error {
  color: #cc3638;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  margin: 12px 0 0;
}

/* ── Botón Enviar / Volver ──────────────────────────────────────── */
.sop-submit {
  width: 100%;
  margin-top: 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 4.6vw, 24px);
  letter-spacing: 0.01em;
  padding: 15px 24px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 56, 153, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sop-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 26px rgba(10, 56, 153, 0.42);
}

/* ── Estado: enviado con éxito ──────────────────────────────────── */
.sop-success {
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(10, 56, 153, 0.22);
  border-radius: 22px;
  padding: 32px 24px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.sop-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 14px;
}
.sop-success-title {
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 6vw, 30px);
  color: var(--blue);
  margin: 0 0 6px;
}
.sop-success-body {
  font-family: 'AmsiPro', sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 3.8vw, 18px);
  color: var(--blue);
  line-height: 1.35;
  margin: 0 0 8px;
}
