:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #7a7a7a;
  --gallery-bg: #f5f5f5;
  --footer-bg: #0b0b0b;
  --footer-text: #eaeaea;
  --container: 1280px;
  --gap: 20px;
  --accent: #616946;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto Mono', monospace;
}

body.menu-open {
  overflow: hidden;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--bg, white);
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 100;
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5%;
  min-height: 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: rotate(5deg) scale(1.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin: 0;
  color: #333;
}

.main-nav--desktop ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: #555;
  font-weight: 400;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  transition: transform 0.3s ease;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: right 0.4s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  background: #f8f8f8;
}

.mobile-menu__header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
}

.mobile-menu__close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.mobile-menu__close:hover {
  color: #333;
}

.mobile-menu__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu__nav li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu__nav .nav-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: #555;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.mobile-menu__nav .nav-link::after {
  display: none;
}

.mobile-menu__nav .nav-link:hover,
.mobile-menu__nav .nav-link.active {
  background: #f8f8f8;
  color: var(--accent);
  padding-left: 2rem;
}

.mobile-menu__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu__overlay.active {
  opacity: 1;
  pointer-events: all;
}

.gallery-wrapper {
  background: var(--gallery-bg);
  padding-block: 40px 60px;
}

.gallery {
  columns: 3;
  column-gap: var(--gap);
}

.gallery-item {
  break-inside: avoid;
  margin: 0 0 var(--gap);
  border-radius: 6px;
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  margin-top: 0;
  background: #1a1a1a;
  color: var(--footer-text);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 100px;
  padding: 80px 60px;
  align-items: start;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand {
  font-family: 'Roboto Mono', monospace;
  font-size: 45px;
  font-weight: 400;
  margin: 0;
  line-height: 1;
  letter-spacing: -1px;
}

.footer__rights {
  margin: 0;
  color: #999;
  font-size: 14px;
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  margin-top: 8px;
}

.footer__left p:first-of-type {
  color: #bbb;
  font-size: 15px;
  margin: 12px 0 4px;
  line-height: 1.5;
}

.footer__nav {
  display: flex;
  flex-direction: column;
}

.footer__nav::before {
  content: 'CATEGORÍAS';
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 24px;
  display: block;
}

.footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 16px;
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__title {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
}

.footer__social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2d2d2d;
  border-radius: 8px;
  padding: 12px;
  color: #ccc;
  width: 48px;
  height: 48px;
  transition: all 0.2s ease;
}

.footer__social:hover {
  background: #3d3d3d;
  color: #fff;
}

@media (max-width: 1024px) {
  .header__content {
    padding: 1.2rem 4%;
    min-height: 80px;
  }
  
  .logo-img {
    width: 45px;
    height: 45px;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .main-nav--desktop ul {
    gap: 1.8rem;
  }
  
  .nav-link {
    font-size: 0.95rem;
  }
  
  .gallery {
    columns: 3;
    column-gap: 16px;
  }
  
  .footer__grid {
    gap: 60px;
    padding: 60px 40px;
  }
  
  .footer__brand {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .main-nav--desktop {
    display: none;
  }
  
  .container {
    padding-inline: 16px;
  }
  
  .header__content {
    padding: 1rem 16px;
    min-height: 70px;
  }
  
  .logo-img {
    width: 40px;
    height: 40px;
  }
  
  .logo {
    font-size: 1.4rem;
  }
  
  .gallery {
    columns: 2;
    column-gap: 10px;
  }
  
  .gallery-wrapper {
    padding-block: 20px 40px;
  }
  
  .gallery-item {
    margin: 0 0 10px;
    border-radius: 4px;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 50px 30px;
    text-align: center;
  }
  
  .footer__left {
    align-items: center;
  }
  
  .footer__brand {
    font-size: 38px;
  }
  
  .footer__nav::before {
    text-align: center;
  }
  
  .footer__nav ul {
    align-items: center;
  }
  
  .footer__right {
    align-items: center;
  }
  
  .footer__social-links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
 @media (max-width: 600px) {
  .hamburger {
    display: flex !important;
  }

  .main-nav--desktop {
    display: none !important;
  }
  
  .header__content {
    padding: 1rem 12px;
  }
  
  .logo-img {
    width: 38px;
    height: 38px;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .mobile-menu {
    width: 260px;
  }
  
  .gallery {
    columns: 2;
    column-gap: 8px;
  }
  
  .gallery-wrapper {
    padding-block: 16px 32px;
  }
  
  .gallery-item {
    margin: 0 0 8px;
  }
  
  .footer__grid {
    padding: 40px 24px;
    gap: 35px;
  }
  
  .footer__brand {
    font-size: 32px;
  }
  
  .footer__left p:first-of-type,
  .footer__left p[style] {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .footer__rights {
    font-size: 12px;
  }
  
  .footer__nav::before {
    font-size: 12px;
    margin-bottom: 16px;
  }
  
  .footer__nav a {
    font-size: 14px;
  }
  
  .footer__nav ul {
    gap: 12px;
  }
  
  .footer__social {
    width: 44px;
    height: 44px;
    padding: 10px;
  }
  
  .footer__social svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 35px;
    height: 35px;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .mobile-menu {
    width: 240px;
  }
  
  .hamburger span {
    width: 24px;
  }
  
  .gallery {
    columns: 2;
    column-gap: 6px;
  }
  
  .gallery-item {
    margin: 0 0 6px;
  }
}

@media (max-width: 400px) {
  .logo {
    font-size: 1.1rem;
  }
  
  .logo-img {
    width: 32px;
    height: 32px;
  }
  
  .mobile-menu {
    width: 220px;
  }
  
  .footer__grid {
    padding: 30px 16px;
  }
  
  .footer__brand {
    font-size: 26px;
  }
  
  .footer__social {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 1400px) {
  .gallery {
    columns: 5;
  }
  
  .footer__grid {
    gap: 120px;
    padding: 100px 80px;
  }
}