:root {
  --white: #FFFFFF;
  --gold: #C2A060;
  --lilac: #E5D8EF;
  --purple-light: #9B5FA7;
  --purple-dark: #4A1650;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Quicksand", sans-serif;
  color: var(--purple-dark);
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px);
}

.heading {
  font-family: 'Caveat', cursive;
  font-size: 4em;
  margin: 8px 0 6px;
  color: var(--purple-dark);
  text-align: center;
  font-weight: bold;
}

.sub { 
  text-align: center; 
  color: #0008; 
  margin: 0 0 16px; 
}

.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 12px auto 24px;
  width: min(520px, 80%);
  border-radius: 2px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: clamp(16px, 3vw, 24px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  margin: 0 auto 18px;
}

.badge {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-light));
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  font-weight: 600;
  letter-spacing: .2px;
}

.muted { color: #0009; font-size: .95rem; }

.error {
  background: #fff3f3; 
  border: 1px solid #ffc9c9; 
  color: #7a1a1a;
  padding: 12px 14px; 
  border-radius: 10px; 
  margin-top: 12px;
}

.success {
  background: #f0fff5; 
  border: 1px solid #b7f0cb; 
  color: #175b2b;
  padding: 12px 14px; 
  border-radius: 10px; 
  margin-top: 12px;
}

/* Etiquetas generales de formulario */
form label { 
  display: block; 
  font-weight: 600; 
  margin: 12px 0 6px; 
}

input[type="text"], 
input[type="password"], 
select, 
textarea {
  resize: none; 
  width: 100%; 
  padding: 10px 12px;
  border-radius: 10px; 
  border: 1px solid #e0d3e7;
  font-size: 1rem; 
  color: #3a2240; 
  background: #fff;
  outline: none; 
  transition: border-color .15s ease, box-shadow .15s ease;
}

input[readonly] { background: #faf7fd; }

input[type="text"]:focus, 
input[type="password"]:focus, 
select:focus, 
textarea:focus {
  border-color: #c9b2d1; 
  box-shadow: 0 0 0 3px #e9dbf0;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: .9rem; color: #0007; margin-top: 4px; }

.actions {
  display: flex; 
  gap: 12px; 
  align-items: center; 
  justify-content: flex-end;
  margin-top: 16px;
}

/* --- ESTILOS DE BOTONES (Añadidos/Corregidos) --- */
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--purple-dark);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(74, 22, 80, 0.2);
}

.btn.primary:hover {
  background: var(--purple-light);
}

.btn.secondary {
  background: var(--white); 
  color: var(--purple-dark); 
  border: 1px solid var(--purple-light);
  box-shadow: none; 
  font-weight: 600;
}

.btn.secondary:hover {
  background: var(--lilac);
}

.toggle-edit {
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  margin-top: 8px;
  font-size: .95rem; 
  color: #45214a; 
  user-select: none;
}

.admin {
  display: none; 
  background: #fff8f0; 
  border: 1px dashed #e8cf9a;
  color: #5a3d10; 
  border-radius: 12px; 
  padding: 12px 14px; 
  margin-top: 14px;
}

.admin.visible { display: block; }

@media (max-width: 620px) { 
  .row { grid-template-columns: 1fr; } 
}

/* --- ESTILOS PARA LOS RADIO BUTTONS Y SUS ETIQUETAS --- */
.menu-options label,
.travel-options label,
.travel-options2 label,
.travel-options3 label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--purple-dark);
  transition: opacity 0.2s;
  margin: 6px 0;
}

/* Esconder el radio button original de forma accesible */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--purple-light);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color 0.2s, background-color 0.2s;
}

/* El punto central (indicador de seleccionado) */
input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--white);
  background-color: var(--white);
}

/* Estado cuando está marcado */
input[type="radio"]:checked {
  background-color: var(--purple-light);
  border-color: var(--purple-light);
}

input[type="radio"]:checked::before {
  transform: scale(1);
}

/* Efecto de foco para accesibilidad */
input[type="radio"]:focus {
  box-shadow: 0 0 0 3px var(--lilac);
}