/* ==========================================================================
   NK PLACAS E.I.R.L. — Formato Oficial INDECOPI (reclamaciones.css)
   Conforme al D.S. N° 011-2011-PCM y la Ley N° 29571
   Fiel réplica de la plantilla oficial de Hoja de Reclamación
   ========================================================================== */

/* Contenedor General de la Página */
.claim-page {
  background-color: #F1F5F9;
  min-height: 100vh;
}

.claim-page__wrap {
  padding: 40px 0 80px 0;
}

.claim-page__container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Presentación Superior */
.claim-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-left: 5px solid var(--color-primary-red);
  padding: 16px 24px;
  border-radius: var(--radius-btn);
  margin-bottom: 24px;
}

.claim-intro__info h1 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-charcoal-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.claim-intro__info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.claim-intro__badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.claim-intro__img {
  width: 115px;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--color-gray-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition-fast);
}

/* --------------------------------------------------------------------------
   HOJA DE RECLAMACIÓN OFICIAL INDECOPI (.indecopi-sheet)
   -------------------------------------------------------------------------- */
.indecopi-sheet {
  background-color: var(--color-white);
  border: 2px solid #000000;
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Filas generales */
.indecopi-sheet__row {
  display: flex;
  border-bottom: 1.5px solid #000000;
  align-items: stretch;
}

.indecopi-sheet__row--header {
  text-align: center;
}

.indecopi-sheet__col-title-main {
  width: 65%;
  background-color: #D1D5DB;
  border-right: 1.5px solid #000000;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.indecopi-sheet__col-title-main h2 {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
}

.indecopi-sheet__col-title-sub {
  width: 35%;
  background-color: var(--color-white);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.indecopi-sheet__col-title-sub h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
}

/* Fila de Fecha y N° */
.indecopi-sheet__cell-date {
  width: 65%;
  border-right: 1.5px solid #000000;
  display: flex;
  align-items: center;
}

.indecopi-sheet__date-boxes {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
}

.indecopi-sheet__date-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  border: 1px solid #000000;
  background-color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  color: #111111;
  padding: 0 6px;
}

.indecopi-sheet__date-slot--year {
  min-width: 54px;
}

.indecopi-sheet__date-sep {
  font-weight: 900;
  font-size: 1rem;
  color: #666666;
}

.indecopi-sheet__cell-num {
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background-color: #FAFAFA;
}

.indecopi-sheet__num-val {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: var(--color-primary-red);
}

/* Datos del Proveedor */
.indecopi-sheet__vendor-info {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.indecopi-sheet__vendor-info p {
  margin: 2px 0;
  color: #111111;
}

.indecopi-sheet__vendor-info strong {
  font-weight: 800;
  color: #000000;
}

/* Barras de Título de Sección */
.indecopi-sheet__section-bar {
  background-color: #D1D5DB;
  border-bottom: 1.5px solid #000000;
  padding: 6px 12px;
}

.indecopi-sheet__section-bar h3 {
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
}

.indecopi-sheet__section-bar--split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.indecopi-sheet__section-title {
  padding: 6px 12px;
  flex: 1;
}

.indecopi-sheet__claim-types {
  display: flex;
  height: 100%;
}

.indecopi-sheet__type-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--color-white);
  border-left: 1.5px solid #000000;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.86rem;
  transition: background-color 0.2s;
}

.indecopi-sheet__type-label:hover {
  background-color: #FEF2F2;
}

/* Celdas de formulario */
.indecopi-sheet__cell-field {
  width: 100%;
  display: flex;
  align-items: center;
}

.indecopi-sheet__cell-half {
  width: 50%;
  display: flex;
  align-items: center;
}

.indecopi-sheet__cell-half:first-child {
  border-right: 1.5px solid #000000;
}

.indecopi-sheet__label {
  font-weight: 900;
  font-size: 0.82rem;
  color: #000000;
  padding: 7px 10px;
  border-right: 1.5px solid #000000;
  white-space: nowrap;
  flex-shrink: 0;
  background-color: var(--color-white);
  min-width: 110px;
}

.indecopi-sheet__label--long {
  min-width: auto;
  font-size: 0.78rem;
}

.indecopi-sheet__input {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 0.88rem;
  color: #111111;
  transition: background-color 0.2s ease;
}

.indecopi-sheet__input:focus {
  background-color: #FFFBEB;
}

.indecopi-sheet__textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.88rem;
  color: #111111;
  line-height: 1.45;
  resize: vertical;
  transition: background-color 0.2s ease;
}

.indecopi-sheet__textarea:focus {
  background-color: #FFFBEB;
}

.indecopi-sheet__textarea--short {
  min-height: 58px;
}

/* Sección 2: Identificación del Bien Contratado (Grid 2x2) */
.indecopi-sheet__grid-good {
  display: flex;
  border-bottom: 1.5px solid #000000;
}

.indecopi-sheet__cell-good-choice {
  width: 32%;
  border-right: 1.5px solid #000000;
  display: flex;
  flex-direction: column;
}

.indecopi-sheet__choice-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
}

.indecopi-sheet__choice-row:first-child {
  border-bottom: 1.5px solid #000000;
}

.indecopi-sheet__choice-row .indecopi-sheet__label {
  border-right: none;
  padding: 0;
  min-width: auto;
}

.indecopi-sheet__cell-good-details {
  width: 68%;
  display: flex;
  flex-direction: column;
}

.indecopi-sheet__cell-amount {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid #000000;
}

.indecopi-sheet__cell-desc {
  display: flex;
  align-items: flex-start;
  flex: 1;
}

.indecopi-sheet__cell-desc .indecopi-sheet__label {
  min-height: 58px;
}

/* Sección 3: Detalle y Pedido + Firmas */
.indecopi-sheet__cell-detail {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.indecopi-sheet__cell-detail .indecopi-sheet__label {
  border-right: none;
  border-bottom: 1px solid #E2E8F0;
  width: 100%;
}

.indecopi-sheet__grid-request-sign,
.indecopi-sheet__grid-provider-sign {
  display: flex;
  border-bottom: 1.5px solid #000000;
}

.indecopi-sheet__cell-request,
.indecopi-sheet__cell-provider-action {
  width: 68%;
  border-right: 1.5px solid #000000;
  display: flex;
  flex-direction: column;
}

.indecopi-sheet__cell-request .indecopi-sheet__label {
  border-right: none;
  border-bottom: 1px solid #E2E8F0;
  width: 100%;
}

.indecopi-sheet__cell-signature,
.indecopi-sheet__cell-provider-sign {
  width: 32%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: var(--color-white);
}

.indecopi-sheet__sign-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-end;
  height: 100%;
  min-height: 120px;
}

.indecopi-sheet__sign-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.indecopi-sheet__sign-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-charcoal-dark);
  cursor: pointer;
  margin-bottom: 22px;
  text-align: center;
}

.indecopi-sheet__sign-line {
  display: block;
  width: 85%;
  height: 1px;
  background-color: #000000;
  margin-bottom: 6px;
}

.indecopi-sheet__sign-caption {
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #000000;
}

/* Sello del Proveedor */
.indecopi-sheet__seal {
  border: 1.5px dashed #BC0408;
  padding: 8px 12px;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 12px;
  background-color: #FFFBFB;
}

.indecopi-sheet__seal-company {
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  color: #BC0408;
}

.indecopi-sheet__seal-ruc {
  display: block;
  font-size: 0.72rem;
  color: #4A5568;
}

.indecopi-sheet__seal-dept {
  display: block;
  font-size: 0.68rem;
  color: #718096;
}

.indecopi-sheet__provider-response-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid #000000;
}

.indecopi-sheet__provider-deadline {
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1E293B;
}

.indecopi-sheet__provider-reserved {
  padding: 14px;
  font-size: 0.8rem;
  color: #64748B;
  font-style: italic;
  min-height: 80px;
}

/* Pie Oficial con Definiciones INDECOPI */
.indecopi-sheet__definitions {
  display: flex;
  border-bottom: 1.5px solid #000000;
}

.indecopi-sheet__def-box {
  width: 50%;
  padding: 7px 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #111111;
}

.indecopi-sheet__def-box:first-child {
  border-right: 1.5px solid #000000;
}

.indecopi-sheet__footer-legal {
  padding: 10px 14px;
  text-align: center;
  background-color: #FAFAFA;
}

.indecopi-sheet__footer-title {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 6px;
}

.indecopi-sheet__footer-legal p {
  font-size: 0.72rem;
  color: #333333;
  margin: 3px 0;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   ACCIONES WEB Y BOTÓN DE ENVÍO
   -------------------------------------------------------------------------- */
.claim-web-actions {
  margin-top: 24px;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-border);
  padding: 24px;
  border-radius: var(--radius-btn);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.claim-web-actions__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--color-text-main);
  cursor: pointer;
  line-height: 1.45;
}

.claim-web-actions__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.claim-web-actions__submit {
  padding: 14px 34px;
  font-size: 0.95rem;
}

.claim-web-actions__print {
  background-color: var(--color-charcoal-dark);
  color: var(--color-white);
  border: 1.5px solid var(--color-charcoal-dark);
}

.claim-web-actions__print:hover {
  background-color: var(--color-primary-red);
  border-color: var(--color-primary-red);
  color: var(--color-white);
}

/* Radio buttons y checkboxes estilizados */
.indecopi-sheet__radio,
.indecopi-sheet__checkbox,
.claim-web-actions__checkbox {
  accent-color: var(--color-primary-red);
  width: 17px;
  height: 17px;
  cursor: pointer;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   ADAPTABILIDAD RESPONSIVA (Móviles y Tablets)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .claim-page__wrap {
    padding: 20px 0 60px 0;
  }

  .claim-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Encabezado de la hoja apilado: "HOJA DE RECLAMACIÓN" no cabe en el 35% en 320px */
  .indecopi-sheet__row--header {
    flex-direction: column;
  }

  .indecopi-sheet__col-title-main,
  .indecopi-sheet__col-title-sub {
    width: 100%;
  }

  .indecopi-sheet__col-title-main {
    border-right: none;
    border-bottom: 1.5px solid #000000;
  }

  /* Fila Fecha / N°: apilada para que el correlativo no desborde en 320–375px */
  .indecopi-sheet__row--date {
    flex-direction: column;
  }

  .indecopi-sheet__row--date .indecopi-sheet__cell-date,
  .indecopi-sheet__row--date .indecopi-sheet__cell-num {
    width: 100%;
  }

  .indecopi-sheet__row--date .indecopi-sheet__cell-date {
    border-right: none;
    border-bottom: 1.5px solid #000000;
    flex-wrap: wrap;
  }

  .indecopi-sheet__row--date .indecopi-sheet__cell-num {
    padding: 8px 14px;
  }

  .indecopi-sheet__row--split,
  .indecopi-sheet__grid-good,
  .indecopi-sheet__grid-request-sign,
  .indecopi-sheet__grid-provider-sign,
  .indecopi-sheet__definitions {
    flex-direction: column;
  }

  .indecopi-sheet__cell-half,
  .indecopi-sheet__cell-good-choice,
  .indecopi-sheet__cell-good-details,
  .indecopi-sheet__cell-request,
  .indecopi-sheet__cell-signature,
  .indecopi-sheet__cell-provider-action,
  .indecopi-sheet__cell-provider-sign,
  .indecopi-sheet__def-box {
    width: 100% !important;
    border-right: none !important;
  }

  .indecopi-sheet__cell-half:first-child,
  .indecopi-sheet__cell-good-choice,
  .indecopi-sheet__cell-request,
  .indecopi-sheet__cell-provider-action,
  .indecopi-sheet__def-box:first-child {
    border-bottom: 1.5px solid #000000;
  }

  .indecopi-sheet__section-bar--split {
    flex-direction: column;
    align-items: stretch;
  }

  .indecopi-sheet__claim-types {
    border-top: 1.5px solid #000000;
  }

  .indecopi-sheet__type-label {
    flex: 1;
    border-left: none;
    justify-content: center;
  }

  .indecopi-sheet__type-label:first-child {
    border-right: 1.5px solid #000000;
  }

  .claim-web-actions__buttons {
    flex-direction: column;
  }

  .claim-web-actions__buttons .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   ESTILOS DE IMPRESIÓN (Ctrl+P / Imprimir Hoja Oficial)
   -------------------------------------------------------------------------- */
@media print {
  .top-bar,
  .header,
  .footer,
  .whatsapp-btn,
  .claim-intro,
  .claim-web-actions {
    display: none !important;
  }

  body, .claim-page {
    background: #FFFFFF !important;
  }

  .claim-page__wrap {
    padding: 0 !important;
  }

  .indecopi-sheet {
    box-shadow: none !important;
    border: 2px solid #000000 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .indecopi-sheet__col-title-main,
  .indecopi-sheet__section-bar {
    background-color: #D1D5DB !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
