/* ─────────────────────────────────────────────────────────────
   Opiniones de los viajes · Reballution Pickleball Rota
   Usa los tokens (:root) que ya definen las páginas de viaje.
   ───────────────────────────────────────────────────────────── */

.op [hidden] { display: none !important; }

.op {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.op-eyebrow {
  font-family: var(--font-d);
  font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--turquoise-deep);
  margin-bottom: 12px;
}
.op-title {
  font-family: var(--font-d); font-weight: 800;
  font-size: clamp(32px, 4vw, 50px);
  line-height: .98; letter-spacing: -.04em;
  color: var(--ink);
  max-width: 15ch;
  text-wrap: balance;
}
.op-title .italic { font-style: italic; font-weight: 300; color: var(--turquoise-deep); }

.op-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 40px; margin-top: 36px;
}
@media (min-width: 1024px) {
  .op-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
  .op-col-form { position: sticky; top: 24px; }
}

/* ── Listado ── */
.op-loading { font-size: 15px; color: var(--text-soft); }

.op-list { list-style: none; display: grid; gap: 14px; }
@media (min-width: 720px) and (max-width: 1023px) {
  .op-list { grid-template-columns: 1fr 1fr; }
}

.op-item {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px 18px;
}
.op-quote {
  font-family: var(--font-b);
  font-size: 16px; line-height: 1.65;
  color: var(--text);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.op-quote::before {
  content: '\201C';
  display: block; height: 22px;
  font-family: var(--font-d); font-weight: 800;
  font-size: 52px; line-height: 1;
  color: var(--turquoise);
}
.op-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 16px;
}
.op-quote + .op-meta { margin-top: 18px; border-top: 1px solid var(--line-soft); }
.op-avatar {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 211, 195, .2);
  color: var(--ink);
  font-family: var(--font-d); font-weight: 800; font-size: 15px;
}
.op-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.op-who strong {
  font-family: var(--font-d); font-weight: 700; font-size: 15px;
  color: var(--ink);
}
.op-country { font-size: 13px; color: var(--text-soft); }
.op-date {
  margin-left: auto; flex-shrink: 0;
  font-size: 12px; color: var(--text-soft);
}

.op-empty {
  padding: 28px clamp(22px, 3vw, 32px);
  border: 1px dashed oklch(0 0 0 / .18);
  border-radius: var(--r-md);
}
.op-empty-title {
  font-family: var(--font-d); font-weight: 800;
  font-size: 19px; letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.op-empty p + p { font-size: 15px; line-height: 1.55; color: var(--text-soft); }

.op-more {
  margin-top: 18px;
  font: inherit; font-family: var(--font-d); font-weight: 700; font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid oklch(0 0 0 / .16);
  border-radius: 9999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .op-more:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
}
.op-more:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* ── Formulario ── */
.op-form, .op-thanks {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 18px 50px oklch(0 0 0 / .06);
}
.op-form-title {
  font-family: var(--font-d); font-weight: 800;
  font-size: 22px; letter-spacing: -.02em;
  color: var(--ink);
}
.op-form-sub { font-size: 14px; line-height: 1.5; color: var(--text-soft); margin: 6px 0 22px; }

.op-row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 14px; }
@media (min-width: 480px) { .op-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.op-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.op-field label {
  font-family: var(--font-d); font-size: 13px; font-weight: 700;
  color: var(--ink);
}
.op-field input,
.op-field textarea {
  width: 100%;
  font: inherit; font-family: var(--font-b);
  font-size: 16px;            /* 16px: evita el zoom automático en iOS */
  color: var(--ink);
  padding: 13px 14px;
  background: var(--cream);
  border: 1px solid oklch(0 0 0 / .12);
  border-radius: 10px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.op-field textarea { min-height: 136px; resize: vertical; line-height: 1.55; }
.op-field input:focus,
.op-field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--turquoise-deep);
  box-shadow: 0 0 0 3px rgba(0, 211, 195, .28);
}
.op-field [aria-invalid="true"] { border-color: #b42318; background: #fffafa; }
.op-field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .16); }
.op-count {
  align-self: flex-end;
  font-size: 12px; color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

/* Campo trampa para bots: fuera de la vista y del teclado */
.op-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.op-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 2px 0 22px;
  font-size: 13px; line-height: 1.5;
  color: var(--text-soft);
  cursor: pointer;
}
.op-check input {
  flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 1px;
  accent-color: var(--turquoise-deep);
  cursor: pointer;
}
.op-check input[aria-invalid="true"] { outline: 2px solid #b42318; outline-offset: 2px; }
.op-check a {
  color: var(--turquoise-deep); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}

.op-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 18px 28px;
  border: 0; border-radius: 9999px;
  background: var(--turquoise); color: var(--ink);
  font-family: var(--font-d); font-weight: 800; font-size: 16px; letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.op-submit .arr { font-size: 12px; transition: transform .25s var(--ease-out); }
@media (hover: hover) {
  .op-submit:hover { background: var(--turquoise-deep); color: var(--white); }
  .op-submit:hover .arr { transform: translateX(4px); }
}
.op-submit:active { transform: scale(.98); }
.op-submit:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.op-submit[disabled] { opacity: .6; cursor: progress; transform: none; }

.op-note { margin-top: 12px; font-size: 13px; color: var(--text-soft); text-align: center; }
.op-status { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.op-status:empty { display: none; }
.op-status.is-error {
  color: #b42318;
  background: #fef3f2;
  border-radius: 10px;
  padding: 10px 14px;
}

/* ── Gracias ── */
.op-thanks { text-align: center; }
.op-thanks:focus { outline: none; }
.op-thanks-ico {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--turquoise); color: var(--ink);
  margin-bottom: 16px;
}
.op-thanks-ico svg { width: 24px; height: 24px; }
.op-thanks-title {
  font-family: var(--font-d); font-weight: 800;
  font-size: 24px; letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.op-thanks p + p { font-size: 15px; line-height: 1.55; color: var(--text-soft); max-width: 34ch; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .op-submit, .op-submit .arr, .op-more, .op-field input, .op-field textarea { transition: none; }
}
