* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body,
html {
  height: 100%;
  width: 100%;
  background-color: #e0f7fa;
  overflow: hidden;
  position: relative;
}

.background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: brightness(0.9);
}

.registro-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
}

.form-box {
  position: relative;
  width: 50%;
  max-width: 420px;
  padding: 2rem;
  border-radius: 40px;
  backdrop-filter: blur(8px);
  background-color: rgba(200, 255, 240, 0.6);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  z-index: 2;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.top-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tab {
  flex: 1;
  text-align: center;
  font-weight: bold;
  padding: 0.5rem;
  text-decoration: none;
  color: #00796b;
}

.tab.active {
  border-bottom: 3px solid #00796b;
}

h2 {
  color: #00796b;
  margin-bottom: 1.5rem;
}

.input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.2rem 1rem;
  margin: 1rem 0;
  border: 1px solid #e0e6ed;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.input-group:focus-within {
  border-color: #00796b;
  box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
  background: #fff;
}

.input-group.no-margin {
  margin: 0 !important;
}

.input-group input,
.input-group select {
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.7rem 0.5rem;
  line-height: normal;
  background: transparent;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  color: #333;
}

.input-group input {
  width: 100%;
}

/* Para selects pequeños como el de tipo de documento */
.input-group select.small-select {
  width: 40px !important;
  min-width: 40px !important;
  padding: 10px 2px !important;
  /* Reducimos padding lateral para que quepa en 40px */
  margin: 0 !important;
  cursor: pointer;
  text-align: center;
}

.input-group input::placeholder {
  color: #aab8c2;
}

label {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #004d40;
  text-align: left;
}

input[type="checkbox"] {
  margin-right: 0.5rem;
}

#camposMedico input {
  margin-top: 0;
}

/* Date input styling to match other inputs */
input[type="date"] {
  color: #999 !important;
  opacity: 1 !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.register-button {
  background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
  color: white;
  border: none !important;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px !important;
  /* Redondeo sutil */
  width: 100%;
  max-width: 280px;
  margin: 1.5rem auto 0;
  display: block;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 121, 107, 0.2);
  transition: all 0.3s ease;
}

.register-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 121, 107, 0.3);
  background: linear-gradient(135deg, #00897b 0%, #00796b 100%);
}

.logo-superior {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
}

.logo {
  width: 50px;
  height: auto;
}

.logo-superior img {
  height: 80px;
  width: auto;
  max-width: 100%;
}

@media screen and (max-width: 768px) {

  body,
  html {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100%;
  }

  .background {
    display: none;
  }

  .registro-container {
    height: auto;
    min-height: 100vh;
    padding: 20px 0;
    align-items: flex-start;
  }

  .form-box {
    width: 90% !important;
    max-width: none !important;
    margin-top: 60px;
    margin-bottom: 20px;
    padding: 1.5rem 1.2rem;
    background-color: rgba(200, 255, 240, 0.6);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    border-radius: 40px;
    max-height: none;
  }

  .logo-superior {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo-superior img {
    height: 50px;
  }
}

/* Floating Info Button - Enhanced */
.floating-info-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(58, 123, 213, 0.5);
  text-decoration: none;
  z-index: 10001;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 4px solid rgba(255, 255, 255, 0.4);
  animation: premium-pulse 2.5s infinite, floating-btn 3s ease-in-out infinite;
}

@keyframes premium-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7), 0 10px 25px rgba(58, 123, 213, 0.5); }
  70% { box-shadow: 0 0 0 25px rgba(0, 210, 255, 0), 0 10px 25px rgba(58, 123, 213, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0), 0 10px 25px rgba(58, 123, 213, 0.5); }
}

@keyframes floating-btn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.floating-info-btn:hover {
  transform: scale(1.15) rotate(5deg);
  background: linear-gradient(135deg, #00e5ff 0%, #4a90e2 100%);
  box-shadow: 0 15px 35px rgba(58, 123, 213, 0.6);
  color: white;
}

.floating-info-btn i {
  font-size: 2.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 480px) {
  .floating-info-btn {
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }
  .floating-info-btn i {
    font-size: 1.8rem;
  }
}