﻿/* CEyS site module: public header */

body.ceys-plugin-header-enabled .elementor-location-header,
body.ceys-plugin-header-enabled #site-header,
body.ceys-plugin-header-enabled .site-header,
body.ceys-plugin-header-enabled .hello-elementor-header,
body.ceys-plugin-header-enabled header.dynamic-header {
  display: none !important;
}

body.ceys-plugin-header-enabled .ceys-site-header,
body.ceys-plugin-header-enabled header.ceys-site-header {
  display: block !important;
}

.ceys-site-header {
  display: block !important;
  position: sticky;
  top: 0;
  z-index: 99990;
  width: 100%;
  background: #1d3a6c;
  border-bottom: 3px solid #5fb030;
  box-shadow: 0 12px 30px rgba(29, 58, 108, .22);
  backdrop-filter: blur(12px);
}

.ceys-site-header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.ceys-site-header-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  text-decoration: none;
}

.ceys-site-header-logo img {
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
}

.ceys-site-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.ceys-site-header-nav a,
.ceys-site-header-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px;
  box-shadow: none !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}

.ceys-site-header-nav a:hover,
.ceys-site-header-nav a:focus,
.ceys-site-header-dropdown:hover > .ceys-site-header-dropdown-toggle,
.ceys-site-header-dropdown-toggle:focus {
  color: #fff !important;
  background: rgba(0, 176, 205, .26) !important;
}

.ceys-site-header-dropdown {
  position: relative;
}

.ceys-site-header-dropdown-toggle {
  gap: 7px;
  height: 38px;
  font-weight: 900 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none !important;
}

.ceys-site-header-dropdown-toggle span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.ceys-site-header-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 10;
  min-width: 230px;
  padding: 8px;
  display: grid;
  gap: 3px;
  background: linear-gradient(135deg, #1d3a6c 0%, #00b0cd 100%);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(29, 58, 108, .18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease;
}

.ceys-site-header-dropdown:hover .ceys-site-header-submenu,
.ceys-site-header-dropdown:focus-within .ceys-site-header-submenu,
.ceys-site-header-dropdown.is-open .ceys-site-header-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.ceys-site-header-submenu a {
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  color: #fff !important;
}

.ceys-site-header-submenu a:hover,
.ceys-site-header-submenu a:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, .18) !important;
}

.ceys-site-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 17px;
  color: #fff !important;
  background: #5fb030;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(0, 74, 112, .18);
  white-space: nowrap;
}

.ceys-site-header-cta:hover,
.ceys-site-header-cta:focus {
  color: #fff !important;
  background: #00b0cd;
}

.ceys-site-header-toggle {
  display: none !important;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  background: rgba(255, 255, 255, .96) !important;
  border: 0 !important;
  border-radius: 999px;
  box-shadow: none !important;
  cursor: pointer;
}

.ceys-site-header-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #1d3a6c;
  border-radius: 999px;
}

@media (max-width: 1200px) {
  .ceys-site-header.is-open {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(255, 255, 255, .5) transparent;
    scrollbar-width: thin;
  }

  .ceys-site-header.is-open::-webkit-scrollbar {
    width: 5px;
  }

  .ceys-site-header.is-open::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
  }

  .ceys-site-header-inner {
    width: min(100% - 24px, 1180px);
    min-height: 66px;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 8px 0;
  }

  .ceys-site-header-logo img {
    width: 260px;
  }

  .ceys-site-header-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .ceys-site-header-nav,
  .ceys-site-header-cta {
    display: none;
  }

  .ceys-site-header.is-open .ceys-site-header-nav {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    flex: 0 0 100%;
    order: 3;
    gap: 4px;
    padding: 6px 0 16px;
  }

  .ceys-site-header.is-open .ceys-site-header-nav a {
    justify-content: flex-start;
    min-height: 40px;
    padding: 0 12px;
  }

  .ceys-site-header-dropdown {
    width: 100%;
  }

  .ceys-site-header-dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
  }

  .ceys-site-header-submenu {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 2px 0 8px;
    padding: 6px;
    background: linear-gradient(135deg, rgba(29, 58, 108, .95) 0%, rgba(0, 176, 205, .86) 100%);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .ceys-site-header-dropdown.is-open .ceys-site-header-submenu {
    display: grid;
  }

  .ceys-site-header-submenu a {
    min-height: 36px;
    color: #fff !important;
  }

  .ceys-site-header.is-open .ceys-site-header-cta {
    display: inline-flex;
    order: 4;
    width: 100%;
    margin-bottom: 4px;
  }
}

@media (max-width: 420px) {
  .ceys-site-header-logo img {
    width: 220px;
  }
}
/* Menu mobile: subservicios visible y legible en Live Link/celular. */
@media (max-width: 1200px) {
  .ceys-site-header.is-open .ceys-site-header-dropdown.is-open .ceys-site-header-submenu {
    display: grid !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 6px 0 10px !important;
    padding: 8px !important;
    gap: 6px !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    background: rgba(0, 176, 205, .18) !important;
    border-radius: 12px !important;
  }

  .ceys-site-header.is-open .ceys-site-header-dropdown.is-open .ceys-site-header-submenu a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 10px 14px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .10) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    white-space: normal !important;
    text-decoration: none !important;
  }

  .ceys-site-header.is-open .ceys-site-header-dropdown.is-open .ceys-site-header-submenu a:hover,
  .ceys-site-header.is-open .ceys-site-header-dropdown.is-open .ceys-site-header-submenu a:focus {
    background: #00b0cd !important;
    color: #fff !important;
  }
}
