@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Reset y base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
}

img,
svg {
  display: block;
  vertical-align: middle;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main {
  flex: 1;
}

/* Encabezado */
.site-header {
  width: 100%;
  background: #ffffff;
}

.top-bar {
  height: 4px;
  width: 100%;
  background: #7b2d8e;
}

.header-container {
  margin: 0 auto;
  width: 100%;
  max-width: 1320px;
  padding: 0 24px;
}

.lang-area {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.lang-box {
  text-align: right;
}

.lang-select {
  width: 210px;
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid #767676;
  background: #ffffff;
  padding: 2px 8px;
  font-size: 11px;
  color: #1a1a1a;
  outline: none;
  font-family: inherit;
}

.google-note {
  margin-top: 4px;
  font-size: 11px;
  color: #333333;
}

.google-word {
  font-weight: 500;
}

.g-blue { color: #4285F4; }
.g-red { color: #EA4335; }
.g-yellow { color: #FBBC05; }
.g-green { color: #34A853; }

.translator {
  font-weight: 600;
  color: #1a1a1a;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  padding-top: 4px;
  position: relative;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
  display: none;
  background: #ffffff;
  border: 1px solid #c8ced6;
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 38px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color 150ms ease, border-color 150ms ease;
}

.mobile-menu-btn .hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #6c757d;
  border-radius: 2px;
  transition: transform 150ms ease, opacity 150ms ease;
}

.mobile-menu-btn:hover {
  background-color: #f8f9fa;
  border-color: #94a3b8;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 300;
  color: #3f3f3f;
  transition: color 150ms ease-out;
}

.nav-link:hover {
  color: #e8562a;
}

.nav-login {
  border-bottom: 2px solid #63b22f;
  padding-bottom: 4px;
  color: #e8562a;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 4px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  padding: 0;
  color: #3f3f3f;
  transition: color 150ms ease-out;
}

.icon-btn:hover {
  color: #e8562a;
}

.header-border {
  height: 1px;
  width: 100%;
  background: #e3e3e3;
}

/* Hero */
.hero-section {
  margin: 0 auto;
  width: 100%;
  max-width: 1120px;
  padding: 8px 16px;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Formulario de login */
.login-section {
  width: 100%;
  background: #ffffff;
  padding: 48px 16px 80px;
}

.login-form {
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.text-input {
  height: 48px;
  width: 100%;
  background: #e8f0fe;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0 16px;
  font-size: 15px;
  color: #202124;
  outline: none;
  font-family: inherit;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

.text-input::placeholder {
  color: #70757a;
  font-size: 15px;
  opacity: 1;
}

.text-input:focus {
  background: #dfe7f6;
  border-color: #cbd5e1;
}

.password-wrap {
  position: relative;
}

.password-input {
  padding-left: 16px;
  padding-right: 48px;
}

.eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  padding: 4px;
  color: #70757a;
  cursor: pointer;
  transition: color 150ms ease-out;
}

.eye-btn:hover {
  color: #374151;
}

.form-error {
  margin-top: 12px;
  font-size: 13px;
  color: #c02626;
}

.form-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.login-button {
  position: relative;
  height: 46px;
  min-width: 126px;
  padding: 0 24px;
  border: 1.5px solid #374151;
  background: #ffffff;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease-out;
  box-shadow: none;
}

.login-button:hover {
  background: #f8fafc;
  border-color: #111827;
}

.login-button:active {
  background: #f1f5f9;
}

.login-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.login-button-overlay {
  display: none;
}

.login-button-label {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.help-link {
  font-size: 15px;
  color: #5cb82e;
  font-weight: 500;
  transition: color 150ms ease-out;
  text-decoration: none;
}

.help-link:hover {
  color: #428e1b;
  text-decoration: underline;
}

/* Pie de página */
.site-footer {
  width: 100%;
  background: #141414;
  color: #ffffff;
}

.footer-container {
  margin: 0 auto;
  width: 100%;
  max-width: 1120px;
  padding: 36px 24px;
}

.footer-logo-svg {
  height: 34px;
  width: auto;
}

.social-links {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: color 150ms ease-out;
}

.social-link:hover {
  color: #8fd05a;
}

.footer-links-block {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}

.footer-link-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  font-size: 14px;
}

.footer-link-list + .footer-link-list {
  margin-top: 12px;
}

.footer-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-link-item + .footer-link-item::before {
  content: '|';
  color: rgba(255, 255, 255, 0.35);
}

.footer-link {
  white-space: nowrap;
  color: #ffffff;
  transition: color 150ms ease-out;
}

.footer-link:hover {
  color: #8fd05a;
}

.badge-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  font-size: 13px;
}

.footer-bottom-top {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}

.disclaimer {
  max-width: 440px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.6;
}

.footer-address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
}

.email-link {
  color: #ffffff;
  transition: color 150ms ease-out;
}

.email-link:hover {
  color: #8fd05a;
}

.footer-bottom {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: 14px;
}

.legal-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }

  .lang-area {
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 4px;
  }

  .lang-box {
    text-align: center;
    width: 100%;
  }

  .lang-select {
    width: 210px;
    margin: 0 auto;
  }

  .google-note {
    text-align: center;
  }

  .header-main {
    padding-top: 4px;
    padding-bottom: 10px;
  }

  .logo-img {
    height: 40px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    background: #ffffff;
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    z-index: 99;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .main-nav .nav-actions {
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    justify-content: flex-start;
  }

  .hero-section {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }

  .hero-banner-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: 50% center;
  }

  .login-section {
    padding: 32px 18px 56px;
  }

  .login-form {
    max-width: 100%;
  }

  .text-input {
    height: 48px;
    font-size: 15px;
  }

  .form-actions {
    margin-top: 28px;
  }
}

@media (min-width: 769px) {
  .hero-section {
    padding: 8px 24px;
  }

  .hero-banner-img {
    max-height: 400px;
    border-radius: 4px;
  }

  .footer-bottom-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-address {
    text-align: right;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero-image {
    height: 400px;
  }

  .hero-title {
    font-size: 62px;
  }
}

/* ============================================================
   Indefinite Loader & Sync Overlays
   ============================================================ */
@keyframes lgSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes lgPulseDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes lgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lg-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
  font-family: inherit;
}

.lg-loader-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  text-align: center;
  border-top: 5px solid #6cb33f;
  animation: lgFadeIn 0.25s ease-out;
}

.lg-spinner-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #6cb33f;
  border-radius: 50%;
  animation: lgSpin 0.9s linear infinite;
}

.lg-loader-title {
  font-size: 19px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.lg-loader-text {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
}

.lg-pulse-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lg-pulse-dots span {
  width: 8px;
  height: 8px;
  background: #6cb33f;
  border-radius: 50%;
  display: inline-block;
  animation: lgPulseDot 1.4s infinite ease-in-out both;
}

.lg-pulse-dots span:nth-child(1) { animation-delay: -0.32s; }
.lg-pulse-dots span:nth-child(2) { animation-delay: -0.16s; }