/* Locker3d – identidad: cyan puro, dark, sin violeta */
:root {
  --color-bg: #060809;
  --color-bg-2: #0a0d0f;
  --color-surface: #0e1214;
  --color-surface-2: #141a1d;
  --color-surface-3: #1a2226;
  --color-text: #f0f4f5;
  --color-text-soft: #9ca8ad;
  --color-accent: #06b6d4;
  --color-accent-hover: #22d3ee;
  --color-accent-dim: rgba(6, 182, 212, 0.12);
  --color-accent-glow: rgba(6, 182, 212, 0.28);
  --color-muted: #6b7c82;
  --color-muted-2: #4a5760;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-circle: 50%;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 32px var(--color-accent-glow);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --header-offset: calc(4.75rem + env(safe-area-inset-top, 0px));
  --section-gap: clamp(0.5rem, 1.8vh, 1.25rem);
  --hero-title-max-h: clamp(120px, 28vw, 220px);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-offset);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  padding: 0.5rem 0.85rem;
  background: var(--color-accent);
  color: #041016;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus {
  top: calc(0.5rem + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(6, 182, 212, 0.2);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  position: relative;
  z-index: 1;
}

/* Header – glass sutil */
.site-header {
  background: rgba(8, 8, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header .container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.35rem;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: auto;
  flex: 0 0 auto;
  margin-right: 0.25rem;
}

.logo {
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding: 0.15rem 0.1rem 0.15rem 0;
}
.logo-full { display: inline; }
.logo-short { display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.lang-toggle {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--color-muted);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-toggle:hover { color: var(--color-accent); border-color: var(--color-accent); }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.2rem 1.15rem;
  white-space: nowrap;
  min-width: 0;
}

.nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.4rem 0.15rem;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--color-accent);
}

.nav a:focus-visible,
.logo:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-dropdown {
  position: relative;
  flex-shrink: 0;
}

@media (min-width: 1201px) and (max-width: 1440px) {
  .site-header .container {
    gap: 1.1rem;
  }
  .nav {
    gap: 0.15rem 0.95rem;
  }
  .nav a {
    font-size: 0.84rem;
    padding: 0.38rem 0.1rem;
  }
  .search-wrap {
    flex-basis: 9.5rem;
    max-width: 11rem;
  }
}
.nav-dropdown:hover .nav-sub,
.nav-dropdown.is-open .nav-sub {
  display: block;
}
.nav-dropdown-btn {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: rgba(22, 22, 26, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  min-width: 140px;
  box-shadow: var(--shadow-lg);
}
.nav-sub li { margin: 0; }
.nav-sub a {
  display: block;
  padding: 0.4rem 1rem;
  color: var(--color-muted);
  text-decoration: none;
}
.nav-sub a:hover {
  color: var(--color-accent);
  background: #333;
}

.btn-nav-upload {
  padding: 0.42rem 0.95rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius) !important;
  background: var(--color-accent) !important;
  color: #fff !important;
  text-decoration: none !important;
  border: none !important;
  white-space: nowrap !important;
  flex-shrink: 0;
  margin-left: 0.35rem;
  transition: var(--transition);
}

.btn-nav-upload:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.search-wrap {
  margin-left: auto;
  position: relative;
  flex: 0 1 11rem;
  min-width: 8.5rem;
  max-width: 14rem;
}

#search-input {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  width: 100%;
  min-width: 0;
  font-size: 0.82rem;
  transition: var(--transition);
}

#search-input::placeholder {
  color: var(--color-muted-2);
}

#search-input:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  margin-top: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.search-results a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.search-results a:hover,
.search-results a.is-active {
  background: rgba(6, 182, 212, 0.1);
}

/* Main */
.main {
  min-height: 60vh;
  position: relative;
  z-index: 1;
}

.page-home h1,
.page-blog-list h1 {
  margin-top: 0;
  font-size: 1.75rem;
}
.page-blog-intro {
  color: var(--color-text-soft);
  margin-bottom: 0;
  max-width: 40rem;
}
.page-blog-intro a {
  color: var(--color-accent);
  text-decoration: none;
}
.page-blog-intro a:hover { text-decoration: underline; }

.blog-hero {
  margin-bottom: 1.75rem;
}
.blog-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.blog-featured-img {
  display: block;
  min-height: 240px;
  background: var(--color-surface-2);
}
.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.75rem;
  gap: 0.65rem;
}
.blog-featured-body h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.25;
}
.blog-featured-body p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}
.blog-featured-body time,
.blog-card time {
  color: var(--color-muted);
  font-size: 0.8rem;
}
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.blog-card-img {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--color-surface-2);
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
}
.blog-card-body h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 650;
}
.blog-card-body p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
  flex: 1;
}
.blog-card-topic {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.blog-card:hover h2,
.blog-featured:hover h2 {
  color: var(--color-accent);
}

.page-textures-intro {
  color: var(--color-muted);
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 36rem;
}

.textures-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.35rem;
}

.textures-toolbar-copy h1,
.page-textures h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.textures-toolbar .filters,
.page-textures .filters {
  margin-bottom: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.page-textures .texture-grid,
.page-textures .texture-grid-minimal {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 1.35rem;
}

.page-textures .texture-grid-minimal .texture-card-circle h2 {
  font-size: 0.9rem;
}

.lead {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* Home – landing con personalidad */
.page-home {
  padding-bottom: 3rem;
}

/* Hero – diseño grande, impactante, dos columnas */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 1.5rem 5rem;
  perspective: 1000px;
}

.hero-split .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 2.25rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  text-align: left;
}

.hero-content {
  min-width: 0;
}

.hero-split .hero-tagline {
  margin-left: 0;
  margin-right: 0;
}

.hero-split .hero-actions {
  justify-content: flex-start;
}

/* Lado derecho: render / preview de textura */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-visual-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  background: #0a0d0f;
  border: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  text-decoration: none;
}

.hero-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}

@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

.hero-visual-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 55%);
  animation: heroGlowPulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-visual-preview {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 2rem;
}

.hero-visual-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-surface-3);
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: heroCircleFloat 5s ease-in-out infinite;
}

.hero-visual-circle-1 {
  animation-delay: 0s;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.05) 100%);
}
.hero-visual-circle-2 {
  animation-delay: 0.8s;
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
}
.hero-visual-circle-3 {
  animation-delay: 1.6s;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, transparent 100%);
}

@keyframes heroCircleFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}

.hero-wow .hero-inner {
  max-width: 900px;
}

.hero-split.hero-wow .hero-inner {
  max-width: 1200px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-gradient-animated {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 120% 100% at 50% -10%, rgba(6, 182, 212, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 60% at 85% 60%, rgba(6, 182, 212, 0.08), transparent 50%),
    radial-gradient(ellipse 70% 70% at 15% 70%, rgba(6, 182, 212, 0.06), transparent 50%);
  animation: heroGradientShift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGradientShift {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.9; transform: scale(1.08); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.4), transparent 55%);
  top: 5%;
  left: 10%;
  animation: heroOrbFloat 20s ease-in-out infinite;
}

.hero-orb-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.3), transparent 60%);
  bottom: 15%;
  right: 5%;
  animation: heroOrbFloat 25s ease-in-out infinite reverse;
  animation-delay: -8s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 8, 9, 0.82) 0%, rgba(6, 8, 9, 0.45) 48%, rgba(6, 8, 9, 0.2) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  margin: 0 auto;
}

.hero-anim {
  opacity: 0;
  transform: translateY(36px);
  animation: heroFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim,
  .hero-visual,
  .hero-visual-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero-anim[data-delay="0"]   { animation-delay: 0.2s; }
.hero-anim[data-delay="100"] { animation-delay: 0.35s; }
.hero-anim[data-delay="250"] { animation-delay: 0.5s; }
.hero-anim[data-delay="300"] { animation-delay: 0.55s; }
.hero-anim[data-delay="400"] { animation-delay: 0.65s; }
.hero-anim[data-delay="550"] { animation-delay: 0.85s; }
.hero-anim[data-delay="700"] { animation-delay: 1.1s; }

@keyframes heroFadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  transition: var(--transition);
}

.hero-title {
  margin: 0 0 0.6rem;
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: #fff;
  text-shadow: 0 0 60px rgba(6, 182, 212, 0.15);
}

.hero-subtitle {
  margin: 0 0 1.25rem;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.95;
}

.hero-tagline {
  margin: 0 0 2.5rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: var(--color-text-soft);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn-hero-primary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 32px rgba(6, 182, 212, 0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.5);
}

.btn-hero-outline {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text-soft);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: var(--transition);
  transform: translateZ(0);
}

.btn-hero-outline:hover {
  color: var(--color-accent);
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.2);
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 25% 25%, rgba(255,255,255,0.06), transparent),
    radial-gradient(1.5px 1.5px at 75% 75%, rgba(6,182,212,0.1), transparent);
  background-size: 240px 240px, 320px 320px;
  animation: particles-float 28s linear infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

@keyframes particles-float {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 240px 0, -320px 0; }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: heroScrollHint 2.5s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  border-radius: 2px;
}

@keyframes heroScrollHint {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

.btn-hero {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
  border: none;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

/* Landing: animación de revelado en todas las secciones */
.landing-reveal {
  opacity: 0;
  transform: translateY(40px);
  animation: landingReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home-stats-strip.landing-reveal { animation-delay: 0.1s; }
.home-grid-section.landing-reveal { animation-delay: 0.2s; }
.home-category-showcase.landing-reveal { animation-delay: 0.28s; }
.home-maps.landing-reveal { animation-delay: 0.34s; }
.home-workflow.landing-reveal { animation-delay: 0.4s; }
.home-software.landing-reveal { animation-delay: 0.46s; }
.home-license.landing-reveal { animation-delay: 0.5s; }
.home-collections.landing-reveal { animation-delay: 0.54s; }
.home-use-cases.landing-reveal { animation-delay: 0.58s; }
.home-guides.landing-reveal { animation-delay: 0.62s; }
.home-faq.landing-reveal { animation-delay: 0.66s; }
.home-cta.landing-reveal { animation-delay: 0.7s; }

@keyframes landingReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger: hijos dentro de secciones reveladas */
.home-stats-inner .home-stat {
  opacity: 0;
  transform: translateY(20px);
  animation: landingReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.home-stats-inner .home-stat:nth-child(1) { animation-delay: 0.25s; }
.home-stats-inner .home-stat:nth-child(2) { animation-delay: 0.32s; }
.home-stats-inner .home-stat:nth-child(3) { animation-delay: 0.39s; }
.home-stats-inner .home-stat:nth-child(4) { animation-delay: 0.46s; }

.featured-cat-card {
  opacity: 0;
  transform: translateY(16px);
  animation: landingReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.home-featured-cats .featured-cat-card:nth-child(1) { animation-delay: 0.5s; }
.home-featured-cats .featured-cat-card:nth-child(2) { animation-delay: 0.56s; }
.home-featured-cats .featured-cat-card:nth-child(3) { animation-delay: 0.62s; }
.home-featured-cats .featured-cat-card:nth-child(4) { animation-delay: 0.68s; }
.home-featured-cats .featured-cat-card:nth-child(5) { animation-delay: 0.74s; }
.home-featured-cats .featured-cat-card:nth-child(6) { animation-delay: 0.8s; }

.value-block {
  opacity: 0;
  transform: translateY(24px);
  animation: landingReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.home-values .value-block:nth-child(1) { animation-delay: 0.6s; }
.home-values .value-block:nth-child(2) { animation-delay: 0.68s; }
.home-values .value-block:nth-child(3) { animation-delay: 0.76s; }

.testimonial-card {
  opacity: 0;
  transform: translateY(20px);
  animation: landingReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.home-testimonials .testimonial-card:nth-child(1) { animation-delay: 0.7s; }
.home-testimonials .testimonial-card:nth-child(2) { animation-delay: 0.78s; }
.home-testimonials .testimonial-card:nth-child(3) { animation-delay: 0.86s; }

.home-grid-section .texture-card {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  animation: landingReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.home-grid-section .texture-card:nth-child(1) { animation-delay: 0.35s; }
.home-grid-section .texture-card:nth-child(2) { animation-delay: 0.38s; }
.home-grid-section .texture-card:nth-child(3) { animation-delay: 0.41s; }
.home-grid-section .texture-card:nth-child(4) { animation-delay: 0.44s; }
.home-grid-section .texture-card:nth-child(5) { animation-delay: 0.47s; }
.home-grid-section .texture-card:nth-child(6) { animation-delay: 0.5s; }
.home-grid-section .texture-card:nth-child(7) { animation-delay: 0.53s; }
.home-grid-section .texture-card:nth-child(8) { animation-delay: 0.56s; }
.home-grid-section .texture-card:nth-child(9) { animation-delay: 0.59s; }
.home-grid-section .texture-card:nth-child(10) { animation-delay: 0.62s; }
.home-grid-section .texture-card:nth-child(11) { animation-delay: 0.65s; }
.home-grid-section .texture-card:nth-child(12) { animation-delay: 0.68s; }
.home-grid-section .texture-card:nth-child(n+13) { animation-delay: 0.71s; }

.home-grid-section .load-more-wrap {
  opacity: 0;
  animation: landingReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.95s;
}

.home-cta .home-cta-card {
  opacity: 0;
  transform: translateY(24px);
  animation: landingReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.8s;
}

/* Stats strip */
.home-stats-strip {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.06) 0%, transparent 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.home-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.home-stat {
  text-align: center;
  padding: 0.75rem;
}

.home-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  line-height: 1.2;
}

.home-stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* Intro */
.home-intro {
  padding: 2.5rem 1rem 3rem;
  text-align: center;
}

.home-intro-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-soft);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.01em;
}

.section-subtitle {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.section-subtitle a {
  color: var(--color-accent);
  text-decoration: none;
}

.section-subtitle a:hover {
  text-decoration: underline;
}

.home-grid-title {
  margin-bottom: 1.5rem;
}

/* Featured categories */
.home-featured-cats {
  padding: 3.5rem 1rem;
}

.featured-cats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.featured-cat-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text-soft);
  transition: var(--transition);
}

.featured-cat-card:hover {
  color: var(--color-accent);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.12);
}

.featured-cat-icon {
  font-size: 0.9rem;
  color: var(--color-accent);
  opacity: 0.9;
}

.featured-cat-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.featured-cat-arrow {
  font-size: 0.85rem;
  opacity: 0.5;
  transition: var(--transition);
}

.featured-cat-card:hover .featured-cat-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Testimonials – sutiles */
.home-testimonials {
  padding: 3rem 1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  margin: 0;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--color-accent);
  font-style: italic;
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--color-accent-hover);
}

.testimonial-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-soft);
}

.testimonial-card cite {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-style: normal;
}

.home-cta {
  padding: 0 1rem 4rem;
}

.home-cta-card {
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.home-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

.home-cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  opacity: 0.6;
}

.home-cta-card:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.15);
}

.home-cta-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.home-cta-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.home-cta-card p {
  margin: 0 0 1.5rem;
  color: var(--color-text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.btn-cta {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn-cta-secondary {
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-cta-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-block {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

.load-more {
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.home-values {
  padding: 3.5rem 1rem;
}

.home-values .section-title {
  margin-bottom: 1.75rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.value-block {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.value-block:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.12);
  transform: translateY(-2px);
}

.value-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

.value-block h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  font-weight: 600;
  color: var(--color-text);
}

.value-block p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.home-grid-section {
  padding: 0 1rem 3rem;
}

/* Index: 4 texturas por fila, fotos circulares más grandes */
.home-grid-section .texture-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.home-grid-section:first-of-type {
  padding-top: 0;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.page-home .section-title {
  text-align: center;
}

.home-featured-cats .section-title,
.home-testimonials .section-title,
.home-values .section-title {
  text-align: center;
}

/* Thumbnails cuadrados – textura completa, sin recorte */
.texture-grid-circles {
  gap: 2rem;
}

.texture-grid-minimal .texture-card-circle {
  background: none;
  border: none;
  box-shadow: none;
}

.texture-grid-minimal .texture-card-circle:hover {
  transform: none;
  border: none;
  box-shadow: none;
}

.texture-card-circle {
  perspective: none;
}

.texture-card-circle .texture-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-2);
  margin-bottom: 0.6rem;
  position: relative;
  transition: var(--transition);
}

.texture-grid-minimal .texture-card-circle .texture-card-thumb {
  box-shadow: none;
  background: var(--color-surface);
}

.texture-card-circle .texture-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.texture-grid-minimal .texture-card-circle .texture-card-thumb::after {
  display: none;
}

.texture-card-circle .texture-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: var(--transition);
}

.texture-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
}

.texture-grid-minimal .texture-card-thumb-placeholder {
  background: rgba(255,255,255,0.03);
}

.texture-card-placeholder-icon {
  font-size: 2rem;
  color: var(--color-muted-2);
}

.texture-card-circle a {
  text-align: center;
  padding: 0.5rem 0;
  display: block;
  transition: var(--transition);
}

.texture-grid-minimal .texture-card-circle a {
  padding: 0.25rem 0;
}

.texture-card-circle:hover .texture-card-thumb {
  transform: none;
}

.texture-grid-minimal .texture-card-circle:hover .texture-card-thumb {
  transform: none;
}

.texture-grid-minimal .texture-card-circle a:hover h2 {
  color: var(--color-accent);
}

.texture-card-circle:hover .texture-card-thumb img {
  transform: none;
}

.texture-card-circle .texture-card-label {
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  backdrop-filter: blur(6px);
  display: inline-block;
}

.texture-card-circle h2 {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text-soft);
  transition: color var(--transition);
}

.texture-grid-minimal .texture-card-circle h2 {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-muted);
}

.texture-card-circle:hover h2 {
  color: var(--color-accent);
}

/* Grid más grande para círculos minimalistas */
.texture-grid-minimal {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2.5rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1.25rem;
}
.filters label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.filters select {
  padding: 0.35rem 1.7rem 0.35rem 0.65rem;
  min-height: 36px;
  min-width: 7.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%239aa3ad' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  cursor: pointer;
}
.filters select:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.45);
}

.texture-card[hidden] {
  display: none !important;
}

/* Share buttons */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.btn-share {
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
}

/* Texture grid */
.texture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.texture-card {
  background: linear-gradient(160deg, var(--color-surface-2) 0%, var(--color-surface) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.texture-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 24px var(--color-accent-glow);
}

.texture-card a {
  display: block;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

.texture-card-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(6, 182, 212, 0.2);
  color: var(--color-accent);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.texture-card h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.load-more-wrap {
  margin-top: 2.5rem;
  text-align: center;
}

.load-more {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--color-text-soft) !important;
  box-shadow: none !important;
}

.load-more:hover {
  border-color: var(--color-accent) !important;
  color: var(--color-accent) !important;
  background: rgba(6, 182, 212, 0.08) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.25);
}

/* Botón de descarga – más visible y moderno */
.btn-download,
.post-content .btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--color-accent) 0%, #0891b2 100%);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-download:hover,
.post-content .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  filter: brightness(1.08);
  color: #fff !important;
}
.btn-download::after {
  content: "↓";
  font-size: 1.1em;
  opacity: 0.9;
}
.post-content .btn-download {
  margin: 1rem 0 1.5rem;
}

/* Post list */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #333;
}

.post-list a {
  color: var(--color-text);
  text-decoration: none;
}

.post-list a:hover {
  color: var(--color-accent);
}

.post-list time {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

/* Post single – layout con sidebar */
.page-post {
  padding: 1.5rem 0 3rem;
}

.page-post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.page-post-main {
  min-width: 0;
}

.page-post h1 {
  margin-top: 0;
  font-size: 1.75rem;
}

.page-post .meta {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.post-content {
  line-height: 1.65;
  font-size: 0.95rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.blog-hero-img {
  margin: 0 0 1.5rem;
}

.blog-hero-img img {
  width: 100%;
  max-height: min(420px, 52vw);
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Related textures – widget lateral con cards */
.page-post-sidebar {
  position: sticky;
  top: 5rem;
}

.related-textures {
  padding: 1.25rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
}

.related-textures h2 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.related-textures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.related-texture-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.related-texture-card:hover {
  opacity: 0.9;
}

.related-texture-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface-2);
  margin-bottom: 0.4rem;
}

.related-texture-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.related-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.25rem;
  color: var(--color-muted-2);
}

.related-texture-name {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.2;
}

.related-texture-card:hover .related-texture-name {
  color: var(--color-accent);
}

.related-more {
  margin: 1rem 0 0;
  font-size: 0.85rem;
}

.related-more a {
  color: var(--color-accent);
  text-decoration: none;
}

.related-more a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding: clamp(2rem, 5vh, 3.25rem) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.32) 100%);
  color: var(--color-muted);
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.7fr);
  gap: 2.25rem 3rem;
  align-items: start;
}

.footer-logo {
  display: inline-block;
  margin: 0 0 0.55rem;
  color: var(--color-text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.footer-brand p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-soft);
  max-width: 22rem;
  line-height: 1.55;
}

.footer-license {
  margin-top: 0.7rem !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent) !important;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  min-width: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.footer-col a {
  display: block;
  padding: 0.28rem 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.footer-col-title {
  margin: 0 0 0.55rem;
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer-library {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-cats a {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: nowrap;
}

.footer-cats a:hover {
  border-color: rgba(6, 182, 212, 0.35);
  background: var(--color-accent-dim);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  margin-top: 1.5rem;
  padding: 1rem 0 max(1.15rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted-2);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.footer-legal a {
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-nav {
    gap: 1.35rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: 2rem;
    padding-top: 1.75rem;
  }
  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem 1.15rem;
  }
  .footer-library {
    margin-top: 1.5rem;
    padding-top: 1.15rem;
  }
}

@media (max-width: 380px) {
  .footer-nav {
    gap: 1.1rem 0.85rem;
  }
  .footer-cats {
    gap: 0.35rem;
  }
  .footer-cats a {
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.15rem max(1.5rem, env(safe-area-inset-left)) 0.05rem max(1.5rem, env(safe-area-inset-right));
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.breadcrumbs ol::-webkit-scrollbar {
  display: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--color-muted-2);
  font-weight: 400;
  font-size: 0.85em;
  opacity: 0.7;
}

.breadcrumbs a {
  color: var(--color-muted-2);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-muted);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(42vw, 18rem);
}


.related-categories {
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.related-categories a {
  color: var(--color-accent);
  text-decoration: none;
}

.related-categories a:hover {
  text-decoration: underline;
}

.footer-categories {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-categories-label {
  display: inline;
  margin: 0 0.5rem 0 0;
}

.footer-categories a {
  margin-right: 0.75rem;
  color: var(--color-muted);
  text-decoration: none;
}

.footer-categories a:hover {
  color: var(--color-accent);
}

.footer-guides {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-guides a {
  margin-right: 0.75rem;
  color: var(--color-muted);
  text-decoration: none;
}

.footer-guides a:hover {
  color: var(--color-accent);
}

/* FAQ page */
.page-faq-intro {
  margin-bottom: 1.5rem;
  color: var(--color-text-soft);
}

.faq-list {
  margin: 2rem 0;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-surface-2);
}

.faq-question {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
}

.faq-answer {
  color: var(--color-text-soft);
}

.faq-answer a {
  color: var(--color-accent);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.faq-more {
  margin-top: 2rem;
  font-size: 0.95rem;
}

.faq-more a {
  color: var(--color-accent);
  margin-right: 1rem;
}

/* FAQ quick visual block */
.faq-quick-visual {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.faq-quick-title {
  font-size: 1rem;
  margin: 0 0 1rem 0;
  color: var(--color-text-soft);
}

.faq-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.faq-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--color-surface-2);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.faq-quick-card:hover {
  background: var(--color-surface-3);
  color: var(--color-accent);
}

.faq-quick-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
}

/* Home: category showcase with images */
.home-category-showcase {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.category-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.category-showcase-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-showcase-img {
  display: block;
  aspect-ratio: 1;
  background: var(--color-surface-2);
}

.category-showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-showcase-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  color: var(--color-muted);
}

.category-showcase-name {
  display: block;
  padding: 0.65rem 0.75rem 0.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.category-showcase-count {
  display: block;
  padding: 0 0.75rem 0.75rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
}

.category-showcase-card:hover .category-showcase-name {
  color: var(--color-accent);
}

.home-maps,
.home-workflow,
.home-software,
.home-license,
.home-collections,
.home-faq {
  margin-top: 3.25rem;
  margin-bottom: 2rem;
}

.maps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.map-card {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0 0 1.15rem;
  transition: transform var(--transition), border-color var(--transition);
}

.map-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.35);
}

.map-swatch {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-2);
}

.map-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-card--normal .map-swatch img { filter: hue-rotate(230deg) saturate(1.85) contrast(1.15); }
.map-card--rough .map-swatch img { filter: grayscale(1) contrast(1.35); }
.map-card--metal .map-swatch img { filter: grayscale(1) contrast(2.1) brightness(0.72); }
.map-card--ao .map-swatch img { filter: grayscale(1) contrast(1.7) brightness(0.42); }
.map-card--height .map-swatch img { filter: grayscale(1) contrast(1.45) brightness(1.05); }

.map-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.15rem;
}

.map-code {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}

.map-socket {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.map-card h3 {
  margin: 0;
  padding: 0.15rem 1rem 0.35rem;
  font-size: 1.02rem;
}

.map-card p {
  margin: 0;
  padding: 0 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-soft);
}

.workflow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  position: relative;
}

.workflow-steps li {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.workflow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.14);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.workflow-steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.workflow-steps p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-soft);
}

.workflow-steps a {
  color: var(--color-accent);
  text-decoration: none;
}

.workflow-steps a:hover {
  text-decoration: underline;
}

.software-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.software-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding: 1.15rem 0.6rem 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  transition: transform var(--transition), border-color var(--transition);
}

.software-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.4);
}

.software-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.35rem;
  border-radius: 0.7rem;
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.software-tile strong {
  font-size: 0.88rem;
}

.software-tile span:last-child {
  font-size: 0.72rem;
  color: var(--color-muted);
}

.license-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.license-col {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.license-col h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.license-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.license-col li {
  position: relative;
  padding-left: 1.45rem;
}

.license-col li + li {
  margin-top: 0.55rem;
}

.license-col li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.license-yes {
  border-color: rgba(6, 182, 212, 0.28);
}

.license-yes li::before {
  content: "✓";
  color: var(--color-accent);
}

.license-no {
  border-color: rgba(255, 255, 255, 0.1);
}

.license-no li::before {
  content: "✕";
  color: #f87171;
}

.home-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.home-faq-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.35rem 1.35rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
}

.home-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-faq-item:last-child {
  border-bottom: 0;
}

.home-faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}

.home-faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--color-accent);
  font-weight: 500;
}

.home-faq-item[open] summary::after {
  content: "–";
}

.home-faq-item p {
  margin: 0 0 1rem;
  color: var(--color-text-soft);
  font-size: 0.925rem;
  line-height: 1.55;
}

.home-guides-more {
  text-align: center;
}

.home-guides-more a {
  margin: 0 0.5rem;
  color: var(--color-text-soft);
}

/* Home: use cases with image */
.home-use-cases {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.use-case-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  text-decoration: none;
  color: #fff;
  min-height: 220px;
  transition: transform var(--transition);
}

.use-case-card:hover {
  transform: translateY(-3px);
}

.use-case-img {
  display: block;
  position: absolute;
  inset: 0;
}

.use-case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.use-case-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 1.15rem 1.1rem 1.2rem;
  background: linear-gradient(180deg, rgba(6, 8, 9, 0.05) 20%, rgba(6, 8, 9, 0.82) 100%);
}

.use-case-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

.use-case-desc {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.home-guides-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.guide-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), border-color var(--transition);
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.35);
}

.guide-card-img {
  display: block;
  aspect-ratio: 16/10;
  background: var(--color-surface-2);
}

.guide-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card-body {
  display: block;
  padding: 0.85rem 1rem 1rem;
}

.guide-card-topic {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.guide-card-title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
}

/* Home guides section */
.home-guides {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.home-guides-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
}

.home-guides-list a {
  color: var(--color-accent);
  text-decoration: none;
}

.home-guides-list a:hover {
  text-decoration: underline;
}

.home-guides p:last-of-type a {
  margin-right: 1rem;
  color: var(--color-text-soft);
}

/* Software page */
.page-software-intro {
  margin-bottom: 1.5rem;
  color: var(--color-text-soft);
}

.software-list {
  margin: 2rem 0;
  padding-left: 1.25rem;
}

.software-item {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.software-item a {
  color: var(--color-accent);
  text-decoration: none;
}

.software-item a:hover {
  text-decoration: underline;
}

.software-more {
  margin-top: 2rem;
}

.software-more a {
  color: var(--color-accent);
  margin-right: 1rem;
}

/* Software cards with logo/image */
.software-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.software-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 1.25rem;
}

.software-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.75rem;
}

.software-card-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.software-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.software-card-name {
  font-size: 1.1rem;
  margin: 0;
}

.software-card-link:hover .software-card-name {
  color: var(--color-accent);
}

.software-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.5;
}

.software-card-desc a {
  color: var(--color-accent);
  text-decoration: none;
}

.software-card-desc a:hover {
  text-decoration: underline;
}

/* Blog internal links */
.blog-internal-links {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.blog-internal-links a {
  color: var(--color-accent);
  text-decoration: none;
}

.blog-internal-links a:hover {
  text-decoration: underline;
}

.page-404 {
  padding: 3rem 0;
  text-align: center;
}

.page-404 h1 {
  margin-bottom: 0.5rem;
}

.page-404 p {
  margin: 1rem 0;
  color: var(--color-text-soft);
}

.page-404 a {
  color: var(--color-accent);
  text-decoration: none;
  margin: 0 0.5rem;
}

.page-404 a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .maps-grid,
  .workflow-steps,
  .home-collections-grid,
  .collection-more-grid,
  .home-guides-cards,
  .use-cases-grid,
  .software-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-post-layout {
    grid-template-columns: 1fr;
  }
  .page-post-sidebar {
    position: static;
    order: 2;
  }
  .related-textures-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-grid-section .texture-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  .page-textures .texture-grid,
  .page-textures .texture-grid-minimal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1.1rem;
  }
}

@media (max-width: 768px) {
  .breadcrumbs {
    font-size: 0.62rem;
    padding-top: 0.1rem;
    padding-bottom: 0;
  }
  .hero {
    height: auto;
    min-height: 0;
    overflow: visible;
    align-items: flex-start;
    padding: var(--header-offset) 1rem calc(var(--section-gap) + 0.75rem);
    text-align: left;
  }
  .hero-split .hero-inner,
  .hero-wow .hero-inner,
  .hero-split.hero-wow .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--section-gap);
    max-width: 100%;
    text-align: left;
  }
  .hero-split .hero-content {
    display: contents;
  }
  .hero-badge { order: 1; margin-bottom: 0.55rem; letter-spacing: 0.14em; padding: 0.4rem 0.85rem; }
  .hero-title {
    order: 2;
    font-size: clamp(1.85rem, 8vw, 2.75rem);
    margin-bottom: 0.35rem;
    text-wrap: balance;
  }
  .hero-subtitle {
    order: 3;
    font-size: clamp(0.82rem, 3.4vw, 1rem);
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
  }
  .hero-split .hero-visual {
    order: 4;
    justify-content: flex-start;
    width: 100%;
  }
  .hero-visual-card {
    width: 100%;
    max-width: 92vw;
    max-height: var(--hero-title-max-h);
    aspect-ratio: 16 / 10;
    margin: 0;
    border-radius: 16px;
  }
  .hero-visual-img {
    max-width: 100%;
    max-height: var(--hero-title-max-h);
    object-fit: cover;
  }
  .hero-tagline {
    order: 5;
    font-size: clamp(0.92rem, 3.6vw, 1.05rem);
    margin: 0;
    max-width: none;
    text-wrap: pretty;
  }
  .hero-actions {
    order: 6;
    flex-direction: column;
    width: 100%;
    gap: 0.55rem;
    justify-content: stretch;
  }
  .hero-split .hero-actions { justify-content: stretch; }
  .hero-split .hero-tagline { margin-left: 0; margin-right: 0; }
  .btn-hero,
  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    max-width: none;
    text-align: center;
    text-wrap: balance;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  .hero-scroll-hint,
  .hero-orb,
  .hero-particles { display: none; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(6, 8, 9, 0.72) 0%, rgba(6, 8, 9, 0.5) 42%, rgba(6, 8, 9, 0.88) 100%);
  }
  .hero-bg { background-position: 60% center; }
  .home-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem 1rem;
  }
  .maps-grid,
  .workflow-steps,
  .license-grid,
  .home-collections-grid,
  .collection-more-grid,
  .home-guides-cards,
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  .software-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-cta-card {
    padding: 2rem 1.25rem;
  }
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured-img {
    min-height: 0;
    max-height: var(--hero-title-max-h);
    aspect-ratio: 16 / 10;
  }
  .blog-featured-body {
    padding: 1.1rem 1rem 1.25rem;
  }
  .blog-card-grid {
    grid-template-columns: 1fr;
    gap: var(--section-gap);
  }
  .featured-cat-card {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
  }
  .page-post-layout {
    gap: var(--section-gap);
  }
  .asset-hero {
    gap: var(--section-gap);
  }
}

@media (max-width: 768px) and (max-height: 740px) {
  :root {
    --hero-title-max-h: clamp(90px, 22vw, 160px);
    --section-gap: clamp(0.4rem, 1.4vh, 0.85rem);
  }
  .hero-title { font-size: clamp(1.65rem, 7.5vw, 2.2rem); }
  .hero-tagline { font-size: 0.88rem; line-height: 1.5; }
  .hero-badge { margin-bottom: 0.35rem; }
}

/* Móvil muy pequeño: más padding para no pegar al borde */
@media (max-width: 380px) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .hero-subtitle { letter-spacing: 0.04em; }
  .hero-badge { letter-spacing: 0.08em; font-size: 0.72rem; }
  .hero-actions { gap: 0.4rem; }
  .page-textures .texture-grid,
  .page-textures .texture-grid-minimal,
  .home-grid-section .texture-grid {
    gap: 0.85rem 0.55rem;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  :root {
    --hero-title-max-h: clamp(80px, 18vh, 140px);
    --section-gap: clamp(0.35rem, 1.2vh, 0.7rem);
  }
  .hero-title { font-size: clamp(1.45rem, 5.5vw, 2rem); }
}

@media (max-width: 1200px) {
  .site-header .container {
    flex-wrap: wrap;
  }
  .header-bar {
    width: 100%;
    gap: 0.75rem;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    white-space: normal;
    gap: 0.15rem;
    padding: 0.75rem 0 0.9rem;
  }
  .site-header.is-nav-open .nav { display: flex; }
  .nav a {
    font-size: 1rem;
    padding: 0.7rem 0.2rem;
  }
  .nav-dropdown .nav-sub {
    position: static;
    display: none;
    box-shadow: none;
    min-width: 0;
    border: 0;
    background: transparent;
    padding-left: 0.75rem;
    white-space: normal;
  }
  .nav-dropdown.is-open .nav-sub { display: block; }
  .search-wrap {
    display: none;
    width: 100%;
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
    margin-left: 0;
  }
  .site-header.is-nav-open .search-wrap { display: block; }
  .btn-nav-upload {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .texture-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .texture-grid-circles {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .texture-grid-minimal {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
  }
  .page-textures .texture-grid,
  .page-textures .texture-grid-minimal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0.85rem;
  }
  .textures-toolbar {
    align-items: stretch;
    gap: 0.85rem;
  }
  .textures-toolbar .filters,
  .page-textures .filters {
    justify-content: flex-start;
  }
  .filters label {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
  }
  .filters select {
    width: 100%;
    min-width: 0;
  }
  .home-grid-section .texture-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .related-textures-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-visual-circle {
    width: 48px;
    height: 48px;
  }
  .hero-visual-circle-2 {
    width: 58px;
    height: 58px;
  }
  .home-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1.25rem 1rem;
  }
  .home-stat-num {
    font-size: 1.5rem;
  }
  .home-cta-card {
    padding: 2rem 1.5rem;
  }
  .featured-cats-grid {
    justify-content: center;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* Inner pages (About, Contact, Favorites, Upload, Legal) */
.page-inner {
  max-width: 980px;
  padding-top: 0.15rem;
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.page-inner h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}
.page-inner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-inner h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}
.page-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.page-hero {
  margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
}
.page-lead {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.65;
  color: var(--color-text-soft);
}
.page-meta {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-secondary:hover {
  background: var(--color-accent-dim);
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--color-accent);
  box-shadow: none;
}
.btn-danger {
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.28);
}
.btn-danger:hover {
  background: rgba(220, 38, 38, 0.12);
  box-shadow: none;
}

.inner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: 0 0 2.25rem;
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
}
.inner-stat {
  text-align: center;
  padding: 0.5rem 0.35rem;
}
.inner-stat-num {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  line-height: 1.2;
}
.inner-stat-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.page-section {
  margin: 0 0 2.25rem;
}
.page-section > p {
  margin: 0 0 1rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}
.page-section a:not(.btn):not(.cat-chip):not(.info-card) {
  color: var(--color-accent);
  text-decoration: none;
}
.page-section a:not(.btn):not(.cat-chip):not(.info-card):hover {
  text-decoration: underline;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.info-card {
  display: block;
  padding: 1.2rem 1.25rem;
  background: var(--color-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}
a.info-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-2px);
}
.info-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  font-size: 1rem;
}
.info-card h3 {
  margin: 0 0 0.4rem;
}
.info-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-soft);
}
.info-card a {
  color: var(--color-accent);
  text-decoration: none;
}
.info-card a:hover {
  text-decoration: underline;
}

.cat-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}
.cat-chip:hover {
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border-color: rgba(6, 182, 212, 0.3);
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.steps-list li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: var(--color-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.9rem;
}
.steps-list h3 { margin-top: 0.15rem; }
.steps-list p { margin: 0; color: var(--color-text-soft); font-size: 0.92rem; line-height: 1.55; }

.page-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-lg);
}
.page-cta-band p {
  margin: 0;
  color: var(--color-text-soft);
  max-width: 28rem;
}
.page-cta-band strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}
.page-cta-band .page-actions {
  margin-top: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}
.split-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.panel-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-surface-3);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.panel-card h2,
.panel-card h3 {
  margin-top: 0;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.form-stack label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-surface-3);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}
.form-stack textarea {
  min-height: 8rem;
  resize: vertical;
}
.form-hint {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}
.form-hint a {
  color: var(--color-accent);
  text-decoration: none;
}
.form-hint a:hover {
  text-decoration: underline;
}
.form-status {
  margin: 0.25rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.form-status-ok,
.upload-status-ok {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.form-status-error,
.upload-status-error {
  background: rgba(220, 38, 38, 0.15);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.aside-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
}
.aside-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--color-text-soft);
}
.aside-list li:last-child { border-bottom: 0; }
.aside-list a {
  color: var(--color-accent);
  text-decoration: none;
}
.aside-list a:hover { text-decoration: underline; }

.favorites-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.favorites-count {
  font-size: 0.9rem;
  color: var(--color-muted);
}
.empty-state {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: var(--color-surface-2);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}
.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  font-size: 1.4rem;
}
.empty-state h2 { margin-bottom: 0.4rem; }
.empty-state p {
  margin: 0 auto 1.25rem;
  max-width: 28rem;
  color: var(--color-text-soft);
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  background: var(--color-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
}
.legal-toc a {
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 0.85rem;
}
.legal-toc a:hover { color: var(--color-accent); }
.legal-section {
  margin: 0 0 1.75rem;
  padding-top: 0.25rem;
}
.legal-section p,
.legal-section li {
  color: var(--color-text-soft);
  line-height: 1.7;
}
.legal-section ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
}
.legal-section li { margin: 0.25rem 0; }

/* Upload page */
.page-upload {
  max-width: 1080px;
}
.upload-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}
.upload-steps li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.upload-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
}
.upload-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.upload-section:first-of-type { border-top: 0; padding-top: 0; }
.upload-section h2 {
  margin: 0;
  font-size: 1.05rem;
}
.upload-section-lead {
  margin: -0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}
.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.upload-field label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text);
}
.upload-field .required { color: var(--color-accent); }
.upload-field .optional { font-weight: 400; color: var(--color-muted); font-size: 0.85em; }
.upload-hint { font-weight: 400; color: var(--color-muted); font-size: 0.82em; margin-left: 0.25rem; }
.upload-map-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.4;
}
.upload-maps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.upload-maps .upload-field:first-child {
  grid-column: 1 / -1;
}
.upload-form input[type="text"],
.upload-form textarea,
.upload-form select,
.upload-form input[type="file"] {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-surface-3);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.upload-form input:focus,
.upload-form textarea:focus,
.upload-form select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}
.upload-form textarea { resize: vertical; min-height: 4.5rem; }
.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
  padding: 1rem;
  border: 2px dashed var(--color-surface-3);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}
.upload-dropzone:hover,
.upload-dropzone-active {
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
}
.upload-dropzone-text {
  color: var(--color-text-soft);
  font-size: 0.9rem;
}
.upload-dropzone-file {
  margin-top: 0.45rem;
  color: var(--color-accent);
  font-size: 0.82rem;
  display: none;
  word-break: break-all;
}
.upload-preview {
  display: none;
  margin-top: 0.75rem;
  width: 100%;
  max-width: 220px;
  max-height: clamp(90px, 22vw, 160px);
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
  object-position: center;
  background: #080b0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.upload-preview.is-on { display: block; }
.upload-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  cursor: pointer;
}
.upload-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.upload-check a { color: var(--color-accent); }
.btn-upload-submit {
  margin-top: 0.25rem;
  width: 100%;
}
.btn-upload-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.upload-status {
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.upload-success h2 { margin: 0 0 0.5rem; }
.upload-success p { color: var(--color-text-soft); margin: 0 0 1rem; }
.upload-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.community-maps {
  margin: 1.75rem 0 0.5rem;
}
.community-maps h2 {
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
}
.community-maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}
.community-map-card {
  margin: 0;
  padding: 0.65rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  text-align: center;
}
.community-map-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center;
  background: #080b0c;
  border-radius: 6px;
}
.community-map-card figcaption {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}
.community-dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.community-dl-row .btn { width: auto; flex: 1 1 140px; }
.community-dl-row + .btn-share-upload {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .inner-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding: 0.9rem;
  }
  .feature-grid,
  .split-layout,
  .upload-maps {
    grid-template-columns: 1fr;
  }
  .page-actions {
    width: 100%;
  }
  .page-actions .btn {
    width: 100%;
  }
  .page-cta-band {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .page-cta-band .btn {
    width: 100%;
  }
  .page-cta-band .page-actions {
    margin-top: 0;
    width: 100%;
  }
  .panel-card {
    padding: 1.2rem 1.05rem;
  }
  .favorites-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .favorites-toolbar .btn {
    width: 100%;
  }
}

@media (max-width: 768px) and (max-height: 740px) {
  .page-hero {
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
  }
  .page-section {
    margin-bottom: 1.5rem;
  }
  .empty-state {
    padding: 1.6rem 1rem;
  }
}

@media (max-width: 380px) {
  .inner-stats {
    gap: 0.45rem;
    padding: 0.7rem;
  }
  .cat-chip {
    padding: 0.42rem 0.75rem;
    font-size: 0.82rem;
  }
}

/* Save to favorites button on texture cards */
.btn-save-texture {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0.35rem auto 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-save-texture:hover,
.btn-save-texture.is-saved {
  background: rgba(6, 182, 212, 0.2);
  color: var(--color-accent);
}

/* Search results: type label (Texture / Article) */
.search-result-type {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-right: 0.25rem;
}

.favorites-list { min-height: 2rem; }

.page-texture {
  padding-top: 0.5rem;
}
.texture-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3rem;
}
.texture-head h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
}
.texture-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}
.texture-cat-chip {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--color-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
}
.texture-cat-chip:hover {
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--color-accent);
}
.texture-stage,
.asset-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 1.25rem 1.5rem;
  align-items: stretch;
}
.asset-preview {
  background: #080b0c;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.asset-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0;
}
.asset-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  min-width: 0;
  padding: 1.25rem 1.3rem 1.3rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
}
.asset-meta-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.asset-spec {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.asset-spec-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.asset-spec-row:last-child { padding-bottom: 0; border-bottom: 0; }
.asset-spec-row dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-top: 0.2rem;
}
.asset-spec-row dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.4;
}
.page-texture .post-content-texture {
  margin: 0;
  padding: 1.25rem 1.35rem 1.4rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
}
.page-texture .share-buttons {
  margin: 0;
}
.texture-seo-links {
  padding: 0.9rem 1.15rem 1rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-soft);
}
.texture-seo-links p { margin: 0; }
.texture-seo-links p + p { margin-top: 0.4rem; }
.texture-seo-links a {
  color: var(--color-accent);
  text-decoration: none;
}
.texture-seo-links a:hover { text-decoration: underline; }
.page-post .texture-seo-links {
  margin: 1.25rem 0 0;
}
.related-categories {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-muted);
}
.related-categories a {
  color: var(--color-accent);
  text-decoration: none;
}
.related-categories a:hover { text-decoration: underline; }
.page-texture .related-textures {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}
.page-texture .related-textures-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}
.page-texture .related-texture-thumb {
  border-radius: var(--radius);
}
.page-texture .asset-3d {
  aspect-ratio: 1;
  height: auto;
}
.page-texture .asset-3d-toggle {
  margin: 0.65rem auto 0;
}
.page-texture .download-panel .btn-download {
  width: 100%;
  margin-top: 0;
}
.page-texture .download-panel p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}
.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.btn-share-upload {
  width: 100%;
  min-height: 44px;
  font-weight: 600;
  gap: 0.4rem;
}
.btn-share-upload::before {
  content: "＋";
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1;
}
.asset-meta-lead {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-soft);
  line-height: 1.45;
}
.texture-about-title {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}
.post-content-texture {
  margin-top: 0.25rem;
}
.post-content-texture p + p { margin-top: 0.85rem; }
.asset-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.asset-maps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.asset-map-pill {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--color-surface-2);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: var(--color-text-soft);
}
.download-panel {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  border: 1px solid rgba(6, 182, 212, 0.2);
}
.download-panel h2 { margin: 0 0 0.5rem; font-size: 1rem; }
.download-panel .btn-download {
  display: inline-block;
  margin-top: 0.5rem;
}
.asset-preview img.is-dimmed {
  display: none;
}
.asset-3d {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(380px, 78vw);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 50% 18% at 50% 78%, rgba(6, 182, 212, 0.18), transparent 70%),
    #050708;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.asset-3d:active { cursor: grabbing; }
.asset-3d[hidden] { display: none !important; }
.asset-3d-scene {
  width: 168px;
  height: 168px;
  perspective: 900px;
  transform-style: preserve-3d;
}
.asset-3d-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(32deg);
  animation: assetCubeSpin 16s linear infinite;
}
.asset-3d-face {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.25);
}
.asset-3d-face--front { transform: translateZ(84px); }
.asset-3d-face--back { transform: rotateY(180deg) translateZ(84px); }
.asset-3d-face--right { transform: rotateY(90deg) translateZ(84px); }
.asset-3d-face--left { transform: rotateY(-90deg) translateZ(84px); }
.asset-3d-face--top { transform: rotateX(90deg) translateZ(84px); }
.asset-3d-face--bottom { transform: rotateX(-90deg) translateZ(84px); }
@keyframes assetCubeSpin {
  to { transform: rotateX(-18deg) rotateY(392deg); }
}
@media (prefers-reduced-motion: reduce) {
  .asset-3d-cube { animation: none; }
}
.asset-3d-toggle {
  margin-top: 0.5rem;
}
.download-count { font-size: 0.8rem; color: var(--color-muted); margin: 0.45rem 0 0; }

.page-search, .page-legal, .page-collections { padding-bottom: 3rem; }
.collections-index-hero { max-width: 40rem; }
.collections-bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-auto-rows: minmax(0, auto);
  gap: 1.15rem;
  align-items: stretch;
}
.collection-set {
  --set-accent: var(--color-accent);
  --set-glow: rgba(6, 182, 212, 0.22);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.collection-set:hover {
  transform: translateY(-3px);
  border-color: var(--set-accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38), 0 0 0 1px var(--set-glow);
}
.collection-set--wood {
  --set-accent: #e0a45a;
  --set-glow: rgba(224, 164, 90, 0.28);
}
.collection-set--urban {
  --set-accent: #8ea8bd;
  --set-glow: rgba(142, 168, 189, 0.28);
}
.collection-set--ground {
  --set-accent: #8fbc6b;
  --set-glow: rgba(143, 188, 107, 0.28);
}
.collection-set--featured { grid-row: span 2; }
.collection-set-visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-2);
}
.collection-set-visual .collection-mosaic {
  position: absolute;
  inset: 0;
}
.collection-set--featured .collection-set-visual {
  flex: 1;
  aspect-ratio: auto;
  min-height: 280px;
}
.collection-mosaic {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 3px;
  background: #050708;
}
.collection-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.collection-mosaic-empty {
  background:
    repeating-linear-gradient(-32deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 11px),
    var(--color-surface-3);
}
.collection-set--wood .collection-mosaic {
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr;
}
.collection-set--wood .collection-mosaic img:nth-child(n+6) { display: none; }
.collection-set--urban .collection-mosaic {
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.collection-set--urban .collection-mosaic img:first-child { grid-row: 1 / 3; }
.collection-set--urban .collection-mosaic img:nth-child(n+6) { display: none; }
.collection-set--ground .collection-mosaic {
  grid-template-columns: 1fr 1.25fr 1fr;
  grid-template-rows: 1.15fr 0.85fr;
}
.collection-set--ground .collection-mosaic img:nth-child(2) { grid-row: 1 / 3; }
.collection-set--ground .collection-mosaic img:nth-child(n+6) { display: none; }
.collection-set-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 8, 9, 0.08) 0%, rgba(6, 8, 9, 0.78) 100%),
    radial-gradient(120% 80% at 50% 120%, var(--set-glow), transparent 58%);
}
.collection-set-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.15rem;
  margin-top: -2.4rem;
  position: relative;
  z-index: 1;
}
.collection-set-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--set-accent);
}
.collection-set-body h2,
.collection-set-body h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.collection-set--featured .collection-set-body h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}
.collection-set-body p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}
.collection-set-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}
.collection-set-meta span:first-child {
  color: var(--set-accent);
  font-weight: 600;
}

.page-collection--wood { --set-accent: #e0a45a; --set-glow: rgba(224, 164, 90, 0.22); }
.page-collection--urban { --set-accent: #8ea8bd; --set-glow: rgba(142, 168, 189, 0.22); }
.page-collection--ground { --set-accent: #8fbc6b; --set-glow: rgba(143, 188, 107, 0.22); }
.page-collection .page-kicker { color: var(--set-accent); }
.collection-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.75rem 2rem;
  align-items: stretch;
  margin: 0 0 clamp(1.5rem, 4vh, 2.25rem);
}
.collection-hero-mosaic {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050708;
}
.collection-hero-mosaic .collection-mosaic {
  position: absolute;
  inset: 0;
}
.page-collection--wood .collection-hero-mosaic .collection-mosaic {
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.page-collection--wood .collection-hero-mosaic .collection-mosaic img { display: block; }
.page-collection--wood .collection-hero-mosaic .collection-mosaic img:nth-child(n+7) { display: none; }
.page-collection--urban .collection-hero-mosaic .collection-mosaic {
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}
.page-collection--urban .collection-hero-mosaic .collection-mosaic img:first-child { grid-row: 1 / 3; }
.page-collection--ground .collection-hero-mosaic .collection-mosaic {
  grid-template-columns: 1fr 1.4fr 1fr;
  grid-template-rows: 1.2fr 0.8fr 1fr;
  gap: 4px;
}
.page-collection--ground .collection-hero-mosaic .collection-mosaic img:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / 3;
}
.collection-hero-mosaic::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 55%, var(--color-bg) 100%),
    radial-gradient(80% 70% at 20% 80%, var(--set-glow), transparent 62%);
}
.collection-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.collection-hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.collection-uses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.collection-uses li {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-color: color-mix(in srgb, var(--set-accent) 35%, transparent);
  background: rgba(255, 255, 255, 0.04);
  background: color-mix(in srgb, var(--set-accent) 10%, transparent);
  color: var(--set-accent);
  font-size: 0.78rem;
  font-weight: 600;
}
.collection-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}
.collection-stats div {
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius);
  background: var(--color-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.collection-stats dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}
.collection-stats dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--set-accent);
}
.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}
.collection-grid-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}
.collection-more {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.collection-more h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}
.collection-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.filters-row { display: flex; flex-wrap: wrap; gap: 0.5rem 0.65rem; align-items: end; }
.grid-empty { color: var(--color-muted); padding: 1.5rem 0; }

@media (max-width: 900px) {
  .texture-stage,
  .asset-hero { grid-template-columns: 1fr; }
  .page-texture .related-textures-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .collections-bento {
    grid-template-columns: 1fr;
  }
  .collection-set--featured {
    grid-row: auto;
  }
  .collection-set--featured .collection-set-visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
    flex: none;
  }
  .collection-hero {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .collection-hero-mosaic {
    min-height: 0;
    max-height: 280px;
    aspect-ratio: 16 / 9;
  }
  .collection-hero-mosaic::after {
    background: linear-gradient(180deg, transparent 42%, var(--color-bg) 100%);
  }
}

@media (max-width: 768px) {
  .collection-set-visual,
  .collection-set--featured .collection-set-visual {
    aspect-ratio: 16 / 9;
    max-height: clamp(140px, 38vw, 200px);
  }
  .collection-hero {
    margin-bottom: var(--section-gap);
  }
  .collection-hero-mosaic {
    max-height: clamp(140px, 36vw, 200px);
  }
  .collection-hero-copy h1 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }
  .collection-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .collection-stats div { padding: 0.55rem 0.5rem; }
  .collection-stats dd { font-size: 0.95rem; }
  .collection-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .collection-toolbar .btn {
    width: 100%;
    text-align: center;
  }
  .collection-set-body {
    margin-top: 0;
    padding: 0.85rem 0.95rem 1rem;
  }
  .collection-set-kicker { letter-spacing: 0.1em; }
  .collection-more {
    margin-top: 2rem;
    padding-top: 1.35rem;
  }
}

@media (max-width: 768px) {
  .asset-spec-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .asset-preview img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .page-texture .related-textures-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) and (max-height: 740px) {
  .collection-hero-mosaic,
  .collection-set-visual,
  .collection-set--featured .collection-set-visual {
    max-height: clamp(110px, 28vw, 160px);
  }
}

@media (max-width: 380px) {
  .collection-set-kicker { letter-spacing: 0.06em; }
  .collection-uses li { padding: 0.28rem 0.55rem; font-size: 0.72rem; }
  .collection-stats { gap: 0.35rem; }
}
