/* =========================================================
   F7C INSCRIPCIONES – UI (WIZARD + PORTAL + VERIFY) UNIFICADO
   ========================================================= */

/* -------- Variables -------- */
:root {
  --f7c-text: #0b2b4b;
  --f7c-muted: rgba(0, 0, 0, .55);
  --f7c-border: rgba(0, 0, 0, .10);
  --f7c-border-strong: rgba(0, 0, 0, .14);
  --f7c-bg: #ffffff;
  --f7c-soft: rgba(0, 0, 0, .04);

  /* Colores que pediste */
  --f7c-blue: #1e5c96;
  --f7c-teal: #2da7b1;
  --f7c-wa: #25D366;

  --f7c-danger: #b42318;
  --f7c-danger-bg: rgba(240, 68, 56, .10);
  --f7c-danger-border: rgba(240, 68, 56, .30);

  --f7c-success: #046c4e;
  --f7c-success-bg: rgba(18, 183, 106, .12);
  --f7c-success-border: rgba(18, 183, 106, .35);
}

/* -------- Helpers -------- */
.f7c-hidden {
  display: none !important;
}

.f7c-muted {
  color: var(--f7c-muted);
}

.f7c-req {
  color: #e11d48;
  font-weight: 700;
}

/* =========================
   FONTS: Poppins (solo F7C)
========================= */
.f7c-seat,
.f7c-portal-wrap,
.f7c-verify-wrap {
  font-family: "Poppins", sans-serif !important;
}

.f7c-seat *,
.f7c-portal-wrap *,
.f7c-verify-wrap * {
  font-family: "Poppins", sans-serif !important;
}

/* =========================================================
   WIZARD / SEAT
========================================================= */
.f7c-seat {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px;
  background: var(--f7c-bg);
  border: 1px solid var(--f7c-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.f7c-wizard__top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.f7c-seat h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--f7c-text);
}

.f7c-seat h4 {
  margin: 6px 0 14px;
  font-size: 16px;
  font-weight: 900;
  color: var(--f7c-text);
}

/* Botón volver al portal (arriba) */
.f7c-back-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--f7c-teal);
  border: 1px solid var(--f7c-teal);
  color: #fff !important;
  font-weight: 500;
  text-decoration: none;
}

.f7c-back-portal:hover,
.f7c-back-portal:focus,
.f7c-back-portal:active {
  background: var(--f7c-teal) !important;
  border-color: var(--f7c-teal) !important;
  color: #fff !important;
  filter: none !important;
}

.f7c-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f7c-progress__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .06);
  overflow: hidden;
}

.f7c-progress__fill {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--f7c-teal);
  border-radius: 999px;
  transition: width .25s ease;
}

.f7c-progress__dots {
  display: flex;
  gap: 8px;
}

.f7c-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  background: rgba(0, 0, 0, .06);
  color: rgba(0, 0, 0, .55);
}

.f7c-dot.is-active {
  background: rgba(45, 167, 177, .14);
  color: var(--f7c-teal);
  border: 1px solid rgba(45, 167, 177, .35);
}

.f7c-dot.is-done {
  background: rgba(18, 183, 106, .12);
  border: 1px solid rgba(18, 183, 106, .25);
  color: var(--f7c-success);
}

.f7c-notice {
  margin: 12px 0 18px;
}

.f7c-success,
.f7c-error {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.f7c-success {
  background: var(--f7c-success-bg);
  border: 1px solid var(--f7c-success-border);
  color: var(--f7c-success);
}

.f7c-error {
  background: var(--f7c-danger-bg);
  border: 1px solid var(--f7c-danger-border);
  color: var(--f7c-danger);
}

.f7c-step {
  display: none;
}

.f7c-step.is-active {
  display: block;
}

.f7c-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 18px;
}

@media (min-width: 900px) {
  .f7c-grid {
    grid-template-columns: 1fr 1fr;
  }

  .f7c-full {
    grid-column: 1 / -1;
  }
}

.f7c-seat label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #1b1f24;
  margin-bottom: 6px;
}

.f7c-seat input[type="text"],
.f7c-seat input[type="email"],
.f7c-seat input[type="number"],
.f7c-seat input[type="date"],
.f7c-seat select,
.f7c-seat textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--f7c-border-strong);
  border-radius: 12px;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.f7c-seat textarea {
  min-height: 110px;
  resize: vertical;
}

.f7c-seat input:focus,
.f7c-seat select:focus,
.f7c-seat textarea:focus {
  border-color: rgba(45, 167, 177, .8);
  box-shadow: 0 0 0 4px rgba(45, 167, 177, .18);
}

.f7c-seat small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--f7c-muted);
}

.f7c-inline {
  display: flex;
  gap: 10px;
}

.f7c-inline input {
  flex: 1;
}

.f7c-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.f7c-radio label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  margin: 0;
}

.f7c-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
}

.f7c-seat hr {
  margin: 18px 0;
  border: none;
  border-top: 1px solid var(--f7c-border);
}

.f7c-q {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.f7c-q__item {
  padding: 14px;
  border: 1px solid var(--f7c-border);
  border-radius: 12px;
  background: var(--f7c-soft);
  margin: 0;
}

/* Items fuera de .f7c-q necesitan margen superior */
.f7c-step>.f7c-q__item {
  margin-top: 16px;
}

.f7c-q__head p {
  margin: 0 0 10px;
}

.f7c-q__note {
  margin-top: 10px;
}

/* HR dentro de steps con espaciado consistente */
.f7c-step hr {
  margin: 16px 0;
  border: none;
  border-top: 1px solid var(--f7c-border);
}

.f7c-legal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.f7c-legal__block {
  border: 1px solid var(--f7c-border);
  border-radius: 12px;
  padding: 12px;
  background: var(--f7c-soft);
}

.f7c-legal__text {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--f7c-border);
  color: rgba(0, 0, 0, .70);
  font-size: 13px;
  line-height: 1.45;
}

.f7c-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ✅ Boton conituar y volver */

.f7c-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: var(--f7c-teal) !important;
  border: 1px solid var(--f7c-teal) !important;
  color: #fff !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background .15s ease, border-color .15s ease;
  width: 100%;
}

.f7c-btn:hover {
  filter: brightness(.98);
  background: var(--f7c-blue) !important;
  border-color: var(--f7c-blue) !important;
  color: #fff !important;
}

.f7c-btn:active {
  transform: translateY(1px);
}

.f7c-btn-primary {
  border: 1px solid var(--f7c-blue);
  background: var(--f7c-blue);
  color: #fff;
}

.f7c-btn-primary:hover {
  background: var(--f7c-teal);
  border-color: var(--f7c-teal);
  color: #fff;
}

/* =========================================================
   PORTAL
========================================================= */
.f7c-portal-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.f7c-portal-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
  padding: 22px;
}

.f7c-portal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.f7c-portal-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  color: var(--f7c-text);
}

.f7c-portal-sub {
  margin: 0;
  color: rgba(0, 0, 0, .60);
}

.f7c-portal-progress {
  min-width: 260px;
}

.f7c-portal-progressbar {
  height: 10px;
  background: rgba(0, 0, 0, .08);
  border-radius: 999px;
  overflow: hidden;
}

.f7c-portal-progressfill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--f7c-teal);
}

.f7c-portal-progresslabel {
  margin-top: 8px;
  font-weight: 800;
  color: rgba(0, 0, 0, .70);
}

.f7c-portal-tablewrap {
  margin-top: 16px;
  overflow: auto;
}

.f7c-portal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  overflow: hidden;
}

.f7c-portal-table th,
.f7c-portal-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  vertical-align: top;
  font-size: 14px;
}

.f7c-portal-table th {
  background: rgba(0, 0, 0, .03);
  font-weight: 900;
}

.f7c-portal-muted {
  color: rgba(0, 0, 0, .45);
}

.f7c-portal-person-name {
  font-weight: 500;
  color: var(--f7c-text);
}

.f7c-portal-person-doc {
  font-size: 12px;
  color: rgba(0, 0, 0, .55);
  margin-top: 2px;
}

.f7c-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.f7c-badge-pending {
  background: rgba(240, 68, 56, .10);
  border: 1px solid rgba(240, 68, 56, .25);
  color: #b42318;
}

.f7c-badge-done {
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .25);
  color: #065f46;
}

/* Ver detalles: peso 500 */
.f7c-link {
  font-weight: 500 !important;
  color: var(--f7c-blue);
  text-decoration: none;
}

.f7c-link:hover {
  text-decoration: underline;
}

.f7c-portal-link {
  display: block;
  margin-top: 2px;
  word-break: break-all;
  font-size: 12px;
  color: var(--f7c-blue);
  text-decoration: none;
}

.f7c-portal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ✅ Copiar link: pill, azul -> hover teal */
button.f7c-portal-copy {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: var(--f7c-blue) !important;
  border: 1px solid var(--f7c-blue) !important;
  color: #fff !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background .15s ease, border-color .15s ease;
}

button.f7c-portal-copy:hover {
  background: var(--f7c-teal) !important;
  border-color: var(--f7c-teal) !important;
  color: #fff !important;
}

/* ✅ WhatsApp: pill verde, sin hover */
.f7c-portal-wrap .f7c-portal-actions a.f7c-portal-wa {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  background: var(--f7c-wa) !important;
  border: 1px solid var(--f7c-wa) !important;
  color: #fff !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.f7c-portal-wrap .f7c-portal-actions a.f7c-portal-wa:hover,
.f7c-portal-wrap .f7c-portal-actions a.f7c-portal-wa:active,
.f7c-portal-wrap .f7c-portal-actions a.f7c-portal-wa:focus {
  background: var(--f7c-wa) !important;
  border-color: var(--f7c-wa) !important;
  color: #fff !important;
  filter: none !important;
}

.f7c-portal-foot {
  margin-top: 14px;
  color: rgba(0, 0, 0, .55);
  font-size: 13px;
}

/* =========================================================
   VERIFY - Hidrayte Style
========================================================= */
.f7c-verify-wrap {
  max-width: 720px;
  margin: 40px auto;
  padding: 10px;
}

.f7c-verify-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
  padding: 28px 24px 32px;
  font-family: "Poppins", sans-serif;
}

/* HEADER - Logo y título centrados */
.f7c-verify-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  text-align: center;
}

.f7c-verify-logo {
  height: 100px !important;
  max-width: 100px !important;
  object-fit: contain;
}

.f7c-verify-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e5c96;
  margin: 0;
}

.f7c-verify-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 18px 0;
  line-height: 1.5;
  text-align: center;
}

/* FORM */
.f7c-verify-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.f7c-verify-form input {
  flex: 1;
  min-width: 220px;
  padding: 11px 12px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  outline: none;
  transition: all .2s ease;
}

.f7c-verify-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.f7c-btn-primary,
.f7c-verify-form button {
  padding: 11px 22px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-radius: 12px !important;
  color: white !important;
  border: none !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  transition: all .2s ease !important;
}

.f7c-btn-primary:hover,
.f7c-verify-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
  opacity: .96;
}

/* ALERT */
.f7c-verify-alert {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.f7c-verify-alert--error {
  background: #fff7ed;
  color: #92400e;
  border: 1px solid #fed7aa;
}

/* CERTIFICATE CARD */
.f7c-verify-cert {
  margin-top: 10px;
  padding: 22px 20px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #d1fae5, #ecfdf5);
  border: 1px solid #6ee7b7;
  position: relative;
}

/* HEADER: Logo + Title Left, Badge + QR Right */
.f7c-cert-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.f7c-cert-head-left {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}

.f7c-cert-logo {
  height: 58px !important;
  max-width: 240px !important;
  object-fit: contain;
}

.f7c-cert-title {
  font-size: 18px;
  color: #047857;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

.f7c-cert-caption {
  font-size: 12px;
  color: #047857;
  margin: 2px 0 0 0;
  line-height: 1.4;
}

/* Badge + QR Right */
.f7c-cert-head-right {
  text-align: center;
}

.f7c-cert-badge {
  background: #22c55e;
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px;
  display: inline-block;
}

.f7c-qr-box {
  margin-top: 6px;
  text-align: center;
}

.f7c-qr-box canvas {
  width: 70px !important;
  height: 70px !important;
}

/* INFO BLOCKS */
.f7c-info-block {
  background: rgba(255, 255, 255, 0.55);
  padding: 10px 14px;
  width: 88%;
  margin: 8px auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 14px;
  line-height: 1.5;
}

.f7c-info-block strong {
  color: #064e3b;
  font-weight: 700;
}

/* FOOTER */
.f7c-cert-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.f7c-cert-footnote {
  font-size: 12px;
  color: #047857;
  flex: 1;
}

.f7c-cert-btn {
  background: #111827 !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 100px !important;
  font-size: 12px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  transition: all .2s ease !important;
  border: none !important;
}

.f7c-cert-btn:hover {
  background: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

/* Responsive */
@media (max-width: 640px) {
  .f7c-cert-head {
    flex-direction: column;
  }

  .f7c-cert-head-left {
    flex-direction: column;
    text-align: center;
  }

  .f7c-cert-head-right {
    width: 100%;
  }

  .f7c-info-block {
    width: 100%;
  }
}