/* ============================================================
   Web Check In (/web-check-in/) — página independiente
   Diseño del original: etiquetas Frank Ruhl, línea dorada bajo cada campo.
   ============================================================ */
.ci-page { min-height: 100vh; padding: 55px 0 80px; }
.ci-wrap { width: min(100% - 40px, 1160px); margin: 0 auto; }
.ci-head { text-align: center; margin-bottom: 50px; }
.ci-logo { display: inline-block; width: 210px; }
.ci-logo img { width: 100%; }
.ci-title { margin-top: 20px; font-size: 28px; font-weight: 600; color: var(--c-ink); }
.ci-head .divider { width: 104px; margin: 20px auto; }
.ci-intro { font-family: var(--f-ui); font-size: 16px; margin: 0; }

.ci-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.ci-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px 34px; }
.ci-grid + .ci-grid, .ci-grid + .ci-section, .ci-waiver + .ci-grid { margin-top: 18px; }
.ci-col-6 { grid-column: span 6; }
.ci-col-3 { grid-column: span 3; }
.ci-sub { grid-column: 1 / -1; padding: 0; margin: 8px 0 -4px; font-family: var(--f-ui); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold-dark); }
.ci-section { margin: 34px 0 10px; font-size: 28px; font-weight: 600; color: var(--c-ink); }

.ci-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ci-field > label, .ci-label { font-size: 17px; font-weight: 500; color: #1d1d1d; }
.ci-req { color: var(--c-gold-dark); }
.ci-field input:not([type="file"]), .ci-field select {
  width: 100%; padding: 12px 16px; border: 0; border-bottom: 2px solid var(--c-gold); border-radius: 0;
  background: transparent; color: var(--c-text); font: 400 16px/1.4 var(--f-serif); appearance: none;
}
.ci-field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23111'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; cursor: pointer; }
.ci-field input::placeholder { color: #8a8a8a; }
.ci-field input:focus, .ci-field select:focus { outline: none; border-bottom-color: var(--c-ink); background: rgba(177, 134, 99, .06); }
.ci-field [aria-invalid="true"] { border-bottom-color: #c0392b !important; }

/* Adjuntos */
.ci-file { position: relative; display: block; cursor: pointer; }
.ci-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ci-file__drop { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: 2px dashed rgba(177, 134, 99, .6); border-radius: 8px; background: rgba(255, 255, 255, .45); transition: border-color .2s, background-color .2s; }
.ci-file:hover .ci-file__drop, .ci-file input:focus-visible + .ci-file__drop { border-color: var(--c-gold-dark); background: rgba(255, 255, 255, .8); }
.ci-file__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-gold); color: #fff; font-size: 20px; }
.ci-file__txt { font-family: var(--f-ui); font-size: 14px; color: #555; }
.ci-file.has-file .ci-file__drop { display: none; }
.ci-file__preview { display: flex; align-items: center; gap: 12px; padding: 8px; border: 2px solid var(--c-gold); border-radius: 8px; background: #fff; }
.ci-file__preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.ci-file__preview .ci-file__pdf { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 6px; background: #eee; font: 700 12px var(--f-ui); color: #a33; }
.ci-file__meta { flex: 1; min-width: 0; font-family: var(--f-ui); font-size: 13px; line-height: 1.35; color: #333; }
.ci-file__meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-file__remove { position: relative; z-index: 2; flex: none; width: 34px; height: 34px; border: 1px solid #ccc; border-radius: 50%; background: #fff; font-size: 14px; cursor: pointer; }
.ci-file__remove:hover { border-color: #c0392b; color: #c0392b; }
.ci-file.has-file input { pointer-events: none; }

/* Exención */
.ci-waiver { margin-top: 34px; }
.ci-waiver h2 { font-size: 18px; font-weight: 500; margin-bottom: 18px; color: #1d1d1d; }
.ci-waiver p { font-size: 16px; line-height: 1.55; text-align: justify; hyphens: auto; }

/* Firmas */
.ci-sign { position: relative; height: 256px; border: 1px solid #1d1d1d; border-radius: 4px; background: rgba(255, 255, 255, .55); touch-action: none; }
.ci-sign canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.ci-sign__hint { position: absolute; left: 16px; bottom: 14px; font-family: var(--f-ui); font-size: 13px; color: #999; pointer-events: none; }
.ci-sign.has-sign .ci-sign__hint { display: none; }
.ci-sign::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 40px; border-bottom: 1px dashed #bbb; pointer-events: none; }
.ci-sign__clear { position: absolute; top: -1px; right: -1px; width: 50px; height: 42px; border: 1px solid #1d1d1d; background: #fff; font-size: 16px; cursor: pointer; }
.ci-sign[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 1px #c0392b; }

/* Enviar */
.ci-actions { margin-top: 24px; text-align: center; }
.ci-submit { min-width: 114px; }
.ci-submit[disabled] { opacity: .6; cursor: wait; }
.ci-progress { margin: 16px auto 0; max-width: 360px; font-family: var(--f-ui); font-size: 14px; color: #555; }
.ci-progress__bar { display: block; height: 6px; border-radius: 4px; background: rgba(177, 134, 99, .25); overflow: hidden; margin-bottom: 6px; }
.ci-progress__bar i { display: block; height: 100%; width: 0; background: var(--c-gold); transition: width .2s; }
.ci-form .form__status { margin-top: 20px; }
.ci-done { text-align: center; padding: 50px 20px; border: 2px solid var(--c-gold); border-radius: 12px; background: rgba(255, 255, 255, .6); }
.ci-done h2 { font-size: 26px; margin-bottom: 12px; }
.ci-done p { font-size: 17px; }

@media (max-width: 767px) {
  .ci-page { padding: 35px 0 60px; }
  .ci-grid { grid-template-columns: 1fr 1fr; gap: 16px 16px; }
  .ci-col-6 { grid-column: 1 / -1; }
  .ci-col-3 { grid-column: span 1; }
  .ci-section { font-size: 24px; }
  .ci-sign { height: 200px; }
}
@media (max-width: 400px) { .ci-col-3 { grid-column: 1 / -1; } }
