* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

body {
  display: flex;
  justify-content: center;
  background-color: #f9f9f9;
  min-height: 100vh; /* Esto es clave */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-container {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.logo {
  width: 50px;
  height: 50px;
  background: var(--color-primario);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  font-weight: bold;
}

h1 {
  color: #333;
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 700;
}

.subtitle {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.4;
}

.btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.btn-google {
  background: white;
  color: #333;
  border: 2px solid #e0e0e0;
}

.btn-google:hover {
  border-color: var(--color-primario);
  box-shadow: 0 4px 12px
    color-mix(in srgb, var(--color-primario) 10%, transparent);
}

.btn-primary {
  background: var(--color-primario);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: color-mix(in srgb, var(--color-primario) 10%, transparent);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primario);
  border: 2px solid var(--color-primario);
}

.btn-secondary:hover {
  background: var(--color-primario);
  color: white;
}

.divider {
  margin: 25px 0;
  position: relative;
  text-align: center;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  background: white;
  padding: 0 15px;
  color: #666;
  font-size: 14px;
}

.legal {
  margin-top: 30px;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}

.legal a {
  color: var(--color-texto);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.google-icon {
  width: 20px;
  height: 20px;
}

.google-icon-svg {
  width: 20px;
}

@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }

  h1 {
    font-size: 24px;
  }

  .btn {
    padding: 14px;
    font-size: 15px;
  }
}

/* ===== MODALES SIMPLIFICADOS ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 1000;
  display: none;
  overflow-y: auto;
}

.modal.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  height: 100%;
  padding: 40px 50px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  background: #f5f5f7;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #666;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--color-primario);
  color: white;
  transform: scale(1.1);
}

.modal-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 700;
}

.modal-subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* Formularios */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: left;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primario);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  background: white;
}

.checkbox-label {
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.forgot-link {
  color: var(--color-primario);
  text-decoration: none;
  font-size: 14px;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-modal {
  width: 100%;
  padding: 14px;
  background: var(--color-primario);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 25px;
  transition: all 0.2s ease;
}

.btn-modal:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 145, 183, 0.3);
}

.divider {
  margin: 25px 0;
  position: relative;
  text-align: center;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  background: white;
  padding: 0 15px;
  color: #666;
  font-size: 14px;
}

.social-login {
  display: flex;
  gap: 12px;
}

.btn-social {
  flex: 1;
  padding: 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-social:hover {
  border-color: var(--color-primario);
}

.social-icon {
  width: 18px;
  height: 18px;
}

/* ===== MODALES DE NOTIFICACIÓN ===== */
.notification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.notification-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.notification-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.notification-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
}

.notification-icon.success {
  background: #4caf50;
  color: white;
}

.notification-icon.error {
  background: #f44336;
  color: white;
}

.notification-icon.warning {
  background: #ff9800;
  color: white;
}

.notification-icon.info {
  background: var(--color-primario);
  color: white;
}

.notification-title {
  font-size: 22px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 700;
}

.notification-message {
  color: #666;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.notification-link {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
  word-break: break-all;
  font-size: 13px;
  color: #666;
  text-align: left;
}

.notification-link strong {
  color: #333;
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.btn-notification {
  width: 100%;
  padding: 14px;
  background: var(--color-primario);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-notification:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 145, 183, 0.3);
}

.btn-notification.secondary {
  background: transparent;
  color: var(--color-primario);
  border: 2px solid var(--color-primario);
  margin-top: 10px;
}

.btn-notification.secondary:hover {
  background: var(--color-primario);
  color: white;
}

/* Mejoras para los modales existentes */
.modal-content {
  height: 100%;
  padding: 40px 41px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-body {
  text-align: left;
  line-height: 1.5;
  max-height: calc(80vh - 120px);
  overflow-y: auto;
  padding-right: 6px;
}
