* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #0d1b2a 100%);
  min-height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.container {
  max-width: 700px;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 2rem;
  animation: fadeInUp 0.6s ease-out forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.view-switcher {
  display: flex;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 2rem;
}
.view-btn {
  background: transparent;
  border: none;
  color: #a0b4d0;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}
.view-btn.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
h1 {
  text-align: center;
  color: #ffd700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.subtitle {
  text-align: center;
  color: #a0b4d0;
  margin-bottom: 2.5rem;
}
.form-grid {
  display: grid;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group,
fieldset.form-group {
  border: 0;
  min-width: 0;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #a0b4d0;
  margin-bottom: 0.5rem;
}
fieldset.form-group > legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: #a0b4d0;
  margin-bottom: 0.35rem;
}
.field-hint {
  color: #7f94b2;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}
.form-group input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: #e0e8f0;
  font-size: 1rem;
  transition: all 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: #ffd700;
  background: rgba(255,215,0,0.05);
}
.form-group input.is-invalid {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.05);
}
.error-message {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  min-height: 1em; /* Evita que el layout salte */
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  background: rgba(255,255,255,0.06);
  padding: 1.2rem;
  border-radius: 12px;
}
.specialty-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(0,0,0,0.2);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  transition: background-color 0.2s;
}
.specialty-item:hover {
  background: rgba(0,0,0,0.4);
}
.terms-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.terms-item label {
  color: #a0b4d0;
}
.specialty-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #ffd700;
}
.specialty-item label {
  font-size: 0.9rem;
  color: #c0d2e8;
  cursor: pointer;
}
.terms-item label a {
  color: #ffd700;
}
.verification-card {
  background: rgba(18, 140, 126, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 12px;
  padding: 1rem;
  color: #dceaf7;
}
.verification-card h2 {
  color: #4ade80;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.45rem;
  text-align: left;
}
.verification-card p {
  color: #bfd0e6;
  font-size: 0.92rem;
  line-height: 1.5;
}
.verification-card p + p {
  margin-top: 0.45rem;
}
.verification-card strong,
.verification-card a {
  color: #ffd700;
  font-weight: 800;
}
.forgot-password {
  text-align: right;
  font-size: 0.85rem;
  color: #a0b4d0;
  text-decoration: none;
  margin-top: -1rem;
}
.horario-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.submit-btn {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #0a1628;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,170,0,0.3);
}
.submit-btn:disabled {
  background: #5a6f88;
  cursor: not-allowed;
}
.message {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  font-weight: 600;
}
.message.success {
  background-color: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}
.message.error {
  background-color: rgba(248, 113, 113, 0.15);
  color: #f87171;
}
.share-section {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.share-section h2 {
  color: #e0e8f0;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.share-section p {
  color: #a0b4d0;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 136px;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
  color: #e8eef8;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}
.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex: 0 0 26px;
}
.share-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.share-btn.facebook .share-icon {
  background-color: #1877F2;
  color: #fff;
}
.share-btn.twitter .share-icon {
  background-color: #0f1419;
  color: #fff;
}
.share-btn.whatsapp .share-icon {
  background-color: #128C7E;
  color: #fff;
}
.share-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,215,0,0.45);
  background: rgba(255,255,255,0.1);
}
.share-btn:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 3px;
}
.hidden {
  display: none;
}

.ownership-notice {
  color: #7f93b2;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
  margin: 2rem auto 0;
  max-width: 720px;
}
.ownership-notice strong {
  color: #ffd700;
}
.ownership-notice a {
  color: #a0b4d0;
}

@media (max-width: 520px) {
  .share-buttons {
    flex-direction: column;
  }
  .share-btn {
    width: 100%;
  }
}
