/* ==========================================================
   Colores, bordes y tipografías — cambia aquí para personalizar
   ========================================================== */
:root {
  --bg: #0d0d0e;
  --surface: #161618;
  --surface-2: #1d1d20;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f0ea;
  --muted: #9b968f;
  --accent: #d9b98c;
  --heart: #ff4d6d;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-pill: 999px;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1400px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Piezas reutilizables ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--text); color: #111; }
.btn--light:hover { background: #fff; }
.btn--glass {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.2); }
.btn--ghost { border-color: var(--border); background: var(--surface-2); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.25); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
}
.chip--glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #5fd38a; box-shadow: 0 0 0 4px rgba(95, 211, 138, 0.2); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.card-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.18); transform: scale(1.06); }

/* ===== Corazón ===== */
.heart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 15, 15, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.heart svg { width: 17px; height: 17px; stroke-width: 2; transition: transform 0.3s var(--ease); }
.heart:hover { background: rgba(15, 15, 15, 0.7); }
.heart:active { transform: scale(0.94); }
.heart[aria-pressed="true"] { border-color: rgba(255, 77, 109, 0.5); }
.heart[aria-pressed="true"] svg { fill: var(--heart); stroke: var(--heart); }
.heart.pop svg { animation: pop 0.45s var(--ease); }
.heart--big { padding: 10px 18px 10px 14px; font-size: 0.95rem; }
.heart--big svg { width: 22px; height: 22px; }

@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* ===== Navegación (cápsula flotante) ===== */
.nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav__bar {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 24px;
  border-radius: var(--r-pill);
  background: rgba(20, 20, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  pointer-events: auto;
  transition: background 0.3s;
}
.nav.is-scrolled .nav__bar { background: rgba(20, 20, 22, 0.85); }
.nav__logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  color: #cfcac3;
  transition: background 0.25s, color 0.25s;
}
.nav__links a:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.nav__links .nav__cta { background: var(--text); color: #111; font-weight: 500; }
.nav__links .nav__cta:hover { background: #fff; color: #111; }
.nav__toggle { display: none; }

/* ===== Portada ===== */
.hero { padding: 12px; }
.hero__frame {
  position: relative;
  height: calc(100vh - 24px);
  height: calc(100svh - 24px);
  min-height: 560px;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
/* Carrusel: las fotos se superponen y cambian con un fundido */
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 8s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.3) 100%);
}
.hero__content {
  position: relative;
  padding: clamp(28px, 6vw, 72px);
  max-width: 860px;
  animation: rise 1.1s var(--ease) both 0.2s;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.02;
  margin: 22px 0 18px;
}
.hero__title em { color: var(--accent); }
.hero__sub { color: #ddd8d0; max-width: 46ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__aside {
  position: absolute;
  right: clamp(24px, 4vw, 48px);
  bottom: clamp(28px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.hero__credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s;
}
.hero__credit:hover { background: rgba(255, 255, 255, 0.22); }
.hero__credit svg { width: 15px; height: 15px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.4s var(--ease), background 0.3s;
}
.hero__dots button.is-active { width: 28px; background: #fff; }

@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.btn svg { width: 18px; height: 18px; }

/* ===== Secciones ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) var(--gutter) 0;
  scroll-margin-top: 20px;
}
.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.05;
}
.section__meta { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* ===== Filtros (pastillas) ===== */
.filters {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--r-pill);
  background: none;
  color: var(--muted);
  font-size: 0.87rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.filters button svg { width: 15px; height: 15px; }
.filters button:hover { color: var(--text); }
.filters button.is-active { background: var(--text); color: #111; }

/* ===== Galería (mosaico con esquinas suaves) ===== */
.gallery { columns: 3 300px; column-gap: 18px; }
.photo {
  position: relative;
  margin-bottom: 18px;
  break-inside: avoid;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface-2);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), box-shadow 0.4s;
}
.photo.is-visible { opacity: 1; transform: none; }
.photo:hover { box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); }

/* Brillo animado mientras carga la foto */
.photo:not(.is-loaded)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.photo img {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.6s, transform 1s var(--ease);
}
.photo.is-loaded img { opacity: 1; }
.photo:hover img { transform: scale(1.035); }

.photo__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.photo:hover .photo__shade { opacity: 1; }
.photo__info {
  position: absolute;
  left: 18px;
  bottom: 16px;
  right: 90px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
  pointer-events: none;
}
.photo:hover .photo__info { opacity: 1; transform: none; }
.photo__title { font-weight: 500; font-size: 0.95rem; line-height: 1.3; }
.photo__cat { font-size: 0.75rem; color: #d6d1ca; }
.photo__model { color: var(--accent); }
.photo .heart { position: absolute; right: 12px; bottom: 12px; }

.gallery__empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
}

/* ===== Modelos ===== */
.models { padding: clamp(28px, 5vw, 56px); }
.models__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 32px;
  margin-bottom: 28px;
}
.models__text { color: var(--muted); max-width: 42ch; }
.models__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.models__list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.models__list a:hover { border-color: var(--accent); transform: translateY(-2px); }
.models__list img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.models__count { color: var(--muted); font-size: 0.78rem; }

/* ===== Sobre mí ===== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(16px, 2vw, 22px);
}
.about__img {
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--r-xl) - 8px);
  background: var(--surface-2);
}
.about__img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--r-xl) - 8px);
}
.about__text { padding: clamp(8px, 3vw, 40px) clamp(8px, 3vw, 40px) clamp(8px, 3vw, 40px) 0; }
.about__text .section__title { margin-bottom: 22px; }
.about__text p:not(.eyebrow) { color: #c9c4bd; margin-bottom: 16px; max-width: 54ch; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags li {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

/* ===== Contacto ===== */
.contact {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  background:
    radial-gradient(ellipse at top, rgba(217, 185, 140, 0.12), transparent 60%),
    var(--surface);
}
.contact__lead { color: var(--muted); margin: 16px auto 32px; max-width: 44ch; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.contact__email { margin-top: 26px; color: var(--muted); font-size: 0.9rem; word-break: break-word; }

.footer {
  padding: 56px var(--gutter) 40px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
/* Evita que al mantener pulsado se seleccione el texto (acceso secreto al panel) */
.footer p {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ===== Visor de fotos ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 9, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__top {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lightbox__counter { font-size: 0.85rem; color: var(--muted); }
.lightbox__figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}
.lightbox__figure img {
  max-width: min(88vw, 1600px);
  max-height: calc(100vh - 190px);
  max-height: calc(100svh - 190px);
  object-fit: contain;
  transform: scale(0.97);
  transition: transform 0.45s var(--ease), opacity 0.25s;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox.is-open .lightbox__figure img { transform: none; }
.lightbox__figure img.is-changing { opacity: 0; }
.lightbox__credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 56px 20px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35) 55%, transparent);
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: none; /* el doble toque sigue funcionando sobre la sombra */
  transition: opacity 0.25s;
}
.lightbox__credit a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.lightbox__credit a:hover { color: var(--accent); }
.lightbox__credit svg { width: 18px; height: 18px; }
.lightbox__figure img.is-changing + .lightbox__credit { opacity: 0; }

.lightbox__burst {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.lightbox__burst svg { width: 110px; height: 110px; fill: #fff; stroke: none; opacity: 0; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.5)); }
.lightbox__burst.go svg { animation: burst 0.8s var(--ease); }
@keyframes burst {
  0% { opacity: 0; transform: scale(0.4); }
  25% { opacity: 0.95; transform: scale(1.1); }
  60% { opacity: 0.95; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 22px;
  border-radius: var(--r-pill);
  background: rgba(30, 30, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lightbox__title { font-weight: 500; font-size: 0.95rem; line-height: 1.3; }
.lightbox__cat { font-size: 0.78rem; color: var(--muted); }
.lightbox__info { min-width: 0; }
.lightbox__cat a { color: var(--accent); }
.lightbox__cat a:hover { text-decoration: underline; }

/* ===== Móvil ===== */
@media (max-width: 760px) {
  .nav { top: 12px; }
  .nav__bar { padding: 6px 6px 6px 20px; }
  .nav__toggle {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
  }
  .nav__toggle span { width: 18px; height: 1.5px; background: var(--text); transition: transform 0.3s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    border-radius: var(--r-lg);
    background: rgba(22, 22, 24, 0.96);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 18px; font-size: 1rem; text-align: center; }

  .hero { padding: 8px; }
  .hero__frame { height: calc(100svh - 16px); border-radius: 22px; }
  .hero__aside { right: 20px; bottom: auto; top: 84px; }
  .hero__content { padding-bottom: 36px; }

  .section__head { align-items: flex-start; }
  .gallery { columns: 2; column-gap: 10px; }
  .photo { margin-bottom: 10px; border-radius: var(--r-md); }
  .photo__info { display: none; }
  .photo .heart { right: 8px; bottom: 8px; padding: 4px 9px 4px 7px; font-size: 0.72rem; }
  .photo .heart svg { width: 14px; height: 14px; }

  .about { grid-template-columns: 1fr; }
  .about__text { padding: 4px 8px 16px; }

  .lightbox__nav { display: none; }
  .lightbox__figure { border-radius: var(--r-md); }
  .lightbox__figure img { max-width: calc(100vw - 24px); }
  .lightbox__credit { padding: 44px 14px 12px; font-size: 0.88rem; }
  .lightbox__bar { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .photo, .photo img { opacity: 1; transform: none; }
  .hero__slide { transform: none; }
}
