/* Tata Costura — tema. Mobile-first, sin frameworks.
   Firma visual: piezas de patrón (fotos con piquetes y línea de costura) + cinta métrica. */

:root {
  --paper: #fff9fa;
  --blush: #f7e4ea;
  --line: #e6cfd7;
  --ink: #2a1a2b;
  --ink-soft: #5e4a5f;
  --berry: #9c2159;
  --berry-dark: #7a1745;
  --hilo: #e8b64c;
  --menta: #1f6b5c;
  --white: #fff;

  --f-display: "Gloock", "Georgia", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: 1.25rem;
  --max: 72rem;
  --radius: 14px;
  --notch: 11px;
}

/* Carrito y formularios del runtime con los colores del tema (html:root gana a :root de runtime.css). */
html:root { --tr-accent: var(--berry); --tr-bg: var(--paper); --tr-text: var(--ink); --tr-muted: var(--ink-soft); --tr-line: var(--line); --tr-soft: var(--blush); --tr-radius: var(--radius); --tr-font: var(--f-body); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--berry); text-underline-offset: .18em; }
a:hover { color: var(--berry-dark); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: 44rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font: 500 .75rem/1.4 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--berry);
}
.section-title {
  font: 400 clamp(1.9rem, 1.3rem + 2.6vw, 3rem)/1.08 var(--f-display);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.prose { color: var(--ink-soft); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font: 400 1.75rem/1.15 var(--f-display); color: var(--ink); margin-top: 1.8em; }
.prose h3 { font: 600 1.15rem/1.3 var(--f-body); color: var(--ink); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--berry); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 1.8em 0; padding: 1.1em 1.3em;
  background: var(--blush); border-left: 3px dashed var(--berry);
  color: var(--ink); font-style: italic; border-radius: 0 var(--radius) var(--radius) 0;
}
.prose figure { margin: 1.5em 0; }
.prose figcaption { font: .85rem/1.4 var(--f-mono); color: var(--ink-soft); margin-top: .5em; }
.prose img { border-radius: var(--radius); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em;
  border: 2px solid var(--berry); border-radius: 999px;
  font: 600 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn--primary { background: var(--berry); color: var(--white); }
.btn--primary:hover { background: var(--berry-dark); border-color: var(--berry-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--berry); }
.btn--ghost:hover { background: var(--berry); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--berry-dark); }
.btn--light:hover { background: var(--blush); border-color: var(--blush); color: var(--berry-dark); }
.btn--small { min-height: 44px; padding: .5em 1.1em; font-size: .95rem; background: var(--berry); color: var(--white); }
.btn--small:hover { background: var(--berry-dark); color: var(--white); }
.btn--block { width: 100%; }
.btn:disabled, .btn[disabled] { background: var(--line); border-color: var(--line); color: var(--ink-soft); cursor: not-allowed; }

/* ---------- Encabezado del sitio ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px dashed var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: .75rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--ink); text-decoration: none; font: 400 1.35rem/1 var(--f-display); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__mark circle { fill: var(--berry); }
.brand__mark path { fill: none; stroke: var(--hilo); stroke-width: 2.2; stroke-dasharray: 3.5 3; stroke-linecap: round; }

.site-nav { display: none; }
.site-nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px dashed var(--line);
  padding: .5rem var(--gutter) 1.25rem;
}
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500;
  padding: .8rem 0; border-bottom: 1px dashed var(--line);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--berry); }

.menu-toggle {
  order: 3; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-content: center; gap: 6px; padding: 0;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); } /* ≡ → ✕ */
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: 0 .8rem; border: 1.5px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer; font-weight: 600; font-size: .95rem;
}
.cart-btn:hover { border-color: var(--berry); color: var(--berry); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cart-btn__label { display: none; }
.cart-btn__count {
  min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 999px;
  display: inline-grid; place-content: center;
  background: var(--berry); color: var(--white); font: 500 .8rem/1 var(--f-mono);
}

/* ---------- Cinta métrica (firma) ---------- */
.cinta {
  --tick: var(--ink);
  display: flex; overflow: hidden; height: 46px;
  background-color: var(--hilo);
  background-image:
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 100%);
  background-size: 7.2px 9px, 36px 16px;
  background-repeat: repeat-x;
  background-position: 0 0, 0 0;
  counter-reset: cm;
  box-shadow: 0 6px 18px rgb(42 26 43 / .12);
}
.cinta i {
  flex: 0 0 72px; position: relative; border-left: 1.5px solid var(--tick);
  counter-increment: cm;
}
.cinta i::before {
  content: counter(cm); position: absolute; left: 6px; bottom: 6px;
  font: 500 .8rem/1 var(--f-mono); color: var(--ink);
}

/* ---------- Pieza de patrón (firma) ---------- */
.pieza {
  position: relative; margin: 0;
  clip-path: polygon(
    0 0, 100% 0,
    100% 32%, calc(100% - var(--notch)) calc(32% + var(--notch)), 100% calc(32% + 2 * var(--notch)),
    100% 100%, 0 100%,
    0 64%, var(--notch) calc(64% + var(--notch)), 0 calc(64% + 2 * var(--notch)));
}
.pieza img { width: 100%; height: 100%; object-fit: cover; }
.pieza::after {
  content: ""; position: absolute; inset: 14px;
  border: 1.5px dashed rgb(255 255 255 / .85); pointer-events: none;
}
.pieza__label {
  position: absolute; left: 26px; bottom: 26px; right: 26px;
  font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--white); text-shadow: 0 1px 8px rgb(0 0 0 / .55);
}

/* ---------- Hero ---------- */
.hero { padding-top: 2rem; background: var(--paper); }
.hero__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.hero__title {
  font: 400 clamp(2.9rem, 1.6rem + 6.4vw, 6rem)/.95 var(--f-display);
  letter-spacing: -.02em; margin-top: .9rem; text-wrap: balance;
}
.hero__title::after {
  content: ""; display: block; width: min(12rem, 60%); height: 0; margin-top: 1.1rem;
  border-top: 3px dashed var(--berry);
}
.hero__lead { margin-top: 1.4rem; max-width: 32rem; font-size: 1.15rem; color: var(--ink-soft); }
.hero__lead > * + * { margin-top: .8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero__media { aspect-ratio: 4 / 5; border-radius: 0; }
.hero .cinta { transform: rotate(-1.4deg); margin: 0 -1rem -12px; position: relative; z-index: 2; }

/* ---------- Secciones genéricas ---------- */
.sobre, .destacados, .pasos, .galeria, .articulos, .catalogo, .contacto, .texto-imagen, .faq { padding-block: 4rem; }
.section-head { display: grid; gap: .6rem; margin-bottom: 2rem; }
.link-more { font-weight: 600; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.empty { padding: 2rem; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); text-align: center; }

/* Sobre */
.sobre { background: var(--blush); padding-top: 4.5rem; }
.sobre__grid { display: grid; gap: 2rem; align-items: center; }
.sobre__media { margin: 0; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 26rem; }
.sobre__media img { width: 100%; height: 100%; object-fit: cover; }
.sobre__text .section-title { margin: .6rem 0 1rem; }
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.cifra { border-top: 2px dashed var(--berry); padding-top: .8rem; }
.cifra__num { font: 400 2.4rem/1 var(--f-display); color: var(--berry); }
.cifra__txt { margin-top: .35rem; font-size: .95rem; color: var(--ink-soft); }

/* Productos */
.products { display: grid; gap: 1.25rem; }
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgb(42 26 43 / .06);
  padding: .6rem;
}
.product::after { /* costura del parche */
  content: ""; position: absolute; inset: 5px; border: 1.5px dashed var(--line);
  border-radius: calc(var(--radius) - 4px); pointer-events: none;
}
.product__link { display: flex; flex-direction: column; flex: 1; color: var(--ink); text-decoration: none; padding: 0 .5rem; }
.product__link:hover .product__name { color: var(--berry); }
.product__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: calc(var(--radius) - 6px); margin: 0 -.5rem; background: var(--blush); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product__link:hover .product__media img { transform: scale(1.04); }
.product__cat { margin-top: 1rem; font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--menta); }
.product__name { font: 400 1.45rem/1.15 var(--f-display); margin-top: .35rem; }
.product__sum { margin-top: .45rem; font-size: .95rem; color: var(--ink-soft); }
.product__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: 1rem .5rem .5rem; margin-top: auto; }
.product__price { font: 500 1.05rem/1.2 var(--f-mono); color: var(--ink); margin-right: auto; }
.product__price s, .detalle-producto__price s { color: var(--ink-soft); font-size: .85em; margin-left: .3em; }
.product__stock { font: 500 .78rem/1.2 var(--f-mono); color: var(--berry); }
.product__stock:empty { display: none; }
.product .btn--small { position: relative; z-index: 1; }

/* Agotado */
.product.is-out .product__media img, .detalle-producto.is-out .detalle-producto__media img { filter: grayscale(.85); opacity: .75; }
.product.is-out > .product__foot .product__stock,
.detalle-producto.is-out .detalle-producto__info > .product__stock { color: var(--white); background: var(--ink); padding: .3em .6em; border-radius: 999px; justify-self: start; }

/* Pasos (secuencia real, por eso numerada) */
.pasos__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: paso; }
.paso {
  counter-increment: paso; position: relative;
  padding: 1.4rem 1.2rem 1.4rem 4.2rem; background: var(--white); border-radius: var(--radius);
  border: 1.5px dashed var(--line);
}
.paso::before {
  content: counter(paso); position: absolute; left: 1.1rem; top: 1.2rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-content: center;
  background: var(--hilo); color: var(--ink); font: 500 1rem/1 var(--f-mono);
}
.paso__title { font: 600 1.15rem/1.3 var(--f-body); }
.paso__text { margin-top: .35rem; color: var(--ink-soft); }

/* Testimonios */
.testimonios { background: var(--ink); color: var(--blush); padding-block: 4.5rem; }
.testimonios .eyebrow { color: var(--hilo); }
.testimonios .section-title { color: var(--white); }
.testimonios__grid { display: grid; gap: 1.25rem; }
.testimonio { margin: 0; padding: 1.6rem; border: 1.5px dashed rgb(247 228 234 / .35); border-radius: var(--radius); display: flex; flex-direction: column; gap: 1.2rem; }
.testimonio blockquote { margin: 0; font: 400 1.35rem/1.35 var(--f-display); color: var(--white); }
.testimonio blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--hilo); margin-bottom: .4rem; }
.testimonio figcaption { margin-top: auto; display: grid; gap: .15rem; }
.testimonio__nombre { font-weight: 600; }
.testimonio__detalle { font: 400 .8rem/1.3 var(--f-mono); color: #d9bfc9; }

/* Galería */
.galeria__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.galeria__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; }
.galeria__item img { width: 100%; height: 100%; object-fit: cover; }
.galeria__item figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 2.5rem .7rem .6rem;
  background: linear-gradient(transparent, rgb(30 12 28 / .72));
  font: 500 .8rem/1.3 var(--f-mono); color: var(--white);
}
.galeria__item figcaption:empty:not([data-tr-ph]) { display: none; }

/* CTA */
.cta { padding-block: 1rem 4rem; }
.cta__box {
  display: grid; gap: 1.5rem; padding-block: 2.5rem;
  background: var(--berry); color: var(--white); border-radius: calc(var(--radius) * 1.5);
  padding-inline: 1.5rem; position: relative; overflow: hidden;
}
.cta__box::after { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgb(255 255 255 / .45); border-radius: var(--radius); pointer-events: none; }
.cta__title { font: 400 clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem)/1.1 var(--f-display); }
.cta__text { margin-top: .7rem; max-width: 36rem; color: #fbe9ef; }
.cta .btn { position: relative; z-index: 1; justify-self: start; }

/* Artículos */
.posts { display: grid; gap: 1.5rem; }
.post__link { display: block; color: var(--ink); text-decoration: none; }
.post__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--blush); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post__link:hover .post__media img { transform: scale(1.04); }
.post__meta { display: block; margin-top: 1rem; font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .04em; color: var(--menta); }
.post__title { margin-top: .4rem; font: 400 1.5rem/1.15 var(--f-display); }
.post__link:hover .post__title { color: var(--berry); }
.post__sum { margin-top: .5rem; color: var(--ink-soft); font-size: .98rem; }

/* Encabezado de página */
.encabezado { padding-block: 3rem 1rem; }
.encabezado__title { font: 400 clamp(2.6rem, 1.7rem + 4.5vw, 4.8rem)/1 var(--f-display); letter-spacing: -.02em; margin-top: .7rem; }
.encabezado__title::after { content: ""; display: block; width: 6rem; margin-top: 1rem; border-top: 3px dashed var(--berry); }
.encabezado__text { margin-top: 1rem; max-width: 38rem; color: var(--ink-soft); font-size: 1.1rem; }
.catalogo { padding-top: 2rem; }
.catalogo__nota { margin-top: 2rem; color: var(--ink-soft); text-align: center; }
.articulos--all { padding-top: 2rem; }

/* Contacto */
.contacto { padding-top: 2rem; }
.contacto__grid { display: grid; gap: 2.5rem; }
.form { background: var(--white); padding: 1.5rem; border-radius: var(--radius); border: 1.5px dashed var(--line); display: grid; gap: 1rem; }
.form__title { font: 400 1.9rem/1.1 var(--f-display); }
.form__hint { color: var(--ink-soft); margin-top: -.4rem; }
.field { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  padding: .8rem .9rem; min-height: 48px; border: 1.5px solid #cdb3bd; border-radius: 10px; background: var(--paper);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px rgb(156 33 89 / .18); }
.form .btn { justify-self: start; }
.form__status { font-weight: 600; min-height: 1.5em; }
.form__status:empty { display: none; }
.datos { display: grid; gap: 1.2rem; align-content: start; }
.datos__list { margin: 0; display: grid; gap: .9rem; }
.datos__list div { border-bottom: 1px dashed var(--line); padding-bottom: .8rem; }
.datos__list dd a { display: inline-flex; align-items: center; min-height: 44px; }
.datos__list dt { font: 500 .8rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--menta); }
.datos__list dd { margin: .25rem 0 0; font-size: 1.05rem; }
.datos .btn { justify-self: start; }
.datos__nota { color: var(--ink-soft); font-size: .95rem; }

/* Texto con imagen */
.texto-imagen__grid { display: grid; gap: 2rem; align-items: center; }
.texto-imagen__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.texto-imagen__media img { width: 100%; height: 100%; object-fit: cover; }
.texto-imagen__text { display: grid; gap: 1rem; justify-items: start; }

/* Preguntas frecuentes */
.faq { background: var(--blush); }
.faq__list { display: grid; gap: .6rem; }
.faq__item { background: var(--white); border-radius: var(--radius); border: 1.5px dashed var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.2rem; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--f-mono); color: var(--berry); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 1.2rem 1.2rem; color: var(--ink-soft); }

/* Banner de oferta */
.oferta { padding-block: 1.5rem; }
.oferta__box {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem;
  background: var(--hilo); color: var(--ink); border-radius: var(--radius); padding: 1.1rem 1.25rem;
}
.oferta__tag { font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--hilo); padding: .45em .7em; border-radius: 999px; }
.oferta__title { font: 400 1.3rem/1.2 var(--f-display); flex: 1 1 16rem; }
.oferta .btn--light { border-color: var(--ink); background: var(--ink); color: var(--white); }
.oferta .btn--light:hover { background: var(--berry-dark); border-color: var(--berry-dark); color: var(--white); }

/* ---------- Detalles ---------- */
.migas { font: 500 .78rem/1.4 var(--f-mono); color: var(--ink-soft); padding-top: 1.5rem; }
.migas a { color: var(--ink-soft); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.detalle-producto { padding-bottom: 4rem; }
.detalle-producto__grid { display: grid; gap: 2rem; margin-top: 1.25rem; }
.detalle-producto__media { aspect-ratio: 4 / 3; }
.detalle-producto__info { display: grid; gap: .9rem; align-content: start; }
.detalle-producto__name { font: 400 clamp(2.2rem, 1.6rem + 2.8vw, 3.4rem)/1.02 var(--f-display); letter-spacing: -.01em; }
.detalle-producto__sum { font-size: 1.15rem; color: var(--ink-soft); }
.detalle-producto__price { font: 500 1.5rem/1.2 var(--f-mono); }
.detalle-producto__help { font-size: .9rem; color: var(--ink-soft); }
.detalle-producto__desc { margin-top: 1rem; padding-top: 1.5rem; border-top: 1px dashed var(--line); }
.relacionados { padding-top: 4rem; }
.relacionados > .section-title { margin-bottom: 1.5rem; font-size: 2rem; }

.detalle-articulo { padding-bottom: 4rem; }
.detalle-articulo__title { font: 400 clamp(2.3rem, 1.6rem + 3.4vw, 4rem)/1.02 var(--f-display); letter-spacing: -.015em; margin-top: 1rem; text-wrap: balance; }
.detalle-articulo__sum { margin-top: 1rem; font-size: 1.2rem; color: var(--ink-soft); }
.detalle-articulo__meta { margin-top: 1rem; font: 500 .8rem/1.4 var(--f-mono); color: var(--menta); }
.detalle-articulo__cover { margin-block: 2rem; }
.detalle-articulo__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.prose--article { font-size: 1.1rem; line-height: 1.7; }
.detalle-articulo__cta { margin-top: 2.5rem; }
.detalle-articulo__cta p { padding: 1.2rem 1.4rem; border: 1.5px dashed var(--berry); border-radius: var(--radius); }

/* YouTube (fachada del servidor/runtime) */
[data-youtube] { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
[data-youtube] img { width: 100%; height: 100%; object-fit: cover; }
[data-youtube] iframe { width: 100%; height: 100%; border: 0; }

/* Carrito: estilos base para el drawer del runtime ([data-cart]) */
[data-cart] { font-family: var(--f-body); color: var(--ink); }
[data-cart] button, [data-cart] input, [data-cart] textarea { font: inherit; }
.tr-cart__head h2 { font: 400 1.6rem/1.1 var(--f-display); color: var(--ink); }
.tr-cart__price, .tr-cart__total { font-family: var(--f-mono); }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #eadbe1; padding-bottom: 2rem; margin-top: 2rem; }
.cinta--footer { transform: translateY(-50%); }
.site-footer__grid { display: grid; gap: 2rem; padding-top: 1.5rem; }
.site-footer__name { font: 400 2rem/1 var(--f-display); color: var(--white); }
.site-footer__tag { margin-top: .6rem; max-width: 20rem; }
.site-footer .eyebrow { color: var(--hilo); margin-bottom: .6rem; }
.site-footer__grid p + p { margin-top: .4rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; } /* área de toque ≥ 44 px */
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--hilo); }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px dashed rgb(234 219 225 / .25); font: 400 .8rem/1.4 var(--f-mono); color: #cdb8c0; }

.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-content: center;
  background: var(--menta); color: var(--white); box-shadow: 0 8px 24px rgb(42 26 43 / .25);
}
.wa-float:hover { color: var(--white); background: #174f44; }
.wa-float { transition: opacity .2s, visibility .2s; } /* runtime le pone .tr-tucked cuando tapa un botón */
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

/* Reveal opcional del runtime */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tablet y escritorio ---------- */
@media (min-width: 640px) {
  :root { --gutter: 2rem; }
  .products, .posts { grid-template-columns: repeat(2, 1fr); }
  .galeria__grid { grid-template-columns: repeat(3, 1fr); }
  .galeria__item:first-child { grid-row: span 2; aspect-ratio: auto; }
  .cart-btn__label { display: inline; }
  .cta__box { padding: 3rem; }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; flex-direction: row; gap: 1.75rem; position: static; padding: 0; border: 0; background: none; margin-right: 1rem;
  }
  .site-nav a { border: 0; padding: .4rem 0; position: relative; }
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-top: 2px dashed var(--berry); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-header__bar { min-height: 76px; }

  .hero { padding-top: 3.5rem; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; padding-bottom: 3.5rem; }
  .hero__media { aspect-ratio: 4 / 5; }
  .sobre__grid { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; }
  .sobre__media { max-width: none; }
  .section-head { grid-template-columns: 1fr auto; align-items: end; column-gap: 2rem; }
  .section-head .eyebrow { grid-column: 1 / -1; }
  .section-head .link-more { justify-self: end; }
  .products, .posts { grid-template-columns: repeat(3, 1fr); }
  .pasos__list { grid-template-columns: repeat(4, 1fr); }
  .paso { padding: 4.2rem 1.3rem 1.5rem; }
  .paso::before { top: 1.3rem; left: 1.3rem; }
  .testimonios__grid { grid-template-columns: repeat(3, 1fr); }
  .galeria__grid { grid-template-columns: repeat(4, 1fr); }
  .cta__box { grid-template-columns: 1fr auto; align-items: center; padding: 3.5rem 4rem; }
  .contacto__grid { grid-template-columns: 1.3fr .7fr; gap: 4rem; }
  .form { padding: 2.25rem; }
  .texto-imagen__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
  .faq__grid .section-head { grid-template-columns: 1fr; }
  .detalle-producto__grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  /* align-self: start: con stretch + aspect-ratio la fila no crece con la info y la descripción se monta sobre "relacionados" */
  .detalle-producto__media { aspect-ratio: 4 / 5; position: sticky; top: 100px; align-self: start; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .sobre, .destacados, .pasos, .galeria, .articulos, .contacto, .texto-imagen, .faq { padding-block: 6rem; }
  .articulos--all, .contacto { padding-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.hero, .site-footer { overflow-x: clip; }
.cta__box, .oferta__box { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); }
