/* =============================================================
   ALMA SERVICES PORTO · Cabecera, menú y pie (todas las páginas)
   Estilo revista: Cormorant Garamond (títulos) + Inter (texto).
   Las clases van con prefijo ah- para no chocar con styles.css.
   ============================================================= */

:root {
  --ah-paper:    #F1EBE1;
  --ah-sand:     #E7DFD2;
  --ah-ink:      #111111;
  --ah-ink-2:    #1D1D1D;
  --ah-mute:     #6A665F;
  --ah-terra:    #111111;
  --ah-camel:    #CBB9A2;
  --ah-cream:    #F1EBE1;
  --ah-dark:     #111111;
  --ah-line:     rgba(17,17,17,0.12);
  --ah-line-l:   rgba(242,234,220,0.14);
  --ah-display:  "Cormorant Garamond", "Didot", Georgia, serif;
  --ah-body:     "Inter", "Helvetica Neue", Arial, sans-serif;
  --ah-logo:     "Bodoni Moda", "Didot", Georgia, serif;
  --ah-gut:      clamp(18px, 4vw, 56px);
  --ah-ease:     cubic-bezier(.16,1,.3,1);
}

/* ── Cabecera ────────────────────────────────────────────────── */
.ah-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--ah-gut);
  color: var(--ah-ink);
  background: rgba(241,235,225,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--ah-line);
  transition: background-color .5s var(--ah-ease), color .5s var(--ah-ease), box-shadow .5s var(--ah-ease), height .4s var(--ah-ease);
  font-family: var(--ah-body);
}
/* Sobre un vídeo o foto de portada: transparente hasta hacer scroll */
.ah-header.ah-over:not(.nav--scrolled) { background: transparent; box-shadow: none; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ah-header.nav--scrolled { height: 68px; }

.ah-lang { display: flex; gap: 2px; justify-self: start; }
.ah-lang .lang-btn {
  background: none; border: 0; color: inherit; cursor: pointer;
  font: 500 11px/1 var(--ah-body); letter-spacing: .14em;
  padding: 6px 6px; opacity: .5; transition: opacity .3s;
}
.ah-lang .lang-btn:hover, .ah-lang .lang-btn--active { opacity: 1; }

.ah-logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; line-height: 1; }
.ah-logo b { font: 600 27px/1 var(--ah-logo); letter-spacing: -.04em; }
.ah-logo small { font: 500 8px/1 var(--ah-body); letter-spacing: .48em; margin-top: 6px; padding-left: .48em; opacity: .85; }

.ah-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.ah-cta {
  font: 500 11px/1 var(--ah-body); letter-spacing: .16em; text-transform: uppercase;
  color: inherit; text-decoration: none; padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
}
.ah-burger {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--ah-ink); color: var(--ah-cream);
  transition: transform .3s var(--ah-ease), background .3s;
  position: relative; z-index: 2;
}
.ah-header.ah-over:not(.nav--scrolled) .ah-burger { background: rgba(255,255,255,0.92); color: var(--ah-ink); }
.ah-burger:hover { transform: scale(1.06); }
.ah-burger span { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 2px 0; transition: transform .35s var(--ah-ease), opacity .25s; }
.ah-burger > i { display: flex; flex-direction: column; }
.ah-burger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.ah-burger.open span:nth-child(2) { transform: translateY(-2px) rotate(-45deg); }
.ah-burger.open span:nth-child(3) { opacity: 0; }

/* ── Menú a pantalla completa ────────────────────────────────── */
.ah-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ah-dark); color: var(--ah-cream);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px;
  padding: 120px var(--ah-gut) 48px;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ah-ease), visibility .45s;
  overflow-y: auto;
}
.ah-menu.open { opacity: 1; visibility: visible; }
.ah-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; align-self: center; }
.ah-menu li { counter-increment: m; border-bottom: 1px solid var(--ah-line-l); }
.ah-menu .nav-link {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0; text-decoration: none; color: var(--ah-cream);
  font: 400 clamp(1.9rem, 4.2vw, 3.4rem)/1.05 var(--ah-display); text-transform: uppercase; letter-spacing: .02em;
  transition: color .3s, padding-left .45s var(--ah-ease);
}
.ah-menu .nav-link::before { content: counter(m, decimal-leading-zero); font: 400 11px/1 var(--ah-body); letter-spacing: .14em; color: var(--ah-camel); }
.ah-menu .nav-link:hover { color: var(--ah-camel); padding-left: 10px; }
.ah-menu-side { align-self: end; font: 300 15px/1.7 var(--ah-body); color: rgba(242,234,220,0.72); }
.ah-menu-side h4 { font: 500 11px/1 var(--ah-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ah-camel); margin: 0 0 12px; }
.ah-menu-side a { color: var(--ah-cream); text-decoration: none; display: block; }
.ah-menu-side a:hover { color: var(--ah-camel); }
.ah-menu-side p { margin: 0 0 26px; }
.ah-menu-cta { display: inline-block; margin-top: 8px; padding: 15px 24px; background: var(--ah-camel); color: #111 !important; font: 500 12px/1 var(--ah-body); letter-spacing: .16em; text-transform: uppercase; border-radius: 999px; }
body.ah-menu-open .ah-header { color: var(--ah-cream); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.ah-menu-open .ah-burger { background: var(--ah-cream); color: var(--ah-ink); }
@media (max-width: 860px) {
  .ah-menu { grid-template-columns: 1fr; padding-top: 104px; }
  .ah-menu-side { align-self: start; }
  .ah-cta { display: none; }
}
@media (max-width: 520px) {
  .ah-header { height: 70px; }
  .ah-logo b { font-size: 23px; }
  .ah-logo small { font-size: 7px; }
}

/* ── Pie ─────────────────────────────────────────────────────── */
.ah-footer { background: var(--ah-dark); color: rgba(242,234,220,0.72); font: 300 14px/1.7 var(--ah-body); padding: 72px var(--ah-gut) 28px; }
.ah-footer a { color: var(--ah-cream); text-decoration: none; }
.ah-footer a:hover { color: var(--ah-camel); }
.ah-foot-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ah-foot-brand .ah-logo { align-items: flex-start; color: var(--ah-cream); }
.ah-foot-brand p { margin: 18px 0 0; max-width: 22rem; }
.ah-footer h4 { font: 500 11px/1 var(--ah-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ah-camel); margin: 6px 0 16px; }
.ah-footer ul { list-style: none; margin: 0; padding: 0; }
.ah-footer li { margin-bottom: 8px; }
.ah-foot-bottom {
  max-width: 1240px; margin: 56px auto 0; padding-top: 22px; border-top: 1px solid var(--ah-line-l);
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(242,234,220,0.5);
}
.ah-foot-bottom a { color: rgba(242,234,220,0.7); }
/* Crédito de Memo Studio: visible y clicable */
.ah-credit {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 12px; border: 1px solid var(--ah-line-l); border-radius: 999px;
  color: rgba(242,234,220,0.78) !important; transition: border-color .3s, background .3s;
}
.ah-credit:hover { border-color: var(--ah-camel); background: rgba(201,162,122,0.08); }
.ah-credit i { width: 26px; height: 26px; border-radius: 50%; background: var(--ah-cream); color: var(--ah-ink); display: grid; place-items: center; font: 600 11px/1 var(--ah-body); font-style: normal; letter-spacing: -.02em; }
.ah-credit strong { color: var(--ah-cream); font-weight: 600; }
.ah-credit em { font-style: normal; color: var(--ah-camel); }
@media (max-width: 860px) {
  .ah-foot-grid { grid-template-columns: 1fr 1fr; }
  .ah-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ah-foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .ah-foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Compatibilidad con styles.css (páginas interiores) ──────── */
.ah-header .lang-switch { background: none; border: 0; padding: 0; box-shadow: none; border-radius: 0; }
.ah-header .lang-btn, .ah-header .lang-btn--active { background: none !important; color: inherit !important; border: 0; box-shadow: none; border-radius: 0; width: auto; height: auto; }
.ah-header .lang-btn--active { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.wa-float .wa-float-label { display: none !important; }

/* Estrellas doradas con brillo */
.kx-stars, .alma-star, .review-stars, .rv-hero-stars, .rv-stars-small, .rv-cta-stars, .score-stars, .review-snip-stars {
  background: linear-gradient(110deg, #c98800 0%, #f2b400 30%, #ffe27a 45%, #f2b400 60%, #c98800 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 6px rgba(242, 170, 0, .55));
  animation: alma-shine 3.6s linear infinite;
}
.kx-stars { font-size: .5em; }
@keyframes alma-shine { from { background-position: 100% 0; } to { background-position: -160% 0; } }
@media (prefers-reduced-motion: reduce) { .kx-stars, .alma-star, .review-stars, .rv-hero-stars, .rv-stars-small, .rv-cta-stars, .score-stars, .review-snip-stars { animation: none; background-position: 40% 0; } }

/* Logo en tono café (moca y expreso) con el mismo reflejo que «The Alma Of Almada» */
:root { --espresso: #3e2618; --mocha: #6f4a33; --latte: #c49a72; }
.ah-logo b, .ah-logo small {
  background: linear-gradient(105deg, var(--espresso) 0%, var(--mocha) 38%, #c89b6d 47%, #f3dcc0 50%, #c89b6d 53%, var(--mocha) 62%, var(--espresso) 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: alma-logo-shine 8s ease-in-out infinite;
}
.ah-foot-brand .ah-logo b, .ah-foot-brand .ah-logo small, .ah-header.ah-over:not(.nav--scrolled) .ah-logo b, .ah-header.ah-over:not(.nav--scrolled) .ah-logo small {
  background-image: linear-gradient(105deg, #a8774f 0%, var(--latte) 38%, #ecd2b2 47%, #fff3e2 50%, #ecd2b2 53%, var(--latte) 62%, #a8774f 100%);
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35));
}
@keyframes alma-logo-shine { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .ah-logo b, .ah-logo small { animation: none; background-position: 30% 0; } }

/* Sobre la foto el logo va en blanco (versión invertida); al bajar pasa a café */
.ah-header.ah-over:not(.nav--scrolled) .ah-logo b, .ah-header.ah-over:not(.nav--scrolled) .ah-logo small {
  background-image: linear-gradient(105deg, #fff 0%, #fff 42%, #f6e6cf 48%, #fffaf2 50%, #f6e6cf 52%, #fff 58%, #fff 100%);
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .3));
}
