/* Bucaya · estilo Tenzio — base + encabezado
   Se sirve desde el tema hijo: /wp-content/themes/hello-theme-child-natekla/bucaya-tenzio/tenzio.css */

:root {
  --bcy-navy-0: #020a2e;
  --bcy-navy: #04134f;
  --bcy-primary: #061b78;
  --bcy-electric: #005cff;
  --bcy-bright: #168bff;
  --bcy-cyan: #00afff;
  --bcy-paper: #f3f7ff;
  --bcy-paper-2: #e6eeff;
  --bcy-ink: #08123d;
  --bcy-muted: #4a5586;
  --bcy-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bcy-font-head: 'Sora', 'Manrope', system-ui, sans-serif;
  --bcy-font-body: 'Manrope', system-ui, sans-serif;
}

/* ---------- Botón principal (degradado + brillo + flecha en cuadrito) ---------- */
.bcy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 22px;
  border-radius: 18px;
  font: 700 15px/1 var(--bcy-font-body);
  letter-spacing: 0.005em;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.16) 100%),
    linear-gradient(#2f86ff 0%, #0f5cf2 50%, #1768ff 50%, #0a4fe0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 22px rgba(0, 92, 255, 0.38);
  transition: transform 0.25s var(--bcy-ease), box-shadow 0.25s var(--bcy-ease);
  -webkit-tap-highlight-color: transparent;
}
.bcy-btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 30px rgba(0, 92, 255, 0.5);
}
.bcy-btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.bcy-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bcy-btn__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.bcy-btn__ico svg { width: 16px; height: 16px; transition: transform 0.3s var(--bcy-ease); }
.bcy-btn:hover .bcy-btn__ico svg { transform: translate(2px, -2px); }
.bcy-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.bcy-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }

/* ---------- Encabezado ---------- */
.bcy-hd-space { height: 96px; background: var(--bcy-navy-0); }
.bcy-hd {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 9990;
  width: min(1240px, calc(100% - 28px));
  transform: translateX(-50%);
  font-family: var(--bcy-font-body);
}
body.admin-bar .bcy-hd { top: 46px; }
@media (min-width: 783px) { body.admin-bar .bcy-hd { top: 46px; } }

.bcy-hd__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 8px 10px 8px 22px;
  border-radius: 22px;
  border: 1px solid transparent;
  background: rgba(2, 10, 46, 0);
  transition: background 0.4s var(--bcy-ease), border-color 0.4s var(--bcy-ease),
    box-shadow 0.4s var(--bcy-ease), backdrop-filter 0.4s var(--bcy-ease);
}
.bcy-hd.is-scrolled .bcy-hd__bar {
  background: rgba(5, 18, 72, 0.86);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 50px rgba(0, 8, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
}

.bcy-hd__logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.bcy-hd__logo img { display: block; height: 60px; width: auto; margin: -4px 0; }

/* Menú */
.bcy-hd__nav { flex: 1 1 auto; display: flex; justify-content: center; }
.bcy-hd .bcy-menu,
.bcy-hd .bcy-menu ul { list-style: none; margin: 0; padding: 0; }
.bcy-hd .bcy-menu { display: flex; align-items: center; gap: 6px; }
.bcy-hd .bcy-menu > li { position: relative; }
.bcy-hd .bcy-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font: 600 15px/1.2 var(--bcy-font-body);
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}
.bcy-hd .bcy-menu > li > a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--bcy-ease);
}
.bcy-hd .bcy-menu > li:hover > a::after,
.bcy-hd .bcy-menu > li.current-menu-item > a::after,
.bcy-hd .bcy-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.bcy-hd .bcy-menu > li:hover > a { color: #bfe3ff; }
.bcy-hd .bcy-menu a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.bcy-hd .menu-item-has-children > a::before {
  content: '';
  order: 2;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--bcy-ease);
  opacity: 0.8;
}
.bcy-hd .menu-item-has-children:hover > a::before,
.bcy-hd .menu-item-has-children:focus-within > a::before { transform: rotate(225deg) translate(-2px, -2px); }

/* Submenú (escritorio) */
.bcy-hd .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 250px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(6, 22, 84, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 8, 40, 0.5);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.22s ease, transform 0.3s var(--bcy-ease), visibility 0s linear 0.3s;
}
.bcy-hd .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.bcy-hd .menu-item-has-children:hover > .sub-menu,
.bcy-hd .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition-delay: 0s;
}
.bcy-hd .sub-menu a { display: flex; width: 100%; padding: 12px 14px; font-weight: 600; }
.bcy-hd .sub-menu a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Acciones */
.bcy-hd__actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.bcy-hd__tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 14.5px/1 var(--bcy-font-body);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.bcy-hd a.bcy-hd__tel { color: #fff; }
.bcy-hd a.bcy-hd__tel:hover { opacity: 1; color: #7ee0ff; }
.bcy-hd__tel svg { width: 18px; height: 18px; flex: 0 0 auto; }

.bcy-hd__burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.bcy-hd__burger span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.35s var(--bcy-ease), opacity 0.2s ease, top 0.35s var(--bcy-ease);
}
.bcy-hd__burger span:nth-child(1) { top: 17px; }
.bcy-hd__burger span:nth-child(2) { top: 23px; }
.bcy-hd__burger span:nth-child(3) { top: 29px; }
.bcy-hd.is-open .bcy-hd__burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.bcy-hd.is-open .bcy-hd__burger span:nth-child(2) { opacity: 0; }
.bcy-hd.is-open .bcy-hd__burger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1260px) and (min-width: 1081px) { .bcy-hd__tel span { display: none; } .bcy-hd__tel { width: 46px; height: 46px; justify-content: center; border-radius: 14px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); } }

/* Tablet y móvil */
@media (max-width: 1080px) {
  .bcy-hd-space { height: 88px; }
  .bcy-hd__tel span { display: none; }
  .bcy-hd__tel {
    width: 48px;
    height: 48px;
    justify-content: center;
    border-radius: 14px;
    background: rgba(31, 168, 85, 0.22);
    box-shadow: inset 0 0 0 1px rgba(80, 220, 140, 0.4);
  }
  .bcy-hd a.bcy-hd__tel { color: #6df0a8; }
  .bcy-hd__burger { display: block; }
  .bcy-hd__actions .bcy-btn { display: none; }
  .bcy-hd__bar { padding-left: 16px; }
  .bcy-hd__logo img { height: 52px; }
  .bcy-hd.is-open .bcy-hd__bar,
  .bcy-hd .bcy-hd__bar {
    background: rgba(5, 18, 72, 0.78);
    border-color: rgba(255, 255, 255, 0.13);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .bcy-hd__nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - 130px);
    overflow: auto;
    padding: 14px;
    border-radius: 22px;
    background: rgba(4, 19, 79, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 70px rgba(0, 8, 40, 0.55);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top center;
    transition: opacity 0.25s ease, transform 0.35s var(--bcy-ease), visibility 0s linear 0.35s;
  }
  .bcy-hd.is-open .bcy-hd__nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .bcy-hd .bcy-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .bcy-hd .bcy-menu > li > a { width: 100%; padding: 15px 14px; font-size: 17px; }
  .bcy-hd .bcy-menu > li > a::after { display: none; }
  .bcy-hd .menu-item-has-children > a::before { display: none; }
  .bcy-hd .sub-menu {
    position: static;
    min-width: 0;
    margin: 0 0 6px 14px;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: inherit; /* con el menú cerrado no deben quedar enlaces invisibles tocables */
    transform: none;
    transition: none;
  }
  .bcy-hd .menu-item-has-children:hover > .sub-menu,
  .bcy-hd .menu-item-has-children:focus-within > .sub-menu { visibility: inherit; transform: none; }
  .bcy-hd .sub-menu::before { display: none; }
  .bcy-hd .sub-menu a { padding: 11px 12px; font-size: 15px; font-weight: 500; color: #cfe3ff; }
}
.bcy-hd__cta-m { display: none; }
@media (max-width: 1080px) {
  .bcy-hd__cta-m { display: flex; justify-content: center; margin-top: 12px; }
  .bcy-hd__cta-m .bcy-btn { display: inline-flex; width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .bcy-hd *, .bcy-btn, .bcy-btn * { transition-duration: 0.01ms !important; }
}

/* ---------- Menú centrado, sin botones a la derecha, con Instagram ---------- */
@media (min-width: 1081px) {
  .bcy-hd__nav { position: absolute; left: 50%; top: 50%; flex: none; transform: translate(-50%, -50%); }
}
.bcy-hd .bcy-menu li.bcy-ig > a {
  width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; border-radius: 14px;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: background 0.25s ease, transform 0.3s var(--bcy-ease), color 0.2s ease;
}
.bcy-hd .bcy-menu li.bcy-ig > a::before,
.bcy-hd a.bcy-hd__ig::before {
  content: ''; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='5'/><circle cx='12' cy='12' r='4'/><circle cx='17.5' cy='6.5' r='.7' fill='black'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='5'/><circle cx='12' cy='12' r='4'/><circle cx='17.5' cy='6.5' r='.7' fill='black'/></svg>") center / contain no-repeat;
}
.bcy-hd .bcy-menu li.bcy-ig > a::after { display: none; }
.bcy-hd .bcy-menu li.bcy-ig > a:hover { background: rgba(255, 255, 255, 0.18); color: #fff; transform: translateY(-2px); }
@media (max-width: 1080px) {
  .bcy-hd .bcy-menu li.bcy-ig > a { width: 100%; height: auto; padding: 15px 14px; justify-content: flex-start; gap: 12px; font-size: 17px; background: none; box-shadow: none; }
  .bcy-hd .bcy-menu li.bcy-ig > a::before { order: 0; }
}

/* Instagram en escritorio: a la derecha, después del teléfono (en el menú solo se ve en celular) */
@media (min-width: 1081px) { .bcy-hd .bcy-menu li.bcy-ig { display: none; } }
.bcy-hd a.bcy-hd__ig {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; color: #fff;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: background 0.25s ease, transform 0.3s var(--bcy-ease);
}
.bcy-hd a.bcy-hd__ig:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.bcy-hd a.bcy-hd__ig:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 1080px) { .bcy-hd a.bcy-hd__ig { display: none; } }

/* ---------- Al bajar: encabezado compacto ---------- */
.bcy-hd__logo img { transition: height 0.35s var(--bcy-ease), margin 0.35s var(--bcy-ease); }
.bcy-hd .bcy-hd__bar { transition: min-height 0.35s var(--bcy-ease), padding 0.35s var(--bcy-ease), background 0.4s var(--bcy-ease), border-color 0.4s var(--bcy-ease), box-shadow 0.4s var(--bcy-ease), backdrop-filter 0.4s var(--bcy-ease); }
.bcy-hd.is-scrolled .bcy-hd__logo img { height: 40px; margin: 0; }
.bcy-hd.is-scrolled .bcy-hd__bar { min-height: 58px; padding-block: 5px; }
@media (prefers-reduced-motion: reduce) { .bcy-hd__logo img, .bcy-hd .bcy-hd__bar { transition: none; } }
