/* Dafna Studios — dafnastudios.club
   Paleta tomada del logo: crema, oro y negro cálido. */

:root {
  --bg: #070605;
  --bg-soft: #0e0c0a;
  --bg-elevated: #14110e;
  --cream: #f0e6d6;
  --cream-dim: #c6b9a6;
  --gold: #c9a15b;
  --gold-bright: #e0c07a;
  --gold-deep: #8a6a32;
  --line: rgba(240, 230, 214, 0.12);
  --line-strong: rgba(201, 161, 91, 0.45);
  --text: var(--cream);
  --text-muted: var(--cream-dim);
  --font-display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --header-h: 4.5rem;
  --wrap: 70rem;
  --radius: 1.1rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scroll-padding-top: var(--header-h);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  min-height: 100%;
  overflow-x: hidden;
}

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

a {
  color: var(--gold-bright);
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: #140e06;
  padding: 0.5rem 0.9rem;
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 6, 5, 0.7), rgba(7, 6, 5, 0));
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s;
}

.site-header.is-scrolled::before {
  background: rgba(7, 6, 5, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
}

.brand img {
  width: 2.1rem;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(201, 161, 91, 0.25));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.18rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding: 0.3rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--cream);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 50;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 1px;
  margin: 0.32rem auto;
  background: var(--cream);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(0.36rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-0.36rem) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 6rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 161, 91, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 70%, rgba(80, 50, 20, 0.18), transparent 60%),
    var(--bg);
}

.hero-glow {
  position: absolute;
  width: 42rem;
  height: 42rem;
  left: 50%;
  top: 18%;
  transform: translate(-50%, -40%);
  background: radial-gradient(circle, rgba(224, 192, 122, 0.16), rgba(201, 161, 91, 0.05) 40%, transparent 68%);
  filter: blur(8px);
  animation: glow-breathe 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-crescent {
  position: absolute;
  width: min(36rem, 90vw);
  height: min(36rem, 90vw);
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: inset 0 0 80px -20px rgba(201, 161, 91, 0.08);
  border: 1px solid rgba(201, 161, 91, 0.06);
  pointer-events: none;
}

.hero-stars {
  position: absolute;
  inset: 0;
  mask-image: radial-gradient(circle at 50% 46%, transparent 34%, #000 62%);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, transparent 34%, #000 62%);
  pointer-events: none;
}

.hero-stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--cream);
  border-radius: 50%;
  opacity: 0.55;
  box-shadow: 0 0 6px rgba(240, 230, 214, 0.8);
  animation: twinkle 4.5s ease-in-out infinite;
}

.hero-stars span:nth-child(1)  { top: 14%; left: 12%; animation-delay: 0.2s; }
.hero-stars span:nth-child(2)  { top: 22%; left: 78%; animation-delay: 1.1s; width: 3px; height: 3px; }
.hero-stars span:nth-child(3)  { top: 18%; left: 58%; animation-delay: 2s; }
.hero-stars span:nth-child(4)  { top: 38%; left: 8%;  animation-delay: 0.7s; }
.hero-stars span:nth-child(5)  { top: 48%; left: 88%; animation-delay: 1.6s; }
.hero-stars span:nth-child(6)  { top: 70%; left: 16%; animation-delay: 2.4s; }
.hero-stars span:nth-child(7)  { top: 76%; left: 72%; animation-delay: 0.4s; }
.hero-stars span:nth-child(8)  { top: 12%; left: 42%; animation-delay: 3s; }
.hero-stars span:nth-child(9)  { top: 60%; left: 6%;  animation-delay: 1.8s; width: 3px; height: 3px; }
.hero-stars span:nth-child(10) { top: 32%; left: 92%; animation-delay: 2.8s; }
.hero-stars span:nth-child(11) { top: 84%; left: 48%; animation-delay: 0.9s; }
.hero-stars span:nth-child(12) { top: 28%; left: 28%; animation-delay: 3.4s; }

.hero-inner {
  text-align: center;
  max-width: 44rem;
  animation: rise 1.2s var(--ease) both;
}

.hero-mark {
  width: min(11.5rem, 42vw);
  height: auto;
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 7.2rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--cream);
  padding-left: 0.2em; /* optical balance for letter-spacing */
}

.hero-studios {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.8rem, 2.1vw, 1.15rem);
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 0.62em;
}

.hero-tagline {
  margin: 1.35rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: var(--cream);
  letter-spacing: 0.02em;
}

.hero-tagline::before,
.hero-tagline::after {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  margin: 0 0.85rem;
  background: var(--gold);
  vertical-align: middle;
  opacity: 0.7;
}

.hero-lede {
  margin: 1.15rem auto 2rem;
  max-width: 30rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.3s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(180deg, #e0c07a, #c9a15b);
  color: #1a1206;
  border: 1px solid #e8d09a;
}

.btn-gold:hover {
  background: linear-gradient(180deg, #ebd39a, #d4af68);
  color: #1a1206;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--cream);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--cream);
  background: rgba(201, 161, 91, 0.08);
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--cream-dim);
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: cue-line 2.2s ease-in-out infinite;
  display: block;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-header {
  max-width: 38rem;
  margin-bottom: 3rem;
}

.section-index {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* ---------- Project cards ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.project-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(201, 161, 91, 0.12);
}

.card-visual,
.card-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0908;
}

.card-image {
  object-fit: cover;
}

.card-body {
  padding: 1.35rem 1.4rem 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.badge-live {
  border-color: rgba(224, 176, 168, 0.45);
  color: #e8c8c0;
}

.card-kind {
  font-size: 0.78rem;
  color: var(--cream-dim);
  letter-spacing: 0.04em;
}

.project-card h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.15;
}

.project-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card-link {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  width: fit-content;
  border-bottom: 1px solid rgba(201, 161, 91, 0.4);
  padding-bottom: 0.15rem;
}

.card-link:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.card-visual-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  background: #0a0908;
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.card-visual-btn .card-image {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.card-image-poster {
  object-position: 50% 32%;
}

.card-image-lumi {
  object-position: 50% 45%;
}

.card-image-velo {
  object-position: 50% 40%;
}

.card-image-bello {
  object-position: 50% 12%;
}

.card-image-runner {
  object-position: 50% 30%;
}

.card-image-chef {
  object-position: 50% 18%;
}


.project-card .card-tagline {
  margin: 0.05rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--gold-bright);
}


.card-visual-btn::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(7, 6, 5, 0.45), transparent);
  pointer-events: none;
}

.card-thumbs {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.card-thumb {
  position: relative;
  width: 3.6rem;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  overflow: hidden;
  background: #0a0908;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.card-thumb:hover,
.card-thumb.is-current {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(201, 161, 91, 0.28);
}

.card-thumb:nth-child(1) img {
  object-position: 50% 32%;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 6, 5, 0.92);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(72rem, 100%);
  max-height: 100%;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
}

.lightbox-figure img {
  max-width: min(100%, 1400px);
  max-height: min(78vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.4rem;
  box-shadow: 0 0 0 1px rgba(201, 161, 91, 0.35), 0 30px 80px rgba(0, 0, 0, 0.65);
  background: #0a0908;
}

.lightbox-figure figcaption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-align: center;
}

.lightbox-count {
  margin: 0;
  font-size: 0.78rem;
  color: var(--cream-dim);
  letter-spacing: 0.08em;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(201, 161, 91, 0.16);
  color: var(--gold-bright);
  border-color: var(--gold);
}

.lightbox-close {
  top: 0.4rem;
  right: 0.4rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  z-index: 2;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-prev { left: 0.2rem; }
.lightbox-next { right: 0.2rem; }

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .lightbox {
    padding: 3.4rem 0.6rem 1.2rem;
  }

  .lightbox-nav {
    top: auto;
    bottom: 0.2rem;
    transform: none;
  }

  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }

  .lightbox-figure {
    padding-bottom: 3.2rem;
  }

  .lightbox-figure img {
    max-height: min(64vh, 700px);
  }
}


/* --- CSS art: El Velo --- */

.visual-velo {
  background:
    radial-gradient(ellipse 45% 80% at 50% 60%, rgba(72, 52, 100, 0.4), transparent 70%),
    radial-gradient(ellipse 80% 70% at 50% 110%, #16101f, #07060b);
}

.velo-mist {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(180, 160, 210, 0.08) 50%, transparent 70%);
}

.velo-corridor {
  position: absolute;
  inset: 10% 0 0;
  background:
    linear-gradient(to right bottom, transparent 49.4%, rgba(200, 180, 230, 0.18) 50%, transparent 50.6%),
    linear-gradient(to left bottom, transparent 49.4%, rgba(200, 180, 230, 0.18) 50%, transparent 50.6%);
  opacity: 0.7;
}

.velo-crack {
  position: absolute;
  left: 50%;
  top: -8%;
  width: 2px;
  height: 120%;
  transform: translateX(-50%) rotate(1.4deg);
  background: linear-gradient(to bottom, transparent, rgba(220, 200, 255, 0.45) 28%, rgba(180, 160, 230, 0.15) 52%, transparent);
  box-shadow: 0 0 28px 6px rgba(140, 110, 190, 0.22);
}

.velo-figure {
  position: absolute;
  left: 50%;
  bottom: 20%;
  width: 16px;
  height: 38px;
  transform: translateX(-50%);
  background: #08060d;
  border-radius: 7px 7px 3px 3px / 14px 14px 3px 3px;
  box-shadow: 0 0 0 1px rgba(210, 195, 240, 0.12), 0 10px 24px rgba(0, 0, 0, 0.7);
}

.velo-figure::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  background: #08060d;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(210, 195, 240, 0.12);
}

.velo-lines {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 18px,
    rgba(230, 220, 250, 0.5) 18px 19px
  );
  mix-blend-mode: screen;
}

/* --- CSS art: Lumi / El Foso --- */

.visual-lumi {
  background:
    radial-gradient(circle at 50% 6%, rgba(190, 210, 230, 0.2) 0 1.5%, transparent 16%),
    radial-gradient(ellipse 90% 100% at 50% 18%, #101920 0%, #070b10 48%, #030507 100%);
}

.lumi-moonlight {
  position: absolute;
  left: 50%;
  top: 0;
  width: 42%;
  height: 28%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(190, 210, 230, 0.16), transparent);
  clip-path: polygon(20% 0, 80% 0, 62% 100%, 38% 100%);
}

.lumi-grate {
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 16%;
  background: repeating-linear-gradient(90deg, rgba(190, 210, 230, 0.28) 0 3px, transparent 3px 16px);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

.lumi-well {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 58%;
  height: 130%;
  transform: translateX(-50%);
  border-radius: 50% 50% 40% 40%;
  box-shadow:
    inset 0 0 40px 8px rgba(0, 0, 0, 0.65),
    inset 0 20px 50px rgba(40, 70, 90, 0.18);
  background: radial-gradient(ellipse 50% 30% at 50% 8%, rgba(160, 190, 210, 0.12), transparent 50%);
}

.lumi-spark {
  position: absolute;
  left: 50%;
  bottom: 26%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  background: #f3c66a;
  border-radius: 50%;
  box-shadow:
    0 0 10px 4px rgba(243, 198, 106, 0.95),
    0 0 36px 14px rgba(220, 140, 40, 0.5),
    0 0 70px 28px rgba(180, 100, 20, 0.22);
  animation: pulse-glow 3.6s ease-in-out infinite;
}

.lumi-mote {
  position: absolute;
  left: 56%;
  bottom: 42%;
  width: 3px;
  height: 3px;
  background: #f6d58a;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(246, 213, 138, 0.8);
  animation: mote-drift 6s ease-in-out infinite;
}

/* --- CSS art: Runner Boy --- */

.visual-runner {
  background:
    linear-gradient(115deg, #22140c 0%, #0c0907 52%, #1a100c 100%);
  overflow: hidden;
}

.runner-streaks {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 0 18%, rgba(230, 170, 90, 0.06) 18% 19%, transparent 19% 28%, rgba(230, 170, 90, 0.1) 28% 29.2%, transparent 29.2% 46%, rgba(230, 170, 90, 0.07) 46% 47%, transparent 47%),
    repeating-linear-gradient(98deg, transparent 0 42px, rgba(255, 200, 130, 0.06) 42px 44px);
  animation: streaks 8s linear infinite;
  opacity: 0.9;
}

.runner-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(230, 180, 110, 0.35) 30%, rgba(230, 180, 110, 0.35) 70%, transparent);
}

.runner-lamp {
  position: absolute;
  right: 18%;
  top: 0;
  width: 8rem;
  height: 8rem;
  background: radial-gradient(circle, rgba(255, 200, 120, 0.2), transparent 70%);
  filter: blur(2px);
}

.runner-figure {
  position: absolute;
  left: 54%;
  bottom: 18%;
  width: 5.6rem;
  height: auto;
  transform: translate(-50%, 0) skewX(-10deg);
  filter: drop-shadow(14px 0 0 rgba(230, 160, 80, 0.16)) drop-shadow(-16px 0 10px rgba(0, 0, 0, 0.45));
  overflow: visible;
}

.runner-dust {
  position: absolute;
  left: 36%;
  bottom: 16%;
  width: 80px;
  height: 10px;
  background: radial-gradient(ellipse, rgba(210, 150, 80, 0.28), transparent 70%);
  filter: blur(2px);
}

/* --- CSS art: Belleza sin Filtro --- */

.visual-belleza {
  background:
    radial-gradient(circle at 50% 58%, rgba(232, 176, 168, 0.2), transparent 44%),
    radial-gradient(circle at 72% 28%, rgba(240, 210, 190, 0.12), transparent 32%),
    linear-gradient(180deg, #1b1315, #0c090a);
}

.belleza-glow {
  position: absolute;
  inset: 18% 22%;
  border-radius: 50%;
  border: 1px solid rgba(236, 200, 190, 0.2);
  box-shadow: inset 0 0 40px rgba(236, 190, 180, 0.08), 0 0 50px rgba(200, 130, 120, 0.1);
}

.belleza-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}

.belleza-orb-a {
  width: 5.5rem;
  height: 5.5rem;
  left: 28%;
  top: 30%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 232, 220, 0.55), rgba(224, 150, 140, 0.18) 45%, transparent 70%);
}

.belleza-orb-b {
  width: 3.2rem;
  height: 3.2rem;
  right: 26%;
  bottom: 28%;
  background: radial-gradient(circle at 40% 30%, rgba(255, 220, 200, 0.4), rgba(200, 130, 140, 0.12) 50%, transparent 70%);
}

.belleza-petal {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 28px;
  height: 44px;
  transform: translate(-50%, -50%) rotate(-18deg);
  background: radial-gradient(circle at 40% 30%, rgba(255, 230, 220, 0.7), rgba(210, 130, 130, 0.15) 70%);
  border-radius: 80% 80% 70% 70% / 50% 50% 80% 80%;
  opacity: 0.85;
}


/* ---------- Servicios ---------- */

.section-services {
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(201, 161, 91, 0.06), transparent 58%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
}

.section-services .section-header {
  max-width: 44rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(201, 161, 91, 0.12);
}

.service-icon {
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.55rem;
  color: var(--gold);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.services-cta {
  margin-top: 2.6rem;
  text-align: center;
}

.services-cta p {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--cream);
}

/* ---------- Nosotros ---------- */


.section-about {
  background:
    radial-gradient(ellipse 50% 60% at 15% 50%, rgba(201, 161, 91, 0.06), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-visual {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 18rem;
}

.about-visual::before {
  content: "";
  position: absolute;
  width: min(22rem, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(201, 161, 91, 0.16);
  box-shadow: 0 0 80px rgba(201, 161, 91, 0.07);
}

.about-visual img {
  width: min(16rem, 70%);
  height: auto;
  position: relative;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-copy p:not(.section-index) {
  color: var(--text-muted);
  max-width: 38rem;
  font-size: 1.08rem;
}

.about-copy h2 + p {
  color: var(--cream);
}


/* ---------- Dafna Toys ---------- */

.section-toys {
  background:
    radial-gradient(ellipse 55% 50% at 80% 20%, rgba(201, 161, 91, 0.06), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.toys-collection {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.toys-collection:hover {
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(201, 161, 91, 0.12);
}

.toys-collection .card-visual-btn {
  aspect-ratio: 1 / 1;
  min-height: 18rem;
  height: 100%;
}

.toys-collection .card-body {
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  gap: 0.7rem;
}

.toys-collection h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.15;
}

.toys-collection .card-body > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ---------- Nuestras redes ---------- */

.redes-block {
  margin-top: clamp(2.8rem, 6vw, 4rem);
}

.redes-block h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.7rem;
}

.redes-intro {
  margin: 0 0 1.3rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 38rem;
}

.redes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1rem;
}

.redes-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--bg-soft);
  color: inherit;
  transition: border-color 0.3s var(--ease), background 0.3s, transform 0.35s var(--ease);
}

.redes-card:hover {
  border-color: var(--line-strong);
  background: rgba(201, 161, 91, 0.05);
  color: inherit;
  transform: translateY(-3px);
}

.redes-network {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.redes-card h4 {
  margin: 0.15rem 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--cream);
}

.redes-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.redes-handle {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  width: fit-content;
  border-bottom: 1px solid rgba(201, 161, 91, 0.4);
  padding-bottom: 0.15rem;
}

.redes-card:hover .redes-handle {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

/* ---------- Contacto ---------- */

.section-contact {
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

.contact-panel {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.3rem);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 161, 91, 0.08), transparent 60%),
    var(--bg-soft);
}

.contact-panel h2,
.contact-panel .section-index,
.contact-panel .section-intro {
  max-width: none;
}

.contact-panel .section-intro {
  margin-bottom: 2rem;
}

.domain {
  color: var(--cream);
  font-weight: 400;
}

.contact-rows {
  display: grid;
  gap: 0.8rem;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  color: inherit;
  transition: border-color 0.3s var(--ease), background 0.3s;
}

.contact-row:hover {
  border-color: var(--line-strong);
  background: rgba(201, 161, 91, 0.05);
  color: inherit;
}

.contact-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-value {
  font-size: 1.08rem;
  color: var(--cream);
  word-break: break-word;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-brand img {
  width: 1.4rem;
  height: auto;
}

.footer-tag {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cream-dim);
  font-size: 1rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--cream-dim);
}

/* ---------- Film grain + reveals ---------- */

.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.055;
  background-image: url("assets/noise.png");
  background-size: 128px 128px;
  mix-blend-mode: overlay;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s var(--ease) forwards;
  animation-play-state: paused;
}

.reveal.is-visible {
  animation-play-state: running;
}

.project-grid .reveal:nth-child(2) { animation-delay: 0.1s; }
.project-grid .reveal:nth-child(3) { animation-delay: 0.18s; }
.project-grid .reveal:nth-child(4) { animation-delay: 0.26s; }
.project-grid .reveal:nth-child(5) { animation-delay: 0.34s; }
.project-grid .reveal:nth-child(6) { animation-delay: 0.42s; }
.project-grid .reveal:nth-child(7) { animation-delay: 0.5s; }

.service-grid .reveal:nth-child(2) { animation-delay: 0.08s; }
.service-grid .reveal:nth-child(3) { animation-delay: 0.14s; }
.service-grid .reveal:nth-child(4) { animation-delay: 0.2s; }
.service-grid .reveal:nth-child(5) { animation-delay: 0.26s; }
.service-grid .reveal:nth-child(6) { animation-delay: 0.32s; }

/* ---------- Animations ---------- */

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

@keyframes glow-breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -40%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -40%) scale(1.08); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.95; }
}

@keyframes cue-line {
  0%   { transform: scaleY(0.4); opacity: 0; transform-origin: top; }
  40%  { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: top; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.18); }
}

@keyframes mote-drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50%      { transform: translate(8px, -16px); opacity: 1; }
}

@keyframes streaks {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 80px 0, 60px 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
  .site-nav {
    gap: 1.15rem;
  }

  .site-nav a {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: #070605;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open main,
  body.nav-open .site-footer,
  body.nav-open .film-grain {
    visibility: hidden;
  }

  .site-nav a {
    font-size: 1rem;
    letter-spacing: 0.28em;
  }

  .hero-tagline::before,
  .hero-tagline::after {
    width: 1.2rem;
    margin: 0 0.5rem;
  }
}


@media (min-width: 861px) {
  .project-grid .project-card:last-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc((100% - 1.5rem) / 2);
    justify-self: center;
  }
}

@media (max-width: 860px) {
  .project-grid,
  .about-grid,
  .toys-collection {
    grid-template-columns: 1fr;
  }

  .toys-collection .card-visual-btn {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .about-visual {
    min-height: 14rem;
    order: -1;
  }
}

@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 2rem));
  }

  .hero {
    padding-bottom: 5.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-body {
    padding: 1.15rem 1.1rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
