:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --accent-color: #17a2b8;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --gradient: linear-gradient(135deg, #0d6efd 0%, #17a2b8 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Poppins', sans-serif;
  background: var(--gradient);
  color: #333;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding: 20px 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://picsum.photos/seed/medicaltech/1920/1080.jpg') center/cover;
  opacity: 0.1;
  z-index: -1;
}

.contenedor-principal {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.mensaje {
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  overflow: visible;
  animation: fadeIn 0.5s ease;
}

.mensaje::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
}

.logo-container {
  margin-bottom: 30px;
}

.logo-container i {
  font-size: 3.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mensaje h1 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.mensaje p {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.advertencia {
  background-color: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  color: #856404;
  font-weight: 500;
  display: none;
  animation: slideDown 0.3s ease;
  text-align: left;
}

.error {
  background-color: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
  color: #721c24;
}

.exito {
  background-color: rgba(40, 167, 69, 0.1);
  border-left: 4px solid #28a745;
  color: #155724;
}

.form-contacto {
  margin-top: 30px;
  animation: slideDown 0.3s ease;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-color);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  display: inline-block;
  margin-top: 10px;
  font-size: 1rem;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.spinner-container {
  display: none;
  justify-content: center;
  margin: 20px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

.captcha-container {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.footer-text {
  margin-top: 30px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: var(--accent-color);
  transform: translateX(-5px);
}

.privacy-notice {
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-top: 15px;
  text-align: center;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .mensaje {
    padding: 30px 20px;
  }
  
  .mensaje h1 {
    font-size: 1.5rem;
  }
  
  .logo-container i {
    font-size: 3rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Estilos para elementos que estaban con estilos en línea */
#otroAreaGroup, #otraSolucionGroup {
  display: none;
}

.spinner-container.active {
  display: flex;
}

.advertencia.active {
  display: block;
}




.mensajeExito {
display:none;
text-align:center;
margin-top:20px;
}

#mensajeExito {
  background-color: rgba(40, 167, 69, 0.1);
  border-left: 4px solid #28a745;
  color: #155724;
  font-weight: 500;
  padding: 15px;
  border-radius: 8px;
}