@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #2b1650;
  --ink-soft: #5a4a7a;
  --paper: #fbf8ff;
  --white: #ffffff;
  --pink: #ff4f9a;
  --pink-deep: #c81e6e;
  --sun: #ffc531;
  --sky: #4fc3f7;
  --mint: #3fd6b0;
  --wa: #128c4a;
  --radius: 22px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Bricolage", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter);
  background: var(--ink); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: none; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; opacity: 0.9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--sun); }
.btn-seo {
  font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  background: var(--sun); color: var(--ink); border: 0; border-radius: 999px;
  padding: 10px 18px; min-height: 44px;
}
.btn-seo:hover { background: #ffd35e; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1.02rem; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn svg { width: 24px; height: 24px; flex: none; }
.btn:active { transform: scale(0.98); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0e7340; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sun); }

/* Hero */
.hero {
  width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto;
  padding: 36px 0 56px;
  display: grid; gap: 40px; align-items: center;
}
.hero-kicker { font-weight: 700; color: var(--pink-deep); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.5rem, 9.5vw, 5.2rem); max-width: 12ch; }
.hero-lead { font-size: 1.15rem; max-width: 34em; margin: 20px 0 26px; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { flex: 1 1 220px; }
.hero-hours { margin: 18px 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.hero-hours.is-open::before, .hero-hours.is-closed::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--mint);
}
.hero-hours.is-closed::before { background: var(--pink); }

.hero-art {
  position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto;
  display: grid; place-items: center;
}
.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 90s linear infinite; }
.ring-b { inset: 7%; width: 86%; height: 86%; animation-direction: reverse; animation-duration: 120s; }
.ring-c { inset: 14%; width: 72%; height: 72%; animation-duration: 70s; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-photo {
  width: 66%; aspect-ratio: 1; object-fit: cover; object-position: 50% 62%;
  border-radius: 50%; border: 8px solid var(--sun); background: var(--sun);
  position: relative;
}

/* Sections */
section { position: relative; }
.rubros { padding: 64px 0; background: var(--white); }
.rubros h2, .historia h2, .visita h2, .ig h2 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
.sec-lead { color: var(--ink-soft); max-width: 36em; margin: 14px 0 32px; }

.tiles { display: grid; gap: 16px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; min-height: 340px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-body {
  position: absolute; inset: auto 0 0 0; padding: 60px 20px 20px;
  background: linear-gradient(to top, rgba(43, 22, 80, 0.92) 30%, rgba(43, 22, 80, 0));
}
.tile h3 { font-size: 1.7rem; margin-bottom: 6px; }
.tile p { margin: 0; font-size: 0.98rem; max-width: 28em; }
.t-hallo img { object-position: 50% 40%; }

.chips { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.c1 { background: var(--pink); color: #fff; }
.c2 { background: var(--sun); }
.c3 { background: var(--sky); }
.c4 { background: var(--mint); }
.c5 { background: #ffc4dc; }
.c6 { background: #d9c8ff; }
.c7 { background: #bde9fb; }
.c8 { background: #bff3e4; }
.c1 { color: #1c0b3a; }

.historia { padding: 72px 0; background: var(--ink); color: #fff; }
.historia-grid { display: grid; gap: 32px; align-items: center; }
.poster { border-radius: var(--radius); width: min(100%, 420px); margin-inline: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.historia h2 { margin-bottom: 20px; }
.historia p { max-width: 36em; color: #e6dcfa; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }

.visita { padding: 72px 0; }
.visita-grid { display: grid; gap: 32px; }
.visita address { font-style: normal; margin: 20px 0 28px; font-size: 1.12rem; }
.visita h3 { font-size: 1.3rem; margin-bottom: 10px; }
.horarios { border-collapse: collapse; width: 100%; max-width: 380px; margin-bottom: 28px; }
.horarios th, .horarios td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #e3d9f5; font-weight: 500; }
.horarios th { font-weight: 700; }
.horarios tr.today { background: #fff1c4; }
.horarios tr.today th::after { content: " (hoy)"; font-weight: 500; }
.visita-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.mapbox { border-radius: var(--radius); overflow: hidden; min-height: 320px; background: #e3d9f5; border: 3px solid var(--ink); }
.mapbox iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.ig { background: var(--pink); color: #1c0b3a; padding: 56px 0; }
.ig-inner { display: grid; gap: 14px; justify-items: start; }
.ig p { margin: 0 0 6px; font-size: 1.12rem; }

.foot { background: #1c0b3a; color: #e6dcfa; padding: 32px 0 96px; font-size: 0.95rem; }
.foot p { margin: 0 0 6px; }
.foot a { text-underline-offset: 3px; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 18px 12px 14px; min-height: 52px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(18, 140, 74, 0.45);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: #0e7340; }

/* SEO dialog */
.seo {
  width: min(680px, 100% - 24px); max-height: 88vh; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--white); color: var(--ink); overflow: hidden;
}
.seo[open] { display: flex; flex-direction: column; }
.seo::backdrop { background: rgba(28, 11, 58, 0.7); }
.seo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; background: var(--sun); }
.seo-head h2 { font-size: 1.4rem; }
.seo-close { font: inherit; font-size: 1.8rem; line-height: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; flex: none; }
.seo-body { padding: 18px 20px 24px; overflow-y: auto; }
.seo-body h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.seo-body ul, .seo-body ol { margin: 0; padding-left: 22px; }
.seo-body li { margin-bottom: 6px; }
.seo-body code { background: #efe7ff; padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.seo-intro { margin: 0; color: var(--ink-soft); }

@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .nav { display: flex; }
  .hero { grid-template-columns: 1.1fr 1fr; padding: 64px 0 88px; gap: 56px; }
  .hero-cta .btn { flex: 0 1 auto; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { min-height: 440px; }
  .historia-grid { grid-template-columns: 0.8fr 1fr; gap: 64px; }
  .visita-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: stretch; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 0.95rem; }
  .btn-seo { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
