@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
}


.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
}

.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-menu a {
  text-decoration: none;
  color: #002c5a;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #1a5fff;
}

/* Botón navbar */
.navbar .btn-login {
  background-color: #307BFF;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

.navbar .btn-login:hover {
  background-color: #0056d6;
}


.login-background {
  position: relative;
  background: url('../img/fondo-siaumex.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Oscurecer fondo */
.login-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 0;
}


.login-box {
  display: flex;
  width: 720px;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}


.login-left {
  background-color: #001f3f;
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.login-left img {
  max-width: 180px;
  width: 100%;
}


.login-right {
  flex: 1;
  padding: 2rem 2.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-right h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}


.login-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.login-tabs .tab {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: none;
  background: #222;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.login-tabs .tab.active {
  background: #3b82f6;
}


.error-msg {
  color: #ff4d4d;
  font-weight: 700;
  margin: 10px 0;
  text-align: center;
}


.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}


.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}


.login-form input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);

  background: rgba(255,255,255,0.95);
  color: #0f172a;             
  font-size: 0.95rem;

  outline: none;
}

.login-form input::placeholder {
  color: rgba(15, 23, 42, 0.55);  
}

.login-form input:focus {
  border-color: rgba(59,130,246,0.9);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}


.btn-login {
  background: #3b82f6;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.btn-login:hover {
  background: #2563eb;
  transform: translateY(-1px);
}


.btn-login-center {
  width: 220px;
  margin: 8px auto 0 auto;
  display: block;
  text-align: center;
}


.login-footer {
  text-align: center;
  margin-top: 1rem;
}

.login-footer a {
  color: #ccc;
  font-size: 0.9rem;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}


.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 32px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
}


@media (max-width: 768px) {
  .login-box {
    flex-direction: column;
    width: 90%;
  }

  .login-left {
    width: 100%;
    padding: 1.5rem;
  }

  .login-right {
    padding: 1.5rem;
  }
}
/* =========================
   HAMBURGUESA
========================= */

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #004080;
  border-radius: 3px;
  transition: 0.3s;
}

/* Animación X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px,-6px);
}



.menu-mobile {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: white;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  z-index: 999;
}

.menu-mobile.show {
  display: flex;
}

.menu-mobile a {
  padding: 16px;
  text-decoration: none;
  color: #002c5a;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.menu-mobile a:hover {
  background: #eaf2ff;
  color: #1a5fff;
}


@media (max-width: 768px) {

  .menu-links {
    display: none;
  }

  .login-link {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}


@media (min-width: 769px) {
  .menu-toggle,
  .menu-mobile {
    display: none !important;
  }
}


