.libro-reclamaciones {
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  background: #f5f5f5;
  font-family: Arial, sans-serif;
  color: #7f1b87;
}

.libro-reclamaciones h2 {
  margin: 34px 0 24px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 4px;
  font-weight: 700;
  color: #00aeb0;
  text-transform: uppercase;
}

.lr-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #aaeaea;
  border-radius: 24px;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.lr-top .lr-fecha,
.lr-top .lr-codigo {
  color: #028d96;
}

.lr-top .lr-fecha strong,
.lr-top .lr-codigo strong {
  font-size: 18px;
  font-weight: 700;
}

.lr-top .lr-codigo small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #0d98a0;
  font-style: italic;
  line-height: 1.4;
}

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

.lr-grid > div {
  width: 100%;
}

.libro-reclamaciones label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  color: #97138d;
}

.libro-reclamaciones input[type="text"],
.libro-reclamaciones input[type="email"],
.libro-reclamaciones input[type="tel"],
.libro-reclamaciones input[type="number"],
.libro-reclamaciones input[type="date"],
.libro-reclamaciones select,
.libro-reclamaciones textarea {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  padding: 0 18px;
  font-size: 16px;
  color: #7b7b7b;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  outline: none;
  box-sizing: border-box;
}

.libro-reclamaciones textarea {
  min-height: 170px;
  padding: 16px 18px;
  resize: vertical;
}

.libro-reclamaciones input::placeholder,
.libro-reclamaciones textarea::placeholder {
  color: #9bb4bd;
}

.libro-reclamaciones select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.libro-reclamaciones .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 0 18px 10px 0;
}

.libro-reclamaciones .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #9bb4bd;
  font-weight: 500;
}

.libro-reclamaciones input[type="checkbox"],
.libro-reclamaciones input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #00aeb0;
}

.lr-obligatorio {
  margin: 18px 0 6px;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  color: #f28a11;
}

.lr-info-final {
  margin-top: 8px;
}

.lr-info-final p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #5f5f5f;
  font-style: italic;
  font-weight: 600;
}

.lr-checks {
  margin-top: 28px;
}

.lr-checks .wpcf7-list-item,
.lr-checks .wpcf7-acceptance {
  display: block;
  margin: 0 0 14px;
}

.lr-checks label {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  color: #5e5e5e;
  line-height: 1.5;
}

.lr-checks a {
  color: #5e5e5e;
  font-weight: 700;
  text-decoration: none;
}

.libro-reclamaciones input[type="file"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  background: #9cb8c3;
  color: #111;
  box-shadow: none;
}

.libro-reclamaciones input[type="file"]::file-selector-button {
  border: 0;
  background: transparent;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.lr-submit {
  margin-top: 28px;
}

.lr-submit .wpcf7-submit {
  min-width: 220px;
  border: 0;
  border-radius: 18px;
  padding: 15px 28px;
  background: #00aeb0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.lr-submit .wpcf7-submit:hover {
  opacity: 0.92;
}

.lr-col-span-2,
.lr-col-span-3,
.lr-col-span-4 {
  grid-column: auto;
}

/* TABLET */
@media (min-width: 768px) {
  .libro-reclamaciones {
    padding: 32px 28px 60px;
  }

  .lr-grid-4,
  .lr-grid-3,
  .lr-grid-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lr-col-span-2 {
    grid-column: span 2;
  }
}

/* DESKTOP */
@media (min-width: 1200px) {
  .libro-reclamaciones {
    padding: 28px 36px 70px;
  }

  .lr-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 22px 46px;
  }

  .lr-top .lr-codigo {
    text-align: right;
  }

  .lr-grid-4 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px 22px;
  }

  .lr-grid-3 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px 22px;
  }

  .lr-grid-1 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px 22px;
  }

  /* IDENTIFICACIÓN DEL CONSUMIDOR */
  .lr-grid-4 > div:nth-child(1) { grid-column: span 2; }  /* Usuario */
  .lr-grid-4 > div:nth-child(2) { grid-column: span 2; }  /* Menor de edad */
  .lr-grid-4 > div:nth-child(3) { grid-column: span 3; }  /* Nombre */
  .lr-grid-4 > div:nth-child(4) { grid-column: span 3; }  /* Apellidos */

  .lr-grid-4 > div:nth-child(5) { grid-column: span 2; }  /* Documento */
  .lr-grid-4 > div:nth-child(6) { grid-column: span 2; }  /* N documento */
  .lr-grid-4 > div:nth-child(7) { grid-column: span 3; }  /* Código */
  .lr-grid-4 > div:nth-child(8) { grid-column: span 3; }  /* Correo */

  .lr-grid-4 > div:nth-child(9) { grid-column: span 2; }  /* Teléfono */
  .lr-grid-4 > div:nth-child(10) { grid-column: span 6; } /* Dirección */

  /* IDENTIFICACIÓN DEL BIEN CONTRATADO */
  .libro-reclamaciones h2 + .lr-grid-3 > div:nth-child(1) { grid-column: span 5; }
  .libro-reclamaciones h2 + .lr-grid-3 > div:nth-child(2) { grid-column: span 2; }
  .libro-reclamaciones h2 + .lr-grid-3 > div:nth-child(3) { grid-column: span 5; }

  .lr-grid-1 > div:nth-child(1) {
    grid-column: 3 / span 8;
  }

  .lr-grid-1 > div:nth-child(2) {
    grid-column: 3 / span 8;
  }

  /* FILA FINAL */
  .lr-grid-4:last-of-type > div:nth-child(1) { grid-column: 3 / span 2; } /* archivo */
  .lr-grid-4:last-of-type > div:nth-child(2) { grid-column: span 2; }     /* programa */
  .lr-grid-4:last-of-type > div:nth-child(3) { grid-column: span 2; }     /* monto */
  .lr-grid-4:last-of-type > div:nth-child(4) { grid-column: span 3; }     /* medio */

  .lr-info-final {
    max-width: 1450px;
  }

  .lr-checks {
    max-width: 900px;
  }
}
