/*
 * CITE — Libro de Reclamaciones (inc/reclamaciones.php). Sustituye al CSS del
 * plugin «libro-reclamaciones-bitacora», que no se carga. Cubre sus tres
 * shortcodes: el formulario, la consulta de estado y la portada del libro.
 * Solo se carga en las páginas que los usan.
 */

/* ----- Página: información a la izquierda, formulario a la derecha ----- */
.cite-lr { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; width: 100%; padding-bottom: 0 !important; }
.cite-lr.container, .entry-content .cite-lr { width: 100%; max-width: none; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0; margin-right: 0; }
/* El contenedor respeta el ancho de .container del tema para alinearse con cabecera y pie */
.cite-page-body:has(.cite-lr),
.entry-content:has(.cite-lr) {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-bottom: clamp(40px, 5vw, 64px) !important;
}
@media (min-width: 640px) {
  .cite-page-body:has(.cite-lr),
  .entry-content:has(.cite-lr) {
    max-width: 640px !important;
  }
}
@media (min-width: 768px) {
  .cite-page-body:has(.cite-lr),
  .entry-content:has(.cite-lr) {
    max-width: 768px !important;
  }
}
@media (min-width: 1024px) {
  .cite-page-body:has(.cite-lr),
  .entry-content:has(.cite-lr) {
    max-width: 1024px !important;
  }
}
@media (min-width: 1280px) {
  .cite-page-body:has(.cite-lr),
  .entry-content:has(.cite-lr) {
    max-width: 1280px !important;
  }
}
@media (min-width: 1536px) {
  .cite-page-body:has(.cite-lr),
  .entry-content:has(.cite-lr) {
    max-width: 1536px !important;
  }
}
.cite-width-completo .cite-page-body:has(.cite-lr),
.cite-width-completo .entry-content:has(.cite-lr) {
  max-width: 100% !important;
}
/* Ocultar bloque de suscripción del footer en Libro de Reclamaciones */
.cite-subs-block { display: none !important; }
/* Sin columna informativa: la hoja ocupa todo el ancho del contenedor. */
.cite-lr--solo { grid-template-columns: minmax(0, 1fr); }
/* Fija al bajar, salvo con cabecera fija: quedaría debajo de ella. */
body:not(:has(.site-header--sticky)) .cite-lr__aside { position: sticky; top: 24px; }
.cite-lr__card { display: grid; gap: 20px; padding: clamp(22px, 2.6vw, 30px); color: var(--shoe-ink); background: var(--shoe-sand); border: 1px solid var(--shoe-line); }
.cite-lr__mark { display: block; width: 58px; color: var(--shoe-ink); overflow: visible; }
.cite-lr__mark .cite-claims__mark { display: block; width: 58px; height: 38px; margin-left: -29.875%; }
.cite-lr__lead { margin: 0; font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: 19px; font-weight: 400; letter-spacing: -.01em; line-height: 1.35; }

.cite-lr__types { display: grid; gap: 12px; margin: 0; }
.cite-lr__types dt { margin: 0 0 3px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cite-lr__types dd { margin: 0; color: var(--shoe-ink-soft); font-size: 13.5px; line-height: 1.55; }

.cite-lr__facts { display: grid; gap: 10px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--shoe-line); list-style: none; }
.cite-lr__facts li { position: relative; padding-left: 22px; color: var(--shoe-ink-soft); font-size: 13.5px; line-height: 1.55; }
.cite-lr__facts li::before { position: absolute; top: 5px; left: 2px; width: 10px; height: 6px; content: ""; border-bottom: 1.6px solid #2f6b45; border-left: 1.6px solid #2f6b45; transform: rotate(-45deg); }
.cite-lr__facts strong { color: var(--shoe-ink); }
/* Leyenda del reglamento, siempre al pie de la hoja. */
.cite-lr .cite-lr__legal,
.cite-lr__main .cite-lr__legal { margin: 24px 0 0 !important; color: var(--shoe-ink-soft); font-size: 12.5px; line-height: 1.65; }

/* ----- Encabezado de la hoja: fecha, n.º y proveedor (formato oficial) ----- */
.cite-lr__sheet { border: 1px solid var(--shoe-line); border-bottom: 0; background: #fff; }
.cite-lr__sheet-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 18px clamp(22px, 3.4vw, 44px); color: #fff; background: var(--shoe-ink); }
.cite-lr__sheet-title, .cite-page-body .cite-lr__sheet-title { display: grid; gap: 3px; margin: 0; font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: 22px; font-weight: 400; letter-spacing: -.01em; line-height: 1.15; color: #fff !important; }
.cite-lr__sheet-title span { color: #fb6f92; font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cite-lr__sheet-meta { display: flex; gap: 26px; margin: 0; }
.cite-lr__sheet-meta dt, .cite-lr__sheet-provider dt { margin: 0 0 3px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cite-lr__sheet-meta dt { color: rgba(255, 255, 255, .6); }
.cite-lr__sheet-meta dd { margin: 0; font-size: 14px; font-weight: 700; }
.cite-lr__sheet-provider { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1.5fr); gap: 16px 24px; margin: 0; padding: 18px clamp(22px, 3.4vw, 44px); background: var(--shoe-sand); border-bottom: 1px solid var(--shoe-line); }
.cite-lr__sheet-provider dt { color: var(--shoe-ink-soft); }
.cite-lr__sheet-provider dd { margin: 0; color: var(--shoe-ink); font-size: 14px; font-weight: 600; line-height: 1.45; }
.cite-lr__sheet-alert { margin: 0; padding: 12px clamp(22px, 3.4vw, 44px); color: var(--shoe-clay-dark); background: #fdf5f3; border-bottom: 1px solid var(--shoe-line); font-size: 13px; }
.cite-lr__sheet-alert a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ----- Formulario ----- */
.reclamaciones-container { max-width: none; margin: 0; color: var(--shoe-ink); }
.reclamaciones-container *, .reclamaciones-container *::before, .reclamaciones-container *::after { box-sizing: border-box; }
.reclamaciones-container .inner-form { padding: clamp(22px, 3.4vw, 44px); background: #fff; border: 1px solid var(--shoe-line); counter-reset: lr-seccion; }
.reclamaciones-container .row, .reclamaciones-container .col-xs-12 { display: block; width: 100%; margin: 0; padding: 0; }
.reclamaciones-container .reclamaciones-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* El plugin deja un <p>&nbsp;</p> de relleno bajo el botón. */
.reclamaciones-container .col-xs-12 > p:not([class]) { display: none; }

/* Secciones numeradas: 1 Consumidor · 2 Bien contratado · 3 Detalle · 4 Acciones. */
.reclamaciones-container .box-title { margin: 34px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--shoe-line); }
.reclamaciones-container .reclamaciones-honeypot + .row-left .box-title { margin-top: 0; }
.reclamaciones-container .box-title .part-title p { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.reclamaciones-container .row-left .box-title .part-title p::before { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; content: counter(lr-seccion); counter-increment: lr-seccion; color: #fff; background: var(--shoe-ink); border-radius: 50%; font-size: 12px; letter-spacing: 0; }
#lr_tutor .box-title { margin-top: 22px !important; }

/* Rejilla de campos: 6 columnas; col-6 ocupa media fila, col-4 un tercio. */
.reclamaciones-container .address-form-section,
.reclamaciones-container .reclamaciones-empresa,
.reclamaciones-container #lr_tutor .row-center { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; margin: 0 0 16px; }
.reclamaciones-container .reclamaciones-col-12, .reclamaciones-container .reclamaciones-col-6, .reclamaciones-container .reclamaciones-col-4, .reclamaciones-container .reclamaciones-col-3 { display: flex; flex-direction: column; width: auto; margin: 0; padding: 0; }
.reclamaciones-container .reclamaciones-col-12, .reclamaciones-container #lr_tutor .row-center > p { grid-column: 1 / -1; }
.reclamaciones-container .reclamaciones-col-6 { grid-column: span 3; }
.reclamaciones-container .reclamaciones-col-4 { grid-column: span 2; }
.reclamaciones-container .reclamaciones-col-3 { grid-column: span 3; }
/* Campos sueltos (descripción, detalle…) fuera de la rejilla. */
.reclamaciones-container .row-center > .reclamaciones-col-12, .reclamaciones-container .row-center > .col-xs-12 > .reclamaciones-col-12 { margin-bottom: 16px; }

.reclamaciones-container label { margin: 0; color: var(--shoe-ink); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.reclamaciones-container .reclamaciones-col-12 > label, .reclamaciones-container .reclamaciones-col-6 > label, .reclamaciones-container .reclamaciones-col-4 > label { margin-bottom: 7px; }
.reclamaciones-container .form-control { display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; color: var(--shoe-ink); background: #fff; border: 1px solid #cfc8bd; border-radius: var(--shoe-radius); font: inherit; font-size: 14.5px; box-shadow: none; -webkit-appearance: none; appearance: none; transition: border-color .2s ease, box-shadow .2s ease; }
.reclamaciones-container textarea.form-control { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.reclamaciones-container select.form-control { padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231d1b19' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
.reclamaciones-container .form-control:hover { border-color: #a9a095; }
.reclamaciones-container .form-control:focus { border-color: var(--shoe-ink); outline: 0; box-shadow: 0 0 0 3px rgba(0,0,0, .08); }
/* Error que marca el JS del plugin al validar. */
.reclamaciones-container .form-control.reclamaciones-error { background-color: #fdf5f3; border-color: var(--shoe-clay); }

/* ----- Opciones: radios y casillas del plugin (.customcheck + .checkmark) ----- */
.reclamaciones-container .customcheck { position: relative; display: inline-flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0; color: var(--shoe-ink); font-size: 14px; font-weight: 500; line-height: 1.45; cursor: pointer; }
.reclamaciones-container .customcheck input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.reclamaciones-container .checkmark { position: relative; order: -1; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 0; background: #fff; border: 1.5px solid #b9b1a6; border-radius: 50%; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.reclamaciones-container .customcheck:hover .checkmark { border-color: var(--shoe-ink); }
.reclamaciones-container .customcheck input[type="radio"]:checked ~ .checkmark { border-color: var(--shoe-ink); box-shadow: inset 0 0 0 4px #fff; background: var(--shoe-ink); }
.reclamaciones-container .customcheck input[type="checkbox"] ~ .checkmark { border-radius: var(--shoe-radius); }
.reclamaciones-container .customcheck input[type="checkbox"]:checked ~ .checkmark { background: var(--shoe-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") no-repeat center / 13px; border-color: var(--shoe-ink); }
.reclamaciones-container .customcheck input:focus-visible ~ .checkmark { outline: 2px solid var(--shoe-clay); outline-offset: 2px; }
.reclamaciones-container .customcheck.error { color: var(--shoe-clay-dark); }
.reclamaciones-container .customcheck.error .checkmark { border-color: var(--shoe-clay); }

/* Persona natural / Empresa y Producto / Servicio: dos botones. */
.reclamaciones-container .reclamaciones-tipo { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; text-align: left; }
.reclamaciones-container .reclamaciones-tipo > .customcheck { align-items: center; min-height: 46px; padding: 0 18px 0 14px; background: #fff; border: 1px solid var(--shoe-line); transition: border-color .15s ease, box-shadow .15s ease; }
.reclamaciones-container .reclamaciones-tipo > .customcheck:has(input:checked) { border-color: var(--shoe-ink); box-shadow: inset 0 0 0 1px var(--shoe-ink); }

/* Reclamo / Queja: dos tarjetas con su explicación. */
.reclamaciones-container .reclamaciones-tipo > .w-100 { display: flex; flex: 1 1 260px; }
.reclamaciones-container .reclamaciones-tipo > .w-100 > .customcheck { width: 100%; padding: 16px; background: #fff; border: 1px solid var(--shoe-line); color: var(--shoe-ink-soft); font-size: 13.5px; transition: border-color .15s ease, box-shadow .15s ease; }
.reclamaciones-container .reclamaciones-tipo > .w-100 > .customcheck:has(input:checked) { border-color: var(--shoe-ink); box-shadow: inset 0 0 0 1px var(--shoe-ink); }
.reclamaciones-container .customcheck b { display: block; margin-bottom: 2px; color: var(--shoe-ink); font-size: 14px; font-weight: 800; }
/* Aquí el texto lleva un <b> y un párrafo: bloque normal con la marca a la izquierda. */
.reclamaciones-container .reclamaciones-tipo > .w-100 > .customcheck { display: block; padding-left: 46px; }
.reclamaciones-container .reclamaciones-tipo > .w-100 > .customcheck .checkmark { position: absolute; top: 17px; left: 16px; }

/* ¿Menor de edad? */
.reclamaciones-container label.customcheck[for="lr_menor_edad"] { margin: 4px 0 8px; }

/* ----- Aceptación, envío y respuesta ----- */
.reclamaciones-container .reclamaciones-aceptacion { display: grid; gap: 12px; margin: 30px 0 22px; padding: 22px 0 0; border-top: 1px solid var(--shoe-line); text-align: left; }
.reclamaciones-container .reclamaciones-aceptacion .customcheck { font-size: 13.5px; font-weight: 400; text-align: left; }
.reclamaciones-container .reclamaciones-aceptacion .reclamaciones-acepto-texto a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.reclamaciones-container .leyenda { margin: 0; color: var(--shoe-ink-soft); font-size: 12px; line-height: 1.55; text-align: center; }
.reclamaciones-container .reclamaciones-aceptacion .leyenda { margin: -4px 0 2px 30px; text-align: left; }
.reclamaciones-container .reclamaciones-captcha { margin: 0 0 18px; text-align: center; }

/* Botón centrado */
#reclamaciones-enviar, #reclamaciones-consultar { display: flex !important; align-items: center; justify-content: center; gap: 10px; width: fit-content !important; max-width: 100%; min-height: 52px; margin: 10px auto 14px !important; padding: 0 44px; color: #fff; background: var(--shoe-ink); border: 0; border-radius: var(--shoe-radius); font: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s ease; }
#reclamaciones-enviar:hover, #reclamaciones-consultar:hover { background: var(--shoe-clay); }
#reclamaciones-enviar:focus-visible, #reclamaciones-consultar:focus-visible { outline: 2px solid var(--shoe-clay); outline-offset: 3px; }
#reclamaciones-enviar svg { width: 16px; height: 16px; }
#reclamaciones-enviar:disabled, #reclamaciones-consultar:disabled { opacity: .6; cursor: progress; }

#reclamaciones-respuesta:not(:empty), #reclamaciones-estado-respuesta:not(:empty) { margin-top: 18px; }
#reclamaciones-respuesta p, #reclamaciones-estado-respuesta > p { margin: 0; padding: 14px 18px; color: var(--shoe-ink); background: #fff; border-left: 2px solid var(--shoe-ink); box-shadow: 0 0 0 1px var(--shoe-line) inset; font-size: 14px; line-height: 1.55; }
#reclamaciones-respuesta .reclamaciones-success { border-left-color: #2f6b45; }
#reclamaciones-respuesta .reclamaciones-error { color: var(--shoe-clay-dark); border-left-color: var(--shoe-clay); }

/* ----- Consultar estado y portada del libro ----- */
/* Su título lo pone la cabecera de la página (inc/header.php). */
#reclamaciones-estado-form > .row-center > h1, #reclamaciones-inicio > h1 { display: none; }
#reclamaciones-estado-form { max-width: 640px; }
#reclamaciones-estado-form .reclamaciones-col-6 { margin-bottom: 16px; }
#reclamaciones-estado-respuesta table { width: 100%; border-collapse: collapse; font-size: 14px; }
#reclamaciones-estado-respuesta :is(th, td) { padding: 10px 12px; border: 1px solid var(--shoe-line); text-align: left; }
#reclamaciones-estado-respuesta th { color: #fff; background: var(--shoe-ink); font-weight: 700; }

#reclamaciones-inicio .row { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
#reclamaciones-inicio h2 { margin: 0 0 10px; font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: 26px; }
#reclamaciones-inicio p { color: var(--shoe-ink-soft); font-size: 14.5px; line-height: 1.6; }
#reclamaciones-inicio a { display: grid; gap: 14px; justify-items: center; padding: 24px; color: var(--shoe-ink); background: #fff; border: 1px solid var(--shoe-line); text-align: center; text-decoration: none; transition: border-color .2s ease; }
#reclamaciones-inicio a:hover { border-color: var(--shoe-ink); }
#reclamaciones-inicio a img { width: 72px; height: auto; }
#reclamaciones-inicio a span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* ----- Tabletas y móvil ----- */
@media (max-width: 960px) {
  .cite-lr, .cite-lr--solo { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: clamp(36px, 6vw, 64px); }
  .cite-lr__sheet-provider { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cite-lr__sheet-provider > div:last-child:nth-child(3) { grid-column: 1 / -1; }
  /* Encima del formulario: mantener icono de libro e información clara */
  .cite-lr__card { gap: 14px; padding: 20px; }
  .cite-lr__mark { display: block; width: 44px; }
  .cite-lr__mark .cite-claims__mark { display: block; width: 44px; height: 30px; }
  .cite-lr__types { display: none; }
  .cite-lr__lead { font-size: 16px; }
  .cite-lr__facts { padding-top: 14px; }
  body:not(:has(.site-header--sticky)) .cite-lr__aside { position: static; }
  #reclamaciones-inicio .row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .reclamaciones-container .inner-form { padding: 22px 18px 28px; border: 1px solid var(--shoe-line); margin: 0; }
  .cite-lr .cite-lr__legal,
  .cite-lr__main .cite-lr__legal { margin: 20px 0 0 !important; }
  .cite-lr__sheet { border: 1px solid var(--shoe-line); border-bottom: 0; margin: 0; }
  .cite-lr__sheet-top { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 18px; }
  .cite-lr__sheet-title, .cite-page-body .cite-lr__sheet-title { font-size: 19px; line-height: 1.2; }
  .cite-lr__sheet-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); width: 100%; margin: 0; font-size: 13px; }
  .cite-lr__sheet-meta dt { margin: 0 0 2px; font-size: 9.5px; letter-spacing: .12em; }
  .cite-lr__sheet-meta dd { font-size: 13px; white-space: nowrap; }
  .cite-lr__sheet-provider { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 18px; }
  .cite-lr__sheet-alert { padding-right: 18px; padding-left: 18px; }

  /* Rejilla de campos a columna única limpia */
  .reclamaciones-container .address-form-section,
  .reclamaciones-container .reclamaciones-empresa,
  .reclamaciones-container #lr_tutor .row-center { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .reclamaciones-container :is(.reclamaciones-col-6, .reclamaciones-col-4, .reclamaciones-col-3) { grid-column: 1 / -1; }

  /* Form controls con 16px para evitar auto-zoom de iOS al enfocar */
  .reclamaciones-container .form-control { font-size: 16px; height: 46px; }
  .reclamaciones-container textarea.form-control { font-size: 16px; min-height: 100px; }

  /* Opciones de tipo en móvil */
  .reclamaciones-container .reclamaciones-tipo > .customcheck { flex: 1 1 120px; justify-content: center; min-height: 44px; padding: 0 14px; font-size: 13.5px; }
  .reclamaciones-container .reclamaciones-tipo > .w-100 { flex: 1 1 100%; }

  #reclamaciones-enviar, #reclamaciones-consultar { width: 100%; min-height: 50px; font-size: 12px; }
}

@media (max-width: 480px) {
  .cite-lr__card { padding: 16px; }
  .reclamaciones-container .inner-form { padding: 18px 14px 28px; }
  .cite-lr__sheet-top { padding: 16px 14px; }
  .cite-lr__sheet-provider, .cite-lr__sheet-alert { padding-right: 14px; padding-left: 14px; }
  .reclamaciones-container .reclamaciones-tipo > .customcheck { flex: 1 1 100%; }
  .reclamaciones-container .box-title { margin: 26px 0 16px; }
  .reclamaciones-container .box-title .part-title p { font-size: 10px; }
  .cite-lr__sheet-title, .cite-page-body .cite-lr__sheet-title { font-size: 18px; }
}
