/* Shared responsive composition: minimalist, elegant, luxury header across mobile, tablet, and desktop. */
.site-header .profile-header__cta{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:34px;height:34px;padding:0 16px;
 border:1px solid rgba(217, 183, 124, 0.75);border-radius:999px;
 background:rgba(18, 14, 10, 0.55);
 -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
 color:#f5e9d6;font:400 12px/1 'MAGMA Scaver Custom',Georgia,serif;
 letter-spacing:.11em;text-transform:uppercase;white-space:nowrap;
 text-decoration:none;box-shadow:0 2px 10px rgba(0,0,0,.35);
 transition:all .22s cubic-bezier(.23,1,.32,1);
}
.site-header .profile-header__cta:hover{
 background:#d9b77c;color:#0d0a06;border-color:#d9b77c;
 transform:translateY(-1px);box-shadow:0 4px 16px rgba(217,183,124,.35);
}
.site-header .profile-header__cta:focus-visible{outline:2px solid #f9d77a;outline-offset:4px}

@media(max-width:1199px),(pointer:coarse) and (max-width:1366px){
 .site-header.profile-header{
  --compact-header-height:74px;
  --compact-gutter:clamp(16px,3vw,28px);
  display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:1fr;align-items:center;
  height:var(--compact-header-height);min-height:var(--compact-header-height);width:100%;max-width:none;
  gap:0;margin:0;padding:0 var(--compact-gutter);
  background:linear-gradient(180deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.3) 70%,transparent 100%);
  border-bottom:0;isolation:isolate;
 }
 .profile-header .profile-brand{
  grid-column:2;grid-row:1;align-self:center;justify-self:center;position:relative;z-index:3;
  width:clamp(108px,18vw,136px);aspect-ratio:1125/610;margin:0;overflow:hidden;
  -webkit-mask-image:linear-gradient(#000 84%,transparent 100%);mask-image:linear-gradient(#000 84%,transparent 100%);
 }
 .profile-header .profile-brand picture{display:block;width:100%}
 .profile-header .profile-brand img{position:static;top:auto;left:auto;width:100%;max-width:100%;height:auto;display:block}
 .profile-header .profile-menu-toggle,.js .profile-header .profile-menu-toggle{
  position:relative;z-index:3;display:flex;flex-direction:column;grid-column:1;grid-row:1;
  justify-self:start;align-self:center;width:44px;height:44px;min-height:44px;max-width:44px;
  gap:6px;align-items:center;justify-content:center;margin:0;padding:0;
  border:1px solid rgba(215,164,66,.5);border-radius:50%;
  background:rgba(18,14,10,.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  color:#efb46d;box-shadow:0 2px 8px rgba(0,0,0,.3);cursor:pointer;
  transition:all .2s ease;
 }
 .profile-header .profile-menu-toggle:hover{
  border-color:#e5c96c;box-shadow:0 0 12px rgba(229,201,108,.25);
 }
 .profile-header .profile-menu-toggle span{display:block;width:20px;height:1.5px;background:currentColor;border-radius:1px;opacity:1;transform:none;transition:transform .25s ease,opacity .25s ease}
 .profile-header .profile-menu-toggle span:nth-child(2){display:none}
 .profile-header .profile-menu-toggle[aria-expanded=true] span:first-child{transform:translateY(3.75px) rotate(45deg)}
 .profile-header .profile-menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-3.75px) rotate(-45deg)}
 .profile-header .profile-header__cta{
  grid-column:3;grid-row:1;position:relative;z-index:3;justify-self:end;align-self:center;margin:0;
  display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:0;max-width:none;
  height:32px;min-height:32px;padding:0 14px;
  border:1px solid rgba(217,183,124,.75);border-radius:999px;
  background:rgba(18,14,10,.55);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  color:#f5e9d6;font:400 11.5px/1 'MAGMA Scaver Custom',Georgia,serif;
  text-transform:uppercase;letter-spacing:.11em;white-space:nowrap;
  box-shadow:0 2px 10px rgba(0,0,0,.35);transition:all .22s cubic-bezier(.23,1,.32,1);
 }
 .profile-header .profile-header__cta:hover{
  background:#d9b77c;color:#0d0a06;border-color:#d9b77c;
  transform:translateY(-1px);box-shadow:0 4px 16px rgba(217,183,124,.35);
 }
 .profile-header>.magma-language-switcher{position:absolute;top:0;right:var(--compact-gutter);grid-column:auto;grid-row:auto;z-index:4;margin:0}
 .profile-header>.magma-language-switcher summary{min-width:44px;min-height:44px;height:44px;gap:4px;padding:3px 0;background:transparent}
 .profile-header>.magma-language-switcher .magma-language-switcher__flag{width:clamp(26px,4vw,34px);height:auto;aspect-ratio:7/5}
 .profile-header>.magma-language-switcher summary::after{display:none}
 .profile-header>.magma-language-switcher .magma-language-switcher__menu{top:100%;right:0}
 .profile-header .profile-nav,.js .profile-header .profile-nav{
  position:fixed;inset:0;z-index:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;
  width:100%;height:100dvh;overflow-y:auto;overscroll-behavior:contain;
  margin:0;padding:calc(var(--compact-header-height) + 24px) max(var(--gutter),24px) 32px;
  border:0;background:#080706;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-1rem);
  transition:opacity .2s ease,transform .3s ease,visibility .3s;
 }
 .profile-header .profile-nav.is-open,.js .profile-header .profile-nav.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:none}
 .profile-header .profile-nav__list,.js .profile-header .profile-nav__list{display:flex;flex-direction:column;align-items:stretch;width:min(100%,480px);gap:0;margin:auto;opacity:0;transform:translateY(-8px)}
 .profile-header .profile-nav.is-open .profile-nav__list{opacity:1;transform:none}
 .profile-header .profile-nav__list>li,.profile-header .profile-nav details{width:100%}
 .profile-header .profile-nav__list>li>a,.profile-header .profile-nav summary{display:flex;width:100%;justify-content:center;min-height:44px;padding:12px 6px;border-bottom:1px solid #d7a44244;font-size:18px}
 .profile-header .profile-nav__submenu{position:static;min-width:0;width:100%;padding:0 0 0 12px;background:transparent;border:0;box-shadow:none;opacity:1;transform:none;pointer-events:auto}
 .profile-header .profile-nav details:not([open]) .profile-nav__submenu{display:none}
 .profile-header .profile-nav details[open] .profile-nav__submenu,.profile-header .profile-nav details:hover .profile-nav__submenu,.profile-header .profile-nav details:focus-within .profile-nav__submenu{transform:none}
 .profile-header .profile-nav__submenu a{display:flex;justify-content:center;min-height:44px;font-size:16px}
 .profile-header :is(.profile-menu-toggle,.profile-brand,.profile-header__cta):focus-visible{outline:2px solid #f9d77a;outline-offset:4px}
 html:not(.js) .profile-header{height:auto;min-height:var(--compact-header-height);padding-top:24px;grid-template-rows:80px auto}
 html:not(.js) .profile-header .profile-menu-toggle{display:none}
 html:not(.js) .profile-header .profile-nav{position:relative;inset:auto;grid-column:1/-1;grid-row:2;height:auto;padding:24px 0;opacity:1;visibility:visible;transform:none;pointer-events:auto}
 html:not(.js) .profile-header .profile-nav__list{opacity:1;transform:none}
}

@media(max-width:360px){
 .site-header.profile-header{--compact-gutter:10px}
 .profile-header .profile-brand{width:96px}
 .profile-header .profile-header__cta{padding:0 12px;height:34px;min-height:34px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.profile-header .profile-nav,.profile-header .profile-menu-toggle span{transition:none}}

/* Typographic & optical hierarchy for header CTA */
#main-content .profile-header .profile-header__cta,
.site-header.profile-header .profile-header__cta{
 font-family:'MAGMA Scaver Custom',Georgia,serif;
 font-weight:400;
 text-transform:uppercase;
 letter-spacing:.12em;
}

@media(min-width:1200px){
 #main-content .profile-header .profile-header__cta,
 .site-header.profile-header .profile-header__cta{font-size:12.5px;height:36px;min-height:36px;padding:0 18px}
}
@media(max-width:640px){
 #main-content .profile-header .profile-header__cta,
 .site-header.profile-header .profile-header__cta{font-size:11px;height:30px;min-height:30px;padding:0 12px;letter-spacing:.1em}
}

/* Mobile language control floats independently at the lower left edge */
@media(max-width:640px),(pointer:coarse) and (max-height:640px) and (max-width:1000px){
 #main-content .profile-header .magma-language-switcher--header,
 .site-header.profile-header .magma-language-switcher--header{
  position:fixed;top:auto;right:auto;bottom:calc(16px + env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));
  transform:none;z-index:45;
 }
 .site-header.profile-header>.magma-language-switcher--header summary{
  width:44px;min-width:44px;height:44px;min-height:44px;padding:7px;
  border:1px solid #b89b5c88;border-radius:50%;background:#080706eb;box-shadow:0 4px 14px #0006;
 }
 .site-header.profile-header>.magma-language-switcher--header .magma-language-switcher__flag{width:28px;height:20px}
 .site-header.profile-header>.magma-language-switcher--header .magma-language-switcher__menu{top:auto;bottom:calc(100% + 8px);left:0;right:auto;transform:none}
}

/* Shared optical axis: ensure menu toggle, logo and cta are perfectly vertically aligned */
@media(max-width:1199px),(pointer:coarse) and (max-width:1366px){
 .site-header.profile-header .profile-menu-toggle{align-self:center;margin:0}
 #main-content .profile-header .profile-header__cta,
 .site-header.profile-header .profile-header__cta{align-self:center;margin:0;top:0}
 #main-content .profile-header .profile-brand,
 .site-header.profile-header .profile-brand{align-self:center;top:0}
}
@media(max-width:640px),(pointer:coarse) and (max-height:640px) and (max-width:1000px){
 .site-header.profile-header{padding-top:0}
}

/* ---- Mejoras UX (Claude, 03/10/2026) ---- */
/* Idioma en texto junto a la bandera. */
.magma-language-switcher__code{font:600 11px/1 system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:.08em;color:#f3dfbb}
/* Etiqueta visible del botón de contacto (WhatsApp, Telegram, llamada). */
.magma-contact-dock__tag{position:absolute;right:calc(100% + 10px);top:50%;transform:translateY(-50%);padding:7px 11px;border:1px solid rgba(246,218,154,.42);border-radius:999px;background:rgba(9,8,7,.82);color:#f3dfbb;font:400 12px/1 Georgia,'Times New Roman',serif;letter-spacing:.04em;white-space:nowrap;pointer-events:none;transition:opacity .2s ease-out}
.magma-contact-dock:not([data-state="closed"]) .magma-contact-dock__tag{opacity:0}
@media(max-width:600px){.magma-contact-dock__tag{font-size:11px;padding:6px 9px;right:calc(100% + 8px)}}
/* "Reservar" con relleno dorado: la acción principal se distingue del resto de la cabecera. */
.site-header .button.profile-header__cta,.site-header .profile-header__cta{background:#d7b778;border-color:#d7b778;color:#17110a}
.site-header .button.profile-header__cta:hover,.site-header .profile-header__cta:hover,.site-header .profile-header__cta:focus-visible{background:#f0d399;border-color:#f0d399;color:#17110a}
