/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  min-height: 100vh;
  background-color: #fbfbfb;
  color: #333;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header */
.header {
  width: 100%;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: #1DA9A3;
  height: 71px;
}

.logo img,
.logo-img {
  height: 47px;
  width: auto;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.87);
}

.contact-text {
  font-size: 12px;
  margin-bottom: 2px;
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-icon {
  width: 24px;
  height: 24px;
}

.phone-number {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Navigation Bar */
.navbar {
  background-color: #1DA9A3;
  background-image: url('https://ext.same-assets.com/3032741265/955439525.png');
  background-repeat: repeat-x;
  padding: 10px 0;
  width: 40%;
  margin-left: auto;
  border-bottom-left-radius: 100px;
}

.nav-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: bold;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.85;
}

.nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

img.nav-icon {
  filter: brightness(0) invert(1);
}

.pago-express {
  background-color: #744c9b;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 18px;
  margin-left: 10px;
}

.pago-express:hover {
  background-color: #664685;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

.login-container {
  width: 100%;
  max-width: 360px;
}

/* Tabs Navigation */
.tabs-nav {
  width: 100%;
}

.tabs-list {
  display: flex;
  width: 100%;
}

.tab-item {
  flex: 1;
  background-color: #1DA9A3;
  border: 3px solid #1DA9A3;
  border-bottom: none;
  transition: background-color 0.2s;
  cursor: pointer;
  color: #fff;
}

.tab-item.active {
  background-color: #fff;
  border-bottom: none;
  color: #1DA9A3;
}

.tab-item:not(.active):hover {
  background-color: #179a94;
}

.tab-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px 12px;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
}

.tab-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 8px;
  object-fit: contain;
}

/* Login Box */
.login-box {
  background-color: #fff;
  border: 4px solid #1DA9A3;
  border-top: none;
  padding: 0;
}

.login-header {
  background-color: #1DA9A3;
  color: #fff;
  padding: 10px 15px;
  font-size: 14px;
}

.login-header strong {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.login-form {
  padding: 20px 15px 25px;
}

/* Form Placeholders (sin inputs reales) */
.form-placeholder {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px 15px;
  margin-bottom: 15px;
  color: #999;
  font-size: 14px;
}

.rut-placeholder {
  width: 100%;
}

.form-input {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px 15px;
  margin-bottom: 15px;
  color: #333;
  font-family: inherit; /* Ensure font matches */
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  display: block;
  outline: none; /* Remove default browser outline */
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #1DA9A3; /* Highlight matching theme on focus */
}

.form-input::placeholder {
  color: #999;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.clave-placeholder {
  flex: 1;
  margin-bottom: 0;
  max-width: 140px;
}

.forgot-password {
  background-color: #1DA9A3;
  color: #fff;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.forgot-password:hover {
  background-color: #179a94;
}

/* Link verificación Style */
.verification-link {
  background: none;
  color: #1DA9A3;
  text-decoration: underline;
  padding: 0;
  border: none;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.verification-link:hover {
  color: #14807b;
}

/* Form Actions */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 25px;
}

.btn-entrar {
  background-color: #1DA9A3;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-entrar:hover {
  background-color: #179a94;
}

.huella-message {
  font-size: 11px;
  color: #666;
  text-align: right;
  line-height: 1.4;
  flex: 1;
}

/* Footer */
.footer {
  background-color: #fff;
  border-top: 4px solid #1DA9A3;
  padding: 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-right {
  text-align: right;
}

.footer-phone {
  font-size: 13px;
  color: #333;
  margin-bottom: 3px;
}

.footer-email {
  font-size: 13px;
  color: #1DA9A3;
}

.footer-email:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 10px;
  }

  .header-contact {
    align-items: center;
  }

  .phone-number {
    font-size: 22px;
  }

  .navbar {
    padding: 8px 0;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }

  .nav-icon {
    width: 16px;
    height: 16px;
  }

  .login-container {
    max-width: 100%;
  }

  .tab-link {
    padding: 10px 5px 8px;
    font-size: 11px;
  }

  .tab-icon {
    width: 35px;
    height: 35px;
  }

  .form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .huella-message {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .clave-placeholder {
    max-width: 100%;
    margin-bottom: 10px;
  }

  .forgot-password {
    text-align: center;
    display: block;
    width: 100%;
    padding: 10px;
  }
}
