:root {
    --bg: #0f0f10;
    --fg: #eaeaea;
    --muted: #9a9a9a;
    --accent: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
}

/* =========================
   Header (fondo oscuro)
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(20, 20, 20, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Marca */

.brand a {
  text-decoration: none;
  color: #f2f2f2;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

/* Navegación */

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #cccccc;
  font-size: 0.9rem;
  text-transform: lowercase;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #ffffff;
}

/* Botón menú móvil */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background-color: #f2f2f2;
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(20, 20, 20, 0.98);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}


/* FIN ESTILO HEADER */





/* HERO */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background:
        repeating-linear-gradient(
            45deg,
            #111 0px,
            #111 20px,
            #0c0c0c 20px,
            #0c0c0c 40px
        );
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.1em;
}

.hero p {
    color: var(--muted);
    margin-top: 1rem;
}

/* INTRO */
.intro {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    font-size: 1.1rem;
}

/* GALLERY */
.gallery {
    padding: 3rem 1.5rem;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

figure {
    position: relative;
    overflow: hidden;
}

figure img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.4s ease, filter 0.4s ease;
}

figure:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}
figure hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #333, transparent);
    margin: 1rem 0;
}

figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}
.escher-text {
    margin-top: 0.8rem;
}

.escher-text summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: #bbb;
    list-style: none;
}

.escher-text summary:hover {
    color: #fff;
}

.escher-text p {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #d0d0d0;
    line-height: 1.6;
}
.escher-text summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: #bbb;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.escher-text summary::after {
    content: "+";
    font-size: 1rem;
    color: #bbb;
    margin-left: 1rem;
}

.escher-text[open] summary::after {
    content: "×";
}

.escher-text summary:hover {
    color: #fff;
}

.escher-text summary:hover::after {
    color: #fff;
}

.escher-text p {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #d0d0d0;
    line-height: 1.6;
}


/* FOOTER */
footer {
    padding: 3rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    border-top: 1px solid #222;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .intro {
        margin: 2rem auto;
    }
}
