#libro-reclamaciones-plugin * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#libro-reclamaciones-plugin {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
  color: #333;
  line-height: 1.6;
  padding-bottom: 40px;
}

/* Header con ancho completo */
#libro-reclamaciones-plugin .header-full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(135deg, #212121 0%, #333333 100%);
  padding: 30px 0;
  text-align: center;
  margin-bottom: 0;
}

#libro-reclamaciones-plugin .header-full-width h1 {
  color: white;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

#libro-reclamaciones-plugin .container {
  max-width: 1140px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Ajuste para el container dentro del header */
#libro-reclamaciones-plugin .header-full-width .container {
  margin: 0 auto;
  padding: 0 20px;
}

#libro-reclamaciones-plugin .form-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(33, 33, 33, 0.08);
  overflow: hidden;
  margin-top: 20px;
}

#libro-reclamaciones-plugin .progress-bar {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

#libro-reclamaciones-plugin .progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-weight: 600;
  position: relative;
  flex: 1;
  text-align: center;
}

#libro-reclamaciones-plugin .progress-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 15px; /* Centrado verticalmente con el icono */
  right: 50%;
  width: 100%;
  height: 2px;
  background-color: #e5e7eb;
  z-index: 0;
}

#libro-reclamaciones-plugin .progress-step.active:not(:first-child)::before {
  background-color: #212121;
}

#libro-reclamaciones-plugin .step-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #999999;
  display: grid;
  place-items: center;
  font-size: 14px;
  z-index: 1;
  transition: all 0.3s ease;
  border: 2px solid #dddddd;
}

#libro-reclamaciones-plugin .progress-step.active .step-icon {
  background-color: #212121;
  color: white;
  border-color: #212121;
}

#libro-reclamaciones-plugin .progress-step p {
  font-size: 14px;
  z-index: 1;
  background-color: #f9fafb; /* Para que el texto tape la línea */
  padding: 0 5px;
}

#libro-reclamaciones-plugin .progress-step.active p {
  color: #212121;
}

#libro-reclamaciones-plugin .form-step {
  display: none;
  animation: fadeIn 0.5s;
}

#libro-reclamaciones-plugin .form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para el checkbox de validación */
#libro-reclamaciones-plugin .validation-checkbox {
  margin: 20px 0;
  padding: 20px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

#libro-reclamaciones-plugin .checkbox-container {
  position: relative;
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  user-select: none;
}

#libro-reclamaciones-plugin .checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

#libro-reclamaciones-plugin .checkmark {
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin-right: 12px;
  margin-top: 2px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
}

#libro-reclamaciones-plugin .checkbox-container:hover input ~ .checkmark {
  border-color: #212121;
}

#libro-reclamaciones-plugin .checkbox-container input:checked ~ .checkmark {
  background-color: #212121;
  border-color: #212121;
}

#libro-reclamaciones-plugin .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#libro-reclamaciones-plugin
  .checkbox-container
  input:checked
  ~ .checkmark:after {
  display: block;
}

#libro-reclamaciones-plugin .checkbox-text {
  color: #374151;
  line-height: 1.6;
}

#libro-reclamaciones-plugin .form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

#libro-reclamaciones-plugin .button {
  background: #212121;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

#libro-reclamaciones-plugin .button.prev-btn {
  background: #f5f5f5;
  color: #333333;
  border: 1px solid #dddddd;
}

#libro-reclamaciones-plugin .button:disabled {
  background: #cccccc;
  color: #999999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#libro-reclamaciones-plugin .button:disabled:hover {
  transform: none;
  box-shadow: none;
}

#libro-reclamaciones-plugin .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 33, 33, 0.15);
}

#libro-reclamaciones-plugin .button.prev-btn:hover {
  background: #eeeeee;
  box-shadow: 0 4px 12px rgba(33, 33, 33, 0.1);
}

#libro-reclamaciones-plugin textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #ffffff;
  font-family: inherit;
  resize: vertical;
  color: #333333;
}

#libro-reclamaciones-plugin textarea:focus {
  outline: none;
  border-color: #212121;
  box-shadow: 0 0 0 2px rgba(33, 33, 33, 0.1);
}

/* Textarea específicos más grandes */
#libro-reclamaciones-plugin #descripcionProducto {
  min-height: 130px !important;
  height: 130px !important;
}

#libro-reclamaciones-plugin #detalleReclamacion {
  min-height: 130px !important;
  height: 130px !important;
}

#libro-reclamaciones-plugin #pedidoCliente {
  min-height: 130px !important;
  height: 130px !important;
}

#libro-reclamaciones-plugin .form-content {
  padding: 40px;
}

#libro-reclamaciones-plugin .section {
  margin-bottom: 20px;
}

#libro-reclamaciones-plugin .section:last-child {
  margin-bottom: 0;
}

#libro-reclamaciones-plugin .section-title {
  font-size: 20px;
  font-weight: 600;
  color: #212121;
  margin-bottom: 25px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dddddd;
}

#libro-reclamaciones-plugin .subsection-title {
  font-size: 18px;
  font-weight: 600;
  color: #6b7280;
  margin: 25px 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

#libro-reclamaciones-plugin .apoderado-section {
  /* Estilos reseteados para una integración fluida */
  margin-top: 0;
  padding: 0;
  animation: slideDown 0.3s ease-in-out;
}

#libro-reclamaciones-plugin .apoderado-section .subsection-title {
  color: #212121; /* Color negro para resaltar */
  border-bottom-color: #dddddd;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
}

#libro-reclamaciones-plugin .apoderado-section.hide {
  animation: slideUp 0.3s ease-in-out;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    max-height: 0;
    transform: translateY(-20px);
  }
}

#libro-reclamaciones-plugin .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px; /* Reducido de 20px */
}

#libro-reclamaciones-plugin .form-row-special-align {
  align-items: center;
}

#libro-reclamaciones-plugin .form-row.full-width {
  flex-direction: column;
  gap: 0; /* Eliminamos el gap para los full-width */
}

#libro-reclamaciones-plugin .form-group {
  flex: 1;
  margin-bottom: 10px; /* Reducido de 1rem */
}

#libro-reclamaciones-plugin .form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333333;
  font-size: 14px;
}

#libro-reclamaciones-plugin .required {
  color: #333333;
}

#libro-reclamaciones-plugin .form-group input,
#libro-reclamaciones-plugin .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #ffffff;
  color: #333333;
}

#libro-reclamaciones-plugin .form-group input:focus,
#libro-reclamaciones-plugin .form-group select:focus {
  outline: none;
  border-color: #212121;
  box-shadow: 0 0 0 2px rgba(33, 33, 33, 0.1);
}

#libro-reclamaciones-plugin .form-group input::placeholder {
  color: #999999;
}

#libro-reclamaciones-plugin fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

#libro-reclamaciones-plugin legend {
  font-weight: 500;
  margin-bottom: 8px;
  color: #374151;
  font-size: 14px;
  padding: 0;
}

#libro-reclamaciones-plugin .radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

#libro-reclamaciones-plugin .radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

#libro-reclamaciones-plugin .radio-option input[type="radio"] {
  width: auto;
  margin: 0;
}

#libro-reclamaciones-plugin .radio-option label {
  margin-bottom: 0;
  font-weight: normal;
}

#libro-reclamaciones-plugin .disclaimer {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 4px;
  border-left: 4px solid #212121;
  margin-bottom: 25px;
  font-size: 13px;
  line-height: 1.5;
  color: #666666;
}

#libro-reclamaciones-plugin .terms-list {
  margin-top: 20px;
  padding-left: 20px;
}

#libro-reclamaciones-plugin .terms-list li {
  margin-bottom: 10px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

#libro-reclamaciones-plugin .complete-button {
  background: linear-gradient(135deg, #212121 0%, #333333 100%);
  color: white;
  padding: 16px 40px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 30px auto 0;
  min-width: 200px;
}

#libro-reclamaciones-plugin .complete-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

#libro-reclamaciones-plugin .complete-required {
  color: #666666;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  margin-bottom: 25px;
  padding-right: 5px;
}

#libro-reclamaciones-plugin select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23212121' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

@media (max-width: 768px) {
  #libro-reclamaciones-plugin .form-row {
    flex-direction: column;
    gap: 0;
  }

  #libro-reclamaciones-plugin .form-content {
    padding: 30px 20px;
  }

  #libro-reclamaciones-plugin .container {
    margin: 20px auto;
    padding: 0 15px;
  }

  #libro-reclamaciones-plugin .form-header h1 {
    font-size: 22px;
  }

  #libro-reclamaciones-plugin .progress-bar {
    padding: 20px 15px;
  }

  #libro-reclamaciones-plugin .progress-step p {
    display: none;
  }

  #libro-reclamaciones-plugin .button {
    padding: 12px 25px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  #libro-reclamaciones-plugin {
    font-size: 14px;
  }

  #libro-reclamaciones-plugin .container {
    margin: 10px auto;
    padding: 0 10px;
  }

  #libro-reclamaciones-plugin .form-container {
    border-radius: 8px;
  }

  #libro-reclamaciones-plugin .form-header {
    padding: 25px;
  }

  #libro-reclamaciones-plugin .form-header h1 {
    font-size: 20px;
  }

  #libro-reclamaciones-plugin .form-content {
    padding: 25px 15px;
  }

  #libro-reclamaciones-plugin .section-title {
    font-size: 18px;
  }

  #libro-reclamaciones-plugin .subsection-title {
    font-size: 16px;
  }

  #libro-reclamaciones-plugin .form-buttons {
    flex-direction: column;
    gap: 15px;
  }

  #libro-reclamaciones-plugin .button {
    width: 100%;
  }

  #libro-reclamaciones-plugin .button.prev-btn {
    order: 2;
  }

  #libro-reclamaciones-plugin .button.next-btn,
  #libro-reclamaciones-plugin .button[type="submit"] {
    order: 1;
  }

  #libro-reclamaciones-plugin .form-group {
    margin-bottom: 15px;
  }
}

/* === LOADER STYLES === */
#libro-reclamaciones-plugin .select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

#libro-reclamaciones-plugin .select-wrapper select {
  width: 100%;
}

#libro-reclamaciones-plugin .select-wrapper.loading select {
  opacity: 0.85;
  pointer-events: none;
  background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
  cursor: wait;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(33, 33, 33, 0.1);
}

#libro-reclamaciones-plugin .loader {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: none;
  z-index: 10;
}

/* Loader moderno tipo Angular/Vue - Opción 1: Spinner Material */
#libro-reclamaciones-plugin .loader::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #212121;
  border-right-color: #212121;
  animation: modernSpin 0.8s linear infinite;
}

@keyframes modernSpin {
  0% {
    transform: rotate(0deg);
    border-top-color: #212121;
    border-right-color: transparent;
  }
  25% {
    border-top-color: #212121;
    border-right-color: #212121;
  }
  50% {
    transform: rotate(180deg);
    border-top-color: transparent;
    border-right-color: #212121;
  }
  75% {
    border-top-color: #212121;
    border-right-color: #212121;
  }
  100% {
    transform: rotate(360deg);
    border-top-color: #212121;
    border-right-color: transparent;
  }
}

/* Loader moderno tipo Angular/Vue - Opción 2: Pulse Ring */
#libro-reclamaciones-plugin .loader-pulse {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: none;
  z-index: 10;
}

#libro-reclamaciones-plugin .loader-pulse::before,
#libro-reclamaciones-plugin .loader-pulse::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #212121;
  animation: pulseRing 1.2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

#libro-reclamaciones-plugin .loader-pulse::after {
  animation-delay: 0.6s;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.1);
    opacity: 1;
  }
  80%,
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Loader moderno tipo Angular/Vue - Opción 3: Bouncing Dots */
#libro-reclamaciones-plugin .loader-dots-modern {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  z-index: 10;
  width: 20px;
  height: 4px;
}

#libro-reclamaciones-plugin .loader-dots-modern::before,
#libro-reclamaciones-plugin .loader-dots-modern::after,
#libro-reclamaciones-plugin .loader-dots-modern {
  background: #212121;
  border-radius: 50%;
  width: 4px;
  height: 4px;
  animation: bounceDots 1.4s infinite ease-in-out both;
}

#libro-reclamaciones-plugin .loader-dots-modern::before {
  content: "";
  position: absolute;
  left: -6px;
  animation-delay: -0.32s;
}

#libro-reclamaciones-plugin .loader-dots-modern::after {
  content: "";
  position: absolute;
  left: 6px;
  animation-delay: 0.32s;
}

@keyframes bounceDots {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

#libro-reclamaciones-plugin .select-wrapper.loading .loader {
  display: block;
}

/* Loader moderno tipo Angular/Vue - Opción 4: Skeleton Loading */
#libro-reclamaciones-plugin .loader-skeleton {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: none;
  z-index: 10;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 2px;
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Efecto hover mejorado para select */
#libro-reclamaciones-plugin .form-group select:not(:disabled):hover {
  border-color: #333333;
  transition: border-color 0.2s ease;
}

#libro-reclamaciones-plugin .form-group select:focus {
  outline: none;
  border-color: #212121;
  box-shadow: 0 0 0 2px rgba(33, 33, 33, 0.1);
  transition: all 0.2s ease;
}

/* Estilos específicos para select disabled */
#libro-reclamaciones-plugin .form-group select:disabled {
  background-color: #f5f5f5;
  border-color: #dddddd;
  color: #999999;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Sobrescribir cualquier estilo por defecto del navegador */
#libro-reclamaciones-plugin select,
#libro-reclamaciones-plugin .form-group select {
  border-color: #dddddd !important;
}

#libro-reclamaciones-plugin select:hover,
#libro-reclamaciones-plugin .form-group select:hover {
  border-color: #333333 !important;
}

#libro-reclamaciones-plugin select:focus,
#libro-reclamaciones-plugin .form-group select:focus {
  border-color: #212121 !important;
}

/* Estados de error - con alta especificidad para sobrescribir !important */
#libro-reclamaciones-plugin select.error,
#libro-reclamaciones-plugin .form-group select.error,
#libro-reclamaciones-plugin input.error,
#libro-reclamaciones-plugin .form-group input.error,
#libro-reclamaciones-plugin textarea.error {
  border-color: #ff0000 !important;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1) !important;
}

#libro-reclamaciones-plugin select.error:hover,
#libro-reclamaciones-plugin .form-group select.error:hover,
#libro-reclamaciones-plugin input.error:hover,
#libro-reclamaciones-plugin .form-group input.error:hover,
#libro-reclamaciones-plugin textarea.error:hover {
  border-color: #ff0000 !important;
}

/* Estilos específicos para selects con error - máxima especificidad */
#libro-reclamaciones-plugin #tipoReclamo.error,
#libro-reclamaciones-plugin #tipoConsumo.error,
#libro-reclamaciones-plugin #departamento.error,
#libro-reclamaciones-plugin #provincia.error,
#libro-reclamaciones-plugin #distrito.error {
  border-color: #ff0000 !important;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.15) !important;
}

/* Mejora visual durante la carga */
#libro-reclamaciones-plugin .select-wrapper.loading {
  position: relative;
}

/* Estilos para input de archivo */
#libro-reclamaciones-plugin input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: inherit;
}

#libro-reclamaciones-plugin input[type="file"]:hover {
  border-color: #666666;
  background-color: #fafafa;
}

#libro-reclamaciones-plugin input[type="file"]:focus {
  outline: none;
  border-color: #212121;
  box-shadow: 0 0 0 2px rgba(33, 33, 33, 0.1);
}

#libro-reclamaciones-plugin input[type="file"]::file-selector-button {
  padding: 8px 16px;
  margin-right: 12px;
  border: none;
  border-radius: 4px;
  background: #212121;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

#libro-reclamaciones-plugin input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6c5b7b 100%);
  transform: translateY(-1px);
}

/* Mensaje de error para archivos */
#libro-reclamaciones-plugin .file-error {
  color: #cc0000;
  font-size: 12px;
  margin-top: 5px;
  display: block;
  font-weight: 500;
}

/* Información adicional para el input de archivo */
#libro-reclamaciones-plugin .form-group small {
  color: #6b7280;
  font-size: 12px;
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}

/* Estilos para el input file personalizado */
#libro-reclamaciones-plugin .file-upload-wrapper {
  position: relative;
  width: 100%;
}

#libro-reclamaciones-plugin .file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  z-index: -1;
}

#libro-reclamaciones-plugin .file-upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 2px dashed #dddddd;
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  min-height: 80px;
}

#libro-reclamaciones-plugin .file-upload-button:hover {
  border-color: #212121;
  background: #eeeeee;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(33, 33, 33, 0.1);
}

#libro-reclamaciones-plugin .file-upload-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: #212121;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

#libro-reclamaciones-plugin .file-upload-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#libro-reclamaciones-plugin .file-upload-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 2px;
}

#libro-reclamaciones-plugin .file-upload-subtitle {
  display: block;
  font-size: 14px;
  color: #6b7280;
}

/* Estado cuando se selecciona un archivo */
#libro-reclamaciones-plugin .file-selected-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border: 2px solid #333333;
  border-radius: 12px;
  background: #f5f5f5;
  margin-top: 10px;
}

#libro-reclamaciones-plugin .file-selected-icon {
  font-size: 20px;
  color: #212121;
  flex-shrink: 0;
}

#libro-reclamaciones-plugin .file-selected-name {
  flex: 1;
  font-size: 14px;
  color: #212121;
  font-weight: 500;
  word-break: break-all;
}

#libro-reclamaciones-plugin .file-remove-button {
  background: #666666;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

#libro-reclamaciones-plugin .file-remove-button:hover {
  background: #333333;
  transform: scale(1.1);
}

#libro-reclamaciones-plugin .file-upload-help {
  color: #6b7280;
  font-size: 12px;
  display: block;
  margin-top: 8px;
  line-height: 1.4;
}

/* Estado drag and drop */
#libro-reclamaciones-plugin .file-upload-wrapper.drag-over .file-upload-button {
  border-color: #212121;
  background: #eeeeee;
  transform: scale(1.02);
}

/* Responsive para móviles */
@media (max-width: 768px) {
  #libro-reclamaciones-plugin .file-upload-button {
    padding: 16px;
    min-height: 70px;
    gap: 12px;
  }

  #libro-reclamaciones-plugin .file-upload-icon {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  #libro-reclamaciones-plugin .file-upload-title {
    font-size: 15px;
  }

  #libro-reclamaciones-plugin .file-upload-subtitle {
    font-size: 13px;
  }
}

/* =====================================================
   MODAL SYSTEM - ENCAPSULADO SOLO PARA EL PLUGIN
   ESTOS ESTILOS NO AFECTAN A WORDPRESS
   ===================================================== */

/* Modal overlay - SOLO para #libro-reclamaciones-plugin */
#libro-reclamaciones-plugin .libro-modal {
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 33, 33, 0);
  backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  /* Asegurar que solo afecte a nuestro modal */
  font-family: inherit;
  font-size: inherit;
}

/* Modal activo - estado final */
#libro-reclamaciones-plugin .libro-modal.active {
  background: rgba(33, 33, 33, 0.75);
  backdrop-filter: blur(8px);
  opacity: 1;
  visibility: visible;
}

/* Contenido del modal */
#libro-reclamaciones-plugin .libro-modal-content {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 32px 64px rgba(33, 33, 33, 0.3),
    0 16px 32px rgba(33, 33, 33, 0.2);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  transform: scale(0.8) translateY(40px);
  transition: transform 0.3s ease-in-out;
}

/* Modal content activo */
#libro-reclamaciones-plugin .libro-modal.active .libro-modal-content {
  transform: scale(1) translateY(0);
}

/* Header del modal */
#libro-reclamaciones-plugin .libro-modal-header {
  background: #f5f5f5;
  color: #333333;
  padding: 24px 28px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dddddd;
}

#libro-reclamaciones-plugin .libro-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #333333;
}

/* Botón cerrar */
#libro-reclamaciones-plugin .libro-modal-close {
  background: #ffffff;
  border: 1px solid #dddddd;
  color: #666666;
  font-size: 24px;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

#libro-reclamaciones-plugin .libro-modal-close:hover {
  background: #f5f5f5;
  color: #333333;
  transform: scale(1.05);
}

#libro-reclamaciones-plugin .libro-modal-close:active {
  transform: scale(0.95);
}

/* Body del modal */
#libro-reclamaciones-plugin .libro-modal-body {
  padding: 32px 28px;
  text-align: center;
  background: #ffffff;
}

/* Iconos del modal */
#libro-reclamaciones-plugin .libro-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 600;
  position: relative;
  box-shadow: 0 8px 32px rgba(33, 33, 33, 0.15);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s ease-in-out 0.1s;
}

/* Animación del icono cuando el modal está activo */
#libro-reclamaciones-plugin .libro-modal.active .libro-modal-icon {
  opacity: 1;
  transform: scale(1);
}

/* Iconos específicos */
#libro-reclamaciones-plugin .libro-modal-icon.success {
  background: #212121;
  color: white;
  box-shadow: 0 4px 16px rgba(33, 33, 33, 0.15);
}

#libro-reclamaciones-plugin .libro-modal-icon.error {
  background: #ff0000;
  color: white;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.15);
}

#libro-reclamaciones-plugin .libro-modal-icon.warning {
  background: #333333;
  color: white;
  box-shadow: 0 4px 16px rgba(51, 51, 51, 0.15);
}

#libro-reclamaciones-plugin .libro-modal-icon.info {
  background: #666666;
  color: white;
  box-shadow: 0 4px 16px rgba(102, 102, 102, 0.15);
}

/* Mensaje del modal */
#libro-reclamaciones-plugin .libro-modal-body p {
  font-size: 17px;
  line-height: 1.6;
  color: #333333;
  font-weight: 400;
  white-space: pre-line;
  max-width: 400px;
  margin: 0 auto;
}

/* Footer del modal */
#libro-reclamaciones-plugin .libro-modal-footer {
  padding: 20px 28px 28px;
  display: flex;
  justify-content: center;
  gap: 16px;
  background: #fafbfc;
  border-top: 1px solid rgba(33, 33, 33, 0.05);
}

/* Botón principal */
#libro-reclamaciones-plugin .libro-modal-btn-primary {
  background: #212121;
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(33, 33, 33, 0.15);
  letter-spacing: 0.025em;
}

#libro-reclamaciones-plugin .libro-modal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 33, 33, 0.25);
  background: #333333;
}

#libro-reclamaciones-plugin .libro-modal-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(33, 33, 33, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  #libro-reclamaciones-plugin .libro-modal-content {
    width: 95%;
    margin: 10px;
    border-radius: 16px;
  }

  #libro-reclamaciones-plugin .libro-modal-header {
    padding: 20px 24px;
  }

  #libro-reclamaciones-plugin .libro-modal-header h3 {
    font-size: 18px;
  }

  #libro-reclamaciones-plugin .libro-modal-body {
    padding: 28px 24px;
  }

  #libro-reclamaciones-plugin .libro-modal-icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
    margin-bottom: 20px;
  }

  #libro-reclamaciones-plugin .libro-modal-body p {
    font-size: 16px;
  }

  #libro-reclamaciones-plugin .libro-modal-footer {
    padding: 16px 24px 24px;
  }

  #libro-reclamaciones-plugin .libro-modal-btn-primary {
    padding: 12px 24px;
    font-size: 15px;
    min-width: 100px;
  }

  #libro-reclamaciones-plugin .libro-modal-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}
