/* ==================================================================
   Dudas y soporte (page-soporte.php)
   Clases "esp-" para no chocar con el resto del tema.
   ================================================================== */

.esp {
  --esp-yellow: #FFC83D;
  --esp-yellow-deep: #F2A900;
  --esp-yellow-soft: #FFF4D1;
  --esp-ink: #14284B;
  --esp-text: #2A2838;
  --esp-muted: #77758A;
  --esp-line: #ECEAF3;
  --esp-bg: #FFFCF5;
  --esp-white: #FFFFFF;
  flex: 1; width: 100%;
  background-color: var(--esp-bg);
  background-image: radial-gradient(rgba(20, 40, 75, .07) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  color: var(--esp-text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
:where(.esp), :where(.esp) *, :where(.esp) *::before, :where(.esp) *::after { box-sizing: border-box; }
:where(.esp) a { color: inherit; text-decoration: none; }
:where(.esp) :is(h1, h2, p, ul) { margin: 0; padding: 0; }
.esp-wrap { max-width: 1100px; margin: 0 auto; padding: 56px 24px 72px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }

/* ---------- Columna informativa ---------- */
.esp-tag { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--esp-white); border: 2px solid var(--esp-line); font-size: 12px; font-weight: 700; color: var(--esp-ink); }
.esp-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--esp-yellow); }
.esp h1 { font-family: "Bricolage Grotesque", sans-serif; font-size: 46px; font-weight: 800; line-height: 1.05; letter-spacing: -1.2px; color: var(--esp-ink); margin: 18px 0 16px; }
.esp-lead { font-size: 16px; line-height: 1.65; color: var(--esp-muted); max-width: 460px; }

.esp-info { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 30px !important; }
.esp-info li { display: flex; gap: 14px; align-items: flex-start; background: var(--esp-white); border: 2px solid var(--esp-line); border-radius: 18px; padding: 16px 18px; transition: border-color .15s; }
.esp-info li:hover { border-color: #D9D6E4; }
.esp-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--esp-yellow-soft); color: var(--esp-ink); display: grid; place-items: center; flex-shrink: 0; }
.esp-info b { display: block; font-size: 14px; color: var(--esp-ink); }
.esp-info p { font-size: 13px; line-height: 1.5; color: var(--esp-muted); margin-top: 2px; }
.esp-info a { color: var(--esp-ink); font-weight: 700; border-bottom: 2px solid var(--esp-yellow); padding-bottom: 1px; }
.esp-info a:hover { border-color: var(--esp-ink); }

/* ---------- Formulario ---------- */
.esp-card { background: var(--esp-white); border: 2px solid var(--esp-line); border-radius: 26px; padding: 30px; position: relative; overflow: hidden; }
.esp-card::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: var(--esp-yellow); right: -70px; top: -90px; }
.esp-card > * { position: relative; }
.esp-card h2 { font-family: "Bricolage Grotesque", sans-serif; font-size: 22px; font-weight: 800; color: var(--esp-ink); }
.esp-sub { font-size: 13px; color: var(--esp-muted); margin-top: 4px !important; }

.esp-alert { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #FDECEC; border: 2px solid #F6C9C9; color: #9B2C2C; font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.esp-alert svg { flex-shrink: 0; margin-top: 1px; }

.esp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.esp-field { display: flex; flex-direction: column; }
.esp-field--full { grid-column: 1 / -1; }
.esp-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.esp label { font-size: 13px; font-weight: 700; color: var(--esp-ink); }
.esp-counter { font-size: 12px; color: var(--esp-muted); }
.esp-input, .esp-select, .esp-textarea {
  width: 100%; border: 2px solid var(--esp-line); border-radius: 12px; background: var(--esp-white);
  font: inherit; font-size: 14px; color: var(--esp-text); outline: none; transition: border-color .15s, box-shadow .15s; margin: 0;
}
.esp-input, .esp-select { height: 48px; padding: 0 14px; }
.esp-textarea { min-height: 160px; padding: 12px 14px; resize: vertical; line-height: 1.55; display: block; }
.esp-input::placeholder, .esp-textarea::placeholder { color: #A9A7B8; }
.esp-input:focus, .esp-select:focus, .esp-textarea:focus { border-color: var(--esp-ink); box-shadow: 0 0 0 4px var(--esp-yellow-soft); }
.esp-select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--esp-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314284B' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}

.esp-btn {
  margin-top: 22px; width: 100%; height: 52px; border: none; border-radius: 14px; background: var(--esp-ink); color: var(--esp-white) !important;
  font: inherit; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  box-shadow: 4px 4px 0 rgba(20, 40, 75, .2); transition: transform .12s, box-shadow .12s;
}
.esp-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(20, 40, 75, .2); }
.esp-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 transparent; }
.esp-btn:focus-visible { outline: 3px solid var(--esp-yellow-deep); outline-offset: 2px; }
.esp-btn svg { transition: transform .15s; }
.esp-btn:hover svg { transform: translateX(3px); }
.esp-btn:disabled { opacity: .6; cursor: wait; transform: none; }

.esp-privacy { margin-top: 14px !important; text-align: center; font-size: 12px; color: var(--esp-muted); }
.esp-privacy a { color: var(--esp-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Campo trampa para bots */
.esp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Mensaje enviado ---------- */
.esp-done { text-align: center; padding: 30px 0 10px; }
.esp-done-ico { margin: 0 auto; width: 56px; height: 56px; border-radius: 16px; background: var(--esp-yellow-soft); color: var(--esp-ink); display: grid; place-items: center; }
.esp-done h2 { margin-top: 18px; font-size: 24px; }
.esp-done p { margin: 8px auto 0; max-width: 340px; font-size: 14px; line-height: 1.55; color: var(--esp-muted); }
.esp-done-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.esp-done-actions .esp-btn { margin-top: 0; width: auto; height: 46px; padding: 0 20px; }
.esp-btn--ghost { background: var(--esp-white); color: var(--esp-ink) !important; border: 2px solid var(--esp-line); box-shadow: none; }
.esp-btn--ghost:hover { border-color: var(--esp-ink); box-shadow: 4px 4px 0 rgba(20, 40, 75, .12); }

@media (max-width: 900px) {
  .esp-wrap { grid-template-columns: 1fr; gap: 36px; padding: 36px 16px 56px; }
  .esp h1 { font-size: 36px; }
}
@media (max-width: 520px) {
  .esp-card { padding: 24px 18px; }
  .esp-grid { grid-template-columns: 1fr; }
}
