/* Variables */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-sm: 6px;
  --transition: all 0.2s ease-in-out;
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Container principal */
.container {
  width: 100%;
  max-width: 600px;
}

/* Card principal */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.card-header {
  padding: 32px 32px 24px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.header-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.card-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.subtitle {
  color: var(--gray-600);
  font-size: 14px;
}

.unique-id {
  font-family: "Monaco", "Menlo", monospace;
  background: var(--gray-100);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
}

.card-body {
  padding: 32px;
}

.card-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

/* Steps indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-300);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.step.active .step-dot {
  background: var(--primary);
  color: white;
}

.step.completed .step-dot {
  background: var(--success);
  color: white;
}

.step-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 8px;
  font-weight: 500;
}

.step.active .step-label {
  color: var(--primary);
}

.step-line {
  width: 80px;
  height: 2px;
  background: var(--gray-300);
  margin: 0 16px;
}

/* Secciones del formulario */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-section {
  margin-bottom: 32px;
}

.form-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 20px;
  /* padding-bottom: 12px; */
  border-bottom: 1px solid var(--gray-200);
}

/* Form rows y grupos */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 14px;
}

/* Inputs y selects */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  background: white;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.select-custom {
  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='%236b7280' 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;
}

/* Input con símbolo de moneda */
.input-with-symbol {
  position: relative;
}

.input-symbol {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-weight: 500;
}

.input-with-symbol input {
  padding-left: 32px;
}

/* Helper text */
.helper-text {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
}

/* Info note */
.info-note {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  font-size: 16px;
}

/* Info card */
.info-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.info-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-card-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
}

.info-card-body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-700);
}

.info-card-body p {
  margin-bottom: 8px;
}

.info-card-body strong {
  color: var(--gray-900);
}

/* Upload zone */
.upload-zone {
  margin-top: 8px;
}

.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-content {
  pointer-events: none;
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--gray-500);
}

.upload-area:hover .upload-icon {
  color: var(--primary);
}

.upload-text p {
  margin-bottom: 4px;
  color: var(--gray-700);
  font-weight: 500;
}

.browse-text {
  color: var(--primary);
  text-decoration: underline;
}

.upload-text small {
  color: var(--gray-500);
  font-size: 12px;
}

/* File preview */
.file-preview {
  margin-top: 16px;
}

.file-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  font-size: 20px;
}

.file-details h5 {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.file-details p {
  font-size: 12px;
  color: var(--gray-500);
  margin: 0;
}

.remove-file-btn {
  background: var(--error);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.remove-file-btn:hover {
  background: #b91c1c;
}

.image-preview {
  max-width: 200px;
  max-height: 120px;
  border-radius: 4px;
  margin-top: 8px;
  border: 1px solid var(--gray-200);
}

/* Botones */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  font-size: 16px;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* Footer link */
.footer-link {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 640px) {
  body {
    padding: 16px;
    align-items: flex-start;
  }

  .card-header,
  .card-body,
  .card-footer {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step-line {
    width: 40px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .upload-area {
    padding: 24px 16px;
  }
}

/* Estados de secciones */
.entity-info-section {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para campos de precio de divisa */
.price-display {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  text-align: center;
  cursor: not-allowed;
  transition: var(--transition);
}

.price-display:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* En tu archivo CSS, agrega estos estilos */
#eventSection {
  animation: fadeIn 0.3s ease-in-out;
}

.event-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 12px;
  display: none;
}

.event-card.active {
  display: block;
}

.event-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.event-card-header h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
}

.event-card-body {
  font-size: 14px;
  color: var(--gray-700);
}

.event-detail {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.event-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.event-label {
  font-weight: 500;
  color: var(--gray-600);
}

.event-value {
  font-weight: 600;
  color: var(--gray-800);
}

/* Añade esto al final de tu archivo forms.css */

/* ==================== MEJORAS UI/UX ==================== */

/* 1. Mejoras en el encabezado */
.card-header {
  position: relative;
  padding-top: 24px;
}

.header-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  box-shadow: var(--shadow-md);
}

/* 2. Indicador de progreso mejorado */
.step-indicator {
  position: relative;
  margin-bottom: 40px;
}

.step-dot {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gray-300);
  background: white;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step.active .step-dot {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.step.completed .step-dot {
  background: var(--success);
  border-color: var(--success);
}

.step.completed .step-dot::after {
  content: "✓";
  color: white;
  font-size: 16px;
}

.step-line {
  position: absolute;
  top: 18px;
  left: 50%;
  width: calc(100% - 64px);
  transform: translateX(-50%);
  height: 2px;
  background: var(--gray-200);
  z-index: 1;
}

/* 3. Títulos de sección más claros */
.form-section h3 {
  position: relative;
  padding-left: 16px;
  border-bottom: none;
}

.form-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

/* 4. Campos de formulario mejorados */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  transition: all 0.2s ease;
}

input:hover,
select:hover {
  border-color: var(--gray-300);
}

input:focus,
select:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 5. Etiquetas mejoradas */
label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--gray-700);
}

label::after {
  content: "*";
  color: var(--error);
  opacity: 0;
}

label[for]:required::after {
  opacity: 1;
}

/* 6. Botones mejorados */
.btn {
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  border: 2px solid var(--gray-300);
}

/* 7. Notas informativas mejoradas */
.info-note {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* 8. Tarjetas de información */
.info-card {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
}

.info-card-header {
  background: white;
  border-bottom: 2px solid #e2e8f0;
}

/* 9. Zona de subida mejorada */
.upload-area {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px dashed #cbd5e1;
  transition: all 0.3s ease;
}

.upload-area:hover {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-color: var(--primary);
}

.upload-area.dragover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: var(--primary);
  transform: scale(1.02);
}

/* 10. Previsualización de archivos mejorada */
.file-preview-item {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.file-preview-item:hover {
  border-color: var(--primary);
  transform: translateX(2px);
}

/* 11. Mejoras responsive */
@media (max-width: 640px) {
  .step-indicator {
    margin-bottom: 32px;
  }

  .step-dot {
    width: 32px;
    height: 32px;
  }

  .step-label {
    font-size: 11px;
  }

  .card-header h1 {
    font-size: 20px;
  }

  .form-section h3 {
    font-size: 16px;
    padding-left: 12px;
  }
}

/* 12. Animaciones suaves */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-step.active {
  animation: slideIn 0.4s ease-out;
}

/* 13. Placeholders mejorados */
input::placeholder {
  color: var(--gray-400);
  font-size: 14px;
}

/* 14. Campos de precio mejorados */
.price-display {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid #bbf7d0;
  font-weight: 700;
  color: var(--success);
}

/* 15. Foco accesible */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 16. Mejoras específicas para la sección de eventos */
#eventSection {
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  border: 2px solid #e9d5ff;
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
}

#eventSection h3 {
  color: #7c3aed;
}

#eventSection h3::before {
  background: #7c3aed;
}

/* 17. Indicador de campos opcionales */
.optional-badge {
  display: inline-block;
  background: var(--gray-200);
  color: var(--gray-600);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: normal;
}

/* Añade estas nuevas clases CSS */

/* Guía de usuario */
.guide-text {
  color: var(--gray-500);
  font-size: 14px;
  margin-top: 8px;
  font-weight: 500;
}

/* Indicador de campos obligatorios */
.required-indicator {
  font-size: 12px;
  color: var(--gray-500);
  font-style: italic;
}

/* Icono de ayuda */
.helper-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--gray-300);
  color: var(--gray-700);
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  cursor: help;
  margin-left: 4px;
}

/* Cabecera de sección mejorada */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

/* Estado de validación */
.form-group {
  position: relative;
}

.form-group.valid::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 38px;
  color: var(--success);
  font-size: 16px;
  font-weight: bold;
}

.form-group.invalid::after {
  content: "!";
  position: absolute;
  right: 12px;
  top: 38px;
  color: var(--error);
  font-size: 16px;
  font-weight: bold;
}

/* Contador de caracteres */
.char-counter {
  font-size: 12px;
  color: var(--gray-500);
  text-align: right;
  margin-top: 4px;
}

.char-counter.near-limit {
  color: var(--warning);
}

.char-counter.over-limit {
  color: var(--error);
}

/* Grupo de campos relacionados */
.field-group {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.field-group h4 {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Progreso paso a paso */
.progress-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}

.progress-step {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all 0.3s ease;
}

.progress-step.active {
  background: var(--primary);
  transform: scale(1.3);
}

.progress-step.completed {
  background: var(--success);
}

/* Estilos para el sistema de ayuda */
.help-system {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.help-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 20px;
}

.help-btn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.help-text {
  font-size: 10px;
  margin-top: 2px;
}

.help-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 300px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
}

.help-panel.show {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.help-header {
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius) var(--radius) 0 0;
}

.help-header h3 {
  margin: 0;
  font-size: 16px;
}

.help-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.help-content {
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.help-section h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 14px;
}

.help-section p {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.help-section ul {
  padding-left: 20px;
  margin: 0;
}

.help-section li {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.help-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
  text-align: right;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Estilos para el sistema de ayuda */
.help-system {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.help-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 20px;
}

.help-btn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.help-text {
  font-size: 10px;
  margin-top: 2px;
}

.help-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 300px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
}

.help-panel.show {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.help-header {
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius) var(--radius) 0 0;
}

.help-header h3 {
  margin: 0;
  font-size: 16px;
}

.help-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.help-content {
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.help-section h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 14px;
}

.help-section p {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.help-section ul {
  padding-left: 20px;
  margin: 0;
}

.help-section li {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.help-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
  text-align: right;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Estilos para el campo de teléfono combinado */
.phone-group {
  margin-bottom: 20px;
}

.phone-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-direction: row;
}

.country-code-select {
  flex: 0 0 120px;
}

.phone-select {
  width: 100%;
  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='%236b7280' 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: 36px;
  appearance: none;
}

.phone-number-input {
  flex: 1;
  min-width: 0; /* Importante para que funcione flex en inputs */
}

.phone-preview {
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray-600);
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.phone-preview.valid {
  color: var(--success);
}

.phone-preview.invalid {
  color: var(--error);
}

/* Estilos para la bandera en el select */
.country-flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  margin-right: 8px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  vertical-align: middle;
}

/* Opción personalizada en el select */
.country-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
}

.country-info {
  display: flex;
  flex-direction: column;
  margin-left: 8px;
}

.country-code {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
}

.country-name {
  font-size: 12px;
  color: var(--gray-500);
}

/* Estilo para select con banderas */
.country-code-select select {
  height: 46px; /* Para que coincida con el input */
}

/* Responsive */
@media (max-width: 640px) {
  .phone-input-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .country-code-select {
    flex: 0 0 auto;
    width: 100%;
  }

  .phone-number-input {
    width: 100%;
  }
}

/* Estado de foco coordinado */
.phone-input-wrapper:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.phone-input-wrapper:focus-within .phone-select,
.phone-input-wrapper:focus-within .phone-number-input {
  border-color: var(--primary);
}

/* ==================== ESTILOS PARA FORMULARIO DE REGISTRO ==================== */

/* Estilos para textarea */
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--gray-50);
  resize: vertical;
  min-height: 80px;
}

textarea:hover {
  border-color: var(--gray-300);
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Estilo unificado para inputs de fecha */
input[type="date"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  background: var(--gray-50);
  color: var(--gray-800);
  font-family: inherit;
  appearance: none;
  position: relative;
}

/* Estilo para el icono de calendario */
input[type="date"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px;
  opacity: 0.6;
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 0.8;
}

input[type="date"]:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
}

/* Para Firefox */
input[type="date"]::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* Estilo unificado para inputs de contraseña */
input[type="password"] {
  width: 100%;
  padding: 12px 16px 12px 44px; /* Espacio para el icono del ojo */
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  background: var(--gray-50);
  color: var(--gray-800);
  font-family: inherit;
  letter-spacing: 1px; /* Para los puntos de la contraseña */
  position: relative;
}

/* Contenedor para input de contraseña con toggle */
.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  background: var(--gray-50);
  color: var(--gray-800);
  font-family: inherit;
  letter-spacing: 1px;
}

/* Icono del ojo para mostrar/ocultar contraseña */
.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.password-toggle:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.password-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* Icono inicial (ojo cerrado) */
.password-toggle::before {
  content: "👁️";
}

/* Clase para cuando la contraseña es visible */
.password-toggle.showing::before {
  content: "👁️‍🗨️";
}

/* Estados hover y focus consistentes */
input[type="date"]:hover,
input[type="password"]:hover,
.password-input-wrapper input:hover {
  border-color: var(--gray-300);
  background: white;
}

input[type="date"]:focus,
input[type="password"]:focus,
.password-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Placeholders consistentes */
input[type="date"]::placeholder,
input[type="password"]::placeholder {
  color: var(--gray-400);
  font-size: 14px;
  letter-spacing: normal;
}

/* Estilos para cuando el campo es requerido */
input[type="date"]:required:not(:placeholder-shown):invalid,
input[type="password"]:required:not(:placeholder-shown):invalid {
  border-color: var(--error);
  background: rgba(220, 38, 38, 0.05);
}

input[type="date"]:required:not(:placeholder-shown):valid,
input[type="password"]:required:not(:placeholder-shown):valid {
  border-color: var(--success);
  background: rgba(5, 150, 105, 0.05);
}

/* Estilos para el grupo de contraseña */
.password-group {
  position: relative;
}

.password-group .helper-icon {
  position: absolute;
  right: 12px;
  top: 38px;
  z-index: 2;
  cursor: help;
}

/* Estilos responsive */
@media (max-width: 640px) {
  input[type="date"] {
    padding-right: 40px;
  }

  input[type="date"]::-webkit-calendar-picker-indicator {
    right: 10px;
  }

  input[type="password"] {
    padding: 12px 16px 12px 40px;
  }

  .password-input-wrapper input[type="password"],
  .password-input-wrapper input[type="text"] {
    padding: 12px 40px 12px 16px;
  }

  .password-toggle {
    right: 12px;
    font-size: 16px;
  }
}

/* Estilos para checkbox de términos */
.terms-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.terms-checkbox:hover {
  background: white;
  border-color: var(--gray-300);
}

.terms-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.terms-checkbox input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}

.terms-checkbox label {
  margin: 0;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
}

.terms-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.terms-link:hover {
  text-decoration: underline;
}

/* Estilos para la sección de documentación */
.field-group h4 {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-200);
}

/* Estilos para múltiples zonas de upload */
.upload-zone:not(:last-child) {
  margin-bottom: 24px;
}

/* Estilos para el footer del registro */
.footer-text {
  text-align: center;
  color: var(--gray-600);
  font-size: 14px;
}

.footer-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* Estilos para la visualización de edad calculada */
.age-display {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 4px;
  font-style: italic;
}

.age-display strong {
  color: var(--primary);
  font-weight: 600;
}

/* Estilos para validación de documentos */
.upload-requirements {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-requirements::before {
  content: "📋";
  font-size: 14px;
}

/* Estilos responsive específicos para registro */
@media (max-width: 640px) {
  .terms-checkbox {
    padding: 12px;
    align-items: flex-start;
  }

  .terms-checkbox label {
    font-size: 13px;
  }

  .field-group h4 {
    font-size: 13px;
  }

  textarea {
    min-height: 60px;
  }
}

/* Animación para secciones de registro */
.form-section {
  animation: slideIn 0.4s ease-out;
}

/* Estilos para el botón de ayuda múltiple */
.help-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
}

/* Estilos para indicador de fortaleza de contraseña */
.password-strength {
  margin-top: 8px;
  font-size: 12px;
}

.strength-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.strength-fill.weak {
  background: var(--error);
  width: 33%;
}

.strength-fill.medium {
  background: var(--warning);
  width: 66%;
}

.strength-fill.strong {
  background: var(--success);
  width: 100%;
}

/* ==================== ESTILOS ESPECÍFICOS PARA LOGIN ==================== */

/* Contenedor especial para login (más pequeño) */
.login-form .container {
  max-width: 480px;
}

/* Estilos para las opciones del formulario */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

/* Checkbox de recordar sesión */
.remember-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.remember-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  margin: 0;
  flex-shrink: 0;
}

.remember-checkbox input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
}

.remember-checkbox input[type="checkbox"]:hover {
  border-color: var(--primary);
}

.remember-checkbox label {
  margin: 0;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  font-weight: 500;
}

/* Enlace de olvidó contraseña */
.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: 4px;
}

.forgot-link:hover {
  color: var(--primary-dark);
  background: var(--primary-light);
  text-decoration: underline;
}

/* Footer del formulario de login */
.login-form .form-footer {
  margin-top: 24px;
}

.login-form .info-note {
  margin-top: 0;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  color: var(--success);
}

.login-form .info-note .info-icon {
  color: var(--success);
}

/* Estilos específicos para el toggle de contraseña en login */
.login-form .password-toggle {
  right: 12px;
  font-size: 16px;
  background: transparent;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.login-form .password-toggle:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.login-form .password-toggle.showing i {
  color: var(--primary);
}

/* Estilos para mensajes de error en login */
.login-form .error-message {
  font-size: 13px;
  color: var(--error);
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid var(--error);
  border-radius: var(--radius-sm);
  display: none;
}

.login-form .error-message.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Estilos para spinner en botón de login */
.btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

.btn.loading .btn-text {
  opacity: 0.7;
}

.btn.loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Estilos para mensaje del formulario */
.form-message {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.form-message.error {
  display: block;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

/* Responsive para login */
@media (max-width: 640px) {
  .login-form .container {
    max-width: 100%;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .forgot-link {
    align-self: flex-start;
  }

  .login-form .form-actions {
    flex-direction: column;
    gap: 12px;
  }

  .login-form .btn {
    width: 100%;
  }
}

/* Estilos para la versión compacta del login (opcional) */
.login-compact .card {
  max-width: 400px;
  margin: 0 auto;
}

.login-compact .card-header {
  padding: 24px 24px 16px;
}

.login-compact .card-body {
  padding: 24px;
}

.login-compact .form-options {
  padding: 12px 0;
  margin: 16px 0;
}

/* Animación de entrada para el formulario de login */
.login-form {
  animation: slideIn 0.4s ease-out;
}

/* Estilos para el botón de login específico */
.login-form .btn-primary {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
}

.login-form .btn-outline {
  padding: 14px 28px;
  font-size: 15px;
}

/* ==================== ESTILOS ESPECÍFICOS PARA CONTACTO ==================== */

/* Estilos para el contador de caracteres del mensaje */
.char-counter {
  font-size: 12px;
  color: var(--gray-500);
  text-align: right;
  margin-top: 6px;
  font-style: italic;
}

.char-counter.near-limit {
  color: var(--warning);
  font-weight: 500;
}

.char-counter.over-limit {
  color: var(--error);
  font-weight: 600;
}

/* Estilos para textarea de mensaje */
textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* Estilos para la vista previa de WhatsApp */
.whatsapp-preview {
  background: linear-gradient(135deg, #075e54, #128c7e);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.whatsapp-header {
  background: rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.whatsapp-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.whatsapp-icon {
  font-size: 20px;
}

.whatsapp-time {
  font-size: 12px;
  opacity: 0.8;
}

.whatsapp-body {
  padding: 16px;
  background: #e5ddd5;
  min-height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='smallGrid' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(0,0,0,0.05)' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23smallGrid)'/%3E%3C/svg%3E");
}

.whatsapp-message {
  background: white;
  border-radius: 8px 8px 8px 0;
  padding: 12px 16px;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-bottom: 8px;
}

.whatsapp-message::before {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent white transparent;
}

.message-content {
  font-size: 14px;
  color: var(--gray-800);
  line-height: 1.4;
}

.message-content strong {
  color: var(--gray-900);
}

.message-time {
  font-size: 11px;
  color: var(--gray-500);
  text-align: right;
  margin-top: 4px;
}

/* Nota pequeña */
.info-note.small {
  font-size: 13px;
  padding: 10px 14px;
  margin-top: 12px;
}

/* Información de contacto adicional en footer */
.contact-extra-info {
  text-align: center;
  padding: 16px 0;
}

.contact-extra-info .footer-text {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.contact-extra-info .footer-link {
  margin: 0 8px;
  font-weight: 500;
  display: inline-block;
}

.contact-extra-info .footer-link:hover {
  transform: translateY(-1px);
}

/* Estilos para los diferentes métodos de contacto */
.method-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.method-option:hover {
  background: white;
  border-color: var(--gray-300);
}

.method-option.selected {
  background: var(--primary-light);
  border-color: var(--primary);
}

.method-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.method-info h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.method-info p {
  font-size: 12px;
  color: var(--gray-600);
  margin: 0;
}

/* Estilos para el estado de "cargando tercero" */
.loading-tercero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.loading-tercero::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--gray-300);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Estilos para información de tercero encontrado */
.tercero-info {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 14px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tercero-info::before {
  content: "✅";
  font-size: 16px;
}

/* Responsive específico para contacto */
@media (max-width: 640px) {
  .whatsapp-preview {
    margin: 12px 0;
  }

  .whatsapp-header {
    padding: 10px 12px;
  }

  .whatsapp-body {
    padding: 12px;
  }

  .whatsapp-message {
    max-width: 95%;
  }

  .contact-extra-info .footer-text {
    font-size: 13px;
  }

  .contact-extra-info .footer-link {
    display: block;
    margin: 4px 0;
  }

  textarea {
    min-height: 100px;
  }
}

/* Animación para mostrar/ocultar secciones */
.entity-info-section {
  animation: fadeIn 0.3s ease-in-out;
}

/* Estilos para el campo de "otro motivo" */
#otroMotivoSection {
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

#otroMotivoInput {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* ==================== ESTILOS PARA CONTACTO HÍBRIDO ==================== */

/* Confirmación personalizada */
.custom-confirm {
  max-width: 500px;
}

.custom-confirm .modal-body {
  text-align: center;
  padding: 30px 20px;
}

.custom-confirm .modal-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 20px;
  border-top: 1px solid var(--gray-200);
}

.custom-confirm .btn {
  min-width: 150px;
  padding: 12px 20px;
}

/* Estados de botones */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Mensajes de estado */
.status-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin: 10px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-message.info {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  color: var(--primary-dark);
}

.status-message.warning {
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.status-message.success {
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  min-width: 300px;
  max-width: 400px;
  transform: translateX(150%);
  transition: transform 0.3s ease;
  z-index: 9999;
  border-left: 4px solid var(--gray-400);
}

.toast.show {
  transform: translateX(0);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--error);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-icon {
  font-size: 18px;
}

.toast-message {
  flex: 1;
  font-size: 14px;
}

/* Modal no cerrable */
.modal-system .modal-backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.error-message {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid var(--error);
  border-radius: var(--radius);
  padding: 16px;
  margin: 10px 0;
}

.success-message {
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 16px;
  margin: 10px 0;
}

.warning-message {
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  padding: 12px;
  margin: 10px 0;
}

.warning-message ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.warning-message li {
  font-size: 13px;
  color: var(--warning);
}

/* Botones del modal */
.modal-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.modal-footer .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

/* Responsive para modal de contacto */
@media (max-width: 640px) {
  .custom-modal {
    width: 95%;
    margin: 10px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .toast {
    left: 10px;
    right: 10px;
    min-width: auto;
    max-width: none;
  }
}
