*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #f2f0ed;
  --text-color: #333;
  --accent-color: #111;
  --border-radius: 0px;
  --box-shadow: none;
  --font-h1: 'Inter', sans-serif;
  --font-h2: 'Inter', sans-serif;
  --font-h3: 'Inter', sans-serif;
  --font-p: 'Inter', sans-serif;
  --size-h1: 32px;
  --size-h2: 24px;
  --size-h3: 18px;
  --size-p: 14px;
}

html,
body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: var(--font-p);
  background: var(--bg-color);
  color: var(--text-color);
  user-select: none;
  -webkit-user-select: none;
}

h1 {
  font-family: var(--font-h1);
  font-size: var(--size-h1);
}

h2 {
  font-family: var(--font-h2);
  font-size: var(--size-h2);
}

h3 {
  font-family: var(--font-h3);
  font-size: var(--size-h3);
}

p {
  font-family: var(--font-p);
  font-size: var(--size-p);
}

/* ── Background ── */
.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-image.cover {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top left;
}

.bg-image.pattern {
  background-repeat: repeat;
  background-position: top left;
}

/* ── Canvas viewport ── */
.canvas-viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  cursor: grab;
}

.canvas-viewport.grabbing {
  cursor: grabbing;
}

.canvas-world {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

/* ── Boxes ── */
.box-item {
  position: absolute;
  overflow: visible;
  cursor: pointer;
  cursor: pointer;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

/* ── Native Mobile Scroll Snap Mode ── */
html.mobile-scroll-mode,
body.mobile-scroll-mode {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  height: auto !important;
  min-height: 100vh;
  /* Fallback */
  min-height: 100dvh;
}

body.mobile-scroll-mode .canvas-viewport {
  position: static !important;
  overflow: visible !important;
  height: auto !important;
  cursor: auto !important;
}

body.mobile-scroll-mode .canvas-world {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  will-change: auto;
  width: 100% !important;
  height: auto !important;
  padding-top: 0;
  padding-bottom: max(100px, env(safe-area-inset-bottom));
  gap: var(--mobile-gap, 10px);
}

body.mobile-scroll-mode .box-item {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100vw !important;
  /* Full width */
  scroll-snap-align: start;
  /* Snap to start */
  scroll-snap-stop: always;
  flex-shrink: 0;
  margin: 0 !important;
  opacity: 1;
  transform: none;
  scroll-margin-top: env(safe-area-inset-top);
  /* Align under notch properly */
}

.box-media {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.box-media.has-video::after {
  content: "play_arrow";
  font-family: "Material Symbols Outlined";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 48px;
  opacity: 0.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.2s, transform 0.5s cubic-bezier(.25, .46, .45, .94);
}

.box-item:hover .box-media.has-video::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.box-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius);
  transition: transform 0.5s cubic-bezier(.25, .46, .45, .94);
}

.box-item:hover .box-image {
  transform: scale(1.04);
}

.box-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: transform 0.5s cubic-bezier(.25, .46, .45, .94);
}

.box-item:hover .box-video {
  transform: scale(1.04);
}

.box-video::-webkit-media-controls,
.lazy-video::-webkit-media-controls,
.box-video::-webkit-media-controls-start-playback-button,
.lazy-video::-webkit-media-controls-start-playback-button,
.box-video::-webkit-media-controls-play-button,
.lazy-video::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none;
}

/* Logo overlay on box — positioning via data attributes */
/* Logo overlay on box */
.box-media .box-logo {
  position: absolute;
  width: 25%;
  height: auto;
  object-fit: contain;
  z-index: 5;
  transition: transform 0.5s cubic-bezier(.25, .46, .45, .94);
}

.box-item:hover .box-logo {
  transform: scale(1.04);
}

.box-logo.pos-top-left {
  top: 8px;
  left: 10px;
}

.box-logo.pos-top-center {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.box-logo.pos-top-right {
  top: 8px;
  right: 10px;
}

.box-logo.pos-center-left {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.box-logo.pos-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.box-logo.pos-center-right {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.box-logo.pos-bottom-left {
  bottom: 8px;
  left: 10px;
}

.box-logo.pos-bottom-center {
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.box-logo.pos-bottom-right {
  bottom: 8px;
  right: 10px;
}

/* Preserve transform on hover */
.box-item:hover .box-logo.pos-top-center,
.box-item:hover .box-logo.pos-bottom-center {
  transform: translateX(-50%) scale(1.04);
}

.box-item:hover .box-logo.pos-center-left,
.box-item:hover .box-logo.pos-center-right {
  transform: translateY(-50%) scale(1.04);
}

.box-item:hover .box-logo.pos-center {
  transform: translate(-50%, -50%) scale(1.04);
}

/* ── Text type box ── */
.box-type-text .box-text-card {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-type-text:hover .box-text-card {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.box-text-title {
  font-family: var(--font-h3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ── Caption below image ── */
.box-caption {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  /* Center horizontally */
  padding: 16px 16px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  opacity: 1;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.box-caption.is-coming-soon-caption {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  background: none;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  padding: 0;
}

body.canvas-moving .box-caption {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Global mobile bottom gradient mask overlay */
.mobile-gradient-overlay {
  display: none;
}

.caption-text {
  font-family: var(--font-p);
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff !important;
  text-shadow: none;
  /* No shadow */
  opacity: 0.95;
  line-height: 1.3;
  white-space: normal;
  display: block;
  overflow-wrap: break-word;
}

/* ── Opening animation ── */
@keyframes box-enter {
  from {
    opacity: 0;
    transform: translate(var(--enter-x, 0), var(--enter-y, 0)) scale(0.15);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

/* ── Fixed Logo ── */
.fixed-logo {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fixed-logo.visible {
  opacity: 1;
}

.fixed-logo img {
  width: auto;
  object-fit: contain;
}

/* ── Tags Menu (top-right) ── */
.tags-toggle {
  background: rgba(255, 255, 255, 0.8) !important;
  color: #111 !important;
  mix-blend-mode: normal;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: opacity 0.2s, background 0.2s;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

.tags-toggle:hover {
  background: none !important;
  opacity: 0.7;
}

.fixed-tags-menu {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tags-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background: var(--panel-bg, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--panel-border, rgba(0, 0, 0, 0.1));
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 140px;
  border: 1px solid var(--panel-border, transparent);
}

.tags-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tag-opt {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-family: var(--font-p);
  text-align: right;
  font-size: 13px;
  padding: 8px 18px;
  cursor: pointer;
  border-radius: 999px;
  color: #111;
  transition: background 0.2s, color 0.2s;
}

.tag-opt:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent) !important;
}

.tag-opt.active {
  background: #fff;
  color: var(--accent) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ── Contact (bottom-right) ── */
.fixed-contact {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-toggle {
  background: rgba(255, 255, 255, 0.8) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  font-family: var(--font-p);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111 !important;
  cursor: pointer;
  padding: 12px 24px;
  margin: 0;
  line-height: 1;
  transition: background 0.3s, opacity 0.3s;
  border-radius: 999px;
}

.contact-toggle:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  opacity: 1;
}

.contact-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(.4, 0, .2, 1), opacity 0.3s, padding 0.3s;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-bottom: 0;
}

.contact-panel.open {
  max-height: 600px;
  opacity: 1;
  padding: 24px;
  min-width: 320px;
  /* Ancho de la capsula */
  margin-bottom: 24px;
  background: var(--panel-bg, rgba(255, 255, 255, 0.85));
  /* Bajale la opacidad un poco */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius, 16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--panel-border, transparent);
  overflow: visible;
}

.contact-items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 12px;
}

.contact-item {
  font-family: var(--font-p);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--panel-text, var(--text-color));
  padding: 3px 0;
  transition: opacity 0.2s;
  text-align: right;
  white-space: pre-line;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-item:hover {
  opacity: 0.5;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-item .ci-icon {
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
}

.contact-item .ci-svg {
  display: inline-flex;
  align-items: center;
  width: 16px;
  height: 16px;
}

.contact-item .ci-svg svg {
  width: 16px;
  height: 16px;
}

/* ── Contact form ── */
.contact-form-inline {
  background: transparent;
  padding: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-form-bg {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.contact-form-inline input,
.contact-form-inline textarea {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid var(--input-line, rgba(0, 0, 0, 0.15));
  background: transparent;
  font-family: var(--font-p);
  font-size: 11px;
  color: var(--panel-text, #333);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form-inline input:focus,
.contact-form-inline textarea:focus {
  border-bottom-color: var(--accent-color);
}

.contact-form-inline input::placeholder,
.contact-form-inline textarea::placeholder {
  color: var(--panel-text, #333);
  opacity: 0.4;
}

.contact-form-inline textarea {
  resize: vertical;
  min-height: 48px;
}

.contact-form-submit {
  background: var(--btn-bg, var(--accent-color));
  color: var(--btn-text, #fff);
  border: none;
  padding: 10px 16px;
  font-family: var(--font-p);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  border-radius: var(--border-radius);
  margin-top: 4px;
  width: 100%;
}

.contact-form-submit:hover {
  opacity: 0.7;
}

.form-status {
  font-size: 11px;
  color: #22c55e;
  min-height: 16px;
  margin: 0;
}

.form-status.error {
  color: #ef4444;
}

/* ── Legal footer ── */
.fixed-legal {
  position: fixed;
  bottom: 24px;
  left: 28px;
  z-index: 100;
  display: flex;
  gap: 16px;
  align-items: center;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border: none;
  box-shadow: none;
}

.legal-link {
  background: none;
  border: none;
  font-family: var(--font-p);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff !important;
  mix-blend-mode: difference;
  opacity: 0.45;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  transition: opacity 0.2s;
}

.legal-link:hover {
  opacity: 1;
}

.legal-link:hover {
  opacity: 1;
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  background: var(--panel-bg, #fff);
  color: var(--panel-text, #111);
  max-width: 460px;
  padding: 24px 28px;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 2px 20px var(--panel-border, rgba(0, 0, 0, 0.08));
  border: 1px solid var(--panel-border, transparent);
  border-radius: var(--border-radius);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin-bottom: 16px;
  font-family: var(--font-p);
  font-size: 13px;
}

.cookie-banner a {
  color: var(--panel-text, #111);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 20px;
}

.cookie-btn {
  background: none;
  border: none;
  font-family: var(--font-p);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  text-transform: capitalize;
  color: var(--panel-text, #111);
  transition: opacity 0.2s;
}

.cookie-btn:hover {
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════
   Detail Modal — Unified for media + text + legal
   Media: fullscreen image with text pill at bottom
   Text/Legal: dark panel
   ══════════════════════════════════════════════════════ */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.detail-overlay[hidden] {
  display: none;
}

.detail-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 310;
  transition: opacity 0.2s;
}

.detail-close:hover {
  opacity: 0.6;
  background: rgba(255, 255, 255, 0.2);
}

.detail-close-text {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 310;
  background: var(--panel-bg, rgba(255, 255, 255, 0.1));
  border: 1px solid var(--panel-border, transparent);
  color: var(--panel-text, #fff);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.detail-close-text:hover {
  background: var(--hover-bg, rgba(255, 255, 255, 0.2));
}

.detail-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  z-index: 310;
  padding: 20px;
  transition: opacity 0.2s;
}

.detail-nav:hover {
  opacity: 0.6;
}

.detail-nav.prev {
  left: 10px;
}

.detail-nav.next {
  right: 10px;
}

/* Media detail — fullscreen with pill at bottom */
.detail-fullscreen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.detail-fullscreen-media {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 20px;
  padding-bottom: 200px;
  overflow-y: auto;
  gap: 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.detail-fullscreen-media::-webkit-scrollbar {
  display: none;
}

.detail-fullscreen-media img,
.detail-fullscreen-media video {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

/* Text pill at bottom of fullscreen media */
.detail-pill {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-bg, rgba(255, 255, 255, 0.95)) !important;
  color: var(--panel-text, #111) !important;
  border: 1px solid var(--panel-border, transparent) !important;
  box-shadow: 0 4px 15px var(--panel-border, rgba(0, 0, 0, 0.1)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  max-width: 30vw;
  padding: 18px 24px;
  border-radius: 16px;
  font-family: var(--font-p);
  z-index: 320;
  max-height: 35vh;
  overflow-y: auto;
}

.detail-pill h2 {
  color: var(--panel-text, #111) !important;
  font-family: var(--font-h2);
  font-size: 16px;
  margin-bottom: 8px;
}

.detail-pill p {
  color: var(--panel-text, #111) !important;
  opacity: 0.8;
  font-family: var(--font-p);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.detail-pill a {
  color: var(--panel-text, #111) !important;
  pointer-events: auto;
}

.detail-only-text {
  background: transparent;
  color: var(--panel-text, #ccc);
  border: none;
  font-family: var(--font-p);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 50px;
  border-radius: var(--border-radius);
}

.detail-only-text h2 {
  color: var(--panel-text, #fff);
  font-family: var(--font-h2);
  font-size: var(--size-h2);
  margin-bottom: 20px;
}

.detail-only-text h3 {
  color: var(--panel-text, #fff);
  font-family: var(--font-h3);
  font-size: var(--size-h3);
  margin: 20px 0 8px;
}

.detail-only-text p {
  font-family: var(--font-p);
  font-size: var(--size-p);
  line-height: 1.7;
  color: var(--panel-text, #ccc);
  margin-bottom: 10px;
}

.detail-post-text {
  color: #fff !important;
  max-width: 800px;
  margin: 20px auto 0 auto;
}

.detail-post-text h2 {
  font-family: var(--font-h2);
  font-size: var(--size-h2);
  margin-bottom: 20px;
  color: #fff !important;
}

.detail-post-text p,
.detail-post-text div {
  font-family: var(--font-p);
  font-size: var(--size-p);
  line-height: 1.7;
  color: #ccc !important;
}

.detail-only-text ul {
  font-size: var(--size-p);
  line-height: 1.7;
  margin-left: 20px;
  margin-bottom: 10px;
}

.detail-only-text a {
  color: #fff;
}

.detail-close-btn {
  display: block;
  margin: 30px auto 0;
  background: none;
  border: none;
  color: #888;
  font-family: var(--font-p);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
}

.detail-close-btn:hover {
  color: #fff;
}

/* ── Desktop ── */
@media (min-width: 769px) {
  .tags-toggle {
    display: none !important;
  }

  .tags-dropdown {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border: none;
    min-width: auto;
  }

  /* removed empty tag-opt class */

  .tag-opt.active {
    background: #fff;
    color: var(--accent) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .desktop-hidden-tag {
    display: none;
  }

  .desktop-hidden-tag.show {
    display: inline-block;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .tag-ver-mas {
    display: none !important;
  }

  .tags-dropdown {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0;
  }

  .detail-pill {
    max-width: 90vw;
    bottom: 16px;
    padding: 14px 18px;
  }

  .detail-only-text {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px 20px !important;
  }

  .detail-close {
    font-size: 20px;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .detail-fullscreen-media img,
  .detail-fullscreen-media video {
    max-width: 95vw;
    max-height: 60vh;
  }

  /* Legal Links Mobile layout */
  .fixed-legal {
    bottom: env(safe-area-inset-bottom, 12px);
    left: 0;
    right: 0;
    justify-content: center;
    padding: 0;
    padding-bottom: 0;
    gap: 16px;
    z-index: 10;
  }

  .legal-link {
    font-size: 10px;
  }

  .contact-toggle {
    font-size: 18px;
    letter-spacing: 0.1em;
  }

  .tags-toggle {
    font-size: 11px;
  }

  /* Global mobile fixed gradient that covers the bottom, above canvas below fixed elements */
  .mobile-gradient-overlay {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 140px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 50;
    pointer-events: none;
  }

  .fixed-contact {
    bottom: calc(env(safe-area-inset-bottom, 12px) + 32px);
    left: 12px;
    right: 12px;
    align-items: center;
    z-index: 100;
  }

  .contact-panel {
    bottom: 0;
    width: 100%;
    right: auto;
    left: auto;
    transform: translateY(20px);
    align-items: center;
    /* Center items */
    padding-left: 16px;
    padding-right: 16px;
    background: var(--panel-bg, rgba(255, 255, 255, 0.85));
    /* Lower opacity slightly */
  }

  .contact-form-bg {
    align-items: center;
  }

  .contact-item {
    font-size: 13px;
    /* Aumenta tamaño texto de contacto */
    text-align: center;
    justify-content: center;
  }

  .contact-items {
    align-items: center;
    width: 100%;
  }

  /* Form and its child wrapper centered */
  .contact-form-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .fixed-contact.open .contact-panel {
    transform: translateY(0);
    max-height: calc(100svh - 120px);
    overflow-y: auto;
  }

  .hide-on-mobile {
    display: none !important;
  }


  .fixed-tags-menu {
    top: 20px;
    right: 20px;
  }
}

@media (min-width: 769px) {
  .hide-on-desktop {
    display: none !important;
  }
}

/* Próximamente styles */
.box-media.is-coming-soon .box-image,
.box-media.is-coming-soon .box-video,
.box-media.is-coming-soon .gallery-slider {
  filter: blur(8px) brightness(0.8);
}

.coming-soon-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
  pointer-events: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Gallery slider styles */
.gallery-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-slider .slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.gallery-slider .slider-slide.box-image {
  background-size: cover;
  background-position: center;
}

.gallery-slider .slider-slide.active {
  opacity: 1;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}