/* ============================================================
   NAV.CSS — Header + Mobile Drawer v2.0
   Prefix: .ct-*  (no conflicts con css viejo)
   Breakpoint mobile: <= 1024px
   ============================================================ */

/* ── TOPBAR ────────────────────────────────────────────────── */
.ct-topbar {
  background: #0f3e3a;
  color: #cbd5e1;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ct-topbar__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ct-topbar__group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ct-topbar__link,
.ct-topbar__info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.ct-topbar__link:hover { color: #fff; }
.ct-topbar__icon { width: 14px; height: 14px; flex-shrink: 0; }
.ct-topbar__sep  { opacity: 0.3; }
.ct-topbar__social {
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: color 150ms ease;
}
.ct-topbar__social svg {
  width: 16px;
  height: 16px;
  display: block;
}
.ct-topbar__social:hover { color: #2dd4bf; }

/* ── MAIN HEADER ──────────────────────────────────────────── */
.ct-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #134e4a;        /* nuevo: teal-900 (más claro que antes) */
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.ct-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.ct-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ct-header__logo img {
  display: block;
  height: 110px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 1280px) {
  .ct-header__logo img { height: 94px; max-width: 340px; }
}
.ct-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #0d9488;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 150ms ease;
  white-space: nowrap;
}
.ct-header__cta:hover { background: #14b8a6; color: #fff; }

/* ── DESKTOP NAV ──────────────────────────────────────────── */
.ct-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.ct-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ct-nav__list > li { position: relative; }
.ct-nav__list > li > a,
.ct-nav__list > li > .primary-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  color: #fff;
  font-size: 15px;                  /* letras más grandes */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 150ms ease;
  white-space: nowrap;
  transform: translateY(-2px);
}
@media (max-width: 1440px) {
  .ct-nav__list { gap: 0; }
  .ct-nav__list > li > a,
  .ct-nav__list > li > .primary-nav__link {
    font-size: 13.5px;
    padding: 6px 8px;
    letter-spacing: 0.03em;
  }
}
@media (max-width: 1280px) {
  .ct-nav__list > li > a,
  .ct-nav__list > li > .primary-nav__link {
    font-size: 12.5px;
    padding: 6px 6px;
    letter-spacing: 0.02em;
  }
  .ct-header__logo img { height: 78px !important; max-width: 260px !important; }
  .ct-header__cta { padding: 8px 14px !important; font-size: 12px !important; }
  .ct-header__inner { padding: 10px 16px !important; gap: 14px !important; }
}
@media (max-width: 1150px) {
  .ct-nav__list > li > a,
  .ct-nav__list > li > .primary-nav__link {
    font-size: 11.5px;
    padding: 5px 5px;
    letter-spacing: 0;
  }
  .ct-header__logo img { height: 68px !important; max-width: 220px !important; }
  .ct-header__cta { padding: 7px 12px !important; font-size: 11.5px !important; letter-spacing: 0.03em !important; }
  .ct-header__inner { padding: 8px 12px !important; gap: 10px !important; }
}
.ct-nav__list > li > a:hover,
.ct-nav__list > li > .primary-nav__link:hover {
  color: #2dd4bf;
}

/* Dropdown de desktop — reutilizamos las reglas existentes del walker
   (.primary-nav__dropdown, .primary-nav__dropdown-item).
   Aseguramos hover visibility. */
.ct-nav .primary-nav__dropdown,
.ct-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  color: #1f2937;
  padding: 8px 0;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
  z-index: 110;
}
/* Bridge the gap between the top-level link and the dropdown so hover
   doesn't break when moving the mouse into the dropdown */
.ct-nav .primary-nav__dropdown::before,
.ct-nav .sub-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}
.ct-nav li:hover > .primary-nav__dropdown,
.ct-nav li:hover > .sub-menu,
.ct-nav li:focus-within > .primary-nav__dropdown,
.ct-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.ct-nav .primary-nav__dropdown a,
.ct-nav .sub-menu a {
  display: block;
  padding: 8px 18px;
  color: #1f2937;
  font-size: 13px;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.ct-nav .primary-nav__dropdown a:hover,
.ct-nav .sub-menu a:hover {
  background: rgba(232, 101, 26, 0.1);
  color: #0d9488;
}
.ct-nav .primary-nav__arrow,
.ct-nav .sub-menu svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── CASCADING SUBMENU: una columna + fly-out lateral ──────────────────── */
/* Dropdown principal: single column, solo los section headers visibles */
.ct-nav .primary-nav__dropdown:has(> li.primary-nav__sub-parent) {
  display: block;
  min-width: 230px;
  padding: 8px 0;
}
.ct-nav .primary-nav__sub-parent {
  position: relative;            /* anchor para el fly-out */
  padding: 0;
  border: 0;
}
/* Section header (ahora el item clickable del primer nivel) */
.ct-nav .primary-nav__sub-parent > .primary-nav__dropdown-item {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px !important;
  font-size: 14px !important;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: #1f2937 !important;
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  cursor: pointer;
}
.ct-nav .primary-nav__sub-parent > .primary-nav__dropdown-item:hover {
  background: rgba(13,148,136,0.08) !important;
  color: #0d9488 !important;
}
.ct-nav .primary-nav__sub-parent > .primary-nav__dropdown-item svg {
  display: inline-block !important;
  width: 10px !important;
  height: 10px !important;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Fly-out submenu (aparece al hover de un section header) */
.ct-nav .primary-nav__sub-dropdown {
  position: absolute !important;
  top: -8px !important;
  left: 100% !important;
  min-width: 240px;
  background: #fff;
  padding: 8px 0 !important;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  list-style: none;
  margin: 0;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(6px) !important;
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms !important;
  z-index: 120;
  display: block !important;
}
.ct-nav .primary-nav__sub-parent:hover > .primary-nav__sub-dropdown,
.ct-nav .primary-nav__sub-parent:focus-within > .primary-nav__sub-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) !important;
  transition-delay: 0s !important;
}
.ct-nav .primary-nav__sub-dropdown a {
  display: block;
  padding: 8px 18px;
  color: #1f2937;
  font-size: 13px;
  text-decoration: none;
  background: transparent;
}
.ct-nav .primary-nav__sub-dropdown a:hover {
  background: rgba(13,148,136,0.08);
  color: #0d9488;
}
/* Puente invisible entre parent y fly-out para no perder hover */
.ct-nav .primary-nav__sub-dropdown::after {
  content: '';
  position: absolute;
  top: 0;
  left: -14px;
  width: 14px;
  height: 100%;
  background: transparent;
}

/* ── HAMBURGER (hidden desktop) ───────────────────────────── */
.ct-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255,255,255,0.1);
  touch-action: manipulation;
}
.ct-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin: 5px auto;
  transition: transform 200ms ease, opacity 200ms ease;
}
.ct-burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ct-burger.is-active span:nth-child(2) {
  opacity: 0;
}
.ct-burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE OVERLAY + DRAWER ──────────────────────────────── */
.ct-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms ease, visibility 0s linear 250ms;
  z-index: 9998;
}
.ct-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.ct-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100vh;
  height: 100dvh;
  background: #115e59;
  color: #fff;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -8px 0 32px rgba(0,0,0,0.3);
}
.ct-mobile.is-open {
  transform: translateX(0);
}

.ct-mobile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.ct-mobile__logo img {
  display: block;
  height: 48px;
  width: auto;
}
.ct-mobile__close {
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  color: #fff;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: rgba(255,255,255,0.1);
}
.ct-mobile__close:hover,
.ct-mobile__close:focus {
  background: rgba(255,255,255,0.08);
}
.ct-mobile__close svg { width: 22px; height: 22px; }

.ct-mobile__nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}
.ct-mobile__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ct-mobile__item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ct-mobile__row {
  display: flex;
  align-items: stretch;
}
.ct-mobile__link {
  flex: 1;
  padding: 16px 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ct-mobile__link:hover,
.ct-mobile__link:active {
  background: rgba(13, 148, 136, 0.12);
  color: #2dd4bf;
}
.ct-mobile__toggle {
  width: 56px;
  padding: 0;
  background: transparent;
  color: #94a3b8;
  border: 0;
  border-left: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 150ms ease, color 150ms ease;
  -webkit-tap-highlight-color: rgba(255,255,255,0.1);
}
.ct-mobile__toggle:hover,
.ct-mobile__toggle:active {
  background: rgba(255,255,255,0.04);
  color: #fff;
}
.ct-mobile__toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 250ms ease;
}
.ct-mobile__item.is-open .ct-mobile__toggle svg {
  transform: rotate(180deg);
}
.ct-mobile__item.is-open .ct-mobile__toggle {
  background: rgba(13, 148, 136, 0.14);
  color: #2dd4bf;
}

.ct-mobile__sub {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  transition: max-height 300ms ease;
}
.ct-mobile__item.is-open > .ct-mobile__sub {
  max-height: 2000px;
}
.ct-mobile__sub li { border-top: 1px solid rgba(255,255,255,0.04); }
.ct-mobile__sub li:first-child { border-top: 0; }
.ct-mobile__sub a {
  display: block;
  padding: 13px 20px 13px 36px;
  color: #cbd5e1;
  font-size: 14px;
  text-decoration: none;
}
.ct-mobile__sub a:hover,
.ct-mobile__sub a:active {
  background: rgba(13, 148, 136, 0.12);
  color: #fff;
}

/* Mobile 3rd level: section header + its items */
.ct-mobile__section {
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}
.ct-mobile__section-title {
  display: block;
  padding: 8px 20px 6px 36px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2dd4bf;
}
.ct-mobile__subsub {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ct-mobile__subsub li { border-top: 0 !important; }
.ct-mobile__subsub a {
  display: block;
  padding: 10px 20px 10px 48px;
  color: #cbd5e1;
  font-size: 14px;
  text-decoration: none;
}
.ct-mobile__subsub a:hover,
.ct-mobile__subsub a:active {
  background: rgba(13, 148, 136, 0.12);
  color: #fff;
}

.ct-mobile__foot {
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.ct-mobile__cta {
  display: block;
  width: 100%;
  padding: 14px;
  background: #0d9488;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  transition: background 150ms ease;
}
.ct-mobile__cta:hover { background: #14b8a6; }
.ct-mobile__contact {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.ct-mobile__contact a {
  color: #94a3b8;
  text-decoration: none;
}
.ct-mobile__contact a:hover,
.ct-mobile__contact a:active {
  color: #fff;
}
.ct-mobile__phones {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ct-mobile__phones-icon {
  font-size: 14px;
}
.ct-mobile__phones-sep {
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}
.ct-mobile__phones a {
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
}

/* ── RESPONSIVE TOGGLE (mobile <= 1024px) ─────────────────── */
@media (max-width: 1024px) {
  .ct-topbar { display: none; }
  .ct-nav    { display: none; }
  .ct-header__cta { display: none; }
  .ct-burger { display: block; }

  .ct-header__inner {
    padding: 10px 16px;
    gap: 12px;
  }
  .ct-header__logo img { height: 56px; max-width: 200px; }
}

/* ── Accessibility: lock body scroll when drawer open ─────── */
body.ct-no-scroll {
  overflow: hidden;
  touch-action: none;
}

/* ── HERO VIDEO (HTML5 self-hosted, autoplay) ─────────────── */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero__img--fallback {
  display: none;
}
/* Si <video> falla (sin JS / no support), mostramos imagen */
.hero:not(:has(.hero__video)) .hero__img--fallback,
.no-video .hero__img--fallback {
  display: block;
}

/* ── EQUIPMENT WHATSAPP BUTTON ────────────────────────────── */
.ct-wa-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px !important;
  background: #25D366 !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-transform: none !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: background 150ms ease, transform 150ms ease !important;
  border: 0 !important;
  font-size: 14px !important;
}
.ct-wa-btn:hover,
.ct-wa-btn:focus {
  background: #1ebe5a !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.ct-wa-btn--lg {
  padding: 14px 24px !important;
  font-size: 16px !important;
  width: 100%;
  max-width: 340px;
}
.ct-wa-block {
  margin: 18px 0 24px;
}
.ct-wa-block__hint {
  font-size: 14px;
  color: #475569;
  margin: 0 0 12px;
}