:root {
  --primary-blue: #2D74E7;
  --primary-blue-hover: #1E64F0;
  --text-dark: #1A1A1A;
  --text-body: #333333;
  --text-gray: #595959;
  --bg-light: #F8F9FA;
  --container-max-width: 1200px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Tipografía global ----- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  background: #fff;
  color: var(--text-body);
  overflow-x: clip;
}

.full-width {
  width: 100%;
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 300;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 300;
}

h3 {
  font-size: 1.8rem;
  line-height: 1.3;
  font-weight: 300;
}

h4 {
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 300;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* Navbar Styles */
.navbar {
  background: rgba(255, 255, 255, 0.0001);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  /* Higher than drawer */
  transition: all 0.3s ease;
  margin: 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 15px;
}

.lang-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.light-page .lang-link {
  background: rgba(45, 116, 231, 0.05);
  color: var(--primary-blue);
  border-color: rgba(45, 116, 231, 0.1);
}

.lang-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.navbar.light-page .lang-link:hover {
  background: rgba(45, 116, 231, 0.1);
}

.lang-link svg {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar.light-page .lang-link:hover {
  background: rgba(0, 0, 0, 0.1);
}

.flag-icon {
  width: 20px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.liquid-glass-border {
  padding: 15px 40px;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  /* Fondo casi invisible */
  position: relative;
  border-radius: 20px;
  /* Esquinas redondeadas */

  /* El efecto de desenfoque detrás del botón */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Creamos el borde de 10px usando un pseudo-elemento */
  z-index: 1;
  transition: all 0.3s ease;
}

.liquid-glass-border::before {
  content: "";
  position: absolute;
  /* El borde de 10px se define con estos valores negativos */
  top: -10px;
  bottom: -10px;
  left: -10px;
  right: -10px;
  z-index: -1;

  /* Gradiente que simula el brillo del vidrio líquido */
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0.05) 40%,
      rgba(255, 255, 255, 0.05) 60%,
      rgba(255, 255, 255, 0.3) 100%);

  /* El radio debe compensar el grosor del borde (20px + 10px) */
  border-radius: 30px;

  /* El "truco" para que solo se vea el borde y no el centro */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 10px;
  /* Este es el grosor real del borde */
}

/* Efecto Hover para que se sienta vivo */
.liquid-glass-border:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  transform: translateY(-2px);
}

/* ----- Premium Buttons (CSS Only) ----- */
.btn-sherpa {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 173px;
  height: 40px;
  font-size: 0.8rem;
  padding: 0 8px 0 28px;
  background: #287FF2;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 300;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-sherpa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(45, 116, 231, 0.4);
  background: var(--primary-blue-hover);
}

.btn-sherpa .btn-circle {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.btn-sherpa:hover .btn-circle {
  transform: translateX(3px);
}

.btn-sherpa .btn-circle svg {
  color: var(--primary-blue);
}

/* Specific Variations */
.btn-primary.btn-sherpa {
  background: #287FF2;
}

/* Secondary / Bordered variant */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background: transparent;
  border: 2px solid #287FF2;
  color: #287FF2;
  padding: 0 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 300;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(40, 127, 242, 0.05);
  box-shadow: 0 4px 12px rgba(40, 127, 242, 0.1);
  color: #1e64f0;
}

/* Legacy support/Cleanup */
.btn-primary,
.btn-secondary,
.btn-demo-nav {
  /* We will override these to use the new CSS logic or simply alias them if HTML isn't changed everywhere yet. 
     But I plan to update the HTML to be cleaner. */
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 173px;
  height: 40px;
  padding: 0 8px 0 28px;
  background: #287FF2;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 300;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-demo-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 127, 242, 0.4);
}

.btn-secondary {
  height: 40px;
  min-width: 173px;
  padding: 0 20px;
}

.navbar.scrolled .nav-links a,
.navbar.scrolled .logo,
.navbar.scrolled .lang-link,
.navbar.scrolled .menu-toggle {
  color: #333;
}

.logo-img {
  height: 32px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 300;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: saturate(100%) blur(2px);
  z-index: 1190;
}

.nav-drawer {
  position: fixed;
  top: -1000px !important;
  /* Move far off-screen */
  left: 0;
  height: min(85vw, 370px);
  width: 100%;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(0);
  /* Reset transform */
  transition: top 0.3s ease, opacity 0.3s ease;
  z-index: 1200;
  display: none !important;
  /* Hide on desktop */
  flex-direction: column;
  border-radius: 0 0 20px 20px;
  padding-top: 80px;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.nav-drawer.open {
  display: flex !important;
  top: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.drawer-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid #eef2f7;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
}

.drawer-logo {
  height: 26px;
  width: auto;
}

.drawer-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.drawer-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  text-decoration: none;
  background: #f2f4f7;
  color: #333;
  padding: 14px 12px 14px 14px;
  border-radius: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .navbar {
    justify-content: center;
    padding: 0.8rem 1rem;
    min-height: 70px;
  }

  .logo {
    display: flex;
    align-items: center;
    margin: 0 auto;
    z-index: 10;
  }

  .menu-toggle {
    display: inline-flex;
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    padding: 8px;
  }

  .nav-links,
  .nav-actions {
    display: none !important;
  }

  .nav-drawer {
    display: flex;
    /* Show on mobile */
  }

  /* Stylized demo item in drawer */
  .drawer-item-demo {
    background: var(--primary-blue) !important;
    color: #ffffff !important;
    margin-top: 10px;
  }

  .drawer-item-demo .drawer-arrow {
    color: #ffffff !important;
  }
}

/* Footer Styles */
.footer {
  background: #101E41;
  color: #fff;
  padding: 100px 40px 80px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  width: 130px;
  margin-bottom: 5px;
}

.footer-tagline {
  color: #9ba4c5;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

.footer-copy {
  color: #5c668b;
  font-size: 0.8rem;
  margin-top: 10px;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.footer-label {
  color: #9ba4c5;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-blue);
}

.footer-subscribe {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.subscribe-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  overflow: hidden;
  height: 50px;
  padding-right: 5px;
}

.subscribe-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0 20px;
  font-size: 0.9rem;
}

.subscribe-box input::placeholder {
  color: #5c668b;
}

.subscribe-box input:focus {
  outline: none;
}

.subscribe-btn {
  width: 44px;
  height: 44px;
  background: var(--primary-blue) url("/assets/botonmini.svg") center/contain no-repeat;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.subscribe-btn:hover {
  background-color: var(--primary-blue-hover);
  transform: scale(1.05);
}

.footer-legal {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.75rem;
}

.footer-legal a {
  color: #5c668b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #9ba4c5;
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 60px 40px;
  }

  .footer-subscribe {
    grid-column: span 2;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 24px 40px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 40px;
  }

  .footer-subscribe {
    grid-column: span 1;
  }
}

.banner-btn {
  display: inline-block;
  transition: var(--transition-smooth);
  text-decoration: none;
  margin-top: 2rem;
}

.banner-btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 20px rgba(45, 116, 231, 0.3));
}

.banner-svg-btn {
  height: 60px;
  width: auto;
  display: block;
}

/* Specific fix for flag text in scrolled navbar on light pages */
.navbar.scrolled.light-page .lang-link {
  color: #333 !important;
}