/* ============================================================
   PORTAFOLIO JUANITA — Sistema de Diseño Principal
   Diseño editorial minimalista inspirado en Readymag
   Revisión de calidad completada: 2026-04-09
   ============================================================ */

/* ------------------------------------------------------------
   1. GOOGLE FONTS IMPORT
   Playfair Display → títulos editoriales (serif bold)
   Inter → navegación y cuerpo (sans-serif limpio)
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&display=swap');


/* ------------------------------------------------------------
   2. VARIABLES CSS — DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Paleta cromática */
  --color-bg:          #FAFAFA;       /* Blanco cálido de fondo */
  --color-bg-alt:      #F2F0ED;       /* Crema para secciones alternas */
  --color-surface:     #FFFFFF;       /* Superficie de tarjetas */
  --color-ink:         #0D0D0D;       /* Negro editorial puro */
  --color-ink-mid:     #4A4A4A;       /* Texto secundario */
  --color-ink-soft:    #9A9A9A;       /* Texto terciario / metadatos */
  --color-accent:      #C8A97E;       /* Acento: tostado dorado suave */
  --color-accent-dark: #A8885A;       /* Acento hover */
  --color-border:      #E2E0DC;       /* Bordes sutiles */
  --color-overlay:     rgba(13,13,13,0.55); /* Overlay sobre imágenes */

  /* Tipografía */
  --font-display:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Escala tipográfica (fluid / clamp) */
  --text-xs:    clamp(0.70rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm:    clamp(0.85rem, 0.80rem + 0.25vw, 0.95rem);
  --text-base:  clamp(1.00rem, 0.95rem + 0.25vw, 1.10rem);
  --text-md:    clamp(1.20rem, 1.10rem + 0.50vw, 1.40rem);
  --text-lg:    clamp(1.50rem, 1.30rem + 1.00vw, 2.00rem);
  --text-xl:    clamp(2.00rem, 1.60rem + 2.00vw, 3.20rem);
  --text-2xl:   clamp(2.80rem, 2.00rem + 4.00vw, 5.50rem);
  --text-hero:  clamp(3.50rem, 2.50rem + 6.00vw, 9.00rem);

  /* Pesos tipográficos */
  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-bold:    700;
  --weight-black:   900;

  /* Espaciado (escala 4pt) */
  --space-1:   0.25rem;   /*  4px */
  --space-2:   0.50rem;   /*  8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1.00rem;   /* 16px */
  --space-5:   1.50rem;   /* 24px */
  --space-6:   2.00rem;   /* 32px */
  --space-7:   3.00rem;   /* 48px */
  --space-8:   4.00rem;   /* 64px */
  --space-9:   6.00rem;   /* 96px */
  --space-10:  8.00rem;   /* 128px */

  /* Navegación */
  --nav-height:       5rem;
  --nav-height-mob:   3.75rem;

  /* Layout */
  --max-width:        1440px;
  --content-width:    1200px;
  --gutter:           clamp(1.25rem, 4vw, 4.00rem);

  /* Grid de galería */
  --grid-gap:         clamp(0.50rem, 1vw, 1.00rem);
  --grid-cols-desk:   3;
  --grid-cols-tab:    2;
  --grid-cols-mob:    1;

  /* Bordes y radios */
  --radius-sm:  2px;
  --radius-md:  4px;
  --radius-lg:  8px;

  /* Transiciones */
  --ease-out:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out:    cubic-bezier(0.645, 0.045, 0.355, 1.000);
  --duration-fast:  200ms;
  --duration-mid:   400ms;
  --duration-slow:  700ms;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.14), 0 6px 18px rgba(0,0,0,0.08);

  /* Z-index */
  --z-base:     0;
  --z-raised:   10;
  --z-nav:      100;
  --z-overlay:  200;
  --z-modal:    300;
}


/* ------------------------------------------------------------
   3. CSS RESET + BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
}

/* Selección de texto con acento */
::selection {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

/* Focus visible accesible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}


/* ------------------------------------------------------------
   4. TIPOGRAFÍA — ESCALA EDITORIAL
   ------------------------------------------------------------ */

/* Encabezados display */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink-mid);
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-sm); }
h5 { font-size: var(--text-xs); }

p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-ink-mid);
  max-width: 65ch;
}

/* Clases de texto utilitarias */
.text-display {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-black);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.text-display-italic {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.text-section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.text-caption {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-light);
  line-height: 1.5;
  color: var(--color-ink-soft);
  letter-spacing: 0.02em;
}

.text-accent {
  color: var(--color-accent);
}


/* ------------------------------------------------------------
   5. LAYOUT — CONTENEDORES Y GRIDS
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--max-width);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.container--narrow {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Sección genérica */
.section {
  padding-block: var(--space-9);
}

.section--large {
  padding-block: var(--space-10);
}

.section--alt {
  background-color: var(--color-bg-alt);
}


/* ------------------------------------------------------------
   6. NAVEGACIÓN
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--duration-mid) var(--ease-out),
              backdrop-filter var(--duration-mid) var(--ease-out);
}

/* Estado por defecto: transparente sobre hero */
.nav--transparent {
  background-color: transparent;
}

/* Estado al hacer scroll */
.nav--solid {
  background-color: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

/* Logo / nombre */
.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  color: var(--color-ink);
  transition: color var(--duration-fast) var(--ease-out);
}

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

/* Nav sobre hero blanco: logo en blanco */
.nav--transparent .nav__logo {
  color: var(--color-surface);
}

.nav--transparent .nav__link {
  color: rgba(255,255,255,0.85);
}

/* Links de navegación */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-mid);
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--duration-mid) var(--ease-out);
}

.nav__link:hover {
  color: var(--color-ink);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--active {
  color: var(--color-ink);
}

/* Hamburger para mobile */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-ink);
  transition: transform var(--duration-mid) var(--ease-out),
              opacity var(--duration-mid) var(--ease-out);
}

.nav--transparent .nav__toggle span {
  background-color: var(--color-surface);
}

/* Mobile nav drawer */
.nav__drawer {
  display: flex;
  position: fixed;
  inset: 0;
  background-color: var(--color-surface);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-mid) var(--ease-out),
              visibility var(--duration-mid) var(--ease-out);
}

.nav__drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav__drawer .nav__link {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-ink);
}


/* ------------------------------------------------------------
   7. HERO — PANTALLA COMPLETA
   ------------------------------------------------------------ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out);
  will-change: transform;
}

.hero:hover .hero__media {
  transform: scale(1.00);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,13,13,0.75) 0%,
    rgba(13,13,13,0.20) 50%,
    rgba(13,13,13,0.05) 100%
  );
  z-index: var(--z-raised);
}

.hero__content {
  position: relative;
  z-index: calc(var(--z-raised) + 1);
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(3rem, 8vw, 7rem);
}

.hero__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-black);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--color-surface);
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: italic;
  font-weight: var(--weight-bold);
  color: var(--color-accent);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  max-width: 480px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-7);
  right: var(--gutter);
  z-index: calc(var(--z-raised) + 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.55);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.55),
    transparent
  );
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}


/* ------------------------------------------------------------
   8. GALERÍA EDITORIAL
   ------------------------------------------------------------ */

/* Grid principal */
.gallery {
  padding-block: var(--space-9);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols-desk), 1fr);
  gap: var(--grid-gap);
}

/* Variantes de grid */
.gallery__grid--masonry {
  columns: var(--grid-cols-desk);
  column-gap: var(--grid-gap);
}

.gallery__grid--masonry .gallery__item {
  break-inside: avoid;
  margin-bottom: var(--grid-gap);
}

/* Layout editorial 2-1 (imagen grande + dos pequeñas) */
.gallery__grid--featured {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto;
}

.gallery__grid--featured .gallery__item:first-child {
  grid-row: span 2;
}

/* Ítem de galería */
.gallery__item {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-alt);
  cursor: pointer;
}

.gallery__item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  z-index: 1;
}

.gallery__item--portrait {
  aspect-ratio: 3 / 4;
}

.gallery__item--landscape {
  aspect-ratio: 4 / 3;
}

.gallery__item--square {
  aspect-ratio: 1 / 1;
}

.gallery__item--tall {
  aspect-ratio: 2 / 3;
}

/* Imagen dentro del ítem */
.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--duration-slow) var(--ease-out),
              filter var(--duration-slow) var(--ease-out);
  will-change: transform;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.04);
}

/* Overlay hover con info */
.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,13,13,0.70) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--duration-mid) var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__info {
  transform: translateY(8px);
  transition: transform var(--duration-mid) var(--ease-out);
}

.gallery__item:hover .gallery__info {
  transform: translateY(0);
}

.gallery__info-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--color-surface);
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.gallery__info-meta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-light);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
}

/* Header de sección galería */
.gallery__header {
  padding-inline: var(--gutter);
  max-width: var(--max-width);
  margin-inline: auto;
  margin-bottom: var(--space-7);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
}

.gallery__header-left {
  flex: 1;
}

.gallery__count {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-2);
}

/* FullScreen galería wrapper */
.gallery--fullscreen .gallery__grid {
  padding: 0;
  gap: 2px;
}


/* ------------------------------------------------------------
   9. LIGHTBOX / VISOR DE IMAGEN
   ------------------------------------------------------------ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background-color: rgba(10, 10, 10, 0.97);
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: var(--text-md);
  transition: color var(--duration-fast);
  z-index: 1;
}

.lightbox__close:hover {
  color: var(--color-surface);
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90svh;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  font-size: var(--text-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: color var(--duration-fast);
}

.lightbox__prev { left: var(--space-4); }
.lightbox__next { right: var(--space-4); }

.lightbox__prev:hover,
.lightbox__next:hover {
  color: var(--color-surface);
}

.lightbox__caption {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}


/* ------------------------------------------------------------
   10. PÁGINA INTERIOR — CATEGORY PAGE
   ------------------------------------------------------------ */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-9));
  padding-bottom: var(--space-7);
  padding-inline: var(--gutter);
  max-width: var(--max-width);
  margin-inline: auto;
}

.page-header__label {
  display: block;
  margin-bottom: var(--space-4);
}

.page-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.page-header__title em {
  font-style: italic;
  color: var(--color-accent);
}

.page-header__desc {
  max-width: 520px;
  font-size: var(--text-base);
  color: var(--color-ink-mid);
  line-height: 1.7;
}

/* Divisor editorial */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  margin-block: var(--space-7);
}

.divider--accent {
  background: linear-gradient(
    to right,
    var(--color-accent),
    var(--color-border)
  );
  height: 2px;
}


/* ------------------------------------------------------------
   11. PÁGINA SOBRE MÍ
   ------------------------------------------------------------ */
.about {
  padding-top: calc(var(--nav-height) + var(--space-8));
  min-height: 100svh;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100svh - var(--nav-height));
}

.about__photo-col {
  position: sticky;
  top: var(--nav-height);
  height: calc(100svh - var(--nav-height));
  overflow: hidden;
  background-color: var(--color-ink);
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.9;
}

.about__content-col {
  padding: var(--space-9) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__label {
  display: block;
  margin-bottom: var(--space-5);
}

.about__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-6);
}

.about__name em {
  font-style: italic;
  color: var(--color-accent);
}

.about__bio {
  max-width: 520px;
}

.about__bio p {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--color-ink-mid);
  margin-bottom: var(--space-5);
  max-width: none;
}

.about__bio p:last-child {
  margin-bottom: 0;
}

.about__stats {
  margin-top: var(--space-7);
  display: flex;
  gap: var(--space-7);
  flex-wrap: wrap;
}

.about__stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  display: block;
  line-height: 1;
}

.about__stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-top: var(--space-1);
  display: block;
}

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

.about__contact-link {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  font-style: italic;
  color: var(--color-accent);
  transition: color var(--duration-fast);
}

.about__contact-link:hover {
  color: var(--color-accent-dark);
}


/* ------------------------------------------------------------
   12. COMPONENTES UI
   ------------------------------------------------------------ */

/* Botón principal */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-5);
  border: 1px solid currentColor;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.btn--dark {
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.btn--dark:hover {
  background-color: var(--color-ink);
  color: var(--color-surface);
}

.btn--light {
  color: var(--color-surface);
  border-color: rgba(255,255,255,0.6);
}

.btn--light:hover {
  background-color: var(--color-surface);
  color: var(--color-ink);
}

.btn--accent {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--accent:hover {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

/* Tag / badge */
.tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  color: var(--color-ink-mid);
  border-radius: var(--radius-sm);
}

/* Separador ornamental */
.ornament {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-ink-soft);
  font-size: var(--text-xs);
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}


/* ------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------ */
.footer {
  background-color: var(--color-ink);
  color: var(--color-surface);
  padding-block: var(--space-8);
}

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

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  font-style: italic;
  color: var(--color-surface);
}

.footer__nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__nav-link {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast);
}

.footer__nav-link:hover {
  color: var(--color-surface);
}

.footer__copy {
  width: 100%;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.30);
  letter-spacing: 0.08em;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-5);
  margin-top: var(--space-5);
  text-align: center;
}


/* ------------------------------------------------------------
   14. ANIMACIONES DE ENTRADA
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }


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

.overflow-hidden { overflow: hidden; }

.aspect-portrait  { aspect-ratio: 3 / 4; }
.aspect-landscape { aspect-ratio: 4 / 3; }
.aspect-square    { aspect-ratio: 1 / 1; }
.aspect-cinema    { aspect-ratio: 21 / 9; }

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ------------------------------------------------------------
   16. RESPONSIVIDAD — BREAKPOINTS
   Mobile-first: estilos base son mobile,
   luego se expande hacia tablet y desktop.
   ------------------------------------------------------------ */

/* === MOBILE (< 640px) — base styles already set above === */
@media (max-width: 639px) {
  :root {
    --nav-height: var(--nav-height-mob);
  }

  /* Navegación mobile */
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  /* Hero */
  .hero__title {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }

  .hero__scroll {
    display: none;
  }

  /* Galería */
  .gallery__grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .gallery__grid--featured {
    grid-template-columns: 1fr;
  }

  .gallery__grid--featured .gallery__item:first-child {
    grid-row: span 1;
  }

  .gallery__grid--masonry {
    columns: 1;
  }

  .gallery__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__photo-col {
    position: relative;
    top: auto;
    height: 70svh;
  }

  .about__stats {
    gap: var(--space-5);
  }
}

/* === TABLET (640px – 1023px) === */
@media (min-width: 640px) and (max-width: 1023px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid--masonry {
    columns: 2;
  }

  .gallery__grid--featured {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__grid--featured .gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__photo-col {
    position: relative;
    top: auto;
    height: 60svh;
  }
}

/* === DESKTOP (>= 1024px) === */
@media (min-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__grid--masonry {
    columns: 3;
  }
}

/* === LARGE DESKTOP (>= 1440px) === */
@media (min-width: 1440px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery__grid--masonry {
    columns: 4;
  }
}

/* Skip link visible al enfocar */
a[href="#main-content"]:focus {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  white-space: normal;
  position: fixed;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__media {
    transform: none !important;
  }
}
