/* ───────── Tokens ───────── */
:root {
  --navy: #0E2A47;
  --navy-2: #163655;
  --cream: #F5EFE6;
  --cream-2: #EDE4D3;
  --paper: #FBF7F0;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --rule: #C7B89B;
  --accent: #B7472A;
  --accent-soft: #D88A6B;
  --serif: "Cinzel", "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .04em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2.4vw, 28px); }

.kicker {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--pad);
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(199, 184, 155, 0.4);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--navy); color: var(--cream);
  font-family: var(--serif); font-weight: 900;
  border-radius: 50%;
  letter-spacing: 0;
}
.nav__name {
  font-family: var(--serif); font-weight: 700; letter-spacing: .3em;
  color: var(--navy);
}
.nav__links {
  display: flex; gap: clamp(14px, 2.6vw, 32px);
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy);
  transition: color .2s;
}
.nav__links a:hover { color: var(--accent); }
/* ───────── Instagram links + animations ───────── */
@keyframes ig-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
@keyframes ig-gradient-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.ig-link {
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  color: var(--accent) !important;
  transition: color .25s ease, transform .25s ease;
}
.ig-link .ig-icon {
  width: 18px; height: 18px;
  fill: currentColor;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), filter .3s;
}
.ig-link:hover .ig-icon {
  animation: ig-pulse 1s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(216, 138, 107, .6));
}
.ig-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.ig-link:hover::after { transform: scaleX(1); }

/* Botón ghost reemplazado por btn--ig en hero */
.btn--ig {
  background: linear-gradient(120deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background-size: 200% 200%;
  color: #fff;
  border: 1px solid transparent;
  position: relative;
  animation: ig-gradient-shift 6s linear infinite alternate;
  box-shadow: 0 6px 22px -10px rgba(220, 39, 67, .55);
}
.btn--ig .ig-icon {
  width: 20px; height: 20px; fill: currentColor;
  display: block; flex-shrink: 0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.btn--ig:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(220, 39, 67, .7);
  animation-duration: 2s;
}
.btn--ig:hover .ig-icon { transform: rotate(-12deg) scale(1.15); }
.btn--ig::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 200% 0;
  transition: background-position .8s ease;
  border-radius: inherit;
  pointer-events: none;
}
.btn--ig:hover::before { background-position: -100% 0; }
@media (max-width: 640px) {
  .nav__links li:not(:last-child) { display: none; }
}

/* ───────── Hero ───────── */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
  padding: clamp(60px, 9vw, 110px) var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(216, 138, 107, .12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(245, 239, 230, .08), transparent 45%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero__rule {
  height: 1px; background: var(--rule); opacity: .5;
  max-width: 220px; margin: 0 auto;
}
.hero__title {
  font-size: clamp(56px, 12vw, 132px);
  letter-spacing: .14em;
  margin: 24px 0 6px;
  color: var(--cream);
}
.hero__sub {
  font-family: var(--serif); font-weight: 500;
  letter-spacing: .5em; font-size: clamp(13px, 1.6vw, 18px);
  margin: 0 0 24px; color: var(--cream-2);
}
.hero__star { color: var(--accent-soft); margin: 0 8px; }
.hero__tag {
  font-family: var(--sans); font-size: clamp(14px, 1.6vw, 17px);
  color: var(--cream-2); margin: 28px auto 0; max-width: 480px;
}
.hero__ctas {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 32px;
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 26px;
  min-height: 48px;
  line-height: 1;
  border-radius: var(--radius);
  transition: all .25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent); color: var(--cream);
}
.btn--primary:hover {
  background: var(--cream); color: var(--accent);
  border-color: var(--accent);
}
.btn--ghost {
  background: transparent; color: var(--cream);
  border-color: var(--cream-2);
}
.btn--ghost:hover { background: var(--cream); color: var(--navy); }
.btn--small { padding: 10px 18px; font-size: 11px; }

/* ───────── Strip galleries ───────── */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--paper);
}
.strip figure { margin: 0; overflow: hidden; aspect-ratio: 4/3; }
.strip img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.strip figure:hover img { transform: scale(1.04); }
@media (max-width: 700px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip figure:last-child { grid-column: span 2; }
}

/* ───────── About ───────── */
.about {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--pad);
  display: grid; gap: clamp(30px, 5vw, 60px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.about__text p { color: var(--ink-soft); font-size: 16px; max-width: 460px; }
.about__inst { font-size: 16px; }
.about__inst a {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 1.15em;
  letter-spacing: .02em;
  text-decoration: none;
  background: linear-gradient(120deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
  display: inline-block;
  animation: ig-gradient-shift 5s linear infinite alternate;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.about__inst a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, #f09433, #dc2743, #bc1888);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.about__inst a:hover { transform: translateY(-1px); }
.about__inst a:hover::after { transform: scaleX(1); }
.about__images {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.about__images img { aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); }
.about__images img:nth-child(2) { transform: translateY(28px); }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about__images img:nth-child(2) { transform: none; }
}

/* ───────── Menu ───────── */
.menu {
  background: var(--cream);
  padding: clamp(60px, 8vw, 100px) var(--pad);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.menu__head { max-width: var(--max); margin: 0 auto 36px; text-align: center; }
.menu__head h2 { margin-bottom: 14px; }
.menu__note { color: var(--ink-soft); font-size: 14px; max-width: 540px; margin: 0 auto; }

.menu__tabs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  max-width: var(--max); margin: 0 auto 30px;
}
.tab {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 18px;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.tab:hover { border-color: var(--navy); }
.tab.is-active {
  background: var(--navy); color: var(--cream); border-color: var(--navy);
}

.menu__panels {
  max-width: 900px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  min-height: 320px;
}
.panel[hidden] { display: none; }
.panel h3 {
  text-align: center; color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.panel__sub {
  font-family: var(--serif); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  font-size: 13px; color: var(--accent);
  margin: 24px 0 12px;
  text-align: center;
}
.items {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
}
.items.two-col { grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.items.inline {
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.items.inline li {
  color: var(--ink-soft);
  font-size: 14.5px;
  padding: 4px 0;
  border-bottom: 1px dotted var(--rule);
}
.items li h4 {
  margin: 0 0 4px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  color: var(--navy);
  letter-spacing: .02em;
}
.items li p {
  margin: 0; font-size: 14px; color: var(--ink-soft);
}
.items li em { color: var(--accent); font-style: normal; font-weight: 600; }
@media (max-width: 600px) {
  .items.two-col, .items.inline { grid-template-columns: 1fr; }
}

/* ───────── Sedes ───────── */
.sedes {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--pad);
}
.sedes__head { text-align: center; margin-bottom: 40px; }
.sedes__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.sede {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
}
.sede h3 { color: var(--navy); margin-bottom: 8px; }
.sede__addr { font-weight: 600; color: var(--accent); margin: 0 0 18px; }
.sede__hours {
  margin: 0 0 20px; padding: 0;
  display: grid; gap: 4px;
  font-size: 14px;
}
.sede__hours div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--rule); padding: 6px 0; }
.sede__hours dt { color: var(--ink-soft); font-weight: 500; }
.sede__hours dd { margin: 0; color: var(--navy); font-weight: 600; }
.sede__map {
  aspect-ratio: 16/10;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--rule);
  margin-bottom: 18px;
}
.sede__map iframe { width: 100%; height: 100%; border: 0; }
.sede__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.sede .btn--ghost { color: var(--navy); border-color: var(--navy); }
.sede .btn--ghost:hover { background: var(--navy); color: var(--cream); }
@media (max-width: 760px) {
  .sedes__grid { grid-template-columns: 1fr; }
}

/* ───────── Gallery ───────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
}
.gallery figure { margin: 0; aspect-ratio: 1/1; overflow: hidden; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* ───────── Footer ───────── */
.foot {
  background: var(--navy); color: var(--cream);
  padding: 50px var(--pad) 24px;
  text-align: center;
}
.foot__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.foot__mark {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--rule);
}
.foot__name {
  font-family: var(--serif); font-weight: 700; letter-spacing: .3em;
  margin: 0; font-size: 18px;
}
.foot__txt p { margin: 4px 0; font-size: 14px; color: var(--cream-2); }
.foot__txt a { color: var(--accent-soft); text-decoration: none; font-weight: 600; }
.foot__txt a:hover { text-decoration: underline; }
.foot__copy {
  margin-top: 28px; font-size: 12px; color: var(--cream-2);
  letter-spacing: .1em; opacity: .7;
}
