* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: #eeeeee;
  min-height: 100vh;
}

/* Header */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-title {
  font-size: 20px;
  font-weight: 600;
  color: #111111;
}

.header-logo {
  max-height: 100px;
  object-fit: contain;
}

/* Responsive header */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  .header-title {
    font-size: 18px;
  }

  .header-logo {
    max-height: 75px;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-title {
    width: 100%;
  }

  .header-logo {
    width: 100%;
    max-height: 60px;
    object-fit: contain;
  }
}

.btn-logout {
  padding: 8px 16px;
  background: white;
  border: 1px solid #bbbbbb8a;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #eeeeee;
  border-color: #bbbbbb8a;
}

/* Container */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #bbbbbb8a;
}

h1 {
  color: #333333;
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.subtitle {
  color: #666666;
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #333333;
  font-weight: 500;
  font-size: 14px;
}

/* Label con contador de caracteres */
label.label-with-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Contador de caracteres */
.char-counter {
  font-size: 12px;
  font-weight: 400;
  color: #666666;
  margin-left: auto;
  padding-left: 8px;
  white-space: nowrap;
}

.char-counter.valid {
  color: #10b981;
  font-weight: 500;
}

.char-counter.warning {
  color: #f59e0b;
  font-weight: 500;
}

.char-counter.error {
  color: #ef4444;
  font-weight: 500;
}

/* Hint de caracteres */
.char-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #666666;
  font-style: italic;
  transition: color 0.2s;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bbbbbb8a;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s;
  background: white;
  color: #333333;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #f2125e;
  box-shadow: 0 0 0 3px rgba(242, 18, 94, 0.1);
}

input::placeholder {
  color: #666666;
}

.phone-group {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
}

.radio-group {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #f2125e;
}

.radio-option label {
  margin: 0;
  cursor: pointer;
  font-weight: normal;
  color: #666666;
}

textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bbbbbb8a;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: all 0.2s;
  line-height: 1.5;
}

textarea::placeholder {
  color: #666666;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.btn-primary {
  background: #f2125e;
  color: white;
}

.btn-primary:hover {
  background: #c40f4d;
}

.btn-secondary {
  background: white;
  color: #333333;
  border: 1px solid #bbbbbb8a;
}

.btn-secondary:hover {
  background: #eeeeee;
}

/* Checkbox personalizados para selección múltiple */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
  background: #eeeeee;
  border: 1px solid #bbbbbb8a;
  border-radius: 6px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: white;
  border: 1px solid #bbbbbb8a;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  user-select: none;
}

.checkbox-item:hover {
  border-color: #f2125e;
  background: #fff5f8;
}

.checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #bbbbbb8a;
  border-radius: 4px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked ~ .checkbox-custom {
  background: linear-gradient(135deg, #f2125e 0%, #c40f4d 100%);
  border-color: #c40f4d;
}

.checkbox-item input[type="checkbox"]:checked ~ .checkbox-custom::after {
  content: "✓";
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.checkbox-label {
  font-size: 15px;
  color: #333333;
  flex: 1;
}

.checkbox-item input[type="checkbox"]:checked ~ .checkbox-label {
  color: #740028;
  font-weight: 500;
}

.error-message {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
}

/* Messages */
.success-message {
  background: #d1fae5;
  color: #065f46;
  padding: 14px 16px;
  border-radius: 6px;
  text-align: center;
  margin-top: 20px;
  display: none;
  font-weight: 500;
  border: 1px solid #a7f3d0;
}

.success-message.show {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Questions List */
.questions-list {
  margin-top: 30px;
}

.question-item {
  background: #eeeeee;
  border: 1px solid #bbbbbb8a;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.question-meta {
  font-size: 13px;
  color: #666666;
}

.question-text {
  color: #333333;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.question-footer {
  font-size: 13px;
  color: #666666;
  padding-top: 8px;
  border-top: 1px solid #bbbbbb8a;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666666;
}

.divider {
  height: 1px;
  background: #bbbbbb8a;
  margin: 28px 0;
}

.required {
  color: #dc2626;
}

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .header-title {
    font-size: 18px;
  }

  .container {
    padding: 20px 16px;
  }

  .card {
    padding: 24px;
  }

  h1 {
    font-size: 24px;
  }

  .phone-group {
    grid-template-columns: 90px 1fr;
  }

  /* Checkboxes responsivos */
  .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: none;
    padding: 10px;
  }

  .checkbox-item {
    padding: 10px 12px;
  }

  .checkbox-custom {
    width: 18px;
    height: 18px;
    margin-right: 10px;
  }

  .checkbox-label {
    font-size: 14px;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #333333;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
  width: auto;
  margin: 0;
}

/* Estilos para select múltiple */
select[multiple] {
  padding: 8px;
  overflow-y: auto;
}

select[multiple] option {
  padding: 8px 12px;
  margin: 2px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

select[multiple] option:checked {
  background: linear-gradient(0deg, #f2125e 0%, #c40f4d 100%);
  color: white;
  font-weight: 500;
}

select[multiple] option:hover:not(:checked) {
  background-color: #f3f4f6;
}

.char-hint {
  font-size: 12px;
  color: #666666;
  margin-top: 4px;
}
