﻿
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --bg: #101010;
  --bg-soft: #171717;
  --surface: #1c1c1c;
  --text: #f1eee8;
  --muted: #96938c;
  --line: #30302e;
  --accent: #c9bda8;
  --font-main: "DM Sans", sans-serif;
  --font-editorial: "Playfair Display", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--accent);
  color: #111;
}

/* HEADER */

.site-header {
  height: 88px;
  width: 100%;
  padding: 0 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  background: rgba(16, 16, 16, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .17em;
}

.brand-sub {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .34em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.7vw, 27px);
}

.main-nav a,
.header-instagram {
  position: relative;
  color: #aaa79f;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  white-space: nowrap;
  transition: color .25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .25s ease;
}

.main-nav a:hover,
.main-nav a.active,
.header-instagram:hover {
  color: var(--text);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  width: 100%;
}

.header-instagram {
  color: var(--text);
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  padding: 10px 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 27px;
  height: 1px;
  background: var(--text);
  margin: 7px auto;
  transition: transform .25s ease;
}

.menu-toggle.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* HERO */

.hero {
  min-height: 650px;
  height: min(78vh, 850px);
  padding: 100px 10% 65px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 78% 42%, rgba(255,255,255,.055), transparent 37%),
    linear-gradient(115deg, #101010 0%, #141414 58%, #191919 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 50%;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 50%;
  right: 14.5%;
  top: 50%;
  transform: translateY(-50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 30px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .25em;
  line-height: 1.8;
}

.hero h1 {
  margin: 0;
  font-size: clamp(65px, 9vw, 132px);
  line-height: .94;
  font-weight: 500;
  letter-spacing: -.075em;
}

.hero h1 i,
.portfolio-heading h2 i,
.about-content h2 i,
.contact-section h2 i {
  font-family: var(--font-editorial);
  font-weight: 400;
  letter-spacing: -.045em;
}

.hero h1 i {
  color: var(--accent);
}

.hero-description {
  max-width: 390px;
  margin: 35px 0 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--accent);
  color: var(--text);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  transition: gap .25s ease;
}

.hero-link:hover {
  gap: 38px;
}

.hero-link span {
  color: var(--accent);
  font-size: 16px;
}

.hero-bottom {
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  color: #77746d;
  font-size: 8px;
  letter-spacing: .18em;
}

.hero-number {
  position: absolute;
  right: 5.5%;
  top: 50%;
  transform: translateY(-50%);
  color: #55534e;
  font-family: var(--font-editorial);
  font-size: 15px;
  letter-spacing: .1em;
}

/* PORTFOLIO */

.portfolio-section {
  padding: 125px 7% 145px;
}

.portfolio-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 48px;
}

.portfolio-heading .eyebrow {
  margin-bottom: 18px;
}

.portfolio-heading h2 {
  margin: 0;
  font-size: clamp(35px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -.065em;
}

.portfolio-heading h2 i {
  color: var(--accent);
}

.portfolio-intro {
  max-width: 275px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.category-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 0;
  margin-bottom: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-strip a {
  flex-shrink: 0;
  color: #85827b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
  transition: color .2s ease;
}

.category-strip a:hover,
.category-strip a.active {
  color: var(--accent);
}

/* PROJECT GRID */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 150px;
}
.project-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.project-cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(201, 189, 168, .16);
}

.project-cover::after {
  content: "VER PROYECTO â†’";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  background: rgba(16,16,16,.82);
  color: var(--text);
  font-size: 8px;
  letter-spacing: .14em;
  opacity: 0;
  transform: translateY(7px);
  transition: all .3s ease;
}

.project-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
}

.project-card:hover .project-cover img {
  transform: scale(1.035);
  opacity: .83;
}

.project-card:hover .project-cover::after {
  opacity: 1;
  transform: translateY(0);
}

.project-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.project-info h3 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 400;
}

.project-info span {
  color: var(--accent);
  font-size: 8px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.project-description {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.portfolio-message {
  padding: 65px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

/* ABOUT */

.about-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding: 110px 10%;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-label {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .18em;
}

.about-content {
  max-width: 730px;
}

.about-content .eyebrow {
  margin-bottom: 25px;
}

.about-content h2 {
  margin: 0;
  font-size: clamp(43px, 6.5vw, 83px);
  line-height: .99;
  font-weight: 500;
  letter-spacing: -.07em;
}

.about-content h2 i {
  color: var(--accent);
}

.about-description {
  max-width: 430px;
  margin: 35px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}


/* CONTACT */

.contact-section {
  position: relative;
  min-height: 560px;
  padding: 135px 10%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(ellipse at 75% 50%, rgba(255,255,255,.075), transparent 48%),
    var(--bg);
}

.contact-section .eyebrow {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
}

.contact-section h2 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(54px, 8vw, 104px);
  line-height: .96;
  font-weight: 500;
  letter-spacing: -.075em;
}

.contact-section h2 i {
  color: var(--accent);
  font-style: italic;
}

.contact-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  min-width: 285px;
  margin-top: 48px;
  padding: 21px 25px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
  text-decoration: none;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}




.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  min-width: 330px;
  margin-top: 48px;
  padding: 8px 9px 8px 25px;
  border: 1px solid rgba(198,167,121,.7);
  border-radius: 60px;
  background: linear-gradient(110deg, rgba(198,167,121,.10), rgba(255,255,255,.015));
  color: #e8d4b3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(198,167,121,.04);
  transition: all .35s ease;
}

.contact-button:hover {
  border-color: var(--accent);
  background: rgba(198,167,121,.12);
  box-shadow: 0 0 30px rgba(198,167,121,.17);
  transform: translateY(-3px);
}

.contact-button span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #171717;
  font-size: 25px;
  font-weight: 400;
  transition: transform .35s ease;
}

.contact-button:hover span {
  transform: rotate(45deg);
}


/* FOOTER */

.site-footer {
  min-height: 90px;
  padding: 25px 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .15em;
}

.footer-brand {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.footer-brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: .25em;
}

/* PROJECT MODAL */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  background: #101010;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}

.project-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modal-top {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 75px;
  padding: 0 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16,16,16,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.modal-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
}

.modal-brand span {
  color: var(--muted);
  font-weight: 400;
}

.modal-close {
  border: 0;
  background: none;
  color: var(--text);
  font-size: 9px;
  letter-spacing: .15em;
  cursor: pointer;
}

.modal-heading {
  max-width: 950px;
  margin: 0 auto;
  padding: 90px 7% 65px;
}

.modal-heading .eyebrow {
  margin-bottom: 20px;
}

.modal-heading h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(38px, 7vw, 78px);
  font-weight: 400;
  line-height: 1.05;
}

.modal-heading p:last-child {
  max-width: 500px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

/* MODAL GALLERY - MASONRY COLLAGE */

.modal-gallery {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto 100px;
  display: block;
  columns: 2;
  column-gap: 7px;
}

.modal-gallery figure {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  margin: 0 0 7px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(201, 189, 168, .16);
  break-inside: avoid;
}

.modal-gallery figure:first-child {
  grid-column: auto;
}

.modal-gallery img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  cursor: zoom-in;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  display: block;
  max-width: 84vw;
  max-height: 84vh;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  border: 0;
  background: transparent;
  color: #f4f1ea;
  cursor: pointer;
  transition: color .2s ease;
}

.lightbox button:hover {
  color: var(--accent);
}

.lightbox-close {
  top: 25px;
  right: 35px;
  font-size: 36px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-editorial);
  font-size: 60px;
}

.lightbox-prev {
  left: 35px;
}

.lightbox-next {
  right: 35px;
}

.lightbox-counter {
  position: absolute;
  bottom: 27px;
  color: #aaa;
  font-size: 10px;
  letter-spacing: .2em;
}

/* RESPONSIVE - TABLETS */

@media (max-width: 1150px) {
  .site-header {
    gap: 20px;
    padding: 0 4%;
  }

  .main-nav {
    gap: 13px;
  }

  .main-nav a,
  .header-instagram {
    font-size: 8px;
  }

  .hero {
    padding-left: 8%;
  }
}

/* RESPONSIVE - MOBILE NAVIGATION */

@media (max-width: 850px) {
  .site-header {
    height: 75px;
  }

  .header-instagram {
    display: none;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 6% 22px;
    background: #111;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
    font-size: 10px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    min-height: 600px;
    height: 72vh;
    padding: 90px 7% 75px;
  }

  .hero::before {
    width: 350px;
    height: 350px;
    right: -10%;
  }

  .hero::after {
    width: 260px;
    height: 260px;
    right: -3%;
  }

  .hero-number {
    display: none;
  }

  .portfolio-section {
    padding: 90px 6%;
  }

  .about-section {
    padding: 90px 7%;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-label {
    flex-direction: row;
    justify-content: space-between;
  }

  .contact-section {
    padding: 100px 7%;
  }

  .site-footer {
    padding: 25px 6%;
  }
}

/* RESPONSIVE - MOBILE */

@media (max-width: 600px) {
  .brand-name {
    font-size: 16px;
  }

  .hero {
    min-height: 560px;
    height: 75svh;
    padding: 80px 7% 85px;
  }

  .hero h1 {
    font-size: clamp(55px, 14vw, 78px);
  }

  .hero-description {
    max-width: 300px;
    font-size: 12px;
  }

  .hero-bottom {
    left: 7%;
    right: 7%;
    bottom: 22px;
    font-size: 7px;
    letter-spacing: .1em;
    gap: 15px;
  }

  .hero-bottom span:last-child {
    text-align: right;
  }

  .portfolio-section {
    padding: 75px 6% 90px;
  }

  .portfolio-heading {
    display: block;
    margin-bottom: 30px;
  }

  .portfolio-heading h2 {
    font-size: 42px;
  }

  .portfolio-intro {
    margin-top: 20px;
  }

  .category-strip {
    gap: 22px;
    margin-bottom: 25px;
  }

  /* PROJECTS ON MOBILE */

  .projects-grid {
  grid-template-columns: 1fr;
  gap: 5px;
}

  .project-card {
    margin-bottom: 5px;
  }

  .project-cover {
    
  }

  .project-info {
    margin-top: 12px;
  }

  .project-info h3 {
    font-size: 22px;
  }

  .project-info span {
    font-size: 7px;
  }

  .about-section {
    padding: 75px 7%;
  }

  .about-content h2 {
    font-size: 48px;
  }

  .about-description {
    font-size: 11px;
  }

  .contact-section {
    min-height: 440px;
    padding: 90px 7%;
  }

  .contact-section h2 {
    font-size: clamp(43px, 10vw, 58px);
  }


  .contact-button {
    min-width: 0;
    gap: 22px;
    margin-top: 38px;
    padding: 18px 17px;
    font-size: 8px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-size: 7px;
  }

  .site-footer > :nth-child(even) {
    text-align: right;
  }

  .modal-top {
    height: 65px;
    padding: 0 6%;
  }

  .modal-heading {
    padding: 65px 7% 40px;
  }

  /* COLLAGE ON MOBILE */

  .modal-gallery {
    width: 94%;
    columns: 2;
    column-gap: 5px;
    margin-bottom: 70px;
  }

  .modal-gallery figure {
    margin-bottom: 5px;
  }

  .modal-gallery figure:first-child {
    grid-column: auto;
  }

  .lightbox img {
    max-width: 92vw;
    max-height: 78vh;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 45px;
  }

  .lightbox-close {
    right: 18px;
    top: 15px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
/* ========================================
   SOPORTE PARA VIDEOS Y GIF
======================================== */

/* Portadas de proyectos */

.project-cover video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
}

.project-card:hover .project-cover video {
  transform: scale(1.035);
  opacity: .83;
}

/* GalerÃ­a de proyectos */

.modal-gallery video {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #000;
}

/* Visor ampliado */

#lightboxMedia {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 84vw;
  max-height: 84vh;
}

#lightboxMedia img,
#lightboxMedia video {
  display: block;
  max-width: 84vw;
  max-height: 84vh;
  object-fit: contain;
}

#lightboxMedia video {
  background: #000;
}

/* AdaptaciÃ³n mÃ³vil */

@media (max-width: 768px) {
  #lightboxMedia {
    max-width: 92vw;
    max-height: 78vh;
  }

  #lightboxMedia img,
  #lightboxMedia video {
    max-width: 92vw;
    max-height: 78vh;
  }
}
/* Proteccion tactil para imagenes y videos */
.modal-gallery img, .modal-gallery video, #lightbox img, #lightbox video {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}


/* ========================================
   PORTADA DE CATEGORIAS
======================================== */


.category-home-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.category-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(100px, 13vh, 140px);
  overflow: hidden;
  isolation: isolate;
  background: #202020;
  border: 1px solid rgba(255,255,255,.12);
  text-decoration: none;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -2;
  background-image: var(--category-image);
  background-position: center 45%;
  background-size: cover;
  filter: blur(1px);
  opacity: .95;
  transition: transform .5s ease, opacity .5s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.45),
    rgba(0,0,0,.18),
    rgba(0,0,0,.45)
  );
}

.category-tile span {
  color: #fff;
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 600;
  letter-spacing: .3em;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
  transition: letter-spacing .3s ease;
}

.category-tile:hover::before {
  transform: scale(1.04);
  opacity: 1;
}

.category-tile:hover span {
  letter-spacing: .42em;
}


/* SEIS CATEGORIAS EN UNA PANTALLA */

body:has(.category-home-grid) .portfolio-section {
  padding: 18px 7% 22px;
}

body:has(.category-home-grid) .category-home-grid {
  min-height: 0;
}

/* AJUSTES PARA CELULARES */

@media (max-width: 600px) {
  body:has(.category-home-grid) .portfolio-section {
    padding: 10px 5% 14px;
  }

  body:has(.category-home-grid) .category-home-grid {
    gap: 8px;
  }

  body:has(.category-home-grid) .category-tile {
  height: calc((100dvh - 190px) / 6);
  min-height: 75px;
}

  body:has(.category-home-grid) .category-tile span {
    font-size: 12px;
    letter-spacing: .22em;
  }
}



