/* =====================
   Variables globales
===================== */
:root {
  --bg: #000       /* Fondo oscuro */
  --text: #eaeaea;      /* Texto principal */
  --muted: #888;        /* Texto secundario */
  --font-base: 'Inter', sans-serif;
}

/* =====================
   Reset básico
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================
   Base clara (editorial)
   ===================== */

html, body {
  background: #f7f7f5;   /* blanco roto */
  color: #111;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}


h1, h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}


/* =====================
   Home / Header
===================== */
.header {
  text-align: center;
  margin-top: 10vh;
}

.header h1 {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.header span {
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* =====================
   Navegación home
===================== */
.nav {
  text-align: center;
  margin: 80px auto;
}

.nav a {
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #eee;
  margin: 0 18px;
}

.nav a:hover {
  opacity: 0.7;
}


/* =====================
   Intro / presentación
===================== */
.intro {
  max-width: 800px;
  margin: auto;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

/* =====================
   Header colección
===================== */
.top {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1000;
  color: #111;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px; /* separación más compacta */
}

/* Título más pequeño y moderno */
.collection-title {
  font-family: 'Inter', sans-serif;  /* sans-serif moderno */
  font-size: 1.6rem;                 /* más pequeño que antes */
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Link volver discreto */
.back-link {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.3s;
}

.back-link:hover {
  opacity: 1;
}

/* Indicador debajo de volver */
.counter {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #111;
  opacity: 0.6;
  margin-top: 2px;
  pointer-events: none;  /* no bloquea clics */
  font-variant-numeric: tabular-nums;
}


.top a {
  color: #111;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.top a:hover {
  opacity: 1;
}


.top span {
  margin-left: 10px;
}

.swiper {
  width: 100vw;
  height: 90vh;
}

.swiper-slide img {
  object-fit: contain;
  max-height: 90vh;
}


/* Controles Swiper opcionales */
.swiper-button-next,
.swiper-button-prev {
  color: var(--text);
}
.swiper-pagination-bullet {
  background: var(--muted);
}

/* =====================
   Media queries
===================== */
@media (max-width: 1024px) {
  body {
    font-size: 17px;
  }
  .header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  .header h1 {
    font-size: 1.8rem;
  }
  .nav a {
    font-size: 0.85rem;
    margin: 0 12px;
  }
  .top {
    font-size: 0.8rem;
    top: 15px;
    left: 15px;
  }
}

@media (max-width: 700px) {
  .collection-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .col-thumb img.thumb {
    height: 180px;
  }
}


/* =====================
   Minimalismo extra
===================== */
body, html {
  scroll-behavior: smooth;
}


/* =====================
   HOME – colecciones
   ===================== */

.collections {
  max-width: 1100px;
  margin: 80px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding: 0 40px;
}

/* =====================
   Enlaces home (colecciones)
===================== */

.collections a {
  font-family: 'Inter', sans-serif;  /* sans-serif moderno */
  color: #111;                        /* mismo color que texto principal */
  text-decoration: none;               /* limpio, sin subrayado */
  transition: opacity 0.3s;
}

.collections a:hover {
  opacity: 0.7;                        /* efecto sutil al pasar el mouse */
}


.collection-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.collection-card h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 500;
  color: #111;
}


.collection-card img.thumb {
  width: 100%;
  max-width: 260px;   /* ← límite duro */
  height: 160px;      /* altura fija */
  object-fit: cover;
  border-radius: 2px;
  background: #eaeaea;
  transition: transform 0.3s ease;
}



.collection-card img.thumb:hover {
  transform: scale(1.05);
}


/* Fullscreen limpio */
:fullscreen {
  background: #0f0f0f;
}

:-webkit-full-screen {
  background: #0f0f0f;
}


/* =====================
   Precarga progresiva
   ===================== */

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: blur(20px);
  transform: scale(1.05);
  opacity: 0;
  transition:
    filter 0.6s ease,
    transform 0.6s ease,
    opacity 0.6s ease;
}

.swiper-slide img.loaded {
  filter: blur(0);
  transform: scale(1);
  opacity: 1;
}

/* =====================
   HOME – colecciones en horizontal
===================== */

.collections-table {
  max-width: 1200px;
  margin: 120px auto;
  padding: 0 40px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

/* Cada colección */
.collection-row {
  display: flex;
  flex-direction: column;
  gap: 14px;

  text-decoration: none;
  color: #111;
}

/* Título */
.col-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

/* Miniatura */
.col-thumb img.thumb {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #eaeaea;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Hover */
.collection-row:hover img.thumb {
  transform: scale(1.03);
}

.collection-row:hover .col-title {
  opacity: 0.7;
}


/* =====================
   ACERCA DE MÍ
===================== */

body.about {
  background: #fff;
  color: #111;
}

/* Encabezado */
.about-header {
  max-width: 1100px;
  margin: 120px auto 100px;
  padding: 0 40px;
}

.about-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.about-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #666;
}

/* Contenido principal */
.about-content {
  max-width: 1100px;
  margin: 50px auto 120px;
  padding: 0 40px;

  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
}

/* Foto */
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Texto */
.about-text p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* Responsive */
@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo {
    max-width: 300px;
  }
}

/* Copyright foto Acerca de mí */

.photo-credit {
  display: block;
  margin-top: 8px;

  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: #777;

  text-align: center;
}

