/* ==========================================================================
   PANCE 122 · One-pager
   Paleta tomada del colibrí (turquesa, esmeralda, lima) + carbón cálido.
   Tipografía: Cormorant Garamond (display) + Manrope (texto).
   ========================================================================== */

:root {
  --paper: #f6f5f0;
  --paper-2: #eeefe9;
  --ink: #1d2321;
  --ink-soft: #3d4642;
  --muted: #5d6763;
  --carbon: #2a2420;          /* carbón cálido (tono del escudo) */
  --turq: #5fc7c4;            /* turquesa del "122" y del colibrí */
  --turq-ink: #17706c;        /* turquesa legible sobre fondo claro */
  --emerald: #0f6f58;
  --lime: #c8dc3f;            /* uso puntual: acentos y foco */
  --line: rgba(29, 35, 33, 0.12);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: 16px;
  --max: 1200px;
  --radius: 4px;
}

@media (min-width: 720px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { touch-action: manipulation; }
input, textarea, select { font-size: 16px; font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px;
}
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}
.body-copy { color: var(--ink-soft); margin: 0 0 24px; max-width: 46ch; }
.noscript { padding: 24px; color: var(--muted); }

.section { padding: 96px 0; }
@media (max-width: 719px) { .section { padding: 72px 0; } }
.section-head { margin-bottom: 48px; }
.section-head-split {
  display: grid; gap: 16px;
}
@media (min-width: 900px) {
  .section-head-split { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .section-head-split .lead { justify-self: end; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font: 600 0.92rem/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out),
              border-color 220ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-ghost { background: rgba(246, 245, 240, 0.08); color: var(--paper); border-color: rgba(246, 245, 240, 0.5); backdrop-filter: blur(6px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-light:hover { background: #fff; }
  .btn-ghost:hover { background: rgba(246, 245, 240, 0.18); }
  .btn-ink:hover { background: var(--emerald); }
  .btn-outline:hover { background: var(--ink); color: var(--paper); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.site-header.is-solid {
  background: rgba(246, 245, 240, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.site-header.is-solid .brand { color: var(--ink); }
.brand img { width: 79px; height: auto; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: 0.02em; }
.brand-num { color: var(--turq); font-weight: 600; }
.site-header.is-solid .brand-num { color: var(--turq-ink); }

.site-nav { display: none; gap: 28px; }
.site-nav a {
  font-size: 0.86rem; font-weight: 500; text-decoration: none; color: var(--paper);
  padding: 6px 0; position: relative;
}
.site-header.is-solid .site-nav a { color: var(--ink); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 320ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}
@media (min-width: 1040px) {
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
}

.menu-toggle {
  background: none; border: 1px solid rgba(246, 245, 240, 0.5); color: var(--paper);
  border-radius: 999px; min-height: 44px; padding: 0 18px; font: 600 0.88rem var(--sans);
  cursor: pointer;
}
.site-header.is-solid .menu-toggle { color: var(--ink); border-color: var(--ink); }

.mobile-nav {
  background: var(--paper); border-top: 1px solid var(--line);
  display: grid; padding: 8px var(--gutter) 20px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  text-decoration: none; font-family: var(--serif); font-size: 1.6rem;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--paper); overflow: hidden; isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 40%; z-index: -2;
  transform: scale(1.06);
  animation: hero-settle 2400ms var(--ease-out) forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 24, 22, 0.55) 0%, rgba(20, 24, 22, 0) 28%),
    linear-gradient(0deg, rgba(20, 24, 22, 0.9) 0%, rgba(20, 24, 22, 0.35) 48%, rgba(20, 24, 22, 0.15) 100%),
    linear-gradient(90deg, rgba(20, 24, 22, 0.55) 0%, rgba(20, 24, 22, 0) 70%);
}
.hero-content {
  padding-top: 140px; padding-bottom: clamp(72px, 12vh, 120px);
  opacity: 0; transform: translateY(14px);
  animation: rise 1100ms 350ms var(--ease-out) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-kicker {
  margin: 0 0 18px; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(246, 245, 240, 0.82);
}
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.2rem, 1.2rem + 8.4vw, 8.4rem);
  line-height: 0.92; letter-spacing: -0.02em; margin: 0 0 22px;
  max-width: 11ch; text-wrap: balance;
}
.hero-title-line { font-weight: 500; color: var(--turq); }
.hero-sub {
  margin: 0 0 32px; font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.25rem);
  color: rgba(246, 245, 240, 0.9); max-width: 34ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 44px; height: 44px; display: grid; place-items: center; z-index: 1;
}
.hero-scroll-line {
  width: 1px; height: 36px; background: linear-gradient(var(--paper), transparent);
  animation: drip 2.4s var(--ease-in-out) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 2. Directorio y mapa ---------- */
.section-directory { background: var(--paper); }

.mall-map {
  position: relative; border-radius: var(--radius); overflow: visible;
  background: #dfe6e2;
}
.mall-img { width: 100%; height: auto; border-radius: var(--radius); }

.hotspot {
  position: absolute; margin: 0; padding: 0; border: 0; background: transparent;
  cursor: pointer; border-radius: 3px;
  min-width: 28px; min-height: 28px; /* área táctil mínima en móvil */
}
.hotspot::after {
  content: ""; position: absolute; inset: 0; border-radius: 3px;
  border: 1.5px solid transparent;
  background: rgba(95, 199, 196, 0.0);
  transition: background-color 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
.hotspot.is-active::after,
.hotspot:focus-visible::after {
  border-color: var(--turq-ink); background: rgba(95, 199, 196, 0.18);
}
@media (hover: hover) and (pointer: fine) {
  .hotspot:hover::after { border-color: var(--turq-ink); background: rgba(95, 199, 196, 0.18); }
}
.hotspot:focus { outline: none; }

.mall-card {
  position: absolute; z-index: 5; width: min(300px, calc(100% - 24px));
  background: var(--paper); color: var(--ink);
  border-radius: 6px; padding: 18px 18px 16px;
  box-shadow: 0 20px 50px -18px rgba(20, 24, 22, 0.35), 0 0 0 1px var(--line);
  left: 0; top: 0;
  transform-origin: var(--origin, 50% 100%);
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out);
  pointer-events: auto;
}
.mall-card[hidden] { display: none; }
.mall-card.is-entering { opacity: 0; transform: translateY(6px) scale(0.97); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-logo {
  width: 64px; height: 44px; object-fit: contain; flex: none;
  background: #fff; border-radius: 4px; padding: 4px;
}
.card-meta { font-size: 0.78rem; color: var(--muted); margin: 0 0 2px; }
.card-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.05; margin: 0; font-weight: 500; }
.card-desc { margin: 0 0 12px; font-size: 0.94rem; color: var(--ink-soft); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.86rem; }
.card-hours { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.card-link {
  color: var(--turq-ink); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.card-close {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px;
  border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--ink);
  display: grid; place-items: center;
}
.card-close:hover { background: var(--paper-2); }

.directory {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
@media (min-width: 900px) { .directory { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .directory { grid-template-columns: repeat(5, 1fr); } }
.dir-item { background: var(--paper); }
.dir-btn {
  width: 100%; height: 100%; min-height: 132px; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 18px; background: transparent; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
  transition: background-color 260ms var(--ease-out);
}
.dir-logo {
  height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left center;
}
.dir-name { font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.dir-loc { font-size: 0.78rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .dir-btn:hover { background: var(--paper-2); }
}
.dir-btn.is-active { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--turq); }

/* ---------- 3. Ubicación ---------- */
.section-location { background: var(--paper-2); }
.location-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .location-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; } }
.map-frame {
  position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: 0 0 0 1px var(--line);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.85); }
.address { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; margin: 0 0 14px; }
.address-label {
  display: block; font: 600 0.82rem var(--sans); color: var(--turq-ink); margin-bottom: 6px;
}
.nav-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.nav-buttons .btn { min-height: 52px; padding: 0 22px; }
.location-info .h2 { font-size: clamp(2rem, 1.3rem + 2vw, 3rem); }

/* ---------- 4. Experiencia ---------- */
.section-experience { background: var(--paper); }
.bento {
  display: grid; gap: 12px; grid-template-columns: 1fr 1fr;
  grid-auto-rows: 170px; grid-auto-flow: dense;
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
}
/* Tamaños del bento: L = grande (2×2), w = ancha (2×1), t = alta (1×2), s = normal (1×1) */
.bento .L { grid-column: span 2; grid-row: span 2; }
.bento .w { grid-column: span 2; }
.bento .t { grid-row: span 2; }
/* Móvil (2 columnas): la foto 13 ocupa 2 filas para no dejar un hueco */
@media (max-width: 899px) { .bento > :nth-child(13) { grid-row: span 2; } }
.bento-item { margin: 0; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.bento-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bento-item:hover img { transform: scale(1.03); }
}

.benefits {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; gap: 28px 40px; grid-template-columns: 1fr;
  border-top: 1px solid var(--line); padding-top: 40px;
}
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.benefit { display: grid; gap: 14px; align-content: start; }
.benefit-icon { width: 44px; height: 44px; color: var(--emerald); }
.benefit p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.benefit strong { color: var(--ink); font-weight: 600; }

/* ---------- 5. Instagram ---------- */
.section-instagram { background: var(--carbon); color: var(--paper); }
.section-instagram .lead { color: rgba(246, 245, 240, 0.7); }
.section-instagram .h2 { color: var(--paper); }
.ig-feed {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; min-height: 260px;
}
@media (min-width: 900px) { .ig-feed { grid-template-columns: repeat(4, 1fr); } }
.ig-placeholder {
  grid-column: 1 / -1; display: grid; place-items: center; min-height: 260px;
  border: 1px dashed rgba(246, 245, 240, 0.3); border-radius: 6px; text-decoration: none;
  color: rgba(246, 245, 240, 0.8); padding: 24px; text-align: center;
  background: linear-gradient(135deg, rgba(95, 199, 196, 0.12), rgba(200, 220, 63, 0.06));
}
.ig-cta { margin-top: 36px; }
.section-instagram .btn-ink { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .section-instagram .btn-ink:hover { background: var(--turq); }
}

/* ---------- 6. Locales ---------- */
.section-lease { background: var(--paper); }
.lease-intro { max-width: 720px; margin-bottom: 48px; }
.stats {
  list-style: none; padding: 0; margin: 0 0 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper); padding: 28px 22px 26px; display: grid; gap: 10px; align-content: start; }
.stat-num {
  font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 2vw, 3.8rem);
  font-weight: 400; line-height: 1; color: var(--emerald);
}
.stat-label { font-size: 0.9rem; color: var(--ink-soft); }

.lease-form {
  display: grid; gap: 22px 28px; grid-template-columns: 1fr;
  max-width: 880px; padding: 36px 0 0; border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .lease-form { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: #fff; color: var(--ink); border: 1px solid rgba(29, 35, 33, 0.18); border-radius: 4px;
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.field input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(15, 111, 88, 0.18); }
.field input:user-invalid:not(:focus) { border-color: #b3261e; }
.field-check {
  grid-column: 1 / -1; grid-template-columns: 22px 1fr; align-items: center; gap: 12px;
}
.field-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--emerald); }
.field-check label { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
.field-check a { color: var(--turq-ink); }
.req { color: var(--emerald); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .btn { min-width: 220px; min-height: 52px; }
.form-status { margin: 0; font-size: 0.92rem; color: var(--emerald); }
.form-status.is-error { color: #b3261e; }

/* ---------- 7. Footer ---------- */
.site-footer {
  background: var(--carbon); color: rgba(246, 245, 240, 0.78);
  padding: 72px 0 0; font-size: 0.94rem;
}
.footer-grid { display: grid; gap: 40px 48px; grid-template-columns: 1fr; padding-bottom: 56px; }
@media (min-width: 560px) { .footer-grid { grid-template-columns: repeat(2, auto); justify-content: space-between; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(4, auto); justify-content: space-between; align-items: start; } }
.footer-title {
  font: 600 0.9rem var(--sans); color: var(--paper); margin: 0 0 14px;
}
.footer-col p { margin: 0 0 8px; }
.footer-col a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(246, 245, 240, 0.25); }
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover { border-color: var(--turq); color: var(--turq); }
}
.footer-note { color: rgba(246, 245, 240, 0.6); font-size: 0.86rem; }
.footer-logo img { width: 120px; height: auto; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-nav a { color: rgba(246, 245, 240, 0.85); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--turq); }
.footer-base {
  border-top: 1px solid rgba(246, 245, 240, 0.12); padding-top: 22px; padding-bottom: 28px;
  font-size: 0.84rem; color: rgba(246, 245, 240, 0.55);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25b35d; color: #fff; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(20, 24, 22, 0.55);
  transition: transform 220ms var(--ease-out);
}
.wa-float:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { transform: translateY(-2px); }
}

/* ---------- Revelado al entrar (una sola vez, suave) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-content { opacity: 1; transform: none; }
}
