/* ===== Páginas separadas MEMORA · ajustes de cabecera, submenú e introducción ===== */

/* Navegación activa */
.topbar nav a[aria-current="page"]{color:var(--ink);text-decoration:underline;text-underline-offset:8px}

/* Cabecera más compacta: el logo de 160 px dejaba una barra fija de ~190 px
   que tapaba los anclajes (scroll-padding era 110 px). */
.topbar{padding:8px 18px}
.topbar > .brand .brand-logo{height:108px}
.topbar nav a{font-size:1.12rem}
html{scroll-padding-top:150px}
.order-copy{top:150px}

/* Submenú de Grabados: pegado a la navegación superior, antes del título.
   No es fijo, así que nunca tapa contenido. */
.page-subnav{
  width:min(1240px,calc(100% - 32px));
  margin:12px auto 0;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
}
.page-subnav a{
  padding:7px 14px;
  border:1px solid var(--line,#ddd);
  border-radius:999px;
  background:rgba(255,253,249,.8);
  color:var(--wood-dark);
  font-size:.92rem;
  font-weight:650;
  line-height:1.3;
  white-space:nowrap;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
.page-subnav a:hover{border-color:var(--wood);color:var(--ink)}
.page-subnav a[aria-current="location"]{background:var(--wood-dark);border-color:var(--wood-dark);color:#fff}

/* Introducción de páginas internas: .section aplicaba margin-top:110px
   a la intro (y antes también al submenú). */
.section.page-intro{margin-top:28px;padding:0}
.page-subnav + .section.page-intro{margin-top:22px}
.page-intro h1{font-size:clamp(2rem,4vw,3.2rem);line-height:1.08;margin:6px 0 10px;max-width:850px}
.page-intro .eyebrow{margin-bottom:4px}
.page-intro p{max-width:700px;color:var(--muted);font-size:1.08rem}
.section.page-intro + .section{margin-top:36px}

/* Tarjetas de colecciones (inicio) */
.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.collection-card{display:flex;flex-direction:column;gap:18px;padding:32px;border:1px solid var(--line,#ddd);border-radius:24px;background:var(--paper,#fff);color:var(--ink);text-decoration:none;transition:transform .2s ease,border-color .2s ease}
.collection-card:hover{border-color:var(--wood-dark);transform:translateY(-3px)}
.collection-card h2,.collection-card p{margin:0}
.collection-card strong{margin-top:auto}
.collection-card p{color:var(--muted);line-height:1.7}

@media (max-width:1100px){
  .topbar > .brand .brand-logo{height:100px}
  .topbar nav a{font-size:1.06rem}
}

/* Móvil: logo y WhatsApp en una fila, navegación en otra; submenú en una sola
   fila desplazable horizontalmente (sin barras fijas). */
@media (max-width:760px){
  html{scroll-padding-top:16px}
  .topbar{
    display:grid;
    grid-template-columns:auto auto;
    grid-template-areas:"brand cta" "nav nav";
    justify-content:space-between;
    align-items:center;
    gap:6px 12px;
    padding:8px 14px 10px;
    border-radius:24px;
  }
  .topbar > .brand{grid-area:brand;align-self:center}
  .topbar > .brand .brand-logo{height:84px}
  .topbar>.nav-cta{grid-area:cta;width:auto;justify-self:end;padding:9px 16px;font-size:1rem}
  .topbar nav{grid-area:nav;width:100%;flex-wrap:nowrap;justify-content:space-between;gap:8px}
  .topbar nav a{font-size:1rem;white-space:nowrap}
  .collection-grid{grid-template-columns:1fr}
  .page-subnav{
    width:100%;
    margin-top:10px;
    padding:2px 11px 6px;
    justify-content:flex-start;
    flex-wrap:nowrap;
    overflow-x:auto;
    scroll-snap-type:x proximity;
    scroll-padding-inline:11px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .page-subnav::-webkit-scrollbar{display:none}
  .page-subnav a{scroll-snap-align:start;font-size:.88rem;padding:7px 12px}
  .section.page-intro{margin-top:20px}
  .page-subnav + .section.page-intro{margin-top:14px}
  .page-intro p{font-size:1rem}
  .section.page-intro + .section{margin-top:28px}
}
@media (max-width:380px){
  .topbar{grid-template-columns:minmax(0,1fr) auto;padding-inline:12px}
  .topbar nav{flex-wrap:wrap;justify-content:space-around;gap:2px 8px}
  .topbar nav a{font-size:.92rem}
  .topbar > .brand .brand-logo{height:76px}
}

/* Catálogo Kids con fotografías reales. */
.kids-catalog{margin-top:52px}.kids-catalog>p{color:var(--muted)}.kids-catalog .kids-products{margin-top:24px}.kids-catalog .kids-product img{height:auto;aspect-ratio:1;object-fit:contain}.kids-consult{display:inline-block;color:var(--wood-dark);font-weight:700;text-decoration:underline;text-underline-offset:4px}.kids-consult:focus-visible{outline:2px solid currentColor;outline-offset:5px}

.kids-catalog .kids-product img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;background:#f5ece3}.kids-catalog .kids-product{display:flex;flex-direction:column}.kids-catalog .kids-product>div{flex:1;display:flex;flex-direction:column}.kids-consult{margin-top:auto}

.mandala-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mandala-photo-grid .mandala-card{margin:0}.mandala-photo-grid img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#fff}.mandala-contact{margin:28px 0;text-align:center}.mandala-contact a{display:inline-block}@media(max-width:760px){.mandala-photo-grid{grid-template-columns:1fr}}

/* Keep the mandala gallery compact above and below its square photos. */
.mandalas-page .section.page-intro{margin-top:20px}.mandalas-page .section.page-intro + .section{margin-top:20px}.mandalas-page .section-heading{margin-bottom:20px}.mandalas-page .mandala-contact{margin:20px 0 0}.mandalas-page main{padding-bottom:0}.mandalas-page footer{margin-top:32px;padding-top:24px}

/* Readable header navigation and WhatsApp identity. */
.topbar nav a{font-size:1.35rem}.topbar>.nav-cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap}.topbar .whatsapp-icon{width:26px;height:26px;flex:0 0 26px;color:#25d366}
@media(max-width:1100px){.topbar nav{gap:12px}.topbar nav a{font-size:1.2rem}}
@media(max-width:760px){.topbar nav{flex-wrap:wrap;justify-content:center;gap:6px 18px}.topbar nav a{font-size:1.12rem}.topbar>.nav-cta{font-size:1.08rem}.topbar .whatsapp-icon{width:24px;height:24px;flex-basis:24px}}

/* Match the photographed wood midtones to the map puzzle without redrawing engraving. */
img[src*="sistema-solar-tono-uniforme"]{filter:url("../assets/kids/puzzle-tones-v3.svg#solar")}
img[src*="animales-tono-uniforme"]{filter:url("../assets/kids/puzzle-tones-v3.svg#animales")}

.example-photo-link{display:block;position:relative;width:100%;height:100%;border-radius:18px;overflow:hidden;cursor:zoom-in}
.example-photo-link:focus-visible{outline:3px solid var(--wood-dark);outline-offset:4px}
.image-zoom-label{position:absolute;right:10px;bottom:10px;display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border-radius:999px;background:rgba(36,29,23,.9);color:#fff;font-size:.82rem;font-weight:700;line-height:1.2;pointer-events:none}
.image-zoom-label svg{flex:none}

/* Background choices apply to every engraved portrait size. */
.background-choices .choice{align-items:center;cursor:pointer}
.background-choices .choice input{margin-top:0}
.background-choices .choice>span{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.background-choices .choice:has(input:checked){border-color:var(--wood-dark);box-shadow:inset 0 0 0 1px var(--wood-dark)}
.background-swatch{display:inline-block;flex:none;width:23px;height:23px;border-radius:50%;border:1px solid #c8b49e}
.background-swatch--white{background:#fff}.background-swatch--black{background:#24201c}.background-swatch--wood{background:repeating-linear-gradient(8deg,#d8b286 0 3px,#e6c59f 3px 6px)}
.summary-background{grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-top:9px;border-top:1px solid var(--line)}
.cart-background{display:grid;gap:5px;margin-top:10px;color:var(--wood-dark);font-size:.88rem;font-weight:650}
.cart-background select{font:inherit;font-weight:400;width:100%;max-width:240px;border:1px solid var(--line);border-radius:9px;padding:8px 10px;background:var(--paper);color:var(--ink)}
