/* ============================================
   JUANJO CACHO — Portfolio Fotográfico
   Rediseño: fondo oscuro, fotoperiodístico,
   austero. La foto domina.
   ============================================ */

:root {
  --color-bg: #0e0e0e;
  --color-bg-nav: rgba(14, 14, 14, 0.88);
  --color-surface: #161616;
  --color-text: #c8c8c8;
  --color-text-bright: #e8e8e8;
  --color-text-dim: #777;
  --color-text-muted: #555;
  --color-border: #252525;
  --color-hover: #fff;

  --font-body: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --max-width: 1100px;
  --max-width-text: 620px;
  --nav-height: 58px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-hover);
}

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.4s ease;
}

.nav--solid {
  background: var(--color-bg-nav);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav--hero {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 60%,
    transparent 100%
  );
}

.nav--hero.is-scrolled {
  background: var(--color-bg-nav);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Nav links brighter over hero photo */
.nav--hero .nav__brand,
.nav--hero .nav__links a {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.nav--hero .nav__links a:hover {
  color: #fff;
}

.nav--hero.is-scrolled .nav__brand {
  color: var(--color-text-bright);
  text-shadow: none;
}

.nav--hero.is-scrolled .nav__links a {
  color: var(--color-text-dim);
  text-shadow: none;
}

.nav--hero.is-scrolled .nav__links a:hover {
  color: var(--color-text-bright);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-bright);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text-bright);
  transition: width 0.3s ease;
}

.nav__links a:hover {
  color: var(--color-text-bright);
}

.nav__links a:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text-bright);
  margin: 5px 0;
  transition: all 0.25s ease;
}

@media (max-width: 640px) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: center;
    padding: var(--space-md) 0;
    gap: var(--space-sm);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

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

  .nav__toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav__toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }
}

/* ---------- Nav dropdown ---------- */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0;
  padding-bottom: 2px;
  position: relative;
}

.nav__dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text-bright);
  transition: width 0.3s ease;
}

.nav__dropdown-toggle:hover,
.nav__dropdown.is-open .nav__dropdown-toggle {
  color: var(--color-text-bright);
}

.nav__dropdown-toggle:hover::after,
.nav__dropdown.is-open .nav__dropdown-toggle::after {
  width: 100%;
}

.nav__dropdown-arrow {
  font-size: 0.65em;
  display: inline-block;
  transition: transform 0.25s ease;
}

.nav__dropdown.is-open .nav__dropdown-arrow {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(14, 14, 14, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  list-style: none;
  min-width: 220px;
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav__dropdown.is-open .nav__dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-menu li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  white-space: nowrap;
}

.nav__dropdown-menu li a::after {
  display: none;
}

.nav__dropdown-menu li a:hover {
  color: var(--color-text-bright);
}

/* Hero nav — color overrides for dropdown */
.nav--hero .nav__dropdown-toggle {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.nav--hero .nav__dropdown-toggle:hover,
.nav--hero .nav__dropdown.is-open .nav__dropdown-toggle {
  color: #fff;
}

.nav--hero.is-scrolled .nav__dropdown-toggle {
  color: var(--color-text-dim);
  text-shadow: none;
}

.nav--hero.is-scrolled .nav__dropdown-toggle:hover,
.nav--hero.is-scrolled .nav__dropdown.is-open .nav__dropdown-toggle {
  color: var(--color-text-bright);
}

@media (max-width: 640px) {
  .nav__dropdown-menu {
    position: static;
    transform: none !important;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    min-width: unset;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    pointer-events: none;
    transition: max-height 0.3s ease;
  }

  .nav__dropdown.is-open .nav__dropdown-menu {
    max-height: 200px;
    pointer-events: auto;
  }

  .nav__dropdown-menu li a {
    padding: 0.35rem 0;
    font-size: 0.78rem;
    color: var(--color-text-muted);
  }

  .nav__dropdown-toggle {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--text {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---------- Hero (Home) — full-bleed photo ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Placeholder when no image yet */
.hero__placeholder {
  position: absolute;
  inset: 0;
  background: var(--color-surface);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 14, 14, 0.9) 0%,
    rgba(14, 14, 14, 0.35) 35%,
    rgba(14, 14, 14, 0.05) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-lg) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
  margin-bottom: var(--space-xs);
}

.hero__tagline {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  letter-spacing: 0.03em;
  max-width: 400px;
}

/* ---------- Hero gallery cards (desktop only) ---------- */
.hero__galleries {
  display: none;
}

@media (min-width: 900px) {
  .hero__content {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
  }

  .hero__text {
    text-align: right;
  }

  .hero__text .hero__tagline {
    margin-left: auto;
  }

  .hero__galleries {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
  }

  .hero__gallery-card {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero__gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
  }

  .hero__gallery-card:hover img {
    transform: scale(1.05);
  }

  /* Hover overlay */
  .hero__gallery-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
  }

  .hero__gallery-card:hover::before {
    opacity: 1;
  }

  /* "Ver galería →" CTA */
  .hero__gallery-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 3;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
  }

  .hero__gallery-card:hover .hero__gallery-cta {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  /* Title + series label */
  .hero__gallery-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 0.85rem 0.7rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
    color: #fff;
    line-height: 1.15;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .hero__gallery-series {
    display: block;
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
  }

  .hero__gallery-title--terraza {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .hero__gallery-title--voragine {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.55rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.01em;
  }

  .hero__gallery-title--calle {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
}

/* ---------- Gallery index (listing) ---------- */
.galleries {
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
}

.gallery-list {
  display: grid;
  gap: var(--space-xl);
}

.gallery-card {
  display: block;
  position: relative;
  overflow: hidden;
}

.gallery-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-card__image--placeholder {
  background: var(--color-surface);
  width: 100%;
  aspect-ratio: 16 / 9;
}

.gallery-card:hover .gallery-card__image {
  opacity: 0.7;
}

.gallery-card__info {
  padding: var(--space-sm) 0;
}

.gallery-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-bright);
  margin-bottom: 4px;
}

.gallery-card__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---------- Gallery detail — header ---------- */
.gallery-header {
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-lg);
  text-align: center;
}

.gallery-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-bright);
  margin-bottom: 4px;
}

.gallery-header__subtitle {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.gallery-header__intro {
  max-width: var(--max-width-text);
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--color-text-dim);
}

/* ---------- Gallery: storytelling (foto + texto) ---------- */
.gallery-story {
  padding: var(--space-lg) 0 var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.story-item {
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-item__figure {
  margin-bottom: var(--space-md);
}

.story-item__img {
  width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.story-item__caption {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.story-item__number {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.story-item__text {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--color-text-dim);
}

.story-item__text em {
  color: var(--color-text);
  font-style: italic;
}

/* ---------- Gallery: photo-only (standard) ---------- */
.gallery-photos {
  padding: var(--space-lg) 0 var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.photo-item {
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.photo-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.photo-item__img {
  width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------- About + Contact ---------- */
.about {
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
}

.about__content {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

.about__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-md);
  filter: grayscale(0.15);
}

.about__label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.about__text {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--color-text-dim);
}

.about__text p {
  margin-bottom: var(--space-sm);
}

.about__contact {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.88rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  font-weight: 400;
}

.contact__link svg {
  opacity: 0.6;
}

.contact__link:hover {
  color: var(--color-hover);
}

.contact__link:hover svg {
  opacity: 1;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ---------- Back link ---------- */
.back-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.6em 1.2em;
  border: 1px solid var(--color-border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
  color: var(--color-text-bright);
  border-color: var(--color-text-dim);
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--space-md) var(--space-md);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__galleries {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__galleries a {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer__galleries a:hover {
  color: var(--color-text-bright);
}

.footer__social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.footer__social a {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.footer__social a:hover {
  color: var(--color-text-bright);
}

.footer__copy {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.pt-nav { padding-top: var(--nav-height); }

/* ---------- Focus visible (accesibilidad teclado) ---------- */
:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Touch targets mínimos (44px) ---------- */
.nav__dropdown-toggle {
  min-height: 44px;
}

/* ---------- Responsive: tablet (641–900px) ---------- */
@media (min-width: 641px) and (max-width: 900px) {
  .nav__inner {
    padding: 0 var(--space-sm);
  }

  .nav__links {
    gap: var(--space-sm);
  }

  .gallery-header {
    padding-top: calc(var(--nav-height) + var(--space-lg));
  }

  .story-item__caption {
    padding: 0 var(--space-sm);
  }
}

/* ---------- Responsive: móvil (≤640px) ---------- */
@media (max-width: 640px) {
  :root {
    --space-lg: 2.5rem;
    --space-xl: 3.5rem;
  }

  .hero__tagline {
    max-width: 100%;
    font-size: 0.9rem;
  }

  .gallery-header {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
    text-align: left;
  }

  .gallery-header__intro {
    text-align: left;
  }

  .story-item__caption {
    padding: 0 var(--space-sm);
  }

  .about {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .about__content {
    padding: 0;
  }

  .back-link {
    font-size: 0.75rem;
  }

  .footer {
    padding: var(--space-sm);
  }
}

/* ============================================
   Banner de cookies (RGPD)
   ============================================ */
.cookies {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(14, 14, 14, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  transform: translateY(110%);
  transition: transform 0.4s ease;
}

.cookies--visible {
  transform: translateY(0);
}

.cookies__text {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--color-text);
  max-width: 720px;
  flex: 1;
  min-width: 260px;
  margin: 0;
}

.cookies__text em {
  font-style: normal;
  color: var(--color-text-bright);
}

.cookies__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookies__btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cookies__btn:hover {
  border-color: var(--color-hover);
  color: var(--color-hover);
}

.cookies__btn--accept {
  border-color: var(--color-text);
  color: var(--color-text-bright);
}

.cookies__btn--accept:hover {
  background: var(--color-hover);
  color: var(--color-bg);
  border-color: var(--color-hover);
}

.footer__cookies {
  color: var(--color-text-muted);
}

.footer__cookies:hover {
  color: var(--color-text-bright);
}

@media (max-width: 700px) {
  .cookies {
    padding: var(--space-sm);
    gap: 0.8rem;
  }

  .cookies__text {
    font-size: 0.78rem;
    min-width: 100%;
  }

  .cookies__actions {
    width: 100%;
    justify-content: stretch;
  }

  .cookies__btn {
    flex: 1;
    padding: 0.7rem 0.8rem;
  }
}

/* ============================================
   === Galería: Calle ===
   Antología de cuatro series cortas. Cada
   capítulo tiene su propia composición.
   ============================================ */

.calle {
  background: var(--color-bg);
  padding-top: var(--nav-height);
}

/* Header principal */
.calle-header {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  max-width: 760px;
  margin: 0 auto;
}

.calle-header__kicker {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-md);
}

.calle-header__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.5rem, 11vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--color-text-bright);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.calle-header__subtitle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.calle-header__intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

/* Mini-índice flotante (solo desktop ≥1100px) */
.calle-toc {
  display: none;
}

@media (min-width: 1100px) {
  .calle-toc {
    display: block;
    position: fixed;
    top: 50%;
    right: var(--space-md);
    transform: translateY(-50%);
    z-index: 50;
  }

  .calle-toc__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }

  .calle-toc__list a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    transition: color 0.25s ease;
  }

  .calle-toc__list a::after {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--color-text-dim);
    transition: width 0.3s ease, background 0.25s ease;
  }

  .calle-toc__list a span {
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .calle-toc__list a:hover {
    color: var(--color-text-bright);
  }

  .calle-toc__list a:hover::after {
    width: 36px;
    background: var(--color-text-bright);
  }

  .calle-toc__list a:hover span {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Capítulos */
.calle-chapter {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.calle-chapter:first-of-type {
  border-top: none;
}

.calle-chapter__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-md);
}

.calle-chapter__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--color-text-dim);
  margin-bottom: var(--space-md);
}

.calle-chapter__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--color-text-bright);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.calle-chapter__meta {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.calle-chapter__cover {
  width: 100%;
  height: 70vh;
  min-height: 360px;
  max-height: 720px;
  overflow: hidden;
  margin: 0 0 var(--space-lg);
}

.calle-chapter__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.calle-chapter__intro {
  max-width: 620px;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-md);
}

.calle-chapter__intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* Foto base */
.calle-photo {
  margin: 0;
  background: var(--color-surface);
}

.calle-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Grid La Bandera de la Concha — secuencia 2-1-2-1 cinematográfica */
.calle-chapter__grid--bandera {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.calle-chapter__grid--bandera .calle-photo--wide {
  grid-column: 1 / -1;
}

/* Grid Viajes — mosaico 3+3 */
.calle-chapter__grid--viajes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Grid Irán — 2 columnas apretadas, sensación de inmersión */
.calle-chapter__grid--iran {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Palestina — secuencia vertical, una foto a la vez, más aire */
.calle-chapter--solemn {
  background: #080808;
}

.calle-chapter__sequence {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.calle-chapter__sequence .calle-photo--full img {
  width: 100%;
  height: auto;
}

/* Móvil */
@media (max-width: 700px) {
  .calle-header {
    padding: var(--space-lg) var(--space-sm) var(--space-md);
  }

  .calle-header__intro {
    font-size: 0.95rem;
  }

  .calle-chapter {
    padding: var(--space-lg) 0;
  }

  .calle-chapter__cover {
    height: 50vh;
    min-height: 260px;
  }

  .calle-chapter__grid--bandera,
  .calle-chapter__grid--viajes,
  .calle-chapter__grid--iran {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 0;
  }

  .calle-chapter__grid--bandera .calle-photo--wide {
    grid-column: auto;
  }

  .calle-chapter__sequence {
    gap: var(--space-md);
    padding: 0;
  }

  .calle-chapter__intro,
  .calle-chapter__header {
    padding: 0 var(--space-sm);
  }
}

