/* ============================================================
   Perfil Público de Empresa - Circularix
   Dark-first, editorial, sin sombras (solo borders)
   ============================================================ */

.pub-profile {
  background: var(--cx-canvas);
  color: var(--cx-text);
  overflow-x: hidden;
}

.pub-wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Breadcrumb (vive dentro del hero, sin background propio) ---------- */
.pub-breadcrumb {
  position: relative;
  z-index: 2;
  padding: 0 0 20px;
}

.pub-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--cx-muted);
  letter-spacing: 0.02em;
}

.pub-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pub-breadcrumb li + li::before {
  content: "/";
  color: var(--cx-border);
  font-weight: 400;
}

.pub-breadcrumb a {
  color: var(--cx-text-soft);
  text-decoration: none;
  transition: color 180ms ease;
}

.pub-breadcrumb a:hover {
  color: var(--cx-green-bright);
}

.pub-breadcrumb [aria-current="page"] span {
  color: var(--cx-text);
}

/* ---------- Hero ---------- */
.pub-hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}

.pub-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pub-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.55;
}

.pub-orb--green {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(141, 211, 79, 0.45), transparent 70%);
}

.pub-orb--blue {
  width: 480px;
  height: 480px;
  bottom: -200px;
  right: -140px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.45), transparent 70%);
}

.pub-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.pub-hero__symbol {
  position: absolute;
  top: -120px;
  right: -180px;
  width: 380px;
  height: 380px;
  opacity: 0.05;
  filter: brightness(1.4);
  pointer-events: none;
  z-index: 0;
}

.pub-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.pub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--cx-border-strong);
  border-radius: var(--r-pill);
  background: var(--cx-green-soft);
  color: var(--cx-green-bright);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pub-kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cx-green);
  box-shadow: 0 0 0 0 rgba(141, 211, 79, 0.6);
  animation: pub-kicker-pulse 2.2s ease-out infinite;
}

@keyframes pub-kicker-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(141, 211, 79, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(141, 211, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(141, 211, 79, 0); }
}

.pub-hero__pitch {
  margin: 0 0 16px;
  max-width: 600px;
  color: var(--cx-text);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.35;
}

.pub-hero__note {
  margin: 18px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cx-muted);
  font-size: 13px;
  font-weight: 500;
}

.pub-hero__note i {
  color: var(--cx-blue-bright);
}

.pub-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.pub-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--cx-border);
  background: var(--cx-surface);
  color: var(--cx-text);
}

.pub-flag i {
  font-size: 12px;
}

.pub-flag--live {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
  color: var(--cx-success);
}

.pub-flag--cash {
  border-color: var(--cx-border-strong);
  background: var(--cx-green-soft);
  color: var(--cx-green-bright);
}

.pub-flag--cash i {
  color: var(--cx-green);
}

.pub-flag--bank {
  border-color: rgba(0, 174, 239, 0.35);
  background: var(--cx-blue-soft);
  color: var(--cx-blue-bright);
}

.pub-flag--bank i {
  color: var(--cx-blue);
}

.pub-flag--muted {
  color: var(--cx-text-soft);
}

.pub-flag__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cx-success);
  animation: pub-flag-pulse 1.8s ease-out infinite;
}

@keyframes pub-flag-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.pub-hero__title {
  margin: 22px 0 16px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--cx-text) 30%, var(--cx-text-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pub-location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 14px;
  border: 1px solid var(--cx-border);
  border-radius: var(--r-pill);
  background: var(--cx-surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--cx-text-soft);
}

.pub-location i {
  color: var(--cx-blue-bright);
}

.pub-lead {
  max-width: 640px;
  margin: 0 0 30px;
  color: var(--cx-text-soft);
  font-size: 17px;
  line-height: 1.65;
}

.pub-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
}

.pub-stat--accent {
  background: linear-gradient(145deg, var(--cx-green-soft), var(--cx-blue-soft) 80%), var(--cx-surface);
  border-color: var(--cx-border-strong);
}

.pub-stat__suf {
  font-size: 14px;
  font-weight: 600;
  color: var(--cx-text-soft);
  font-family: "Inter", sans-serif;
  margin-left: 4px;
  letter-spacing: 0;
}

.pub-stat__txt {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--cx-text);
  line-height: 1.1;
}

.pub-stat {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--cx-border);
  border-radius: var(--r-lg);
  background: var(--cx-surface);
  transition: border-color 200ms ease, transform 200ms ease;
}

.pub-stat:hover {
  border-color: var(--cx-border-strong);
  transform: translateY(-1px);
}

.pub-stat dt {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cx-muted);
}

.pub-stat dd {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--cx-text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.pub-btn--lg {
  min-height: 54px;
  padding: 14px 24px;
  font-size: 15px;
}

.pub-btn--primary {
  border: 1px solid transparent;
  background: var(--cx-grad);
  color: #07110d;
}

.pub-btn--primary:hover {
  transform: translateY(-1px);
  color: #07110d;
}

.pub-btn--ghost {
  border: 1px solid var(--cx-border);
  background: var(--cx-surface);
  color: var(--cx-text);
}

.pub-btn--ghost:hover {
  border-color: var(--cx-border-strong);
  color: var(--cx-green-bright);
}

.pub-btn--dark {
  border: 1px solid var(--cx-border);
  background: var(--cx-deep);
  color: var(--cx-text);
}

.pub-btn--dark:hover {
  border-color: var(--cx-border-strong);
  background: var(--cx-surface);
}

/* ---------- Hero media (logo solo / placeholder branded) ---------- */
.pub-hero__media {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-left: auto;
  width: 100%;
}

.pub-hero__media-frame {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--cx-border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(141, 211, 79, 0.16), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(0, 174, 239, 0.18), transparent 55%),
    var(--cx-surface);
}

.pub-hero__media-frame--logo,
.pub-hero__media-frame--foto {
  padding: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-hero__media-frame--logo img,
.pub-hero__media-frame--foto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pub-hero__media-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(11, 15, 20, 0.88);
  border: 1px solid var(--cx-border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cx-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  z-index: 3;
}

.pub-hero__media-tag i {
  color: var(--cx-green);
}

.pub-hero__logo-mark {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 96px;
  height: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: var(--r-xl);
  border: 1px solid var(--cx-border-strong);
  background: color-mix(in srgb, var(--cx-deep) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
}

.pub-hero__logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* ---------- Placeholder cuando no hay logo ---------- */
.pub-hero__media-frame--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  background:
    radial-gradient(circle at 30% 25%, rgba(141, 211, 79, 0.22), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(0, 174, 239, 0.22), transparent 55%),
    var(--cx-surface);
  border-color: var(--cx-border-strong);
}

.pub-hero__placeholder-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78%;
  height: 78%;
  opacity: 0.07;
  transform: translate(-50%, -50%);
  filter: brightness(1.6);
  pointer-events: none;
}

.pub-hero__placeholder-initial {
  position: relative;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(120px, 16vw, 200px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--cx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 1;
}

.pub-hero__placeholder-label {
  position: relative;
  margin-top: 12px;
  max-width: 280px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cx-text);
  z-index: 1;
}

.pub-hero__placeholder-hint {
  position: relative;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--cx-deep);
  border: 1px solid var(--cx-border);
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 1;
}

/* ---------- Galeria ---------- */
.pub-gallery {
  padding: 0 0 44px;
}

.pub-gallery__panel {
  border: 1px solid var(--cx-border);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--cx-green) 12%, transparent), transparent 34%),
    radial-gradient(circle at 100% 12%, color-mix(in srgb, var(--cx-blue) 10%, transparent), transparent 38%),
    var(--cx-surface);
  overflow: hidden;
}

.pub-gallery__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--cx-border-soft);
}

.pub-gallery__head > div {
  min-width: 0;
  max-width: 720px;
}

.pub-gallery__head h2 {
  margin: 0 0 8px;
  color: var(--cx-text);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.pub-gallery__head p {
  margin: 0;
  color: var(--cx-text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.pub-gallery__count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--cx-border-strong);
  border-radius: var(--r-pill);
  background: var(--cx-deep);
  color: var(--cx-text);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pub-gallery__count i {
  color: var(--cx-green-bright);
}

.pub-gallery__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.65fr);
  gap: 12px;
  padding: 12px;
}

.pub-gallery__layout--single {
  grid-template-columns: 1fr;
}

.pub-gallery__layout--single .pub-gallery__hero {
  aspect-ratio: 16 / 8;
  max-height: 520px;
}

.pub-gallery__hero,
.pub-gallery__item {
  position: relative;
  margin: 0;
  min-width: 0;
  border: 1px solid var(--cx-border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cx-surface-2) 72%, transparent), var(--cx-deep));
  overflow: hidden;
}

.pub-gallery__hero {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-xl);
}

.pub-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.pub-gallery__item {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  transition: transform 220ms ease, border-color 220ms ease;
}

.pub-gallery__item:hover {
  transform: translateY(-2px);
  border-color: var(--cx-border-strong);
}

.pub-gallery__hero img,
.pub-gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.pub-gallery__hero[data-kind="logo"] img,
.pub-gallery__item[data-kind="logo"] img {
  object-fit: contain;
  padding: 22px;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--cx-green) 16%, transparent), transparent 48%),
    var(--cx-deep);
}

.pub-gallery__hero figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--cx-border-strong) 72%, transparent);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--cx-deep) 84%, transparent);
  color: var(--cx-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pub-gallery__hero figcaption i {
  color: var(--cx-green-bright);
}

.pub-gallery__empty-state {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 12px;
  padding: 24px;
  border: 1px dashed var(--cx-border-strong);
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--cx-surface-2) 62%, transparent);
}

.pub-gallery__empty-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  background: var(--cx-green-soft);
  color: var(--cx-green-bright);
  font-size: 22px;
}

.pub-gallery__empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cx-text);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.pub-gallery__empty-state p {
  margin: 0;
  color: var(--cx-text-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Sección genérica ---------- */
.pub-section {
  padding: 72px 0;
}

.pub-section--alt {
  background: linear-gradient(180deg, var(--cx-canvas) 0%, var(--cx-deep) 100%);
}

.pub-section__head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.pub-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border: 1px solid var(--cx-border);
  border-radius: var(--r-pill);
  background: var(--cx-surface);
  color: var(--cx-text-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pub-eyebrow--on-grad {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(11, 15, 20, 0.35);
  color: #f0f5fa;
}

.pub-section__head h2 {
  margin: 0 0 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--cx-text);
}

.pub-section__head p {
  margin: 0;
  color: var(--cx-text-soft);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Bento de materiales ---------- */
.pub-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.pub-bento__card {
  position: relative;
  min-height: 0;
  border: 1px solid var(--cx-border);
  border-radius: var(--r-2xl);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--cx-green) 7%, transparent), transparent 42%),
    var(--cx-surface);
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.pub-bento__card:hover {
  border-color: var(--cx-border-strong);
  transform: translateY(-2px);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--cx-green) 11%, transparent), transparent 48%),
    var(--cx-surface);
}

.pub-bento__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--cx-grad);
}

.pub-bento__inner {
  position: relative;
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pub-bento__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.pub-bento__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--cx-green) 14%, transparent);
  border: 1px solid var(--cx-border-strong);
  color: var(--cx-green-bright);
  font-size: 18px;
}

.pub-bento__title h3 {
  margin: 0 0 4px;
  font-family: var(--rc-font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cx-text);
  letter-spacing: -0.005em;
}

.pub-bento__count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--cx-text-soft);
  font-size: 12px;
  font-weight: 600;
}

.pub-bento__count strong {
  font-family: var(--rc-font-mono, "JetBrains Mono", monospace);
  font-size: 13px;
  font-weight: 700;
  color: var(--cx-green-bright);
  letter-spacing: 0.02em;
}

.pub-bento__summary {
  margin: 0 0 14px;
  color: var(--cx-text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.pub-bento__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pub-bento__list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--cx-border);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--cx-surface-2) 72%, transparent);
  color: var(--cx-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.pub-bento__list li i {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cx-green-soft);
  color: var(--cx-green-bright);
  font-size: 9px;
}

.pub-bento__list li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pub-bento__more {
  color: var(--cx-green-bright);
  border-color: var(--cx-border-strong);
  background: var(--cx-green-soft);
  font-family: var(--rc-font-mono, "JetBrains Mono", monospace);
  font-weight: 700;
  font-size: 12px;
}

.pub-bento__more::before {
  content: "+";
  margin-right: 6px;
}

/* Tip / info banner */
.pub-tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px dashed var(--cx-border-strong);
  border-radius: var(--r-2xl);
  background: var(--cx-surface);
}

.pub-tip > i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--cx-green-bright);
  font-size: 18px;
}

.pub-tip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cx-text);
  font-size: 15px;
  font-weight: 800;
}

.pub-tip span {
  color: var(--cx-text-soft);
  font-size: 14px;
  line-height: 1.5;
}

/* Sucursal status badge */
.pub-sucursal__status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--cx-border);
  background: var(--cx-deep);
}

.pub-sucursal__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cx-muted);
}

.pub-sucursal__status--open {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.12);
  color: var(--cx-success);
}

.pub-sucursal__status--open .pub-sucursal__status-dot {
  background: var(--cx-success);
  animation: pub-flag-pulse 1.8s ease-out infinite;
}

.pub-sucursal__status--closed {
  color: var(--cx-muted);
}

/* Sucursal today line */
.pub-sucursal__today {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: var(--cx-deep);
  border: 1px solid var(--cx-border-soft);
  color: var(--cx-text);
  font-size: 13px;
  font-weight: 600;
}

.pub-sucursal__today i {
  color: var(--cx-blue-bright);
  font-size: 13px;
}

.pub-sucursal__photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.pub-sucursal__photo {
  min-width: 0;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--cx-border-soft);
  background: var(--cx-deep);
}

.pub-sucursal__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* CTA inside sucursal card */
.pub-sucursal__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--cx-border-strong);
  background: var(--cx-deep);
  color: var(--cx-green-bright);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
}

.pub-sucursal__cta:hover {
  background: var(--cx-green-soft);
  transform: translateY(-1px);
}

.pub-sucursal__cta-arrow {
  margin-left: auto;
  transition: transform 220ms ease;
}

.pub-sucursal__cta:hover .pub-sucursal__cta-arrow {
  transform: translateX(4px);
}

/* Sucursal head needs space-between for status */
.pub-sucursal__head {
  align-items: center;
}

/* Steps section */
.pub-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pub-step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--cx-border);
  border-radius: var(--r-2xl);
  background: var(--cx-surface);
  transition: border-color 220ms ease, transform 220ms ease;
}

.pub-step:hover {
  border-color: var(--cx-border-strong);
  transform: translateY(-2px);
}

.pub-step__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--cx-muted);
  letter-spacing: 0.06em;
}

.pub-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: var(--r-lg);
  background: var(--cx-deep);
  border: 1px solid var(--cx-border-strong);
  color: var(--cx-green-bright);
  font-size: 22px;
}

.pub-step h3 {
  margin: 0 0 8px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--cx-text);
}

.pub-step p {
  margin: 0;
  color: var(--cx-text-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* CTA final improvements */
.pub-cta__bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pub-cta__bullets li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cx-text-soft);
  font-size: 13px;
  font-weight: 600;
}

.pub-cta__bullets i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cx-green-soft);
  color: var(--cx-green-bright);
  font-size: 10px;
}

.pub-cta__login {
  display: inline-flex;
  justify-content: center;
  margin-top: 4px;
  padding: 8px 0;
  color: var(--cx-text-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.pub-cta__login:hover {
  color: var(--cx-green-bright);
}

/* ---------- Chips genéricos ---------- */
.pub-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-chip-list--lg .pub-chip {
  font-size: 14px;
  padding: 9px 14px;
}

.pub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--cx-border);
  border-radius: var(--r-pill);
  background: var(--cx-surface);
  color: var(--cx-text);
  font-size: 13px;
  font-weight: 700;
}

.pub-chip i {
  color: var(--cx-green-bright);
  font-size: 12px;
}

.pub-chip--soft {
  background: var(--cx-surface-2);
  border-color: var(--cx-border-soft);
}

.pub-empty {
  text-align: center;
  color: var(--cx-muted);
  font-style: italic;
}

/* ---------- Sucursales ---------- */
.pub-sucursales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.pub-sucursal {
  position: relative;
  padding: 24px;
  border: 1px solid var(--cx-border);
  border-radius: var(--r-2xl);
  background: var(--cx-surface);
  transition: border-color 220ms ease, transform 220ms ease;
}

.pub-sucursal:hover {
  border-color: var(--cx-border-strong);
  transform: translateY(-2px);
}

.pub-sucursal__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--cx-border-soft);
}

.pub-sucursal__index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: var(--r-md);
  background: var(--cx-deep);
  border: 1px solid var(--cx-border-strong);
  color: var(--cx-green-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pub-sucursal__head h3 {
  margin: 0 0 6px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cx-text);
}

.pub-sucursal__loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--cx-text-soft);
  font-size: 13px;
  font-weight: 600;
}

.pub-sucursal__loc i {
  color: var(--cx-blue-bright);
  font-size: 11px;
}

.pub-sucursal__block {
  margin-bottom: 18px;
}

.pub-sucursal__block:last-child {
  margin-bottom: 0;
}

.pub-sucursal__block--muted .pub-sucursal__hint {
  margin: 0;
  color: var(--cx-muted);
  font-size: 13px;
  font-style: italic;
}

.pub-sucursal__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pub-sucursal__label i {
  color: var(--cx-green);
  font-size: 11px;
}

.pub-sucursal__hours {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pub-sucursal__hours li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: var(--cx-deep);
  border: 1px solid var(--cx-border-soft);
}

.pub-sucursal__day {
  color: var(--cx-text-soft);
  font-size: 13px;
  font-weight: 700;
}

.pub-sucursal__time {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--cx-text);
  font-variant-numeric: tabular-nums;
}

.pub-sucursal__closed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cx-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pub-sucursal__closed i {
  color: var(--cx-danger);
  font-size: 10px;
}

.pub-sucursal__hours-row--closed {
  opacity: 0.7;
}

.pub-sucursal__hours-row--closed .pub-sucursal__day {
  color: var(--cx-muted);
}

.pub-pago-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-pago {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
}

.pub-pago--on {
  border: 1px solid var(--cx-border-strong);
  background: var(--cx-green-soft);
  color: var(--cx-green-bright);
}

.pub-pago--off {
  border: 1px solid var(--cx-border-soft);
  background: var(--cx-deep);
  color: var(--cx-muted);
  text-decoration: line-through;
  opacity: 0.55;
}

/* ---------- Zonas ---------- */
.pub-zonas {
  margin-top: 36px;
  padding: 22px;
  border: 1px solid var(--cx-border);
  border-radius: var(--r-2xl);
  background: var(--cx-surface);
}

.pub-zonas__label {
  display: block;
  margin-bottom: 14px;
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- CTA final ---------- */
.pub-cta {
  padding: 0 0 88px;
}

.pub-cta__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: center;
  padding: 48px;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(circle at 0% 0%, rgba(141, 211, 79, 0.35), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 174, 239, 0.35), transparent 55%),
    var(--cx-deep);
  border: 1px solid var(--cx-border-strong);
  overflow: hidden;
}

.pub-cta__copy h2 {
  margin: 14px 0 14px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--cx-text);
}

.pub-cta__copy p {
  margin: 0;
  color: var(--cx-text-soft);
  font-size: 16px;
  line-height: 1.65;
  max-width: 540px;
}

.pub-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub-cta__actions .pub-btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .pub-hero {
    padding: 28px 0 56px;
  }

  .pub-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pub-hero__media {
    order: -1;
    aspect-ratio: 1 / 1;
    max-width: 360px;
    margin: 0 auto;
  }

  .pub-hero__symbol {
    width: 320px;
    height: 320px;
    right: -100px;
  }

  .pub-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pub-steps {
    grid-template-columns: 1fr;
  }

  .pub-sucursal__head {
    flex-wrap: wrap;
  }

  .pub-sucursal__status {
    margin-left: 0;
  }

  .pub-gallery__layout {
    grid-template-columns: 1fr;
  }

  .pub-gallery__layout--single .pub-gallery__hero {
    aspect-ratio: 16 / 10;
  }

  .pub-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pub-section {
    padding: 56px 0;
  }

  .pub-cta__card {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .pub-cta__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pub-cta__actions .pub-btn {
    flex: 1 1 200px;
  }
}

@media (max-width: 520px) {
  .pub-wrap {
    width: min(100% - 24px, 1200px);
  }

  .pub-hero__placeholder-initial {
    font-size: 96px;
  }

  .pub-breadcrumb {
    padding-top: 72px;
  }

  .pub-hero__title {
    font-size: clamp(34px, 9vw, 48px);
  }

  .pub-actions {
    flex-direction: column;
  }

  .pub-actions .pub-btn {
    width: 100%;
    justify-content: center;
  }

  .pub-cta__actions {
    flex-direction: column;
  }

  .pub-section__head h2 {
    font-size: 26px;
  }

  .pub-gallery {
    padding-bottom: 36px;
  }

  .pub-gallery__head {
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .pub-gallery__count {
    align-self: flex-start;
  }

  .pub-gallery__layout {
    padding: 8px;
    gap: 8px;
  }

  .pub-gallery__hero {
    aspect-ratio: 4 / 3;
    border-radius: var(--r-lg);
  }

  .pub-gallery__grid {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
  }

  .pub-gallery__item {
    flex: 0 0 132px;
    min-width: 132px;
    scroll-snap-align: start;
  }

  .pub-gallery__hero figcaption {
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
  }

  .pub-gallery__empty-state {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .pub-sucursal__photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pub-stat,
  .pub-bento__card,
  .pub-sucursal,
  .pub-gallery__hero,
  .pub-gallery__item,
  .pub-btn {
    transition: none;
  }

  .pub-stat:hover,
  .pub-bento__card:hover,
  .pub-sucursal:hover,
  .pub-gallery__hero:hover,
  .pub-gallery__item:hover,
  .pub-btn--primary:hover {
    transform: none;
  }
}
