/*
 * GURU frame of the club pages: the same header, menu and footer as guruclubroom.com.
 * Ported 1:1 from guru-backoffice (public/guru/css/guru.css: header, menu, buttons; public/guru/css/pie.css: footer).
 * If the GURU site changes its header or footer, change it here too. The club content (.cl) keeps club.css.
 */

:root {
  --negro: #0D0805; --oxblood: #3C0206; --crimson: #590016; --dorado: #795C39; --beige: #D9CAAE;
  --dorado-claro: #A8885E; --beige-suave: rgba(217, 202, 174, .78);
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Poetica Std', Georgia, 'Times New Roman', serif;
  --header-h: 60px; --btn-h: 52px;
  --tex-cuero: url(tex-cuero.webp); --tex-dorado: url(tex-dorado.webp); --tex-damasco: url(tex-damasco.webp);
  --damasco-size: 532px auto;
}

body.sin-scroll { overflow: hidden; }
/* Links of the frame as the site's global "a" (kept before the specific rules below) */
.hdr a, .panel a, .pie a { color: var(--dorado-claro); }
.hdr a:hover, .panel a:hover, .pie a:hover { color: var(--beige); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hdr :focus-visible, .panel :focus-visible, .pie :focus-visible { outline: 1px solid var(--dorado-claro); outline-offset: 3px; }
@keyframes guruFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Header ---------- */
.hdr, .hdr *, .panel, .panel * { box-sizing: border-box; }
.hdr img, .panel img { max-width: 100%; }
.hdr {
  position: sticky; top: 0; z-index: 30; height: var(--header-h); color: var(--dorado-claro);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 10px;
  background-color: var(--oxblood); background-image: var(--tex-cuero); background-size: cover; background-position: center;
  font-family: var(--font-body); -webkit-font-smoothing: antialiased; transition: background .3s ease;
}
.con-portada .hdr { margin-bottom: calc(var(--header-h) * -1); background: linear-gradient(180deg, rgba(13,8,5,.55) 0%, rgba(13,8,5,0) 100%); }
.con-portada.desplazado .hdr { background-color: var(--oxblood); background-image: var(--tex-cuero); background-size: cover; background-position: center; }
.hdr__izq { display: flex; align-items: center; gap: 2px; }
.icon-btn { all: unset; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: inherit; }
.hamb { flex-direction: column; gap: 6px; }
.hamb span { width: 22px; height: 1px; background: currentColor; }
.hdr__logo { height: 44px; min-width: 64px; display: flex; justify-content: center; }
.hdr__logo img { height: 44px; width: auto; display: block; }
.hdr__der { justify-self: end; display: flex; align-items: center; padding-right: 2px; }
.lang { display: flex; }
.lang a { width: 36px; height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.lang span {
  width: 30px; height: 22px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(121,92,57,.8); border-radius: 1px;
  font-family: var(--font-display); font-size: 10px; letter-spacing: .14em; padding-left: .14em; line-height: 1; color: var(--dorado-claro); transition: background .2s, color .2s;
}
.lang a[aria-current="true"] span { background: rgba(121,92,57,.75); color: var(--beige); }

/* ---------- Menu ---------- */
.panel {
  position: fixed; inset: 0; z-index: 50; color: var(--dorado-claro); display: flex; flex-direction: column; overflow-y: auto;
  background-color: var(--oxblood); background-image: linear-gradient(180deg, rgba(13,8,5,.35), rgba(13,8,5,.6)), var(--tex-damasco);
  background-size: 100% 100%, var(--damasco-size); background-position: center top; animation: guruFade .2s ease;
  font-family: var(--font-body); -webkit-font-smoothing: antialiased;
}
.panel[hidden] { display: none; }
.panel__top { height: var(--header-h); flex: none; display: flex; justify-content: space-between; align-items: center; padding: 0 10px 0 16px; }
.panel__top img { height: 22px; width: auto; }
.panel__nav { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 28px; max-width: 420px; width: 100%; margin: 0 auto; }
.panel__nav a {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; color: inherit;
  border-bottom: 1px solid rgba(121,92,57,.5); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: 16px;
}
.panel__nav a:hover { color: var(--beige); }
.panel__pie { flex: none; padding: 16px 28px 28px; max-width: 420px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.panel__botones { display: flex; gap: 12px; width: 100%; }
.panel__botones .btn-d { flex: 1; }

/* Gold button of four clipped layers */
.btn-d {
  all: unset; cursor: pointer; box-sizing: border-box; position: relative; isolation: isolate; min-height: var(--btn-h);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 18px; line-height: 1.3;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; font-size: 14px; color: var(--dorado-claro); transition: filter .2s;
}
.btn-d:hover { filter: brightness(1.25); color: var(--dorado-claro); }
.btn-d > i { position: absolute; z-index: -1; }
.btn-d > i:nth-child(1) { inset: 0; background: var(--tex-dorado) center / cover; clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px); }
.btn-d > i:nth-child(2) { inset: 2px; background: rgba(13,8,5,.82); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.btn-d > i:nth-child(3) { inset: 4px; background: var(--tex-dorado) center / cover; clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); }
.btn-d > i:nth-child(4) { inset: 5px; background-color: var(--oxblood); background-image: var(--tex-cuero); background-size: cover; background-position: center; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }

/* ---------- Footer (pie.css of the GURU site) ---------- */
.pie {
  --space-x: 22px; --space-section: 72px; --max: 1200px;
  box-sizing: border-box; font-family: var(--font-body); text-align: center; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.pie *, .pie *::before, .pie *::after { box-sizing: border-box; }
.pie img { max-width: 100%; vertical-align: middle; }
.pie { position: relative; isolation: isolate; overflow: hidden; color: var(--beige); padding: var(--space-section) var(--space-x) 28px; background-color: var(--oxblood); background-image: var(--tex-damasco); background-size: 532px auto; background-position: center top; background-attachment: fixed; }
.pie__caja { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.pie__sello { width: 120px; height: auto; }
.pie__vajra { height: 22px; width: auto; }
.pie__datos { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pie__dir { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; line-height: 1.6; margin: 0; color: var(--dorado-claro); }
.pie__horario { font-family: var(--font-body); font-size: 18px; line-height: 1.5; margin: 0; color: var(--dorado-claro); }
.pie__marca { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .3em; font-size: 10px; line-height: 1.4; margin: 4px 0 0; padding-left: .3em; color: var(--dorado-claro); }
.redes { display: flex; gap: 8px; color: var(--dorado-claro); }
.redes a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: inherit; text-decoration: none; }
.redes a:hover { color: var(--beige); }
.credito { margin: 8px 0 0; font-size: 12px; letter-spacing: .04em; color: var(--beige-suave); }
.credito a { color: var(--beige-suave); text-decoration: none; }
.credito a:hover { color: var(--dorado-claro); }

@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
}
@media (hover: none) {
  .pie { background-attachment: scroll; }
}
