/* Tipografía del logo: si se compra la licencia web de "Juana",
   colocar el archivo en fonts/Juana-Regular.woff2 y se usará automáticamente. */
@font-face {
  font-family: 'Juana';
  src: local('Juana'), local('Juana Regular'), url('fonts/Juana-Regular.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bg: #faf8f5;
  --bg-alt: #f3efe9;
  --ink: #141414;
  --muted: #7a746d;
  --line: #e2ddd5;
  --logo: 'Juana', 'Cormorant Garamond', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.muted { color: var(--muted); }
.eyebrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  margin: 0 0 14px; font-weight: 400;
}
.serif-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; margin: 0 0 16px;
}
.logo { font-family: var(--logo); font-weight: 400; letter-spacing: -.01em; }

/* Banner y encabezado */
.announce {
  background: var(--ink); color: #fff; text-align: center;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 9px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px 40px; height: 64px;
  background: transparent; color: var(--ink);
  transition: background .35s, color .35s, border-color .35s;
  border-bottom: 1px solid transparent;
  margin-bottom: -64px;
}
.site-header.solid { background: var(--bg); color: var(--ink); border-color: var(--line); }
.nav { display: flex; gap: 28px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; }
.nav-right { justify-content: flex-end; }
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s; }
.nav a:hover::after { transform: scaleX(1); }
.logo-small { font-size: 30px; opacity: 0; transition: opacity .35s; }
.site-header.solid .logo-small { opacity: 1; }
.menu-btn { display: none; background: none; border: 0; color: inherit; font: inherit; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; justify-self: end; }
.mobile-menu { display: none; }

/* Portada: reemplazar assets/hero.jpg por la imagen de inicio */
/* Portada: la foto ya incluye el logo "Borcelle", se muestra completa sin recortar */
.hero { position: relative; background: #dcdcdb; }
.hero img { width: 100%; height: auto; }
.hero-strip {
  display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding: 26px 16px; border-bottom: 1px solid var(--line); background: var(--bg); text-align: center;
}
.hero-sub { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; margin: 0; font-weight: 400; }
.hero-cta {
  display: inline-block; border: 1px solid var(--ink); padding: 12px 32px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; transition: background .3s, color .3s;
}
.hero-cta:hover { background: var(--ink); color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Galería de fotos reales: franja tipo collage debajo de la portada */
.photo-strip { background: var(--bg); padding: 4px 0 0; }
.photo-grid { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 4px; }
.photo-grid button { padding: 0; border: 0; background: var(--bg-alt); cursor: zoom-in; aspect-ratio: 4/5; overflow: hidden; display: block; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.photo-grid button:hover img { transform: scale(1.04); }
.hero-after { background: var(--bg); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 18, 16, .92); display: flex; align-items: center; justify-content: center; padding: 40px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox figcaption { color: #eee; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.lb-close, .lb-nav { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 300 40px/1 var(--sans); padding: 10px 16px; opacity: .8; }
.lb-close:hover, .lb-nav:hover { opacity: 1; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Formulario: campo anti-spam oculto, error y agradecimiento */
.hp-field { position: absolute; left: -9999px; }
.form-error { color: #9b2c2c; font-size: 13px; text-align: center; margin: 0; }
.inquiry-thanks { max-width: 640px; margin: 0 auto; text-align: center; padding: 30px 0; }

/* Secciones */
.intro { max-width: 820px; margin: 0 auto; padding: 120px 24px 100px; text-align: center; }
.lead { font-family: var(--serif); font-size: 22px; line-height: 1.55; font-weight: 300; margin: 8px auto 64px; max-width: 680px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 48px; }
.steps span { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 8px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

.section { padding: 110px 40px; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head p.muted { margin: 0; }

/* Galería de diseños */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 24px; max-width: 1280px; margin: 0 auto; }
.design-card { text-align: center; }
.design-card .frame { background: var(--bg-alt); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 10%; transition: background .4s; }
.design-card:hover .frame { background: #ece6dd; }
.design-card h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 18px 0 2px; }
.design-card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.link-btn { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 2px 0; font: inherit; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; color: var(--ink); }

.card-svg { width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(40, 30, 20, .12)); }

/* Paquetes */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; }
.package { background: var(--bg); padding: 52px 36px 40px; text-align: center; display: flex; flex-direction: column; position: relative; }
.package.featured { outline: 1px solid var(--ink); }
.badge { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.package h3 { font-family: var(--logo); font-weight: 400; font-size: 40px; margin: 0 0 6px; }
.package .tagline { color: var(--muted); margin: 0 0 28px; font-family: var(--serif); font-style: italic; font-size: 18px; }
.package ul { list-style: none; padding: 0; margin: 0 0 32px; text-align: left; border-top: 1px solid var(--line); }
.package li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.package li b { font-weight: 400; }
.package li span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.price { font-family: var(--serif); font-size: 30px; margin: auto 0 22px; }
.price-spacer { margin-top: auto; }
.price.request { font-size: 13px; font-family: var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.btn {
  display: inline-block; background: var(--ink); color: #fff; border: 1px solid var(--ink);
  padding: 15px 34px; font: inherit; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  cursor: pointer; transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--ink); }

/* Estudio de diseño */
.studio { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; max-width: 1240px; margin: 0 auto; align-items: start; }
.studio-preview { position: sticky; top: 96px; }
.preview-stage { background: var(--bg-alt); aspect-ratio: 5/4; display: flex; align-items: center; justify-content: center; padding: 10%; }
.preview-stage .card-svg { max-height: 100%; width: auto; max-width: 100%; }
.preview-stage.is-sticker .card-svg { width: 55%; }
.preview-caption { text-align: center; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 14px 0 22px; }
.set-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.set-item { background: var(--bg-alt); border: 1px solid transparent; padding: 14px 10px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; font: inherit; color: var(--ink); }
.set-item .thumb { height: 64px; display: flex; align-items: center; justify-content: center; width: 100%; }
.set-item .thumb svg { max-height: 64px; width: auto; filter: drop-shadow(0 4px 8px rgba(40,30,20,.12)); }
.set-item small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.set-item.active { border-color: var(--ink); }

.studio-controls { display: flex; flex-direction: column; gap: 30px; }
.control label { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px; font-weight: 400; }
.control label .muted { text-transform: none; letter-spacing: 0; }
.control.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
input, select, textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 10px 0; font: inherit; font-size: 16px; color: var(--ink); border-radius: 0; outline: none;
}
textarea { border: 1px solid var(--line); padding: 14px; resize: vertical; }
select { cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: none; border: 1px solid var(--line); padding: 9px 16px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); transition: border-color .2s; }
.chip:hover { border-color: var(--muted); }
.chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.font-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.font-opt { background: none; border: 1px solid var(--line); padding: 10px 14px; text-align: left; cursor: pointer; color: var(--ink); display: flex; flex-direction: column; }
.font-opt .sample { font-size: 24px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-opt small { font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.font-opt.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); cursor: pointer; padding: 0; position: relative; }
.swatch.active::after { content: ''; position: absolute; inset: -5px; border: 1px solid var(--ink); border-radius: 50%; }
.fine { font-size: 12px; color: var(--muted); margin: -12px 0 0; }

/* Pestañas, miniaturas y escenas */
.filter-tabs { display: flex; justify-content: center; gap: 8px; margin: -28px auto 48px; flex-wrap: wrap; }
.filter-tabs button { background: none; border: 1px solid transparent; padding: 9px 22px; font: inherit; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; color: var(--muted); }
.filter-tabs button.active { color: var(--ink); border-color: var(--ink); }
.scene-svg { width: 100%; height: auto; display: block; }
.preview-stage .scene-svg { max-height: 100%; }
.preview-stage { aspect-ratio: 4/3; padding: 5%; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; max-height: 360px; overflow-y: auto; padding: 2px; }
.thumb-grid.stickers { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); max-height: none; }
.thumb { background: var(--bg-alt); border: 1px solid transparent; padding: 10px 8px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); font: inherit; }
.thumb:hover { border-color: var(--line); }
.thumb.active { border-color: var(--ink); }
.thumb .card-svg { width: 100%; filter: drop-shadow(0 2px 4px rgba(40,30,20,.12)); }
/* Todas las miniaturas de stickers con el mismo recuadro, sean redondos o rectangulares */
.thumb .art { display: flex; align-items: center; justify-content: center; width: 100%; height: 70px; }
.stickers .thumb .card-svg { width: auto; height: 62px; max-width: 100%; }
.stickers .thumb.rect .card-svg { width: 92%; height: auto; }
.thumb small { font-size: 10px; line-height: 1.3; letter-spacing: .06em; text-align: center; }
.thumb small em { display: block; font-style: normal; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.hint { margin: -6px 0 10px; font-size: 13px; color: var(--muted); }
/* Catálogo de stickers: mismo recuadro para todos; el sticker se ajusta dentro */
.gallery.is-stickers .frame { padding: 0; }
.gallery.is-stickers .frame .card-svg { width: auto; height: 52%; max-width: 70%; }
.gallery.is-stickers .frame.st-rect .card-svg { width: 62%; height: auto; }
.sticker-text { margin-top: 18px; }
.sticker-text label { margin-bottom: 4px; }
.sticker-text input.invalid { border-bottom-color: #9b2c2c; }
.error-note { color: #9b2c2c; font-size: 13px; margin: 6px 0 0; }
.sticker-note { margin: 12px 0 0; }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-width: 1400px; margin: 0 auto; }
.ig-tile { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 16%; overflow: hidden; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.ig-tile.ig-photo { padding: 0; background: var(--bg); }
.ig-tile.ig-photo:hover img { opacity: .85; }
#igLink { border-bottom: 1px solid currentColor; letter-spacing: .08em; }

/* Contacto */
.inquiry { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.inquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.inquiry .btn { align-self: center; }

.footer { text-align: center; padding: 80px 24px 60px; border-top: 1px solid var(--line); }
.footer-logo { font-size: 54px; margin-bottom: 10px; }
.footer p { margin: 4px 0; font-size: 13px; }

/* Móvil */
@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .site-header .nav { display: none; }
  .menu-btn { display: block; }
  .logo-small { justify-self: start; font-size: 26px; }
  .mobile-menu.open {
    display: flex; flex-direction: column; gap: 22px; position: fixed; inset: 64px 0 auto 0; z-index: 49;
    background: var(--bg); padding: 28px 16px 36px; border-bottom: 1px solid var(--line);
    font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  }
  .section { padding: 80px 16px; }
  .intro { padding: 90px 16px 70px; }
  .steps, .packages { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; gap: 40px; }
  .studio-preview { position: static; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(min(var(--n, 6), 3), 1fr); }
  .lightbox { padding: 50px 8px; }
  .inquiry .row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .font-list { grid-template-columns: 1fr; }
  .control.two { grid-template-columns: 1fr; }
  .set-row { gap: 6px; }
}
