:root {
  --hh-navy: #12283a;
  --hh-navy-deep: #0b1d2a;
  --hh-blue: #8eb0c8;
  --hh-blue-pale: #edf3f7;
  --hh-ink: #3e2c23;
  --hh-brown: #6f5040;
  --hh-teal: #406e8f;
  --hh-paper: #fbfaf8;
  --hh-line: #e3dbd3;
  --hh-white: #fff;
  --hh-serif: "Playfair Display", Georgia, serif;
  --hh-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

.hh-branded-page {
  background: var(--hh-paper);
  color: var(--hh-ink);
  font-family: var(--hh-sans);
  -webkit-font-smoothing: antialiased;
}

.hh-public-header {
  position: relative;
  z-index: 90;
  font-family: var(--hh-sans);
}

.hh-public-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hh-public-topbar {
  background: var(--hh-navy-deep);
  color: var(--hh-white);
  font-size: 12px;
}

.hh-public-topbar .hh-public-wrap {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hh-public-topbar span,
.hh-public-topbar a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
}

.hh-public-topbar a:hover { color: var(--hh-white); }

.hh-public-topbar i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--hh-blue);
  vertical-align: middle;
}

.hh-public-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251,250,248,.96);
  border-bottom: 1px solid var(--hh-line);
  box-shadow: 0 8px 24px rgba(18,40,58,.045);
  backdrop-filter: blur(10px);
}

.admin-bar .hh-public-nav { top: 32px; }

.hh-public-nav .hh-public-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.hh-public-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--hh-brown);
  text-decoration: none;
  flex: 0 0 auto;
}

.hh-public-brand svg { width: 34px; height: auto; color: var(--hh-brown); }
.hh-public-brand span { display: block; line-height: 1; }
.hh-public-brand strong {
  display: block;
  color: var(--hh-blue);
  font-family: var(--hh-serif);
  font-size: 22px;
  font-weight: 400;
}
.hh-public-brand b {
  display: block;
  margin-top: 7px;
  padding-top: 5px;
  border-top: 1px solid var(--hh-line);
  color: var(--hh-brown);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.hh-public-ucav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 22px;
  border-left: 1px solid var(--hh-line);
  flex: 0 0 auto;
}

.hh-public-ucav span {
  max-width: 90px;
  color: #7c6b61;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hh-public-ucav img {
  display: block;
  width: 128px;
  height: auto;
  object-fit: contain;
}

.hh-public-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.hh-public-links a {
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--hh-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.hh-public-links a:hover { background: var(--hh-blue-pale); }

.hh-public-cart {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  border-radius: 8px;
  background: var(--hh-navy);
  color: var(--hh-white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hh-public-cart span {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.17);
  font-size: 11px;
}

.hh-branded-page main { background: var(--hh-paper); }

.hh-branded-page main .wp-block-group.alignfull:has(> .wp-block-post-title) {
  display: none !important;
}

.hh-legal-page .entry-content {
  width: min(920px, calc(100% - 48px));
  max-width: none !important;
  margin: 48px auto 72px !important;
  padding: clamp(30px, 6vw, 72px) !important;
  border: 1px solid var(--hh-line);
  border-radius: 16px;
  background: var(--hh-white);
  box-shadow: 0 18px 55px rgba(18,40,58,.07);
}

.hh-legal-page .entry-content > * {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hh-legal-page .entry-content h1 {
  margin-top: 0;
  margin-bottom: 22px;
  color: var(--hh-navy);
  font-family: var(--hh-serif);
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.02em;
}

.hh-legal-page .entry-content h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  color: var(--hh-navy);
  font-family: var(--hh-serif);
  font-size: clamp(27px, 4vw, 34px);
  font-weight: 400;
  line-height: 1.18;
}

.hh-legal-page .entry-content p,
.hh-legal-page .entry-content li {
  color: #4f4640;
  font-size: 16px;
  line-height: 1.78;
}

.hh-legal-page .entry-content a {
  color: var(--hh-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hh-commerce-page .entry-content {
  width: min(1180px, calc(100% - 48px));
  max-width: none !important;
  margin: 42px auto 72px !important;
}

.hh-commerce-page .entry-content > h1:first-child {
  color: var(--hh-navy);
  font-family: var(--hh-serif);
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 400;
  letter-spacing: -.02em;
}

.hh-commerce-page .wc-block-checkout,
.hh-commerce-page .wc-block-cart {
  color: var(--hh-ink);
  font-family: var(--hh-sans);
}

.hh-commerce-page .wc-block-components-sidebar,
.hh-commerce-page .wc-block-checkout__main,
.hh-commerce-page .wc-block-cart__main {
  border-radius: 14px;
}

.hh-commerce-page .wc-block-components-order-summary-item {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 12px !important;
  padding: 16px 0 !important;
}

.hh-commerce-page .wc-block-components-order-summary-item__image {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  align-self: start !important;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.hh-commerce-page .wc-block-components-order-summary-item__image img {
  width: 48px !important;
  height: 48px !important;
  object-fit: cover !important;
  border-radius: 7px;
}

.hh-commerce-page .wc-block-components-order-summary-item__description {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  grid-column: 2;
  grid-row: 1;
}

.hh-commerce-page .wc-block-components-product-name {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0 6px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere;
  word-break: normal !important;
}

.hh-commerce-page .wc-block-components-order-summary-item__total-price {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  align-self: start !important;
  padding: 0 !important;
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  text-align: left;
}

.hh-public-footer {
  margin-top: 72px;
  padding: 64px 0 24px;
  background: var(--hh-navy-deep);
  color: var(--hh-white);
  font-family: var(--hh-sans);
}

.hh-public-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 48px;
}

.hh-public-footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--hh-white);
  text-decoration: none;
}

.hh-public-footer-lockup svg { width: 38px; color: var(--hh-white); }
.hh-public-footer-lockup span { display: block; line-height: 1; }
.hh-public-footer-lockup strong { display: block; color: var(--hh-blue); font-family: var(--hh-serif); font-size: 26px; font-weight: 400; }
.hh-public-footer-lockup b { display: block; margin-top: 7px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.2); font-size: 8px; letter-spacing: .34em; text-transform: uppercase; }
.hh-public-footer-brand > p { max-width: 300px; margin: 18px 0 0; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.7; }

.hh-public-footer-ucav { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 22px; }
.hh-public-footer-ucav span { color: rgba(255,255,255,.48); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.hh-public-footer-ucav img { display: block; width: 176px; height: auto; object-fit: contain; }

.hh-public-footer h2 { margin: 3px 0 18px; color: rgba(255,255,255,.5); font-family: var(--hh-sans); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hh-public-footer ul { margin: 0; padding: 0; list-style: none; }
.hh-public-footer li { margin: 0 0 11px; }
.hh-public-footer li a { color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.5; text-decoration: none; }
.hh-public-footer li a:hover { color: var(--hh-blue); }

.hh-public-footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.45); font-size: 11px; }

.tutor-screen-frontend-dashboard .tutor-dashboard-sidebar {
  background: var(--hh-paper) !important;
  border-right: 1px solid var(--hh-line) !important;
}

.tutor-screen-frontend-dashboard .tutor-dashboard-sidebar-logo {
  min-height: 150px !important;
  padding: 24px 22px 20px !important;
  border-bottom: 1px solid var(--hh-line);
  text-decoration: none !important;
}

.hh-dashboard-brand { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.hh-dashboard-horizonte { display: flex; align-items: center; gap: 10px; color: var(--hh-brown); }
.hh-dashboard-horizonte svg { width: 30px; flex: 0 0 auto; }
.hh-dashboard-horizonte > span { display: block; line-height: 1; }
.hh-dashboard-horizonte strong { display: block; color: var(--hh-blue); font-family: var(--hh-serif); font-size: 20px; font-weight: 400; }
.hh-dashboard-horizonte b { display: block; margin-top: 6px; padding-top: 4px; border-top: 1px solid var(--hh-line); color: var(--hh-brown); font-size: 7px; letter-spacing: .3em; text-transform: uppercase; }
.hh-dashboard-ucav-label { margin-top: 17px; color: #89776d; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hh-dashboard-ucav { display: block; width: 132px; height: auto; margin-top: 6px; object-fit: contain; }

.tutor-screen-frontend-dashboard .tutor-dashboard-header {
  border-bottom: 1px solid var(--hh-line) !important;
  box-shadow: 0 8px 24px rgba(18,40,58,.04);
}

.tutor-screen-frontend-dashboard .tutor-dashboard-sidebar-nav a {
  border-radius: 9px !important;
  color: var(--hh-ink) !important;
}

.tutor-screen-frontend-dashboard .tutor-dashboard-sidebar-nav a:hover,
.tutor-screen-frontend-dashboard .tutor-dashboard-sidebar-nav a.active {
  background: var(--hh-blue-pale) !important;
  color: var(--hh-teal) !important;
}

@media (max-width: 900px) {
  .hh-public-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hh-public-footer-grid > div:last-child { grid-column: 2 / span 2; }
}

@media (max-width: 980px) {
  .hh-public-links { display: none; }
  .hh-public-ucav { margin-left: auto; }
}

@media (max-width: 700px) {
  .hh-public-wrap { width: min(100% - 28px, 1180px); }
  .hh-public-topbar .hh-public-wrap { min-height: 34px; gap: 0; }
  .hh-public-topbar a:not(:last-child),
  .hh-public-topbar span { display: none; }
  .hh-public-topbar a:last-child { margin-left: auto; font-size: 11px; }
  .hh-public-nav .hh-public-wrap { min-height: 72px; gap: 12px; }
  .hh-public-brand svg { width: 28px; }
  .hh-public-brand strong { font-size: 18px; }
  .hh-public-brand b { margin-top: 5px; padding-top: 4px; font-size: 6.5px; }
  .hh-public-ucav { gap: 0; padding-left: 12px; }
  .hh-public-ucav span { display: none; }
  .hh-public-ucav img { width: 82px; }
  .hh-public-cart { padding: 10px; font-size: 0; }
  .hh-public-cart::before { content: "Carrito"; font-size: 0; }
  .hh-public-cart span { font-size: 10px; }
  .admin-bar .hh-public-nav { top: 46px; }
  .hh-legal-page .entry-content,
  .hh-commerce-page .entry-content {
    width: min(100% - 24px, 920px);
    margin-top: 24px !important;
    margin-bottom: 44px !important;
  }
  .hh-legal-page .entry-content { padding: 28px 22px !important; border-radius: 12px; }
  .hh-public-footer { margin-top: 48px; padding-top: 46px; }
  .hh-public-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .hh-public-footer-grid > div:first-child { grid-column: 1 / -1; }
  .hh-public-footer-grid > div:last-child { grid-column: auto; }
  .hh-public-footer-bottom { flex-direction: column; gap: 6px; margin-top: 34px; }
}

@media (max-width: 430px) {
  .hh-public-cart { display: none; }
  .hh-public-ucav img { width: 76px; }
}
