/* :root {
  --primary-blue: #0084ff;
  --primary-blue: #0066cc;

  --light-blue: #e6f3ff;
  --dark-blue: #005bb5;

  --black: #1a1a2e;
  --gray: #4a4a68;
  --gray-accessible: #5c5c5c;
  --light-gray: #f5f7fa;
  --white: #ffffff;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --focus-outline: 3px solid rgba(0, 132, 255, 0.5);
  --focus-offset: 2px;
} */

:root {
  --primary-blue: #0066cc;
  --light-blue: #e6f3ff;
  /* --dark-blue: #005bb5; */
  --dark-blue: #004a99;

  --black: #1a1a2e;
  --gray: #5c5c5c;
  --gray-accessible: #5c5c5c;
  --light-gray: #f5f7fa;
  --white: #ffffff;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --focus-outline: 3px solid rgba(0, 132, 255, 0.5);
  --ca-primary: #60bffb;
  --ca-primary-dark: color-mix(in srgb, var(--ca-primary) 80%, black);
  --focus-offset: 2px;
}

html {
  max-width: 100vw;
  overflow-x: hidden;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  color: var(--black);
  line-height: 1.6;
  background-color: var(--light-gray);
  overflow-x: hidden;
  word-wrap: break-word;
}
* {
  box-sizing: border-box;
}
*:before,
*:after {
  box-sizing: border-box;
}
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}
.skip-link:focus {
  position: fixed !important;
  left: 10px !important;
  top: 10px !important;
  width: auto !important;
  height: auto !important;
  padding: 10px 15px;
  background-color: var(--white);
  color: var(--primary-blue);
  font-weight: 600;
  border: 2px solid var(--primary-blue);
  border-radius: var(--border-radius);
  z-index: 9999;
  overflow: visible;
  clip: auto;
}
.cmplink,
.container > p,
.monthly,
#text-tab,
#voice-tab,
.messenger-icon.integration-carousel-item:nth-child(3) > span {
  color: var(--gray-accessible);
}
.integration-carousel-item span,
.toggle-label {
  color: var(--gray-accessible) !important;
}
.nav-buttons .btn-outline,
.mobile-menu-buttons .btn-outline {
  border-color: var(--primary-blue) !important;
  color: var(--primary-blue) !important;
  background-color: transparent !important;
}
.nav-buttons .btn,
.mobile-menu-buttons .btn,
.hero-buttons .btn,
.btn[aria-label="Explore all integrations"],
.pricing-btn.btn {
  background-color: var(--dark-blue) !important;
  color: var(--white) !important;
  border-color: var(--dark-blue) !important;
}
.hero-badge {
  background-color: var(--dark-blue) !important;
  color: var(--white) !important;
}
.desktop-text,
.mobile-text {
  color: var(--white) !important;
}
.chat-title h2,
.chat-title p,
.mobile-chat-title h2,
.mobile-chat-title p {
  color: var(--black) !important;
  font-weight: 500 !important;
}
.user-message.chat-message,
.mobile-user-message.mobile-chat-message,
.bot-message-text,
.mobile-bot-message-text {
  color: var(--black) !important;
}
.sources-title {
  color: var(--gray-accessible) !important;
  font-weight: 600 !important;
}
.mobile-call-title,
.mobile-call-status,
.mobile-call-duration {
  color: var(--white) !important;
}
#text-tab.active,
.toggle-btn.active {
  background-color: var(--dark-blue) !important;
  color: var(--white) !important;
}
.pricing-period,
.pricing-features li {
  color: var(--gray-accessible) !important;
}
.pricing-card p {
  color: var(--gray-accessible) !important;
  font-weight: 500 !important;
}
.mobile-call-title,
.mobile-call-status,
.mobile-call-duration {
  color: var(--white) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.btn:not(.btn-outline),
.pricing-btn.btn:not(.btn-outline),
.cta-btn {
  color: var(--white) !important;
  background-color: var(--primary-blue) !important;
}
.btn-outline,
.pricing-btn.btn-outline {
  color: var(--primary-blue) !important;
  background-color: var(--white) !important;
  border: 2px solid var(--primary-blue) !important;
}
.mobile-call-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin: 0.5rem 0;
  text-align: center;
}
.category-content h3,
.showcase-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0 1rem 0;
  color: inherit;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.chat-body:focus,
.mobile-chat-body:focus {
  outline: var(--focus-outline) !important;
  outline-offset: var(--focus-offset) !important;
}
.chat-send-btn:focus,
.mobile-chat-send-btn:focus,
.toggle-label:focus,
a[role="button"]:focus {
  outline: var(--focus-outline) !important;
  outline-offset: var(--focus-offset) !important;
}
.chat-send-btn:hover,
.mobile-chat-send-btn:hover {
  background-color: var(--dark-blue) !important;
  color: var(--white) !important;
  cursor: pointer;
}
.toggle-label:hover {
  opacity: 0.8;
  cursor: pointer;
}
.toggle-label[aria-pressed="true"] {
  background-color: var(--primary-blue) !important;
  color: var(--white) !important;
}
.nav-buttons .btn-outline:hover,
.mobile-menu-buttons .btn-outline:hover {
  background-color: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
  color: var(--white) !important;
}
.nav-buttons .btn:hover,
.mobile-menu-buttons .btn:hover,
.hero-buttons .btn:hover,
.btn[aria-label="Explore all integrations"]:hover,
.pricing-btn.btn:hover {
  background-color: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
}
.btn-outline:hover,
.pricing-btn.btn-outline:hover {
  color: var(--white) !important;
  background-color: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
}
.cta p {
  color: var(--black) !important;
  font-weight: 500;
}
.hero-description {
  color: var(--black) !important;
  font-weight: 400;
}
.cta {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
}
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e6f3ff" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  z-index: 0;
}
.cta .container {
  position: relative;
  z-index: 1;
}
.cta h2 {
  color: var(--black) !important;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}
.cta-btn {
  display: inline-block !important;
  padding: 18px 36px !important;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--dark-blue) 100%
  ) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  box-shadow: 0 8px 25px rgba(0, 132, 255, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  margin-top: 32px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}
.cta-btn:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 35px rgba(0, 132, 255, 0.4) !important;
  color: var(--white) !important;
}
.cta-btn:active {
  transform: translateY(-1px) scale(0.98) !important;
  box-shadow: 0 6px 20px rgba(0, 132, 255, 0.3) !important;
}
.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}
.cta-btn:hover::before {
  left: 100%;
}
@media (max-width: 768px) {
  .cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .cta-btn {
    padding: 16px 32px !important;
    font-size: 1rem !important;
    border-radius: 40px !important;
  }
}
@media (max-width: 480px) {
  .cta h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }
  .cta-btn {
    padding: 14px 28px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    max-width: 280px !important;
  }
}
.last-updated {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--light-blue);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--dark-blue);
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}
.btn:hover {
  background-color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 132, 255, 0.2);
  color: var(--white);
}
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}
.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}
.section {
  padding: 80px 0;
}

/* header */
/* elimine la altura fija ya que te obliga a hacer hacks para arreglar los problemas despues */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 0;
  /* height: 132px; */
  min-height: 80px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.header.scrolled {
  /* height: 90px; */
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}
.header.scrolled .logo img {
  height: auto;
  width: auto;
  max-height: 65px;
  max-width: 180px;
}

/* nav */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0 5px;
}

/*  logo */
.logo {
  display: flex;
  align-items: center;
  padding: 5px 0;
  overflow: visible;
  position: relative;
  z-index: 1001;
  /* max-width: 280px; */
  flex-shrink: 0;
}
.logo img {
  height: auto;
  width: auto;
  max-height: 80px;
  max-width: 260px;
  /* margin-top: 10px;
  margin-bottom: 10px; */
  transition: all 0.3s ease;
}
.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  margin-left: 8px;
}
/* NAV LINKS */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  color: var(--black);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: var(--primary-blue);
}
.nav-links a:hover::after {
  width: 100%;
}

/* ---------- Dropdown base ---------- */

.nav-item.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
}

.dropdown-toggle:hover {
  color: var(--primary-blue);
}

.dropdown-toggle i {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

/* rotación del chevron cuando está abierto */
.nav-item.has-dropdown[aria-expanded="true"] .dropdown-toggle i,
.nav-item.has-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

/* ---------- Menu ---------- */

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  list-style: none;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 1000;
}
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(12px);
}

/* mostrar dropdown */
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Items ---------- */

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background-color: var(--light-blue);
  color: var(--primary-blue);
}

/* elimina el underline animado dentro del dropdown */
.dropdown-menu li a::after {
  display: none;
}

/* nav buttons */
/* .nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-buttons .btn {
  margin-left: 0;
  padding: 8px 16px;
  font-size: 0.9rem;
} */
/* BUTTONS */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* .nav-buttons .btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
} */
.nav-buttons .btn-outline {
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
}
.nav-buttons .btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}
.nav-buttons .btn {
  background: var(--primary-blue);
  color: var(--white);
}
.nav-buttons .btn:hover {
  background: var(--primary-dark);
} /* LANGUAGE SELECTOR */
.language-selector {
  position: relative;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  /* font-weight: 500; */
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
}
.language-selector.open .lang-dropdown {
  display: block;
} /* MOBILE */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.language-selector {
  position: relative;
  /* margin-left: 8px; */
  flex-shrink: 0;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  height: auto !important;
  width: auto !important;
  overflow: visible !important;
}
.lang-toggle {
  display: flex !important;
  align-items: center;
  gap: 6px;
  /* background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 132, 255, 0.3);
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 0.85rem; */
  /* font-weight: 500; */
  /* color: var(--black); */
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: auto;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 10;
  height: auto !important;
  width: auto !important;
  overflow: visible !important;
}
.lang-toggle,
.lang-toggle > *,
.current-flag,
.current-lang,
.fas.fa-chevron-down {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline !important;
}
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  opacity: 0;
  visibility: hidden;
  display: none;
  z-index: 3000;
  pointer-events: none;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.25s ease;
}
.lang-dropdown.active,
.lang-dropdown.show {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
  z-index: 4002 !important;
  overflow: visible !important;
}
/* .lang-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0, 132, 255, 0.2);
}
.lang-toggle:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.2);
} */
.flag-icon {
  font-size: 1rem;
  line-height: 1;
}
.current-flag {
  font-size: 1.1rem;
}
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid rgba(0, 132, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 4px;
  list-style: none;
  padding: 4px;
}
.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 4px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-option:hover {
  background: var(--light-blue);
  color: var(--primary-blue);
}
.lang-option:focus {
  outline: none;
  background: var(--light-blue);
  color: var(--primary-blue);
}
.lang-name {
  font-weight: 500;
}
@media (max-width: 1200px) {
  .lang-toggle {
    font-size: 0.8rem;
    padding: 3px 6px;
    gap: 4px;
  }
  .flag-icon {
    font-size: 0.9rem;
  }
  .current-flag {
    font-size: 1rem;
  }
  .lang-dropdown {
    min-width: 120px;
  }
  .lang-option {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}
@media (max-width: 1024px) {
  .language-selector {
    margin-left: 5px;
  }
  .lang-toggle {
    font-size: 0.75rem;
    padding: 2px 5px;
    gap: 3px;
  }
  .flag-icon {
    font-size: 0.8rem;
  }
  .current-flag {
    font-size: 0.9rem;
  }
  .lang-dropdown {
    min-width: 110px;
  }
  .lang-option {
    padding: 5px 8px;
    font-size: 0.75rem;
    gap: 6px;
  }
}

/* Header buttons + language pill to match provided design */
.nav-buttons .btn,
.nav-buttons .btn-outline {
  border-radius: 9999px;
  padding: 10px 18px;
  font-weight: 700;
}

.nav-buttons .btn-outline {
  background-color: #ffffff;
  border-width: 1.5px;
}

/* Ensure selector and dropdown stay on top of the header */
.language-selector {
  position: relative;
  z-index: 4001 !important;
}

.language-selector .lang-dropdown {
  z-index: 4002 !important;
}

/* .language-selector .lang-toggle {
      background: #eaf4ff;
      border-color: rgba(0, 132, 255, 0.25);
    } */

/* Make emoji flags always visible and not clipped */
.language-selector .flag-icon,
.language-selector .current-flag {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 18px !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  background: rgba(0, 132, 255, 0.12);
  border-radius: 9999px;
  padding: 2px 6px;
  font-family:
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui,
    sans-serif;
}

/* Mobile language selector inside burger menu */
@media (max-width: 900px) {
  .nav .language-selector {
    display: none !important;
  }
}

.mobile-language {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-language-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.mobile-language-options {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
}

.mobile-language-options .lang-option {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 132, 255, 0.25);
  background: #eaf4ff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.mobile-language-options .lang-option .flag-icon img {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: block;
}

.mobile-language-options .lang-option.is-active {
  background: #1e63d6;
  color: #ffffff;
  border-color: #1e63d6;
}

@media (max-width: 380px) {
  .mobile-language-options {
    flex-wrap: wrap;
  }
}

/* Language Selector Unified Styles - Improved Design and Usability */

/* Base container with improved positioning */
.language-selector {
  position: relative;
  display: inline-block;
  /* margin-left: 12px; */
  flex-shrink: 0;
  /* Ensure visibility across all contexts */
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  height: auto !important;
  width: auto !important;
  overflow: visible !important;
  z-index: 100;
}

/* elimine en language switch de nav buttons ya que compite con los botones importantes para la conversion como el boton de sign up */
.lang-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px;
  /* background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 132, 255, 0.2); */
  /* border-radius: 24px;
  padding: 8px 16px; */
  /* font-size: 14px;
  font-weight: 600;
  color: #1a1a1a; */
  color: var(--black);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* min-width: 80px; */
  justify-content: center;
  /* box-shadow: 0 2px 8px rgba(0, 132, 255, 0.1); */
  /* Ensure visibility */
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 101;
  height: auto !important;
  width: auto !important;
  overflow: visible !important;
}

/* Enhanced hover and focus states */
/* .lang-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 132, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 132, 255, 0.2);
  transform: translateY(-1px);
} */

/* .lang-toggle:focus {
  outline: none;
  border-color: rgba(0, 132, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.2);
}

.lang-toggle:focus-visible {
  outline: 2px solid #0084ff;
  outline-offset: 2px;
} */

.lang-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 132, 255, 0.2);
}

/* Current language styling */
.current-lang {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--black);
}

/* Enhanced flag styling with better visual hierarchy */
.flag-icon {
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 132, 255, 0.05);
  transition: all 0.2s ease;
  font-family:
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui,
    sans-serif;
}
/* PNG flag sizing (dropdown items) */
.flag-icon img {
  /* width: 16px;
  height: 16px; */
  display: block;
  object-fit: contain;
  border-radius: 2px;
}

/* PNG flag sizing (toggle pill) */
.lang-toggle .current-flag img {
  width: 18px;
  height: 18px;
}

/* Code label next to flag (EN/IT/DE/ES) */
.lang-option .lang-name {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.current-flag {
  background: rgba(0, 132, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 132, 255, 0.2);
}

/* Chevron animation */
.lang-toggle .fa-chevron-down {
  transition: transform 0.3s ease;
  font-size: 12px;
  color: #0084ff;
}

.lang-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

/* Enhanced dropdown with modern design */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 132, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3000;
  overflow: visible;
  padding: 8px;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Enhanced language options */
.lang-dropdown .lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.lang-dropdown .lang-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 132, 255, 0.1),
    rgba(0, 132, 255, 0.05)
  );
  transition: width 0.3s ease;
  z-index: -1;
}

.lang-dropdown .lang-option:hover::before {
  width: 100%;
}

.lang-dropdown .lang-option:hover,
.lang-dropdown .lang-option:focus {
  background: rgba(0, 132, 255, 0.08);
  transform: translateX(4px);
}

.lang-dropdown .lang-option:focus-visible {
  outline: 2px solid #0084ff;
  outline-offset: -2px;
}

.lang-dropdown .lang-option.active {
  background: linear-gradient(
    135deg,
    rgba(0, 132, 255, 0.15),
    rgba(0, 132, 255, 0.08)
  );
  color: #0084ff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 132, 255, 0.15);
}

.lang-dropdown .lang-option.active .flag-icon {
  background: rgba(0, 132, 255, 0.15);
  box-shadow: 0 2px 4px rgba(0, 132, 255, 0.3);
}

/* Language name styling */
.lang-name {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .language-selector {
    margin-left: 0;
    margin-top: 8px;
    position: absolute;
    top: 12px;
    right: 70px;
    z-index: 100;
  }

  .lang-toggle {
    padding: 10px 16px;
    font-size: 15px;
    min-width: 90px;
    border-radius: 26px;
  }

  .flag-icon {
    font-size: 20px;
    width: 28px;
    height: 28px;
  }

  .lang-dropdown {
    min-width: 200px;
    right: -20px;
  }

  .lang-dropdown .lang-option {
    padding: 14px 18px;
    font-size: 15px;
  }
}

/* Header scrolled state adaptation */
/* .header.scrolled .lang-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
} */

/* .header.scrolled .lang-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 132, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 132, 255, 0.15);
} */

/* .header.scrolled .current-lang {
  color: #0084ff;
} */

.header.scrolled .flag-icon {
  background: rgba(0, 132, 255, 0.08);
}

/* Dark mode support */
/* @media (prefers-color-scheme: dark) {
  .lang-toggle {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(0, 132, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .lang-toggle:hover {
    background: rgba(40, 40, 40, 0.98);
    border-color: rgba(0, 132, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 132, 255, 0.2);
  }

  .current-lang {
    color: #4da6ff;
  }

  .flag-icon {
    background: rgba(0, 132, 255, 0.15);
  }

  .current-flag {
    background: rgba(0, 132, 255, 0.25);
  }

  .lang-dropdown {
    background: rgba(30, 30, 30, 0.98);
    border-color: rgba(0, 132, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  .lang-dropdown .lang-option {
    color: #ffffff;
  }

  .lang-dropdown .lang-option:hover,
  .lang-dropdown .lang-option:focus {
    background: rgba(0, 132, 255, 0.15);
  }

  .lang-dropdown .lang-option.active {
    background: linear-gradient(
      135deg,
      rgba(0, 132, 255, 0.25),
      rgba(0, 132, 255, 0.15)
    );
    color: #4da6ff;
  }
} */

/* High contrast mode support */
@media (prefers-contrast: high) {
  .lang-toggle {
    border-width: 3px;
    border-color: #000000;
  }

  .lang-dropdown {
    border: 2px solid #000000;
  }

  .lang-dropdown .lang-option:focus-visible {
    outline: 3px solid #0084ff;
    outline-offset: -3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .lang-toggle,
  .lang-dropdown .lang-option,
  .lang-dropdown,
  .flag-icon,
  .lang-toggle .fa-chevron-down {
    transition: none;
  }

  .lang-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: none;
  }
}

/* Focus management for accessibility */
.lang-dropdown .lang-option:focus {
  outline: 2px solid #0084ff;
  outline-offset: -2px;
}

/* Mobile menu language selector */
.mobile-menu .language-selector {
  margin: 20px 0;
  text-align: center;
  position: relative;
  top: auto;
  right: auto;
}

.mobile-menu .lang-toggle {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.mobile-menu .lang-dropdown {
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
}

.mobile-menu .lang-dropdown.show {
  transform: translateX(-50%) translateY(0);
}

/* Loading state with enhanced animation */
.lang-toggle.loading {
  opacity: 0.7;
  pointer-events: none;
}

.lang-toggle.loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top: 2px solid #0084ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* RTL support */
[dir="rtl"] .language-selector {
  margin-left: 0;
  margin-right: 12px;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .mobile-menu .lang-dropdown {
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
}

[dir="rtl"] .mobile-menu .lang-dropdown.show {
  transform: translateX(-50%) translateY(0);
}

[dir="rtl"] .lang-dropdown .lang-option:hover,
[dir="rtl"] .lang-dropdown .lang-option:focus {
  transform: translateX(-4px);
}

/* Print styles */
@media print {
  .language-selector {
    display: none !important;
  }
}

/* Enhanced animation for dropdown appearance */
.lang-dropdown.show {
  animation: dropdownAppear 0.3s ease-out;
}

@keyframes dropdownAppear {
  0% {
    opacity: 0;
    transform: translateY(-15px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tooltip for language names on hover (optional enhancement) */
.lang-option .lang-name {
  position: relative;
}

/* tooltip disabilitato */

/* tooltip disabilitato */

/* Performance optimizations */
.language-selector {
  will-change: transform;
  contain: layout style;
}

.lang-dropdown {
  will-change: transform, opacity;
  contain: layout style paint;
}

/* Enhanced keyboard navigation */
.lang-dropdown .lang-option:not(:disabled):not([aria-disabled="true"]) {
  cursor: pointer;
}

.lang-dropdown .lang-option:disabled,
.lang-dropdown .lang-option[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Screen reader only text for better accessibility */
.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;
}

/* ------------------------------------------------------------
   Performance overrides (mobile-focused)
   Goal: improve FCP/LCP and reduce expensive paints on mobile
   without changing desktop styling or site content.
------------------------------------------------------------ */

/* Avoid permanent will-change (can increase memory/GPU usage). */
.language-selector {
  will-change: auto;
}
.lang-dropdown {
  will-change: auto;
}

/* Mobile: disable costly backdrop-filter blur (expensive on mobile GPUs). */
@media (max-width: 768px) {
  .lang-toggle,
  .lang-dropdown {
    backdrop-filter: none !important;
  }
}

/* Mobile: reduce motion/animations and heavy transitions (smoother on low-end devices). */
@media (max-width: 768px) {
  .lang-dropdown.show {
    animation: none !important;
  }
  .lang-toggle,
  .lang-dropdown,
  .lang-dropdown .lang-option,
  .flag-icon,
  .lang-toggle .fa-chevron-down {
    transition: none !important;
  }
  /* Hover transforms don't help on touch devices and can trigger extra paints. */
  .lang-dropdown .lang-option:hover,
  .lang-dropdown .lang-option:focus {
    transform: none !important;
  }
}

.footer {
  background-color: var(--black);
  color: var(--white);
  padding: 80px 0 30px;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.footer-logo {
  margin-bottom: 20px;
  height: 120px;
  width: 100px;
  display: flex;
  animation: c;
  align-items: center;
  justify-content: center;
}
.footer-logo img {
  /* height: 140px; */
  height: auto !important;
  filter: brightness(0) invert(1);
}
.footer-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}
.social-link:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}
.footer-title {
  font-size: 1.25rem;
  margin-bottom: 25px;
  color: var(--white);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--white);
}
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}
.footer-bottom-links a:hover {
  color: var(--white);
}

.copyright {
  margin: 0;
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 80px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  background: linear-gradient(
    135deg,
    #60bffb,
    color-mix(in srgb, #60bffb 80%, black)
  );
  border: none;
  border-radius: 100px;
  cursor: pointer;
  width: 55px;
  height: 55px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: 0.2s !important;
  display: flex;
  justify-content: center;
  align-items: center;
  border: solid 2px white;
}
.back-to-top i {
  font-size: 30px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  /* background: var(--dark-blue); */
  transform: translateY(-2px) scale(1.04);
}

.hide-bottom-right {
  position: fixed;
  bottom: 16px;
  right: 100px;

  background: linear-gradient(
    135deg,
    #60bffb,
    color-mix(in srgb, #60bffb 80%, black)
  );
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;

  height: 55px;
  width: 55px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

  display: flex;
  justify-content: center;
  align-items: center;
  border: solid 2px white;
}

.hide-bottom-right.visible {
  opacity: 1;
  visibility: visible;
}
.hide-bottom-right i {
  font-size: 30px;
}
.hide-bottom-right:hover {
  /* background: var(--dark-blue); */
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 480px) {
  .back-to-top {
    display: none;
  }

  .hide-bottom-right {
    bottom: 145px;
    right: 24px;
    height: 40px;
    width: 40px;
  }
}

/* Estado visible normal */
.back-to-top,
#snn-accessibility-fixed-button,
#ca-fab {
  transition:
    bottom 0.4s ease,
    right 0.4s ease,
    opacity 0.3s ease;
}

/* Estado oculto animado */
.hide-animated {
  bottom: 16px !important;
  right: 16px !important;
  opacity: 0 !important;
  pointer-events: none;
}

.hide-bottom-right.is-hidden {
  right: 16px;
  bottom: 16px;
}

.hide-bottom-right i {
  transition: transform 0.4s ease;
}

/* rotación al esconder */
.hide-bottom-right.is-hidden i {
  transform: rotate(180deg);
}

#ca-fab-placeholder {
  position: fixed;
  bottom: 24px;
  right: 24px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    #60bffb,
    color-mix(in srgb, #60bffb 80%, black)
  ) !important;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 60px;

  transition: var(--ca-transition);
  z-index: 9998;
  overflow: hidden;
}

@media (max-width: 480px) {
  #ca-fab-placeholder {
    bottom: 16px;
    right: 16px;
    height: 55px;
    width: 55px;
  }
}

#ca-fab-placeholder i {
  font-size: 30px;
  color: var(--white);
  animation: rotar 3.5s linear;
}

@keyframes rotar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
    display: none;
  }
}

@media (min-width: 1200px) {
  .hide-bottom-right {
    display: none;
  }
  .back-to-top {
    
    left: 16px;
  }
}

.cookie-consent {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 960px;
  margin: 0 auto;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  z-index: 99999;
}

.cookie-consent__content {
  display: flex;
  gap: 24px;
  padding: 20px 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-consent__text {
  max-width: 600px;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-consent__links {
  margin-top: 6px;
  font-size: 13px;
}

.cookie-consent__links a {
  color: #93c5fd;
  text-decoration: none;
}

.cookie-consent__links a:hover {
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 12px;
}

.cookie-consent__content .btn {
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.cookie-consent__content .btn-primary {
  background: #2563eb;
  color: #fff;
}

.cookie-consent__content .btn-primary:hover {
  background: #1d4ed8;
}

.cookie-consent__content .btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid #334155;
}

.btn-secondary:hover {
  background: #020617;
}

body.legal-page .cookie-consent {
  position: fixed;

  bottom: 0;
  left: 0;
  right: 0;

  max-width: none;
  margin: 0;

  border-radius: 0;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: none;

  background: #020617; /* más oscuro, menos contraste */

  max-width: 1200px;
  margin: auto;
}

body.legal-page .cookie-consent__links {
  display: none;
}
body.legal-page .cookie-consent__content {
  padding: 12px 16px;
  gap: 16px;
}

body.legal-page .btn {
  padding: 8px 12px;
  font-size: 13px;
}

body.legal-page #cookie-settings {
  display: none;
}
