@charset "UTF-8";

/* Letra de tiza de la pizarra: solo en la portada. */
@font-face {
  font-family: "Kalam";
  src: url("/assets/fonts/kalam-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Kalam";
  src: url("/assets/fonts/kalam-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Portada pública: "El mercado de flores al amanecer". Se carga solo en "/". */

.home-page {
  --home-petal-bg: #FBEAF0;
  --home-ink-soft: #E4EBDD;
  --home-chalk: #F5F4E9;
  --home-edge: clamp(1.75rem, 4.5vw, 4rem);
}

.home {
  overflow-x: clip;
  font-variant-numeric: lining-nums;
}

.home ul,
.home ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Bandas y transición de acuarela ---------- */

.home-band {
  --band-bg: var(--color-paper);
  position: relative;
  padding-block: 3.5rem 4rem;
  background-color: var(--band-bg);
  isolation: isolate;
}

/* Borde orgánico pintado con el color de la banda sobre la sección anterior. */
.home-band::before {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: calc(100% - 1px);
  left: 0;
  height: var(--home-edge);
  background: var(--band-bg);
  content: "";
  pointer-events: none;
  -webkit-mask: url("/assets/img/borde-acuarela.svg") center bottom / 100% 100% no-repeat;
  mask: url("/assets/img/borde-acuarela.svg") center bottom / 100% 100% no-repeat;
}

.home-band:nth-of-type(odd)::before {
  transform: scaleX(-1);
}

.home-band--paper {
  --band-bg: var(--color-paper);
  background-image: url("/assets/img/paper-grain.svg");
  background-size: 360px 360px;
}

.home-band--petal {
  --band-bg: var(--home-petal-bg);
}

.home-band--ink {
  --band-bg: var(--color-ink);
  color: #FFFFFF;
}

/* Manchas de acuarela difusas detrás del contenido. */
.home-band--petal::after,
.home-band--ink::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-repeat: no-repeat;
  content: "";
  filter: blur(10px);
  pointer-events: none;
}

.home-band--petal::after {
  background-image: url("/assets/img/motivo-acuarela-rosa.svg"), url("/assets/img/motivo-acuarela-rosa.svg");
  background-position: right -12rem top -4rem, left -16rem bottom -14rem;
  background-size: min(44rem, 95vw) auto, min(40rem, 90vw) auto;
}

.home-band--ink::after {
  background-image: url("/assets/img/motivo-acuarela-verde.svg"), url("/assets/img/motivo-acuarela-verde.svg");
  background-position: left -16rem bottom -12rem, right -14rem top -6rem;
  background-size: min(52rem, 110vw) auto, min(38rem, 90vw) auto;
  opacity: 0.75;
}

.home-band--ink h2,
.home-band--ink h3,
.home-band--ink h3 a {
  color: #FFFFFF;
}

.home-band--ink p {
  color: var(--home-ink-soft);
}

/* ---------- Encabezados de sección ---------- */

.home-heading {
  max-width: 46rem;
  margin-bottom: 1.75rem;
}

.home-heading h2 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  line-height: 1.12;
}

.home-heading p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.home-heading p.home-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
  color: var(--color-pink-deep, #A23259);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-kicker::before,
.home-kicker::after {
  width: 1.75rem;
  height: 1px;
  flex: 0 0 auto;
  background: var(--color-action);
  content: "";
}

.home-band--ink .home-heading p.home-kicker {
  color: var(--color-petal);
}

.home-heading--center {
  margin-inline: auto;
  text-align: center;
}

.home-heading--center .home-kicker {
  justify-content: center;
}

.home-heading--split {
  display: flex;
  max-width: none;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.home-heading--split > div:first-child {
  max-width: 46rem;
}

.home-empty {
  max-width: 40rem;
  padding: 1.1rem 1.25rem;
  border: 1px dashed rgb(19 38 15 / 35%);
  border-radius: var(--radius-md);
  color: var(--color-ink);
}

/* ---------- 1 · Hero ---------- */

.home-hero {
  position: relative;
  display: grid;
  min-height: min(48rem, calc(100svh - 3.8rem));
  align-items: end;
}

/* Con el aviso destacado encendido, la foto descuenta su alto para que el buscador siga a la vista. */
body:has(.notice-bar) .home-hero {
  min-height: min(48rem, calc(100svh - 3.8rem - 4.5rem));
}

.home-hero {
  overflow: hidden;
  background: var(--color-ink);
  color: #FFFFFF;
  isolation: isolate;
}

.home-hero-photo img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.home-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  /* Velo con contraste AA aunque la foto sea muy clara: de 62 % o más desde el rótulo hacia abajo (donde va el texto).
     Arriba queda casi transparente para que se vea la foto. */
  background: linear-gradient(180deg, rgb(19 38 15 / 32%) 0%, rgb(19 38 15 / 12%) 18%, rgb(19 38 15 / 64%) 36%, rgb(19 38 15 / 80%) 64%, rgb(19 38 15 / 92%) 100%);
  content: "";
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 4.5rem calc(var(--home-edge) + 2.25rem);
}

/* Celular: un velo más que acompaña al bloque de texto, para que en pantallas bajas (donde el texto sube sobre la
   parte clara de la foto) el contraste siga siendo AA. */
@media (max-width: 47.999rem) {
  .home-hero-inner::before {
    position: absolute;
    z-index: -1;
    inset: 1.5rem -1rem 0;
    background: linear-gradient(180deg, rgb(19 38 15 / 0%), rgb(19 38 15 / 50%) 3rem);
    pointer-events: none;
    content: "";
  }
}

.home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgb(19 38 15 / 70%), 0 0 14px rgb(19 38 15 / 55%);
}

.home-hero-kicker::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-petal);
  box-shadow: 0 0 0 4px rgb(248 211 222 / 25%);
  content: "";
}

.home-hero h1 {
  max-width: 11ch;
  margin-bottom: 0.75rem;
  color: #FFFFFF;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgb(0 0 0 / 28%);
}

.home-hero-copy {
  max-width: 36rem;
  margin-bottom: 1.4rem;
  color: #FFFFFF;
  font-size: 1rem;
  text-shadow: 0 1px 3px rgb(19 38 15 / 70%), 0 0 14px rgb(19 38 15 / 55%);
}

.home-search {
  position: relative;
  display: flex;
  max-width: 44rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.4rem 0.4rem 0.95rem;
  border-radius: 0.9rem;
  background: var(--color-paper);
  box-shadow: 0 14px 40px rgb(0 0 0 / 28%);
  color: var(--color-ink);
}

.home-search:focus-within {
  box-shadow: 0 14px 40px rgb(0 0 0 / 28%), 0 0 0 3px var(--color-action);
}

.home-search-icon {
  width: 1.3rem;
  height: 1.3rem;
  flex: 0 0 auto;
  color: var(--color-muted);
}

.home-search input {
  min-width: 0;
  min-height: 3.1rem;
  flex: 1;
  padding: 0 0.3rem;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-size: 1rem;
}

.home-search input {
  text-overflow: ellipsis;
}

.home-search input::placeholder {
  color: #5D6759;
  opacity: 1;
}

.home-search input:focus-visible {
  box-shadow: none;
}

.home-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.home-search-submit {
  min-height: 3.1rem;
  flex: 0 0 auto;
  padding-inline: 1.15rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--color-ink);
  color: #FFFFFF;
  transition: background-color 160ms ease, transform 120ms ease;
}

.home-search-submit:hover {
  background: var(--color-success);
  color: #FFFFFF;
}

.home-search-submit:active {
  transform: scale(0.96);
}

.home-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 1rem !important;
  font-size: 0.82rem;
  font-weight: 500;
}

.home-hero-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.home-hero-tags li::before {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--color-petal);
  content: "";
}

.home-hero > .home-photo-label {
  top: 1rem;
}

/* Rama del logo: única animación automática de la página. */
.home-hero-branch {
  position: absolute;
  z-index: 1;
  top: 4.5rem;
  right: -1.5rem;
  width: min(36vw, 11rem);
  opacity: 0.6;
  pointer-events: none;
}

.home-hero-branch svg {
  width: 100%;
  height: auto;
}

.branch-line {
  stroke: var(--color-petal);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: home-branch-draw 2.4s cubic-bezier(.45, .05, .25, 1) 0.3s forwards;
}

.branch-line--leaves {
  animation-delay: 1s;
}

.branch-line--veins {
  animation-delay: 1.6s;
  stroke: #F3B8C9;
}

@keyframes home-branch-draw {
  to { stroke-dashoffset: 0; }
}

/* ---------- 2 · La pizarra del día ---------- */

.home-board {
  padding-top: 2.5rem;
}

.home-board-inner {
  display: grid;
  gap: 1.5rem;
}

.home-board .home-heading {
  margin-bottom: 0;
}

.chalk-frame {
  min-width: 0;
  padding: 0.65rem;
  border-radius: 0.7rem;
  background:
    repeating-linear-gradient(100deg, rgb(255 255 255 / 0%) 0 7px, rgb(255 255 255 / 6%) 7px 9px, rgb(0 0 0 / 0%) 9px 15px, rgb(0 0 0 / 9%) 15px 16px),
    linear-gradient(135deg, #8C5D3C 0%, #6E452B 38%, #84573A 66%, #5E3B24 100%);
  box-shadow: 0 16px 30px rgb(46 30 16 / 22%), inset 0 1px 0 rgb(255 255 255 / 18%), inset 0 -2px 0 rgb(0 0 0 / 20%);
}

.chalkboard-panel {
  position: relative;
  padding: 1.1rem 1rem 1.2rem;
  border-radius: 0.3rem;
  background-color: #1B3324;
  background-image: url("/assets/img/chalk-texture.svg");
  background-size: 420px 280px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%), inset 0 0 40px rgb(0 0 0 / 35%);
  color: var(--home-chalk);
  font-family: var(--font-chalk, "Kalam", cursive);
}

.chalk-title {
  display: inline-block;
  margin-bottom: 0.3rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid rgb(245 244 233 / 45%);
  color: var(--home-chalk);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  transform: rotate(-1deg);
}

.chalk-note {
  margin: 0.4rem 0 0;
  color: #E3E6D8;
  font-size: 1.05rem;
}

.chalk-list {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.8rem !important;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 0.5rem !important;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgb(245 244 233 / 40%) transparent;
  scrollbar-width: thin;
}

.chalk-list:focus-visible {
  box-shadow: 0 0 0 2px var(--color-petal);
}

.chalk-item {
  display: grid;
  min-width: 0;
  flex: 0 0 min(72%, 15rem);
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px dashed rgb(245 244 233 / 35%);
  border-radius: 0.4rem;
  scroll-snap-align: start;
}

.chalk-name {
  grid-column: 1 / -1;
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.chalk-name small {
  font-size: 0.95rem;
  font-weight: 400;
}

.chalk-leader {
  display: none;
}

.chalk-state {
  font-size: 1.02rem;
}

.chalk-state::before {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
  vertical-align: 0.1em;
}

.chalk-state--available { color: #BFE5AE; }
.chalk-state--few { color: #F5D88F; }
.chalk-state--query { color: #BFD3EE; }
.chalk-state--soldout { color: #F5B3BD; }
.chalk-state--season { color: #DCC4EE; }

.chalk-time {
  align-self: end;
  color: #E3E6D8;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- 3 · Buscá por color ---------- */

.color-circles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.9rem, 1fr));
  gap: 1.1rem 0.6rem;
}

.color-circle {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.color-circle-swatch {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  border: 4px solid #FFFFFF;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgb(19 38 15 / 30%), 0 6px 14px rgb(19 38 15 / 14%);
  transition: transform 220ms cubic-bezier(.3, 1.4, .5, 1), box-shadow 220ms ease;
}

.color-circle:hover {
  color: var(--color-ink);
}

.color-circle:hover .color-circle-swatch {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 0 0 3px var(--color-action), 0 10px 18px rgb(19 38 15 / 18%);
}

.color-circle:active .color-circle-swatch {
  transform: scale(0.9);
  transition-duration: 90ms;
}

.color-circle:focus-visible {
  box-shadow: none;
}

.color-circle:focus-visible .color-circle-swatch {
  box-shadow: var(--focus-ring);
}

/* ---------- 4 · Novedades ---------- */

.news-track {
  display: grid;
  grid-auto-columns: 76%;
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.6rem 0.1rem 1.2rem !important;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgb(255 255 255 / 35%) transparent;
  scrollbar-width: thin;
}

.news-track:focus-visible {
  box-shadow: 0 0 0 2px var(--color-petal);
}

.news-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  scroll-snap-align: start;
  transition: transform 220ms ease;
}

.news-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 0.6rem 0.6rem;
  background: var(--home-petal-bg);
}

.news-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.news-photo .home-photo-label {
  top: auto;
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  width: fit-content;
  margin-inline: auto;
}

.news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 0.9rem;
}

.news-body h3 {
  margin-bottom: 0.15rem;
  font-size: 1.35rem;
}

.news-body h3 a {
  text-decoration: none;
}

.news-body h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-petal);
}

.home-band--ink .news-unit {
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
}

.home-band--ink .news-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin-bottom: 0.9rem;
}

.news-status small {
  color: var(--home-ink-soft);
  font-size: 0.75rem;
}

.news-action {
  width: 100%;
  margin-top: auto;
  border: 2px solid var(--color-petal);
  border-radius: var(--radius-pill);
  background: var(--color-petal);
  color: var(--color-ink);
  transition: background-color 160ms ease, transform 120ms ease;
}

.news-action:hover {
  background: #FFFFFF;
  color: var(--color-ink);
}

.news-action:active {
  transform: scale(0.96);
}

.news-action--link {
  background: transparent;
  color: #FFFFFF;
}

.news-action--link:hover {
  background: rgb(255 255 255 / 12%);
  color: #FFFFFF;
}

.news-action.is-added {
  border-color: #BFE5AE;
  background: #BFE5AE;
}

.news-action.is-added::before {
  content: "✓";
}

/* ---------- 5 · Categorías en mosaico ---------- */

.category-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.8rem;
}

.category-mosaic > li:first-child {
  grid-column: 1 / -1;
}

.category-mosaic > li:nth-child(even):last-child {
  grid-column: 1 / -1;
}

.category-tile {
  position: relative;
  display: block;
  height: 13rem;
  overflow: hidden;
  border-radius: 50% 50% 0.75rem 0.75rem / 32% 32% 0.75rem 0.75rem;
  background: var(--home-petal-bg);
  color: #FFFFFF;
  isolation: isolate;
  text-decoration: none;
}

.category-mosaic > li:first-child .category-tile {
  height: 17rem;
}

.category-mosaic > li:nth-child(3) .category-tile {
  height: 15rem;
}

.category-mosaic > li:nth-child(even):last-child .category-tile {
  height: 11rem;
}

.category-tile img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.category-tile::after {
  position: absolute;
  z-index: -1;
  inset: 35% 0 0;
  /* Detrás del nombre el velo llega a 70 % o más: se lee aunque la foto (o la ilustración sin foto) sea clara. */
  background: linear-gradient(180deg, transparent, rgb(19 38 15 / 55%) 40%, rgb(19 38 15 / 88%) 75%);
  content: "";
}

.category-tile:hover {
  color: #FFFFFF;
}

.category-tile:hover img {
  transform: scale(1.07);
}

.category-tile .home-photo-label {
  top: 22%;
  right: 50%;
  width: max-content;
  max-width: 80%;
  transform: translateX(50%);
}

.category-tile-text {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  left: 1rem;
}

.category-tile-text strong,
.category-tile-text small {
  display: block;
}

.category-tile-text strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.category-tile-text small {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.category-tile-text small::after {
  margin-left: 0.3rem;
  content: "→";
}

/* ---------- 7 · Profesionales ---------- */

.home-pro {
  padding-block: 4rem 4.5rem;
}

.home-pro::after {
  background-image: url("/assets/img/motivo-acuarela-verde.svg"), url("/assets/img/motivo-acuarela-verde.svg"), url("/assets/img/motivo-acuarela-rosa.svg");
  background-position: left -16rem bottom -12rem, right -14rem top -6rem, right -6rem bottom -16rem;
  background-size: min(52rem, 110vw) auto, min(38rem, 90vw) auto, min(30rem, 80vw) auto;
}

.home-pro-inner {
  display: grid;
  gap: 2rem;
}

.home-pro .home-heading {
  margin-bottom: 0;
}

.home-pro .home-heading h2 {
  font-size: 2.25rem;
}

.home-band--ink .home-heading p:not(.home-kicker) {
  color: var(--home-ink-soft);
  font-size: 1.05rem;
}

.pro-facts {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.pro-facts > div {
  padding: 1rem 1.15rem;
  border: 1px solid rgb(248 211 222 / 28%);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 5%);
}

.pro-facts dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-petal);
  font-size: 0.85rem;
  font-weight: 600;
}

.pro-facts dt svg {
  width: 1.25rem;
  height: 1.25rem;
}

.pro-facts dd {
  margin: 0.3rem 0 0;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
}

/* ---------- 8 · Hecho con nuestras flores ---------- */

.gallery-mosaic {
  columns: 2;
  column-gap: 0.8rem;
}

.gallery-mosaic > li {
  margin-bottom: 0.8rem;
  break-inside: avoid;
}

.gallery-piece {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--home-petal-bg);
}

.gallery-mosaic > li:nth-child(3n + 1) .gallery-piece {
  border-radius: 50% 50% 0.75rem 0.75rem / 28% 28% 0.75rem 0.75rem;
}

.gallery-piece img {
  width: 100%;
  height: auto;
  transition: transform 600ms ease;
}

.gallery-piece:hover img {
  transform: scale(1.05);
}

.gallery-piece figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  padding: 2rem 0.8rem 0.65rem;
  background: linear-gradient(180deg, transparent, rgb(19 38 15 / 82%));
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
}

.gallery-piece figcaption a {
  color: var(--color-petal);
  font-weight: 500;
}

/* ---------- 9 · Cierre ---------- */

.home-closing {
  padding-block: 4.5rem 5rem;
  text-align: center;
}

.home-closing-branch {
  position: absolute;
  z-index: -1;
  top: 0.5rem;
  right: -1.5rem;
  width: 7.5rem;
  opacity: 0.55;
  pointer-events: none;
}

.home-closing-inner {
  position: relative;
  max-width: 40rem;
}

.home-closing .home-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
  color: #A23259;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-closing h2 {
  margin-bottom: 0.6rem;
  font-size: 2.25rem;
}

.home-closing p:not(.home-kicker) {
  margin-bottom: 1.6rem;
  color: var(--color-ink);
}

.home-closing-cta {
  min-height: 3.4rem;
  padding-inline: 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  transition: background-color 160ms ease, transform 120ms ease;
}

.home-closing-cta:active {
  transform: scale(0.96);
}

/* ---------- Tableta ---------- */

@media (min-width: 48rem) {
  .home-band {
    padding-block: 4.5rem 5rem;
  }

  .home-heading h2 {
    font-size: 2.6rem;
  }

  .home-hero {
    min-height: min(52rem, calc(100svh - 4.5rem));
    align-items: center;
  }

  body:has(.notice-bar) .home-hero {
    min-height: min(52rem, calc(100svh - 4.5rem - 3rem));
  }

  .home-hero::after {
    background:
      linear-gradient(90deg, rgb(19 38 15 / 80%) 0%, rgb(19 38 15 / 54%) 45%, rgb(19 38 15 / 6%) 75%),
      linear-gradient(180deg, rgb(19 38 15 / 20%) 0%, rgb(19 38 15 / 0%) 40%, rgb(19 38 15 / 55%) 100%);
  }

  .home-hero-inner {
    padding-block: 5rem calc(var(--home-edge) + 4rem);
  }

  .home-hero h1 {
    font-size: 4.25rem;
  }

  .home-hero-copy {
    font-size: 1.1rem;
  }

  .home-hero-branch {
    top: auto;
    right: 2%;
    bottom: calc(var(--home-edge) - 2rem);
    width: min(34vw, 22rem);
    opacity: 0.8;
  }

  .home-search {
    padding-left: 1.1rem;
  }

  .home-search input {
    min-height: 3.4rem;
    font-size: 1.05rem;
  }

  .home-search-submit {
    min-height: 3.4rem;
    min-width: 8.5rem;
  }

  .chalkboard-panel {
    padding: 1.4rem 1.6rem 1.5rem;
  }

  .chalk-list {
    display: grid;
    gap: 0.15rem;
    overflow: visible;
  }

  .chalk-item {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.35rem 0;
    border: 0;
    border-radius: 0;
  }

  .chalk-name {
    flex: 0 1 auto;
  }

  .chalk-leader {
    display: block;
    min-width: 1.5rem;
    flex: 1;
    border-bottom: 2px dotted rgb(245 244 233 / 32%);
  }

  .chalk-state,
  .chalk-time {
    flex: 0 0 auto;
  }

  .chalk-time {
    min-width: 2.8rem;
    text-align: right;
  }

  .color-circles {
    grid-template-columns: repeat(auto-fill, 5.5rem);
    gap: 1.4rem 1rem;
  }

  .color-circle-swatch {
    width: 5rem;
    height: 5rem;
  }

  .news-track {
    grid-auto-columns: calc((100% - 2 * 1.25rem) / 2.4);
    gap: 1.25rem;
  }

  .news-card:hover {
    transform: translateY(-6px);
  }

  .news-card:hover .news-photo img {
    transform: scale(1.06);
  }

  /* Mosaico asimétrico según la cantidad de categorías activas. */
  .category-mosaic {
    gap: 1.1rem;
    align-items: stretch;
  }

  .category-mosaic > li:first-child,
  .category-mosaic > li:nth-child(even):last-child {
    grid-column: auto;
  }

  .category-mosaic .category-tile,
  .category-mosaic > li:first-child .category-tile,
  .category-mosaic > li:nth-child(3) .category-tile,
  .category-mosaic > li:nth-child(even):last-child .category-tile {
    height: 100%;
    min-height: 13rem;
  }

  .category-mosaic--n1 {
    grid-template-columns: 1fr;
    grid-template-rows: 24rem;
  }

  .category-mosaic--n2 {
    grid-template-columns: 7fr 5fr;
    grid-template-rows: 27rem;
  }

  .category-mosaic--n2 > li:nth-child(2) {
    height: 21rem;
    align-self: end;
  }

  .category-mosaic--n3,
  .category-mosaic--n4,
  .category-mosaic--n5 {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: 13rem 16rem;
  }

  .category-mosaic--n3 > li:first-child,
  .category-mosaic--n4 > li:first-child,
  .category-mosaic--n5 > li:first-child {
    grid-row: 1 / span 2;
  }

  .category-mosaic--n3 > li:nth-child(2),
  .category-mosaic--n3 > li:nth-child(3),
  .category-mosaic--n4 > li:nth-child(2),
  .category-mosaic--n5 > li:nth-child(2) {
    grid-column: 2 / span 2;
  }

  .category-mosaic--n5 {
    grid-template-rows: 13rem 16rem 12rem;
  }

  .category-mosaic--n5 > li:nth-child(5) {
    grid-column: 1 / -1;
  }

  .category-tile-text {
    right: 1.4rem;
    bottom: 1.2rem;
    left: 1.4rem;
  }

  .category-tile-text strong {
    font-size: 1.9rem;
  }

  .home-pro-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
  }

  .home-pro .home-heading h2 {
    font-size: 3rem;
  }

  .gallery-mosaic {
    columns: 3;
    column-gap: 1.1rem;
  }

  .gallery-mosaic > li {
    margin-bottom: 1.1rem;
  }

  .home-closing h2 {
    font-size: 3rem;
  }
}

/* ---------- Escritorio ---------- */

@media (min-width: 64rem) {
  .home-hero h1 {
    font-size: 5rem;
  }

  .home-closing-branch {
    top: auto;
    right: auto;
    bottom: -1rem;
    left: 2%;
    width: 17rem;
    opacity: 0.85;
  }

  .home-board-inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 3rem;
  }

  .news-track {
    grid-auto-columns: calc((100% - 3 * 1.25rem) / 4);
  }

  .category-mosaic--n3,
  .category-mosaic--n4,
  .category-mosaic--n5 {
    grid-template-rows: 15rem 18rem;
  }

  .category-mosaic--n5 {
    grid-template-rows: 15rem 18rem 13rem;
  }
}

/* ---------- Movimiento reducido: todo queda quieto y legible ---------- */

@media (prefers-reduced-motion: reduce) {
  .branch-line {
    stroke-dashoffset: 0;
    animation: none;
  }

  .home * {
    transition: none !important;
  }

  .news-card:hover,
  .news-card:hover .news-photo img,
  .category-tile:hover img,
  .gallery-piece:hover img,
  .color-circle:hover .color-circle-swatch,
  .color-circle:active .color-circle-swatch,
  .news-action:active,
  .home-search-submit:active,
  .carousel-button:active,
  .home-closing-cta:active {
    transform: none;
  }
}

/* ---------- Fotos de fondo de secciones (opcionales, desde el panel) ---------- */

.home-band--photo {
  isolation: isolate;
}

.home-band-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
}

.home-band-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Velo para que el texto siga teniendo buen contraste sobre la foto (el ::before de la banda es su borde orgánico). */
.home-band-photo::after {
  position: absolute;
  inset: 0;
  content: "";
}

.home-band--ink .home-band-photo::after {
  background: linear-gradient(90deg, rgb(19 38 15 / 86%), rgb(19 38 15 / 64%));
}

.home-band--petal .home-band-photo::after {
  background: radial-gradient(ellipse at center, rgb(255 254 252 / 86%) 30%, rgb(248 211 222 / 62%) 100%);
}

.home-band--photo::after {
  opacity: 0.35;
}

/* Pizarra apagada desde el panel: solo queda el aviso de "repetir mi última consulta" si corresponde. */
.home-board--sin-pizarra {
  padding-block: 0;
}

.home-board--sin-pizarra .repeat-banner:not([hidden]) {
  margin-block: 1.5rem;
}
