h3{
  border-top:1px solid #00BBB4;
  padding-top: 10px;
  margin-bottom: 10px;
}

/* ── Grid base ── */
.lr-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.lr-grid>div, .lr-grid [data-id="apoderado"]>div {
  display: flex;
  align-items: center;
  column-gap: 10px;
  width:100%;
}

.lr-grid>div label {
  text-wrap: nowrap;
  display: none;
  margin-bottom: 0;
  color: #8D1A7C;
  font-weight: 500;
}

.lr-grid .no-hidden label {
  /*display: block;*/
  display: flex;
  column-gap: 5px;
}

.lr-grid>span {
  display: contents;
}

.wpcf7-exclusive-checkbox {
  display: flex;
  flex-direction: row;
}

.wpcf7-exclusive-checkbox span {
  width: auto !important;
}

.lr-grid span {
  width: 100%;
  column-gap: 10px;
}

.lr-grid .no-hidden>label>span {
  width: initial;
}

.lr-grid.lr-grid-3,
.lr-grid.lr-grid-1 {
  margin-bottom: 20px;
}

.wpcf7-not-valid-tip {
  font-size: 11px;
}

.libro-reclamaciones select,
.libro-reclamaciones input:not([type=submit]):not([type=reset]),
.libro-reclamaciones textarea {
  width: 100%;
  border-radius: 20px;
  color: #A3BBC3;
  font-weight: 500;
}
.libro-reclamaciones i{color:#F39424}
.lr-obligatorio {
  color: #F39424;
  font-weight: 500;
  font-style: italic;
  margin-top: 20px;
  margin-bottom: 40px;
}
.libro-reclamaciones hr{
  border: none;
  border-top: 3px solid #00BBB4;
}

.wpcf7-list-item{margin: 0;}

input[type=button],
input[type=checkbox],
input[type=radio] {
  width: auto !important;
}

.wpcf7-list-item label span,
.wpcf7-list-item span {
  color: #A3BBC3;
  font-weight: initial;
  text-wrap: initial;
  line-height: 16px;
}

.lr-info-final {
  font-style: italic;
  padding-left: 20px;
  font-weight: 500;
}

.lr-checks {
  display: flex;
  flex-direction: column;
}

.lr-submit {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  column-gap: 20px;
  flex-wrap: wrap;
  row-gap: 10px;
  flex-direction: column;
}

.lr-submit input {
  width: initial;
}

.libro-reclamaciones input[type="submit"],
.libro-reclamaciones input[type="reset"] {
  padding: 0px 20px;
  background-color: #A3BBC3;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  height: 40px;
}

.libro-reclamaciones input[type="submit"] {
  background-color: #00BBB4;
}

.wpcf7-spinner {
  position: absolute;
  bottom: 0;
}

/* Spinner del botón enviar */
@keyframes lr-spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

/* El wrapper ocupa exactamente el espacio del botón */
.lr-submit-wrap {
  position: relative;
  display: inline-block;
}

/* Spinner blanco dentro del botón, a la derecha del texto */
.lr-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lr-spin 0.65s linear infinite;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Al cargar: mostrar spinner y dar espacio al texto dentro del botón */
.lr-submit-wrap.lr-loading .lr-btn-spinner {
  display: block;
}

.lr-submit-wrap.lr-loading input[type="submit"] {
  padding-right: 44px;
  cursor: not-allowed !important;
  background-color: #8f98a1 !important;
  color: #ffffff !important;
  opacity: 1;
}

.lr-submit-wrap.lr-loading button[type="submit"],
.lr-submit-wrap.lr-loading .wpcf7-submit {
  padding-right: 44px;
  cursor: not-allowed !important;
  background-color: #8f98a1 !important;
  color: #ffffff !important;
  opacity: 1;
}
.checkbox-column .wpcf7-exclusive-checkbox{
      flex-direction: column;
      row-gap: 5px;
}

/* ── Desktop ── */
@media (min-width: 768px) {
  .lr-grid>div label {
    text-wrap: nowrap;
    display: block;
  }

  .lr-submit {

    flex-direction: row;
  }

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

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

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

  .lr-grid.lr-grid-1 {
    grid-template-columns: 1fr;
  }

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

  .text-area-width div label {
    width: 200px;
  }
  .text-area-width > div {
    align-items: flex-start;
  }
  .wpcf7-list-item span {

      text-wrap: inherit !important;
}
}



/* Ocultar errores nativos de Contact Form 7 */
.wpcf7-not-valid-tip,
.wpcf7-response-output,
.wpcf7 form .wpcf7-spinner {
  display: none !important;
}

/* Contenedor base */
.libro-reclamaciones .wpcf7-form-control-wrap,
.libro-reclamaciones .checkbox-column,
.libro-reclamaciones .lr-checks .wpcf7-form-control-wrap {
  position: relative;
  /*display: block;*/
}

/* Campo inválido */
.libro-reclamaciones .is-invalid {
  border: 1px solid #d93025 !important;
}

/* Mensaje flotante */
.libro-reclamaciones .just-validate-error-label {
  position: absolute;
  left: 0;
  top: calc(100% + -6px);
  font-size: 12px;
  line-height: 1.2;
  color: #d93025 !important;
  background: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  white-space: nowrap;
  max-width: 100%;
}

/* Para checkboxes/radios */
.libro-reclamaciones .checkbox-column .just-validate-error-label,
.libro-reclamaciones .lr-checks .just-validate-error-label {
  position: relative;
  top: auto;
  left: auto;
  display: inline-block;
  margin-top: 8px;
  white-space: normal;
}

/* Estado visual correcto opcional */
.libro-reclamaciones .just-validate-success-field {
  border: 1px solid #1aa36f !important;
}


/*popup*/
.lr-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  overflow-y: auto;
  font-weight: 600;
}

.lr-popup.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,.8);
}

.lr-popup-dialog {
  position: relative;
  width: min(900px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin: 16px;
  box-sizing: border-box;
  background-color: white;
  border-radius: 20px;
}

.lr-popup-body {
  position: relative;
  padding: 32px 24px 24px;
}

.lr-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  cursor: pointer;
}

.lr-popup-title {
  margin: 0 0 24px;
  text-align: center;
}

.lr-popup-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}

.lr-popup-item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 6px;
}

.lr-popup-copy {
  margin-bottom: 24px;
}
.lr-popup-copy label{
  color:black
}

.lr-popup-copy label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lr-popup-copy input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 7px;
}

.lr-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lr-popup-actions button {
  width: 100%;
  text-align: center;
  padding: 10px 20px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 5px;
  color: white;
}
.lr-popup-actions button svg{
  height: 14px;
}
#lr-descargar{
  background-color: #00BBB4;
}
#lr-enviar{
  background-color: #A3BBC3;
}
#lr-popup-close{
  background-color: #00BBB4;
  color: white;
  border-radius: 100%;
  font-size: 30px;
}
 

@media (min-width: 768px) {
  .lr-popup-copy label{
    width: 80%;
  }
  .lr-popup-copy{
    display: flex;
    justify-content: center;
  }
  .lr-popup-body {
    padding: 40px 32px 32px;
  }

  .lr-popup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lr-popup-grid div:nth-child(-n+2){
    border-top: 1px solid black;
    border-bottom: 1px solid black;
  }
  .lr-popup-grid > div{
    padding:20px
  }

  .lr-popup-actions {
    flex-direction: row;
    justify-content: center;
  }

  .lr-popup-actions button {
    width: auto;
    min-width: 160px;
  }
}