:root {
  --blue: #1b64c8;
  --blue-dk: #1450a8;
  --blue-xdk: #0a2a5e;
  --blue-md: #3d7fd4;
  --blue-lt: #85b7eb;
  --white: #ffffff;
  --gray-bg: #f5f5f5;
  --gray-lt: #e2e2e2;
  --gray-mid: #999999;
  --gray-dk: #2a2a2a;
  --wa-green: #25d366;
  --li-blue: #0a66c2;
  --display: "Montserrat", sans-serif;
  --body: "Montserrat", sans-serif;
  --serif: "Crimson Pro", Georgia, serif;
  --mono: "IBM Plex Mono", monospace;
  --area-bg: #f0ede6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Montserrat", sans-serif;
  background: var(--gray-bg);
  color: var(--gray-dk);
  overflow-x: hidden;
  padding-top: 108px;
}

/* Admin bar activo: WP suma margin-top al html (32px desktop, 46px móvil),
   se descuenta del padding para que no haya espacio en blanco extra. */
body.admin-bar {
  padding-top: calc(108px - 66px);
}
/* ══════════════════════════════════════
   TOPBAR
══════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--blue-xdk);
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 80px;
  gap: 18px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-spacer {
  flex: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.topbar-link-text {
  white-space: nowrap;
}

.topbar-link:hover {
  color: #fff;
}

.topbar-link-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 1px;
  color: #fff;
  background: transparent;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;
}

.topbar-btn:hover {
  transform: translateY(-1px);
}

.topbar-btn-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.topbar-btn--wa {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.topbar-btn--wa:hover {
  background: var(--wa-green);
  border-color: var(--wa-green);
}

.topbar-btn--li {
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.topbar-btn--li:hover {
  background: var(--li-blue);
  border-color: var(--li-blue);
}

.topbar-btn-label--long {
  display: inline;
}

.topbar-btn-label--short {
  display: none;
}

/* ══════════════════════════════════════
   NAV — siempre sólido azul
══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  background: var(--blue);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  transition:
    background 0.35s,
    box-shadow 0.35s;
}

.nav.transparent {
  background: transparent;
  box-shadow: none;
}

.nav.solid {
  background: var(--blue);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
}

.nav-mobile-menu {
  display: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links li a {
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
}

.nav.transparent .nav-links li a {
  color: rgba(255, 255, 255, 0.8);
}

.nav.transparent .nav-links li a:hover,
.nav.transparent .nav-links li a.active {
  color: #fff;
}

.nav.solid .nav-links li a {
  color: #fff;
}

.nav.solid .nav-links li a:hover,
.nav.solid .nav-links li a.active {
  color: var(--blue-lt);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color 0.2s;
}

.nav-dropdown-toggle .arrow {
  font-size: 9px;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle .arrow {
  transform: rotate(180deg);
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 18px;
  background: transparent;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  background: var(--blue-xdk);
  min-width: 220px;
  padding: 6px 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  visibility: hidden;
}

/* Hover para desktop (mantiene comportamiento tradicional) */
@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }
}

/* Estado abierto controlado por JavaScript — usar clase (ÚLTIMO para mayor especificidad) */
.nav-dropdown-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition:
    background 0.15s,
    color 0.15s;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-dropdown-item.active {
  color: #fff;
  background: rgba(27, 100, 200, 0.5);
}

.nav-dropdown-item-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-lt);
  flex-shrink: 0;
}

.nav-cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 1px;
  color: var(--blue);
  background: #fff;
  border: 1.5px solid #fff;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.88);
}

.nav.transparent .nav-cta {
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.nav.transparent .nav-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.nav.solid .nav-cta {
  color: var(--blue);
  background: #fff;
  border: 1.5px solid #fff;
}

.nav.solid .nav-cta:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Global buttons */
.solid-btn {
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  border: 1.5px solid var(--blue);
  cursor: pointer;
  height: 40px;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.solid-btn:hover {
  background: white;
  border-color: var(--blue);
}
.solid-btn:hover .solid-btn-label {
  color: var(--blue);
}
.solid-btn:hover .solid-btn-div {
  background: rgba(21, 101, 200, 0.3);
}
.solid-btn:hover .solid-btn-arrow {
  color: var(--blue);
}
.solid-btn-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  color: white;
  padding: 0 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.solid-btn-div {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.2s;
}
.solid-btn-arrow {
  font-size: 14px;
  color: white;
  padding: 0 14px;
  transition: color 0.2s;
}

.split-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 1.5px solid var(--blue);
  cursor: pointer;
  height: 38px;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.split-btn:hover {
  background: var(--blue);
}
.split-btn:hover .split-btn-label {
  color: white;
}
.split-btn:hover .split-btn-div {
  background: rgba(255, 255, 255, 0.4);
}
.split-btn:hover .split-btn-arrow {
  color: white;
}
.split-btn-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-xdk);
  padding: 0 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.split-btn-div {
  width: 1.5px;
  height: 20px;
  background: var(--blue);
  transition: background 0.2s;
}
.split-btn-arrow {
  font-size: 13px;
  color: var(--blue);
  padding: 0 14px;
  transition: color 0.2s;
}

/* Footer */
.footer {
  display: block;
  position: relative;
  background: white;
  border-top: 2px solid var(--blue);
}
.footer-inner {
  margin: 0 auto;
  padding: 0 80px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 52px 0 44px;
  position: relative;
}
.footer-decor-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--blue);
  opacity: 0.7;
}
.footer-decor-2 {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 10px;
  height: 10px;
  background: var(--blue-lt);
  opacity: 0.5;
}
.footer-logo-wrap {
  position: absolute;
  top: 52px;
}
.footer-col-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--blue-xdk);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--blue);
}
.footer-col-link {
  font-size: 13px;
  color: #888;
  font-weight: 400;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 0.5px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}
.footer-col-link:hover {
  color: var(--blue);
}
.footer-col-link:last-child {
  border-bottom: none;
}
.footer-col-link-arrow {
  font-size: 12px;
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.2s;
}
.footer-col-link:hover .footer-col-link-arrow {
  opacity: 1;
}
.footer-col-link-cta {
  color: var(--blue);
  font-weight: 500;
}
.footer-col-link-cta:hover {
  color: var(--blue-dk);
}
.footer-bottom {
  border-top: 0.5px solid var(--gray-lt);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 11px;
  color: #aaa;
  font-weight: 300;
}
.footer-legal-links {
  display: flex;
  gap: 20px;
}
.footer-legal-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal-link:hover {
  color: var(--blue);
}

/* FAB WhatsApp */
.fab {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--wa-green);
  height: 44px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.2);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.fab:hover {
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}
.fab-icon-wrap {
  width: 44px;
  height: 100%;
  background: var(--wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.fab:hover .fab-icon-wrap {
  background: #1da851;
}
.fab-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.fab-label {
  font-family: "Jost", sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: var(--blue-xdk);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 18px;
}
.fab-decor-1 {
  position: fixed;
  bottom: 94px;
  right: 36px;
  width: 10px;
  height: 10px;
  background: var(--wa-green);
  opacity: 0.4;
  pointer-events: none;
  z-index: 9998;
}
.fab-decor-2 {
  position: fixed;
  bottom: 106px;
  right: 50px;
  width: 7px;
  height: 7px;
  background: #fff;
  border: 1px solid var(--gray-lt);
  opacity: 0.7;
  pointer-events: none;
  z-index: 9998;
}

/* Global responsive rules */
@media (max-width: 1179px) {
  .footer-inner {
    padding: 0 32px;
  }
  .footer-logo-wrap {
    left: 32px;
  }
  .nav {
    padding: 0 32px;
  }
  .topbar {
    padding: 0 32px;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 88px;
  }

  .topbar {
    padding: 0 16px;
    gap: 8px;
    height: 32px;
  }

  .topbar-left {
    gap: 8px;
  }

  .topbar-link {
    font-size: 10px;
  }

  .topbar-link:nth-child(3) {
    display: none;
  }

  .topbar-sep {
    display: none;
  }

  .topbar-spacer {
    flex: 1;
  }

  .topbar-right {
    gap: 6px;
  }

  .topbar-btn {
    padding: 0 8px;
    font-size: 9px;
    gap: 4px;
    height: 20px;
  }

  .topbar-btn-icon {
    width: 10px;
    height: 10px;
  }

  .nav {
    top: 32px;
    padding: 0 16px;
    height: 56px;
  }

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

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
  }

  .nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  .nav-right {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-dropdown {
    display: none;
  }

  .nav-mobile-menu {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--blue-xdk);
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .nav-mobile-menu--open {
    max-height: 500px;
  }

  .nav-mobile-link {
    padding: 16px 20px;
    font-family: "Jost", sans-serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition:
      background 0.2s,
      color 0.2s;
  }

  .nav-mobile-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .nav-mobile-dropdown-toggle {
    width: 100%;
    padding: 16px 20px;
    font-family: "Jost", sans-serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-align: left;
    transition:
      background 0.2s,
      color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-mobile-dropdown-toggle::after {
    content: "▾";
    font-size: 9px;
    transition: transform 0.2s;
  }

  .nav-mobile-dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  .nav-mobile-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .nav-mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .nav-mobile-dropdown-menu--open {
    max-height: 300px;
  }

  .nav-mobile-dropdown-link {
    display: block;
    padding: 12px 20px 12px 40px;
    font-family: "Jost", sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition:
      background 0.2s,
      color 0.2s;
  }

  .nav-mobile-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .footer-inner {
    padding: 0 20px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 24px;
  }
  .footer-logo-wrap {
    position: static;
    left: auto;
    top: auto;
    margin-bottom: 14px;
  }
  .footer-logo-wrap svg {
    width: 80px;
    height: 80px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 599px) {
  .topbar-btn-label--long {
    display: none;
  }
  .topbar-btn-label--short {
    display: inline;
  }
  .nav {
    padding: 0 16px;
  }
  .fab {
    bottom: 20px;
    right: 16px;
  }
}

@media (max-width: 400px) {
  .topbar-link-text {
    display: none;
  }
  .topbar-left {
    gap: 10px;
  }
}
