/**
 * Gicell Academy — Site Chrome (topbar + header/nav + footer + usermenu).
 * Cargado en TODO el sitio (auth es Canvas → no lleva chrome).
 * Default: sólido en flujo (páginas sin hero: catálogo, cuenta…).
 * body.gicell-dark-hero (home, single-course): transparente-absolute sobre el hero.
 * Reemplaza a gicell-header.css (header Elementor, retirado) y a los bloques de
 * chrome/footer que vivían en gicell-home.css.
 */

/* ═══════════ Reset local del chrome/footer ═══════════ */
.gicell-site-chrome, .gicell-site-chrome *,
.gicell-footer, .gicell-footer * { margin: 0; padding: 0; box-sizing: border-box; }
.gicell-site-chrome, .gicell-footer {
  font-family: var(--font-body); font-weight: 300; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.gicell-site-chrome img, .gicell-footer img { display: block; max-width: 100%; }
.gicell-site-chrome a, .gicell-footer a { text-decoration: none; }
.gicell-site-chrome ul, .gicell-footer ul { list-style: none; }

/* ═══════════ Wrapper: sólido en flujo (default) / hero transparente-absolute ═══════════ */
.gicell-site-chrome {
  position: static;
  background: #111111;
}
.gicell-site-chrome .header { border-bottom: 1px solid var(--line-dark); }

body.gicell-dark-hero .gicell-site-chrome {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  background: transparent;
}
body.gicell-dark-hero .gicell-site-chrome .header { border-bottom: 0; }

/* Hero de single-course: libra el chrome absolute (regresión-guard; pulido fino en pase posterior). */
body.gicell-dark-hero .gicell-course-hero { padding-top: 140px; }

/* ═══════════ Base (container + iconos) ═══════════ */
.gicell-site-chrome .container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.gicell-site-chrome .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.gicell-site-chrome .ic--fill { fill: currentColor; stroke: none; }

/* ═══════════ Topbar ═══════════ */
.gicell-site-chrome .topbar { color: rgba(255,255,255,0.78); font-size: 11.5px; letter-spacing: 0.04em; }
.gicell-site-chrome .topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.gicell-site-chrome .topbar__left, .gicell-site-chrome .topbar__right { display: flex; align-items: center; gap: 16px; }
.gicell-site-chrome .topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.gicell-site-chrome .topbar__item .ic { width: 13px; height: 13px; color: var(--metal-2); }
.gicell-site-chrome .topbar__sep { width: 1px; height: 14px; background: rgba(255,255,255,0.25); }
.gicell-site-chrome .topbar__socials { display: inline-flex; align-items: center; gap: 12px; }
.gicell-site-chrome .topbar__socials a { color: rgba(255,255,255,0.78); transition: color 0.3s; }
.gicell-site-chrome .topbar__socials a:hover { color: #fff; }
.gicell-site-chrome .topbar__socials .ic { width: 13px; height: 13px; }

/* ═══════════ Header row ═══════════ */
.gicell-site-chrome .header__inner { display: flex; align-items: center; justify-content: space-between; height: 86px; }
.gicell-site-chrome .logo img { height: 34px; width: auto; display: block; }
.gicell-site-chrome .nav { display: flex; align-items: center; gap: 30px; }
.gicell-site-chrome .nav__link { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 400; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); transition: color 0.3s; }
.gicell-site-chrome .nav__link:hover, .gicell-site-chrome .nav__link--active { color: #fff; }
.gicell-site-chrome .nav__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--metal-2); margin-right: 3px; }
.gicell-site-chrome .header__actions { display: flex; align-items: center; gap: 18px; }
.gicell-site-chrome .header__search { color: #fff; display: inline-flex; transition: opacity 0.3s; }
.gicell-site-chrome .header__search:hover { opacity: 0.7; }
.gicell-site-chrome .header__search .ic { width: 17px; height: 17px; }
.gicell-site-chrome .header__divider { width: 1px; height: 22px; background: rgba(255,255,255,0.3); }

/* Usermenu embebido: visible aunque venga con [hidden] */
.gicell-site-chrome .gicell-usermenu { position: relative; display: inline-flex; }
.gicell-site-chrome .gicell-usermenu[hidden] { display: inline-flex; }

@media (max-width: 900px) { .gicell-site-chrome .nav { display: none; } }
@media (max-width: 600px) {
  .gicell-site-chrome .topbar__left .topbar__item:last-of-type,
  .gicell-site-chrome .topbar__left .topbar__sep,
  .gicell-site-chrome .topbar__right .topbar__item,
  .gicell-site-chrome .topbar__right .topbar__sep { display: none; }
}

/* ═══════════ FOOTER ═══════════ */
.gicell-footer { background: var(--black); padding-top: 72px; color: rgba(255,255,255,0.7); }
.gicell-footer .container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.gicell-footer .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.gicell-footer .ic--fill { fill: currentColor; stroke: none; }
.gicell-footer .footer__grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr 1.4fr; gap: 40px; padding-bottom: 60px; }
.gicell-footer .footer__logo { display: flex; align-items: center; gap: 12px; }
.gicell-footer .footer__logo img { height: 40px; width: auto; display: block; }
.gicell-footer .footer__about { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 18px; max-width: 250px; }
.gicell-footer .footer__socials { display: flex; gap: 10px; margin-top: 22px; }
.gicell-footer .footer__socials a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); color: var(--white); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.gicell-footer .footer__socials a:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.gicell-footer .footer__socials .ic { width: 13px; height: 13px; }
.gicell-footer .footer__heading { font-family: var(--font-display); font-size: 17px; font-weight: 500; margin-bottom: 20px; color: var(--white); }
.gicell-footer .footer__links li { padding: 5px 0; }
.gicell-footer .footer__links a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.3s; }
.gicell-footer .footer__links a:hover { color: var(--white); }
.gicell-footer .footer__note { font-size: 12px; color: rgba(255,255,255,0.55); max-width: 280px; }
.gicell-footer .footer__form { display: flex; margin-top: 16px; background: var(--white); border-radius: 6px; overflow: hidden; max-width: 300px; }
.gicell-footer .footer__form input { flex: 1; border: none; outline: none; padding: 12px 16px; font-family: var(--font-body); font-size: 12.5px; color: var(--ink); background: transparent; }
.gicell-footer .footer__form input::placeholder { color: var(--muted); }
.gicell-footer .footer__form button { width: 46px; border: none; background: var(--black); color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.gicell-footer .footer__form button:hover { background: var(--black-2); }
.gicell-footer .footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; text-align: center; }
.gicell-footer .footer__bottom p { font-size: 12px; color: rgba(255,255,255,0.5); }
.gicell-footer .footer__form.is-sent { outline: 1px solid var(--metal); }
.gicell-footer .footer__form.is-sent button { background: var(--metal); }
@media (max-width: 1080px) { .gicell-footer .footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .gicell-footer .footer__grid { grid-template-columns: 1fr; } }

/* ═══════════ USERMENU (avatar dropdown) — migrado desde gicell-header.css ═══════════ */
.gicell-nav-actions { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }

.gicell-usermenu { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; }
.gicell-usermenu[hidden] { display: none; }

.gicell-usermenu__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; min-width: 46px; flex: 0 0 46px;
  box-sizing: border-box; aspect-ratio: 1 / 1; padding: 3px !important;
  cursor: pointer; border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(201, 168, 106, 0.55) !important;
  color: #efe6d6 !important; box-shadow: none !important;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.gicell-usermenu__toggle:hover, .gicell-usermenu__toggle:focus {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(201, 168, 106, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.12) !important;
}

.gicell-usermenu__avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 999px;
  background: linear-gradient(135deg, var(--black-2), var(--black));
  color: var(--gold-soft); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.02em;
}
.gicell-usermenu__avatar--guest { background: transparent; color: #d6c9ad; }

.gicell-usermenu__dropdown {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 236px;
  background: rgba(16, 15, 13, 0.95);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: none; border-radius: 16px; padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: none; flex-direction: column; gap: 2px; z-index: 1100;
}
.gicell-usermenu__dropdown::before {
  content: ""; position: absolute; top: -5px; right: 18px; width: 12px; height: 12px;
  background: rgba(16, 15, 13, 0.95);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  transform: rotate(45deg);
}
.gicell-usermenu.is-open .gicell-usermenu__dropdown { display: flex; }
.gicell-usermenu__head {
  padding: 6px 12px 10px; font-size: 0.72rem; color: #c9a86a;
  text-transform: uppercase; letter-spacing: 0.14em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); margin-bottom: 6px;
}
.gicell-usermenu__item {
  display: block; padding: 11px 12px; border-radius: 9px; color: #F7F2E9;
  text-decoration: none; font-size: 0.9rem; letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}
.gicell-usermenu__item:hover { background: rgba(201, 168, 106, 0.10); color: #fff; }
.gicell-usermenu__item--cta {
  margin-top: 4px; text-align: center; font-weight: 600; color: #14110a;
  background: linear-gradient(135deg, #e6cf9a, #c9a86a);
}
.gicell-usermenu__item--cta:hover { background: linear-gradient(135deg, #f0dcae, #d6b578); color: #14110a; }
.gicell-usermenu__item--logout { color: #d98a8a; margin-top: 2px; }
.gicell-usermenu__item--logout:hover { background: rgba(217, 138, 138, 0.10); color: #ffb3b3; }

/* ═══════════ MINI-CART: ícono + badge ═══════════ */
.gicell-site-chrome .header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s;
}
.gicell-site-chrome .header__cart:hover { opacity: 0.7; }
.gicell-site-chrome .header__cart .ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gicell-site-chrome .header__cart-count {
  position: absolute;
  top: -8px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #14110a;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.gicell-site-chrome .header__cart-count.is-empty { display: none; }

/* ═══════════ MINI-CART: drawer flotante ═══════════ */
body.gicell-cart-open { overflow: hidden; }
.gicell-minicart {
  position: fixed;
  inset: 0;
  z-index: 100000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.gicell-minicart.is-open { visibility: visible; opacity: 1; }
.gicell-minicart__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.5);
}
.gicell-minicart__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: var(--paper);
  box-shadow: -16px 0 40px rgba(14, 14, 14, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.gicell-minicart.is-open .gicell-minicart__panel { transform: translateX(0); }
.gicell-minicart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.gicell-minicart__title { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); margin: 0; }
.gicell-minicart__close {
  background: none; border: 0; padding: 4px; cursor: pointer; color: var(--muted);
  display: inline-flex; transition: color 0.2s;
}
.gicell-minicart__close:hover { color: var(--ink); }
.gicell-minicart__close .ic, .gicell-minicart__remove .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gicell-minicart__content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.gicell-minicart__items {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  flex: 1;
}
.gicell-minicart__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s ease;
}
.gicell-minicart__item.is-removing { opacity: 0.4; pointer-events: none; }
.gicell-minicart__media { flex: 0 0 auto; }
.gicell-minicart__thumb, .gicell-minicart__media img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); display: block;
}
.gicell-minicart__body { flex: 1; min-width: 0; }
.gicell-minicart__name {
  display: block; font-family: var(--font-display); font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none; line-height: 1.3;
}
.gicell-minicart__name:hover { color: var(--gold); }
.gicell-minicart__meta { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 12.5px; color: var(--muted); }
.gicell-minicart__remove {
  flex: 0 0 auto; background: none; border: 0; padding: 6px; cursor: pointer;
  color: var(--muted); display: inline-flex; border-radius: 50%; transition: color 0.2s, background 0.2s;
}
.gicell-minicart__remove:hover { color: #b4483f; background: rgba(180, 72, 63, 0.08); }

.gicell-minicart__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--white); }
.gicell-minicart__subtotal {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px;
  font-family: var(--font-body); color: var(--muted); font-size: 14px;
}
.gicell-minicart__subtotal strong { font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.gicell-minicart__cta {
  display: block; text-align: center; padding: 13px 18px; border-radius: 999px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.gicell-minicart__cta--pay { background: var(--gold); color: #14110a; margin-top: 10px; }
.gicell-minicart__cta--pay:hover { background: #b8965a; color: #14110a; }
.gicell-minicart__cta--ghost { border: 1px solid var(--line); color: var(--ink); }
.gicell-minicart__cta--ghost:hover { border-color: var(--gold); color: var(--gold); }

.gicell-minicart__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 40px 24px; text-align: center; }
.gicell-minicart__empty-icon .ic { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.gicell-minicart__empty p { font-family: var(--font-body); color: var(--muted); margin: 10px 0 16px; }
.gicell-minicart__browse {
  display: inline-flex; padding: 11px 24px; border-radius: 999px;
  background: var(--gold); color: #14110a; font-family: var(--font-body); font-weight: 500; text-decoration: none;
}
.gicell-minicart__browse:hover { background: #b8965a; }
