/* Muchapalabreria — Entrega 1 (espejo modernizado del sitio de Ayelén).
   Paleta REAL medida en Wix: blanco, lila #D8C1DD, lila medio #B183BA / #BA91C2, violeta #620674.
   El lima #CAF637 es SOLO un acento chico (botón de convocatorias, supervisión, líneas finas): no "flúor" en bloques. */

:root {
  --violeta: #620674;
  --violeta-700: #4c0459;
  --lila: #d8c1dd;
  --lila-50: #f7f1f8;
  --lila-medio: #b183ba;
  --lila-borde: #ba91c2;
  --lila-card: #e0cde4;
  --lima: #caf637;
  --salmon: #ff9898;
  --verde-taller: #1fdf67;
  --tinta: #1c1020;
}

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  background: #fff;
  color: var(--tinta);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 3px solid var(--violeta); outline-offset: 3px; border-radius: 6px; }
/* <picture> responsivo (WebP + respaldo): como bloque, para que el <img> conserve el ancho que tenía (w-full, mx-auto…) */
picture { display: block; }
a { transition: color .2s, background-color .2s, opacity .2s; }
.enlace { color: var(--violeta); text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
.enlace:hover { text-decoration-thickness: 2px; }
.volver { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 500; color: var(--violeta); }
.volver:hover { text-decoration: underline; text-underline-offset: 4px; }
.linea-lila { border: 0; border-top: 2px solid var(--lila-medio); }

/* ------------------------------------------------ encabezado (como el de Wix) */
.marca-sitio { display: flex; align-items: center; gap: .75rem; min-height: 44px; }
.marca-nombre {
  font-family: "Space Grotesk", system-ui, sans-serif; font-size: clamp(1.35rem, 4vw, 2rem); line-height: 1.1;
  color: var(--violeta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; letter-spacing: .01em;
}
.marca-bajada { font-size: .85rem; color: var(--tinta); margin-top: .2rem; }
.redes { gap: .25rem; align-items: center; }
.redes a {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--tinta);
}
.redes a:hover { background: var(--lila-50); color: var(--violeta); }
.redes--chicas a { width: 40px; height: 40px; }
.menu-hamburguesa {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; color: var(--violeta);
  box-shadow: inset 0 0 0 2px var(--lila);
}
.menu-hamburguesa:hover { background: var(--lila-50); }

.menu-barra { background: var(--lila); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgb(98 6 116 / .08); }
.menu {
  max-width: 72rem; margin: 0 auto; padding: .55rem 1rem; gap: .4rem; flex-wrap: wrap; align-items: center;
  flex-direction: column;
}
.menu:not(.hidden) { display: flex; }
@media (min-width: 1024px) { .menu { flex-direction: row; padding: .5rem 1.5rem; } }
.menu > li { width: 100%; }
@media (min-width: 1024px) { .menu > li { width: auto; } }
.menu-link {
  display: flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border-radius: 999px;
  background: rgb(255 255 255 / .55); color: var(--tinta); font-size: .92rem; font-weight: 400; flex: 1;
  box-shadow: inset 0 0 0 1px rgb(98 6 116 / .12);
}
.menu-link:hover { background: #fff; color: var(--violeta); }
.menu-link[aria-current="page"] { background: #fff; color: var(--violeta); font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--violeta); }
.has-sub { position: relative; }
.submenu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: .15rem; border-radius: 999px; color: var(--violeta);
}
.submenu-toggle:hover { background: rgb(255 255 255 / .6); }
.submenu-toggle svg { transition: transform .2s; }
.has-sub.abierto .submenu-toggle svg { transform: rotate(180deg); }
.submenu { display: none; padding: .35rem 0 .2rem 1rem; }
.has-sub.abierto .submenu { display: block; }
@media (min-width: 1024px) {
  .submenu {
    position: absolute; left: 0; top: calc(100% + .35rem); min-width: 15rem; padding: .4rem; border-radius: 1rem;
    background: #fff; box-shadow: 0 14px 36px rgb(46 2 54 / .18); z-index: 50;
  }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }
}
.submenu-link { display: flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: .75rem; font-size: .92rem; color: var(--tinta); }
.submenu-link:hover { background: var(--lila-50); color: var(--violeta); }

/* ------------------------------------------------ botones (44px o más) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.5rem; border-radius: .5rem;
  font-weight: 400; font-size: .95rem; line-height: 1.25; text-align: center; letter-spacing: .01em;
  transition: background-color .2s, color .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-negro { background: #000; color: #fff; }
.btn-negro:hover { background: #2a1830; }
.btn-borde { background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--tinta); }
.btn-borde:hover { background: var(--lila-50); }
.btn-lila-medio { background: var(--lila-medio); color: var(--tinta); letter-spacing: .06em; }  /* texto oscuro: 5,5:1 (aprobado por Ayelén 25/10/2026) */
.btn-lila-medio:hover { background: #c49bcc; }
.btn-lima { background: var(--lima); color: var(--tinta); }
.btn-lima:hover { background: #bde62a; }

/* Botón de convocatorias de la home (lima, como en Wix: el único bloque lima) */
.btn-convocatorias {
  display: flex; align-items: center; justify-content: center; gap: .5rem; max-width: 40rem; margin: 0 auto;
  min-height: 52px; padding: .6rem 1.25rem; border-radius: 999px; background: var(--lima); color: var(--tinta);
  box-shadow: inset 0 0 0 1.5px var(--tinta); font-size: clamp(.72rem, 2.4vw, .9rem); letter-spacing: .22em; text-align: center;
}
.btn-convocatorias:hover { background: #bde62a; transform: translateY(-1px); }
.btn-convocatorias svg { flex-shrink: 0; transition: transform .2s; }
.btn-convocatorias:hover svg { transform: translateX(3px); }

/* ------------------------------------------------ home: filtro por categoría + grilla de posts */
.filtro { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; border-bottom: 1px solid var(--lila); }
.filtro-lista { display: flex; gap: .25rem; padding-bottom: .5rem; width: max-content; }
@media (min-width: 1024px) { .filtro-lista { flex-wrap: wrap; width: auto; } }
.chip {
  min-height: 44px; padding: .4rem .9rem; border-radius: 999px; font-size: .92rem; color: #6b6470; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.chip:hover { color: var(--violeta); background: var(--lila-50); }
.chip[aria-pressed="true"] { color: var(--violeta); font-weight: 500; background: var(--lila-50); box-shadow: inset 0 -2px 0 var(--violeta); }

.post-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1 / 1;
  overflow: hidden; border-radius: .9rem; background: #3b2f40; color: #fff; padding: 1rem 1.15rem 1.2rem;
  box-shadow: 0 1px 2px rgb(46 2 54 / .12); transition: box-shadow .3s, transform .3s;
}
.post-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  /* arriba más fuerte: la fecha se lee aun sobre portadas con texto (ej. "Fogón de cuentos") */
  background: linear-gradient(180deg, rgb(0 0 0 / .72) 0%, rgb(0 0 0 / .35) 22%, rgb(0 0 0 / .08) 42%, rgb(0 0 0 / .15) 58%, rgb(0 0 0 / .75) 100%);
}
.post-card:hover { box-shadow: 0 16px 36px rgb(46 2 54 / .25); transform: translateY(-2px); }
.post-card__meta, .post-card__titulo { position: relative; z-index: 2; }
.post-card > picture { display: block; position: absolute; inset: 0; } /* fuera del flex: la fecha queda arriba */
.post-card__meta { font-size: .75rem; line-height: 1.35; text-shadow: 0 1px 4px rgb(0 0 0 / .6); } /* 12 px mínimo */
/* Mobile (como Wix en celulares): categoría y extracto debajo de la tarjeta. En desktop no se muestran (sm:hidden). */
.post-card-extra { padding: .6rem .2rem 0; }
.post-card-cat { font-size: .78rem; color: var(--violeta); font-weight: 500; }
.post-card-extracto {
  margin-top: .2rem; font-size: .9rem; line-height: 1.5; color: var(--tinta);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__titulo { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.3rem; line-height: 1.25; text-shadow: 0 1px 8px rgb(0 0 0 / .35); }
.post-card--sin-foto { background: var(--lila); color: var(--violeta); }
.post-card--sin-foto::after { display: none; }
.post-card--sin-foto .post-card__titulo { text-shadow: none; }

/* ------------------------------------------------ tienda */
.producto { display: flex; flex-direction: column; align-items: center; text-align: center; }
.producto-foto { width: 13rem; height: 13rem; border-radius: 999px; object-fit: cover; box-shadow: 0 8px 24px rgb(46 2 54 / .12); transition: transform .3s; }
.producto:hover .producto-foto { transform: scale(1.03); }
.producto-titulo { margin-top: 1.1rem; font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.3rem; color: var(--tinta); }
.producto-sub { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.05rem; line-height: 1.3; }
.producto-desc { margin-top: 1rem; width: 100%; font-size: .85rem; line-height: 1.6; color: var(--tinta); }
.producto-desc p + p { margin-top: .35rem; }
.btn-tienda {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1rem; border-radius: .35rem;
  font-size: .88rem; letter-spacing: .01em; transition: transform .15s, filter .2s, background-color .2s;
}
a.btn-tienda:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-tienda--negro { background: #000; color: #fff; }
.btn-tienda--borde { background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 2px #000; }
a.btn-tienda--borde:hover { background: var(--lila-50); }
.btn-tienda--salmon { background: var(--salmon); color: var(--tinta); }  /* texto oscuro: 8,3:1 (aprobado por Ayelén 25/10/2026) */
span.btn-tienda { cursor: default; }
.retiro {
  margin: 1rem auto 0; width: fit-content; padding: .45rem 1rem; border-radius: 999px; background: var(--lila-50);
  box-shadow: inset 0 0 0 1.5px var(--lila-medio); font-weight: 500; color: var(--violeta); text-align: center;
}

/* ------------------------------------------------ servicios */
.caja-servicio {
  display: block; height: 100%; padding: 1.1rem 1.25rem 1.4rem; background: #fff; border: 4px solid var(--lila-borde);
  box-shadow: 0 2px 6px rgb(98 6 116 / .12); transition: box-shadow .3s, transform .3s;
}
.caja-servicio:hover { box-shadow: 0 14px 32px rgb(98 6 116 / .2); transform: translateY(-2px); }
.caja-servicio__titulo {
  display: inline-block; font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.35rem; color: var(--violeta);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; padding-bottom: .35rem;
  border-bottom: 1px solid var(--lima);
}
.testimonios-banda { background: var(--lila); border-radius: 50% 50% 0 0 / 5rem 5rem 0 0; }
.testimonio { display: flex; height: 100%; flex-direction: column; background: #fff; padding: 1.5rem 1.6rem; border-radius: .5rem; box-shadow: 0 1px 3px rgb(46 2 54 / .08); }

/* ------------------------------------------------ sobre mí y el equipo */
.equipo-card { display: grid; grid-template-columns: 1fr; overflow: hidden; background: var(--lila-card); }
@media (min-width: 640px) { .equipo-card { grid-template-columns: 2fr 3fr; } }
.equipo-foto { width: 100%; height: 100%; min-height: 16rem; max-height: 22rem; object-fit: cover; filter: grayscale(1); }
.equipo-card > picture { display: block; } /* <picture> responsivo = la celda de la foto */

/* ------------------------------------------------ talleres */
.taller-card { display: flex; flex-direction: column; align-items: center; }
.taller-card > picture { width: 100%; } /* la caja blanca de la ilustración ocupa toda la tarjeta, como antes */
.btn-taller {
  margin-top: -1.4rem; display: inline-flex; align-items: center; min-height: 46px; padding: .5rem 1.4rem; border-radius: 999px;
  background: var(--verde-taller); color: var(--tinta); font-size: .82rem; letter-spacing: .2em; position: relative;
  box-shadow: 0 4px 12px rgb(0 0 0 / .12); transition: transform .2s;
}
.btn-taller:hover { transform: translateY(-2px); }
.proximo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.pendiente {
  display: inline-block; padding: .1rem .6rem; border-radius: 999px; border: 1px dashed var(--violeta);
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--violeta); background: #fff;
}

/* ------------------------------------------------ contacto */
.contacto-caja { background: var(--lila-medio); padding: 2.5rem 1.25rem; }
@media (min-width: 640px) { .contacto-caja { padding: 3rem 3rem; } }

/* ------------------------------------------------ formularios (línea inferior, como Wix) */
.campo-linea {
  width: 100%; min-height: 46px; padding: .55rem .5rem; background: transparent; border: 0; border-bottom: 1.5px solid #6b6470;
  font: inherit; font-weight: 400; color: var(--tinta); transition: border-color .2s;
}
.campo-linea::placeholder { color: #6b6470; }
.campo-linea:focus { outline: none; border-bottom-color: var(--violeta); }
.campo-linea--oscuro { border-bottom-color: var(--tinta); }
.campo-linea--oscuro::placeholder { color: rgb(28 16 32 / .7); }
.campo-linea[aria-invalid="true"] { border-bottom-color: #b3261e; }
.field-error { margin-top: .3rem; font-size: .8rem; color: #b3261e; font-weight: 400; }

/* Honeypot: fuera de pantalla (no display:none, algunos bots lo detectan) */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Modal (avisos) */
dialog#app-dialog {
  width: min(32rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  border: 0; border-radius: 1.25rem; padding: 0; color: var(--tinta);
  box-shadow: 0 24px 60px rgb(46 2 54 / .35);
}
dialog#app-dialog::backdrop { background: rgb(46 2 54 / .55); backdrop-filter: blur(2px); }
.dialog-badge {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  font-weight: 700; font-family: "Space Grotesk", sans-serif;
}
.dialog-badge--ok { background: var(--lila); color: var(--violeta-700); }
.dialog-badge--info { background: var(--lila); color: var(--violeta-700); }
.dialog-badge--error { background: #fde2e1; color: #b3261e; }

/* ------------------------------------------------ texto editorial y alineación real por párrafo */
.texto-editorial p,
p.texto-editorial {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}
.al-justify {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}
.al-left { text-align: left; }
.al-center { text-align: center; }
.al-right { text-align: right; }
/* Versos: líneas cortas consecutivas de un poema, sin margen entre párrafos de la misma estrofa */
.verso { margin-top: 0 !important; line-height: 1.6; }
.verso-inicio { margin-top: 1.5rem !important; }

/* Carrusel de fotos de Talleres (carrusel.js). Sin JS: scroll horizontal con scroll-snap y sin controles. */
.carrusel-pista {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .25rem .25rem 1rem; scrollbar-width: thin; scrollbar-color: var(--lila-borde) transparent;
}
.carrusel-pista:focus-visible { outline: 3px solid var(--violeta); outline-offset: 4px; border-radius: 1rem; }
.carrusel-foto { flex: 0 0 auto; scroll-snap-align: center; }
.carrusel-foto > picture { height: 100%; }
.carrusel-img {
  height: 18rem; width: auto; max-width: 85vw; object-fit: cover;
  border-radius: 1.25rem; border: 3px solid var(--lila);
}
@media (min-width: 640px) { .carrusel-img { height: 24rem; max-width: 560px; } }
.carrusel-controles { display: none; justify-content: center; align-items: center; gap: .75rem; margin-top: 1rem; }
.carrusel--js .carrusel-controles { display: flex; }
.carrusel-btn {
  min-width: 2.75rem; height: 2.75rem; padding: 0 1rem; border-radius: 9999px;
  background: var(--lila); color: var(--violeta); font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.5rem; line-height: 1; transition: background .15s;
}
.carrusel-btn:hover { background: var(--lila-borde); }
.carrusel-btn:focus-visible { outline: 3px solid var(--violeta); outline-offset: 2px; }
.carrusel-pausa { font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .carrusel-pista { scroll-behavior: auto; } }

/* Foto completa de la Tiendita (lightbox.js) y tarjeta de taller sin imagen todavía */
.producto-zoom { display: block; border-radius: 999px; cursor: zoom-in; }
.producto-zoom:focus-visible { outline: 3px solid var(--violeta); outline-offset: 4px; }
.lightbox { max-width: min(92vw, 56rem); max-height: 92vh; padding: 0; border: 0; border-radius: 1rem; background: #fff; }
.lightbox::backdrop { background: rgb(28 16 32 / .75); }
.lightbox img { display: block; max-width: 100%; max-height: 84vh; margin: 0 auto; object-fit: contain; }
.lightbox-cerrar { display: block; margin-left: auto; padding: .6rem 1rem; color: var(--violeta); font-weight: 500; }
.taller-sin-foto {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 11rem; padding: 1rem; border-radius: .75rem;
  background: #fff; color: var(--violeta); font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.25rem; text-align: center;
}
.medios-pago { display: flex; justify-content: center; gap: 1rem; margin-top: .75rem; font-size: .85rem; color: var(--tinta); }
.medio-pago { height: 2rem; width: auto; }
