:root {
  --paper: #EDEFE4;
  --paper-2: #F8F9F3;
  --ink: #22301F;
  --ink-2: #5F6B58;
  --line: #C9D0BB;
  --rose: #A8455F;
  --wash: #E2EAD2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Karla', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: 'Gloock', Georgia, serif;
  font-weight: 400;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.005em;
}

.mono {
  font-family: 'DM Mono', ui-monospace, monospace;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 26px;
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.doorbar {
  background: var(--ink);
  color: var(--paper);
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  letter-spacing: .06em;
}

.doorbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
}

.doorbar span {
  opacity: .85;
}

header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand b {
  font-family: 'Gloock', serif;
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: .01em;
}

.brand small {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  font-size: .9rem;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  border-bottom-color: var(--ink);
}

.nav-wa {
  font-family: 'DM Mono', monospace;
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 2px;
}

.nav-wa:hover {
  background: var(--rose);
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 1rem;
}

@media(max-width:840px) {
  nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    background: var(--paper-2);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 26px 30px;
    transform: translateX(100%);
    transition: transform .28s ease;
  }

  nav.open {
    transform: translateX(0);
  }

  nav a {
    font-size: 1.15rem;
  }

  .burger {
    display: block;
    position: relative;
    z-index: 61;
  }
}

.hero {
  padding: 70px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: center;
}

.tag {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5rem);
  margin: 20px 0 0;
}

.hero h1 i {
  font-style: normal;
  color: var(--rose);
}

.hero .lead {
  max-width: 47ch;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 1.06rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 2px;
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--rose);
  border-color: var(--rose);
}

.btn-line {
  background: transparent;
  color: var(--ink);
}

.btn-line:hover {
  background: var(--wash);
}

.btn svg {
  width: 15px;
  height: 15px;
}

.hero-mark {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-mark::before {
  content: '';
  position: absolute;
  inset: auto;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wash);
  transform: translate(14px, 14px);
  z-index: 0;
}

.hero-mark img {
  position: relative;
  z-index: 1;
  width: 86%;
  max-width: 320px;
}

@media(max-width:840px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    order: -1;
    justify-content: flex-start;
  }

  .hero-mark img {
    max-width: 170px;
    width: 170px;
  }

  .hero-mark::before {
    width: 170px;
  }
}

section {
  padding: 72px 0;
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 44px;
}

.sec-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.sec-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: .92rem;
  max-width: 44ch;
}

.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.paso {
  padding: 30px 26px;
  border-right: 1px solid var(--line);
}

.paso:last-child {
  border-right: 0;
}

.paso .k {
  font-family: 'DM Mono', monospace;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
}

.paso h3 {
  font-size: 1.25rem;
  margin: 12px 0 8px;
}

.paso p {
  margin: 0;
  color: var(--ink-2);
  font-size: .93rem;
}

@media(max-width:760px) {
  .pasos {
    grid-template-columns: 1fr;
  }

  .paso {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .paso:last-child {
    border-bottom: 0;
  }
}

.catalogo-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 44px;
  align-items: start;
}

.lateral {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 6px;
}

.cats h4 {
  font-family: 'DM Mono', monospace;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 14px;
  font-weight: 500;
}

.cats button {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  font-size: .98rem;
  color: var(--ink-2);
  text-align: left;
}

.cats button .n {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  opacity: .6;
}

.cats button:hover {
  color: var(--ink);
}

.cats button.on {
  color: var(--ink);
  font-weight: 600;
}

.cats button.on .n {
  color: var(--rose);
  opacity: 1;
}

.cats .subs {
  display: flex;
  flex-direction: column;
  margin: 2px 0 4px 2px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.cats .subs button {
  padding: 8px 0;
  font-size: .9rem;
  border-bottom: 0;
}

.subcats,
.btn-filtros,
.filtros-cab,
.filtros-pie,
.filtros-velo {
  display: none;
}

.faceta {
  border: 0;
  margin: 30px 0 0;
  padding: 0;
  min-width: 0;
}

.faceta legend {
  padding: 0;
  margin-bottom: 8px;
  font-family: 'DM Mono', monospace;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}

.opcion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: .95rem;
  color: var(--ink-2);
}

.opcion:hover {
  color: var(--ink);
}

.opcion input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ink);
  cursor: inherit;
}

.opcion .txt {
  flex: 1;
}

.opcion .n {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  opacity: .6;
}

.opcion:has(input:checked) {
  color: var(--ink);
  font-weight: 600;
}

.opcion:has(input:checked) .n {
  color: var(--rose);
  opacity: 1;
}

.opcion.cero {
  opacity: .4;
  cursor: default;
}

.opcion.cero:hover {
  color: var(--ink-2);
}

.muestra {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(34, 48, 31, .25);
}

.m-rojo { background: #C4302B; }
.m-rosado { background: #F3A9BC; }
.m-fucsia { background: #D4246F; }
.m-naranja { background: #EE8A3C; }
.m-amarillo { background: #F2C94C; }
.m-blanco { background: #FFFFFF; }
.m-lila-y-morado { background: #9467B8; }
.m-azul { background: #3F6FC6; }
.m-vino { background: #7A1F3D; }

.activos:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.activos .total {
  margin-right: 4px;
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 10px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Karla', system-ui, sans-serif;
  font-size: .88rem;
  color: var(--ink);
}

.chip:hover {
  background: var(--wash);
}

.chip span {
  font-size: .7rem;
}

.limpiar {
  background: none;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.limpiar:hover {
  color: var(--rose);
}

.vacio-msg .btn {
  margin-top: 12px;
  cursor: pointer;
}

.vacio-msg p {
  margin: 0;
}

.productos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-content: start;
}

.controles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.buscar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 260px;
}

.buscar label,
.orden label {
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.buscar input {
  flex: 1;
  min-width: 0;
  font-family: 'Karla', system-ui, sans-serif;
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 12px;
  min-height: 40px;
}

.buscar input:hover {
  border-color: var(--ink);
}

.buscar input::placeholder {
  color: var(--ink-2);
  opacity: .7;
}

.orden {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.orden select {
  font-family: 'Karla', system-ui, sans-serif;
  font-size: .92rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 12px;
  min-height: 40px;
  cursor: pointer;
}

.orden select:hover {
  border-color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 26px;
}

@media(max-width:1040px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:860px) {
  .catalogo-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .lateral {
    display: contents;
  }

  .cats .subs {
    display: none;
  }

  .subcats:not([hidden]) {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .subcats::-webkit-scrollbar {
    display: none;
  }

  .subcats button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    min-height: 38px;
    padding: 7px 12px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 2px;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Karla', system-ui, sans-serif;
    font-size: .9rem;
    color: var(--ink-2);
  }

  .subcats button .n {
    font-family: 'DM Mono', monospace;
    font-size: .68rem;
    opacity: .7;
  }

  .subcats button.on {
    background: var(--wash);
    border-color: var(--ink);
    color: var(--ink);
    font-weight: 600;
  }

  .btn-filtros {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 2px;
    cursor: pointer;
    color: var(--ink);
    font-family: 'DM Mono', monospace;
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .btn-filtros:hover {
    border-color: var(--ink);
  }

  .btn-filtros svg {
    width: 17px;
    height: 17px;
  }

  .filtros {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    width: min(400px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -10px 0 30px rgba(34, 48, 31, .14);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
  }

  .filtros.on {
    transform: none;
    visibility: visible;
    transition: transform .28s ease, visibility 0s;
  }

  .filtros-velo {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 89;
    background: rgba(34, 48, 31, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
  }

  .filtros-velo.on {
    opacity: 1;
    pointer-events: auto;
  }

  body.filtros-abierto {
    overflow: hidden;
  }

  .filtros-cab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(18px + env(safe-area-inset-top)) 18px 16px;
    border-bottom: 1px solid var(--line);
  }

  .filtros-cab h3 {
    font-size: 1.7rem;
  }

  .filtros-cerrar {
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 2px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--ink);
  }

  .filtros-cuerpo {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 18px 20px;
  }

  .faceta {
    margin-top: 22px;
  }

  .opcion {
    min-height: 46px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .opcion input {
    width: 18px;
    height: 18px;
  }

  .filtros-pie {
    display: flex;
    gap: 10px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--paper-2);
  }

  .filtros-pie .btn {
    justify-content: center;
    min-height: 48px;
    cursor: pointer;
  }

  .filtros-pie .btn-line {
    flex: 0 0 auto;
  }

  .filtros-pie .btn-solid {
    flex: 1;
  }

  #cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .cats h4 {
    display: none;
  }

  .cats button {
    width: auto;
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 8px 14px;
  }

  .cats button.on {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }

  .cats button .n {
    display: none;
  }
}

@media(max-width:520px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.item {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
  position: relative;
}

.item.in {
  opacity: 1;
  transform: none;
}

/* La flor que llegó por un enlace de WhatsApp (/flor/DL-014) */
.item.elegida {
  outline: 3px solid var(--rose);
  outline-offset: 8px;
}

.foto {
  aspect-ratio: 4/5;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foto .vacia {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: repeating-linear-gradient(45deg, var(--paper-2) 0 9px, #F2F4EB 9px 18px);
  color: var(--ink-2);
  font-family: 'DM Mono', monospace;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.foto .vacia svg {
  width: 46px;
  height: 46px;
  opacity: .4;
}

.item .cod {
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 14px;
}

.item h3 {
  font-size: 1.32rem;
  margin: 7px 0 0;
}

.item .desc {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: .9rem;
}

.leader {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.leader .dots {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}

.leader .precio {
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
}

.leader .precio.consultar {
  font-size: .8rem;
  font-weight: 400;
  color: var(--ink-2);
}

.accion {
  display: flex;
  margin-top: 12px;
}

.agregar,
.accion .cantidad {
  flex: 1;
  min-width: 0;
}

.accion .cantidad .num {
  flex: 1;
}

.agregar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  text-align: center;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.agregar:hover {
  background: var(--rose);
  border-color: var(--rose);
}

.agregar svg {
  width: 16px;
  height: 16px;
}

.pedir-solo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pedir-solo:hover {
  background: var(--wash);
}

.pedir-solo svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.cantidad {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--paper-2);
  min-height: 42px;
}

.cantidad button {
  min-width: 42px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 1.05rem;
  color: var(--ink);
}

.cantidad button:hover:not([disabled]) {
  background: var(--wash);
}

.cantidad button[disabled] {
  opacity: .35;
  cursor: default;
}

.cantidad .num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 0 6px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: 'DM Mono', monospace;
  font-size: .8rem;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.cantidad .num .largo {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-left: .5ch;
}

.ver-mas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.ver-mas[hidden] {
  display: none;
}

.ver-mas p {
  margin: 0;
  color: var(--ink-2);
  font-family: 'DM Mono', monospace;
  font-size: .78rem;
  letter-spacing: .06em;
}

.ver-mas .btn {
  min-width: 220px;
  justify-content: center;
  cursor: pointer;
}

.vacio-msg {
  grid-column: 1/-1;
  color: var(--ink-2);
  font-family: 'DM Mono', monospace;
  font-size: .85rem;
}

.nosotros {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nosotros .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.nosotros h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-bottom: 18px;
}

.nosotros p {
  color: var(--ink-2);
  max-width: 52ch;
}

.datos {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.datos li {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: .94rem;
}

.datos b {
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  min-width: 96px;
  padding-top: 3px;
  font-weight: 500;
}

.mapa {
  border: 1px solid var(--line);
  min-height: 330px;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 330px;
  border: 0;
  filter: grayscale(.55) sepia(.12) contrast(.95);
}

@media(max-width:840px) {
  .nosotros .wrap {
    grid-template-columns: 1fr;
  }
}

footer {
  padding: 60px 0 34px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.foot-top h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.foot-top p {
  color: var(--ink-2);
  font-size: .94rem;
  max-width: 36ch;
  margin: 0 0 18px;
}

.foot-col h5 {
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 12px;
  font-weight: 500;
}

.foot-col a,
.foot-col span {
  display: block;
  text-decoration: none;
  font-size: .94rem;
  margin-bottom: 7px;
  color: var(--ink);
}

.foot-col a:hover {
  color: var(--rose);
}

.foot-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-family: 'DM Mono', monospace;
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--ink-2);
}

@media(max-width:760px) {
  .foot-top {
    grid-template-columns: 1fr;
  }
}

.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 18px;
  border-radius: 2px;
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 6px 22px rgba(34, 48, 31, .22);
  border: 1px solid rgba(237, 239, 228, .35);
}

.fab:hover {
  background: var(--rose);
}

.fab svg {
  width: 17px;
  height: 17px;
}

@media(max-width:520px) {
  .fab span {
    display: none;
  }

  .fab {
    padding: 14px;
    border-radius: 50%;
  }

  .fab svg {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .item {
    transition: none;
  }
}

.sin-arriba {
  padding-top: 0;
}

.acceso main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.acceso-caja {
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 32px 28px;
}

.acceso-caja img {
  margin: 0 auto 4px;
}

.acceso-caja h1 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 8px;
}

.acceso-caja label {
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.acceso-caja input[type=password] {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 2px;
  font: inherit;
  color: var(--ink);
}

.acceso-caja .btn {
  justify-content: center;
  cursor: pointer;
  margin-top: 6px;
}

.acceso-error {
  margin: 0;
  color: var(--rose);
  font-size: .85rem;
}

.acceso-error[hidden] {
  display: none;
}

html {
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

.hero-mark img {
  height: auto;
}

.nav-velo {
  display: none;
}

@media(max-width:840px) {
  nav {
    z-index: 2;
    padding: calc(84px + env(safe-area-inset-top)) 26px 30px;
    gap: 6px;
    overflow-y: auto;
    visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
    box-shadow: -10px 0 30px rgba(34, 48, 31, .12);
  }

  nav.open {
    visibility: visible;
    transition: transform .28s ease, visibility 0s;
  }

  nav a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  nav .nav-wa {
    margin-top: 14px;
    text-align: center;
    padding: 14px 16px;
    border-bottom: 0;
  }

  .burger {
    z-index: 3;
    min-width: 44px;
    min-height: 44px;
  }

  .nav-velo {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(34, 48, 31, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
  }

  .nav-velo.on {
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-abierto {
    overflow: hidden;
  }
}

@media(max-width:600px) {
  html {
    scroll-padding-top: 132px;
  }

  body {
    font-size: 15px;
  }

  .wrap {
    padding: 0 18px;
  }

  .doorbar .tels {
    display: none;
  }

  .doorbar .wrap {
    justify-content: center;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .doorbar {
    font-size: .66rem;
    letter-spacing: .03em;
  }

  header .wrap {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand b {
    font-size: 1.25rem;
  }

  .brand small {
    font-size: .55rem;
  }

  .hero {
    padding: 34px 0 40px;
  }

  .hero-mark {
    display: none;
  }

  .hero .tag {
    font-size: .64rem;
    letter-spacing: .12em;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 2.9rem);
    margin-top: 14px;
  }

  .hero .lead {
    font-size: 1rem;
    margin-top: 16px;
  }

  .hero-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .hero-links .btn {
    justify-content: center;
    min-height: 48px;
  }

  .hero-links .btn-solid {
    order: -1;
  }

  section {
    padding: 44px 0;
  }

  .sec-head {
    margin-bottom: 20px;
    padding-bottom: 12px;
    gap: 8px;
  }

  .sec-head h2 {
    font-size: 1.9rem;
  }

  .sec-head p {
    font-size: .88rem;
  }

  .catalogo-layout {
    gap: 16px;
  }

  .cats {
    position: sticky;
    top: 65px;
    z-index: 40;
    margin: 0 -18px;
    padding: 10px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  #cats {
    padding-bottom: 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  #cats::-webkit-scrollbar {
    display: none;
  }

  .cats button {
    scroll-snap-align: start;
    min-height: 40px;
    padding: 8px 14px;
    font-size: .92rem;
  }

  .controles {
    gap: 10px;
  }

  .buscar {
    flex: 1 1 100%;
  }

  .buscar input {
    font-size: 16px;
    min-height: 44px;
  }

  .orden {
    flex: 1 1 0;
    min-width: 0;
    gap: 8px;
  }

  .orden label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .orden select {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    min-height: 44px;
  }

  .btn-filtros {
    min-height: 44px;
    padding: 8px 12px;
  }

  .productos {
    gap: 14px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 12px;
  }

  .item .cod {
    display: none;
  }

  .item h3 {
    font-size: 1.05rem;
    margin-top: 10px;
    line-height: 1.15;
  }

  .item .desc {
    font-size: .8rem;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .leader {
    margin-top: auto;
    padding-top: 8px;
  }

  .leader .precio {
    font-size: .9rem;
  }

  .leader .precio.consultar {
    font-size: .74rem;
  }

  .leader {
    margin-bottom: 10px;
  }

  .accion {
    margin-top: 0;
  }

  .agregar,
  .pedir-solo {
    gap: 6px;
    padding: 8px 6px;
    font-size: .68rem;
    letter-spacing: .04em;
    line-height: 1.25;
  }

  .agregar:active {
    background: var(--rose);
    border-color: var(--rose);
  }

  .cantidad .num .largo {
    display: none;
  }

  .paso {
    padding: 20px 18px;
  }

  .nosotros .wrap {
    gap: 28px;
  }

  .nosotros h2 {
    font-size: 1.8rem;
  }

  .datos li {
    flex-direction: column;
    gap: 2px;
  }

  .datos b {
    min-width: 0;
  }

  .mapa,
  .mapa iframe {
    min-height: 240px;
  }

  footer {
    padding: 44px 0 calc(96px + env(safe-area-inset-bottom));
  }

  .foot-top {
    gap: 26px;
  }

  .foot-top .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .foot-col a {
    padding: 6px 0;
    margin-bottom: 2px;
  }

  .foot-end {
    justify-content: center;
    text-align: center;
  }

  .fab {
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media(max-width:380px) {
  .agregar svg {
    display: none;
  }
}

@media(max-width:340px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Destacados de temporada ---------- */

/* Fondo oscuro para que resalte: se invierten los colores y las tarjetas se adaptan solas. */
.destacados {
  --ink: #F3F5EC;
  --ink-2: #C3CCB6;
  --line: rgba(237, 239, 228, .24);
  --paper: #22301F;
  --paper-2: #2B3A27;
  --wash: #36482F;
  background: #22301F;
  color: var(--ink);
}

.destacados[hidden],
nav a[hidden] {
  display: none;
}

.destacados .tag {
  color: #E9AFBE;
}

.destacados .sec-head {
  align-items: flex-end;
}

.destacados .sec-head h2 {
  margin-top: 10px;
}

.destacados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 34px 26px;
}

.sello {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  background: var(--rose);
  color: #fff;
  border-radius: 2px;
  font-family: 'DM Mono', monospace;
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-destacados {
  color: var(--rose);
  font-weight: 600;
}

@media(max-width:600px) {
  .destacados-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 64%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 18px;
    margin: 0 -18px;
    padding: 0 18px 8px;
    scrollbar-width: none;
  }

  .destacados-grid::-webkit-scrollbar {
    display: none;
  }

  .destacados-grid .item {
    scroll-snap-align: start;
  }
}

/* ---------- Carrito ---------- */

.solo-lector {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

header nav {
  margin-left: auto;
}

.header-acciones {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-carrito {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.btn-carrito:hover {
  border-color: var(--ink);
}

.btn-carrito svg {
  width: 18px;
  height: 18px;
}

.cuenta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--rose);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.cuenta[hidden],
.fab[hidden] {
  display: none;
}

.fab-carrito {
  border: 0;
  cursor: pointer;
}

.fab-carrito .cuenta {
  background: var(--paper);
  color: var(--ink);
}

.fab-carrito:hover .cuenta {
  color: var(--rose);
}

.carrito-velo {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(34, 48, 31, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.carrito-velo.on {
  opacity: 1;
  pointer-events: auto;
}

.carrito {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 30px rgba(34, 48, 31, .14);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
}

.carrito.on {
  transform: none;
  visibility: visible;
  transition: transform .28s ease, visibility 0s;
}

body.carrito-abierto {
  overflow: hidden;
}

.carrito-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(18px + env(safe-area-inset-top)) 22px 16px;
  border-bottom: 1px solid var(--line);
}

.carrito-cab h2 {
  font-size: 1.7rem;
}

.carrito-cerrar {
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
}

.carrito-cerrar:hover {
  border-color: var(--ink);
}

.carrito-cuerpo {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 22px 22px;
}

.carrito-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 0 20px;
  text-align: center;
  color: var(--ink-2);
}

.carrito-vacio svg {
  width: 46px;
  height: 46px;
  opacity: .5;
}

.carrito-vacio p {
  margin: 0;
}

.carrito-vacio[hidden],
.carrito-datos[hidden],
.carrito-pie[hidden],
.c-campo[hidden],
.c-error[hidden] {
  display: none;
}

.carrito-lista {
  list-style: none;
  margin: 0;
  padding: 0;
}

.linea {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.linea-foto {
  width: 64px;
  aspect-ratio: 4/5;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
}

.linea-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linea-foto svg {
  width: 28px;
  height: 28px;
  opacity: .5;
}

.linea-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.linea-info b {
  font-family: 'Gloock', Georgia, serif;
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.15;
}

.linea-unidad {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  color: var(--ink-2);
}

.linea-info .cantidad {
  margin-top: 4px;
  min-height: 36px;
}

.linea-info .cantidad button {
  min-width: 36px;
}

.linea-lado {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.linea-total {
  font-family: 'DM Mono', monospace;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}

.quitar {
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quitar:hover {
  color: var(--rose);
}

.carrito-datos {
  margin-top: 24px;
}

.carrito-datos h3 {
  font-size: 1.25rem;
}

.carrito-datos .sub {
  margin: 4px 0 16px;
  color: var(--ink-2);
  font-size: .86rem;
}

.c-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.c-campo label,
.c-entrega legend {
  font-family: 'DM Mono', monospace;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.c-campo input,
.c-campo textarea {
  width: 100%;
  font-family: 'Karla', system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 12px;
  min-height: 44px;
  resize: vertical;
}

.c-campo input:hover,
.c-campo textarea:hover {
  border-color: var(--ink);
}

.c-entrega {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c-entrega legend {
  padding: 0;
  margin-bottom: 6px;
}

.c-entrega label {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  font-size: .94rem;
}

.c-entrega label:has(input:checked) {
  border-color: var(--ink);
  background: var(--wash);
}

.c-entrega input {
  accent-color: var(--ink);
  margin: 0;
}

.carrito-pie {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.carrito-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'DM Mono', monospace;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.carrito-total b {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}

.carrito-pie .nota {
  margin: 0;
  font-size: .8rem;
  color: var(--ink-2);
}

.c-error {
  margin: 0;
  color: var(--rose);
  font-size: .86rem;
}

.carrito-pie .btn {
  justify-content: center;
  min-height: 48px;
}

.carrito-vaciar {
  align-self: center;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.carrito-vaciar:hover {
  color: var(--rose);
}

@media(max-width:600px) {
  .btn-carrito {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 8px 10px;
  }

  .btn-carrito .txt {
    display: none;
  }

  .fab.fab-carrito {
    padding: 14px;
  }

  .fab-carrito .cuenta {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--rose);
    color: #fff;
  }

  .carrito-cab {
    padding-left: 18px;
    padding-right: 18px;
  }

  .carrito-cuerpo {
    padding: 0 18px 18px;
  }

  .carrito-pie {
    padding-left: 18px;
    padding-right: 18px;
  }

  .linea {
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
  }

  .linea-foto {
    width: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .filtros,
  .filtros.on,
  .filtros-velo,
  .carrito,
  .carrito.on,
  .carrito-velo {
    transition: none;
  }
}

/* Lema bajo "Un negocio de familia" */
.nosotros .lema-casa {
  font-family: 'Gloock', serif;
  font-size: 1.35rem;
  color: var(--rose);
  margin: 6px 0 0;
}

/* Contacto: varios enlaces en una fila de datos */
.datos a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.datos a:hover {
  color: var(--rose);
  border-bottom-color: var(--rose);
}

.wa-lista {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-lista a {
  align-self: flex-start;
}

/* Instagram en el menú: solo el ícono en PC; ícono y nombre en el menú del celular */
.nav-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-ig svg {
  width: 20px;
  height: 20px;
}

@media(min-width:841px) {
  .nav-ig {
    border-bottom: 0 !important;
    padding: 6px;
    margin: 0 -14px 0 -6px;
  }

  .nav-ig span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav-ig:hover {
    color: var(--rose);
  }
}

/* Ventana para elegir a qué WhatsApp escribir */
.elegir-wa {
  width: min(420px, calc(100vw - 32px));
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(34, 48, 31, .25);
}

.elegir-wa::backdrop {
  background: rgba(34, 48, 31, .45);
}

.elegir-wa-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.elegir-wa h2 {
  font-size: 1.6rem;
  margin: 0;
}

.elegir-wa p {
  color: var(--ink-2);
  font-size: .94rem;
  margin: 6px 0 18px;
}

.opcion-wa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 12px 16px;
  margin-top: 10px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  background: var(--paper);
}

.opcion-wa b {
  font-weight: 600;
  font-size: 1.02rem;
}

.opcion-wa span {
  font-family: 'DM Mono', monospace;
  font-size: .8rem;
  color: var(--ink-2);
}

.opcion-wa:hover,
.opcion-wa:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.opcion-wa:hover span,
.opcion-wa:focus-visible span {
  color: var(--paper);
}

/* Enlaces legales del pie */
.foot-legal a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.foot-legal a:hover,
.carrito-pie .nota a:hover {
  color: var(--rose);
}

.carrito-pie .nota a {
  color: inherit;
}

/* Páginas sencillas: privacidad, condiciones y 404 */
.pagina-simple header .btn {
  padding: 10px 16px;
}

.pagina-simple main {
  padding-top: 48px;
  padding-bottom: 64px;
  min-height: 60vh;
}

.pagina-simple footer {
  padding: 0 0 34px;
}

.legal {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 6px;
}

.legal-fecha {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--ink-2);
  margin: 0 0 28px;
}

.legal h2 {
  font-size: 1.45rem;
  margin: 34px 0 10px;
}

.legal p,
.legal li {
  color: var(--ink-2);
  max-width: 68ch;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--ink);
}

.legal a:hover {
  color: var(--rose);
}

.error-404 {
  text-align: center;
  padding-top: 90px !important;
}

.error-404 h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin: 14px 0 12px;
}

.error-404 p {
  color: var(--ink-2);
}

.error-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

@media(max-width:600px) {
  .pagina-simple header .btn {
    padding: 8px 12px;
    font-size: .7rem;
  }

  .pagina-simple .brand small {
    display: none;
  }
}

/* Menú de flores sueltas: una lista como de carta (flor → colores) y "Tu selección" al lado.
   Las flores van al WhatsApp de flores cortadas. */
.sueltas {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sueltas[hidden] {
  display: none;
}

.sueltas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 64px;
  align-items: start;
}

.sueltas-guia {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.sueltas-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sueltas-menu > li {
  border-bottom: 1px solid var(--line);
}

/* Cada flor: icono, nombre, puntos y cuántos colores (o cuántos elegidos) */
.suelta-fila {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 10px 2px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: 'Karla', system-ui, sans-serif;
  color: var(--ink);
  text-align: left;
}

.suelta-fila .ico-flor {
  width: 26px;
  height: 26px;
}

.suelta-fila .nombre {
  font-family: 'Gloock', Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.15;
}

.suelta-fila .dots {
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted var(--line);
  transform: translateY(5px);
}

.suelta-fila .detalle {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--ink-2);
  white-space: nowrap;
}

.suelta-fila .elegidos {
  color: var(--rose);
  font-weight: 500;
}

.suelta-fila .flecha {
  width: 8px;
  height: 8px;
  margin: 0 4px 4px 2px;
  border-right: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.suelta-fila:hover .nombre,
.sueltas-menu > li.abierta .suelta-fila .nombre {
  color: var(--rose);
}

.suelta-fila[aria-expanded="true"] .flecha {
  transform: translate(0, 3px) rotate(-135deg);
}

/* Colores de la flor abierta: muestras redondas con su nombre debajo */
.suelta-panel {
  padding: 2px 0 22px 40px;
}

.suelta-panel.nueva {
  animation: sueltas-aparecer .25s ease;
}

@keyframes sueltas-aparecer {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.suelta-precio {
  margin: 0 0 14px;
  font-size: .86rem;
  color: var(--ink-2);
}

.muestras {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 6px;
}

.suelta-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
  padding: 4px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: 'Karla', system-ui, sans-serif;
  color: var(--ink-2);
  text-align: center;
}

.suelta-color .disco {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(34, 48, 31, .2);
  box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 4px transparent;
  transition: box-shadow .15s ease;
}

.suelta-color:hover .disco {
  box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 4px var(--line);
}

.suelta-color.on .disco {
  box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 5px var(--ink);
}

.suelta-color .check {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: .62rem;
  line-height: 1;
}

.suelta-color .txt {
  font-size: .84rem;
  line-height: 1.2;
}

.suelta-color.on .txt {
  color: var(--ink);
  font-weight: 600;
}

.suelta-color .cant {
  min-height: 1em;
  margin-top: -3px;
  font-family: 'DM Mono', monospace;
  font-size: .66rem;
  color: var(--rose);
}

.m-verde { background: #6E9B4A; }
.m-surtido { background: conic-gradient(#C4302B, #EE8A3C, #F2C94C, #6E9B4A, #3F6FC6, #9467B8, #D4246F, #C4302B); }

/* Tu selección: sin caja, con una raya arriba como el menú */
.sueltas-seleccion {
  position: sticky;
  top: 96px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.sueltas-seleccion h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  margin: 6px 0 12px;
}

.sueltas-vacia {
  margin: 0;
  color: var(--ink-2);
  font-size: .92rem;
}

.sueltas-vacia[hidden],
.sueltas-pie[hidden] {
  display: none;
}

.sueltas-lista {
  list-style: none;
  margin: 0;
  padding: 0;
}

.suelta-linea {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.suelta-linea .ico-flor {
  width: 26px;
  height: 26px;
}

.suelta-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.suelta-info span {
  font-size: .84rem;
  color: var(--ink-2);
}

.suelta-info .muestra {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  vertical-align: -1px;
}

.suelta-linea .cantidad {
  min-height: 38px;
}

.suelta-linea .cantidad button {
  min-width: 34px;
}

.cantidad input {
  width: 46px;
  padding: 0 4px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  text-align: center;
  color: var(--ink);
  -moz-appearance: textfield;
  appearance: textfield;
}

.cantidad input::-webkit-outer-spin-button,
.cantidad input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.suelta-linea .quitar {
  padding: 6px;
  text-decoration: none;
  font-size: .8rem;
}

.sueltas-pie {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.sueltas-pie .carrito-total {
  gap: 12px;
}

.sueltas-pie .carrito-total b {
  font-size: 1rem;
  text-align: right;
}

.sueltas-pie .btn {
  justify-content: center;
  min-height: 48px;
}

.sueltas-pie .limpiar {
  align-self: center;
}

/* Iconos de las flores: la flor en rosa y el tallo en verde */
.ico-flor {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-flor .b {
  stroke: var(--rose);
}

.ico-flor .t {
  stroke: #5F7A4E;
}

@media(max-width:900px) {
  .sueltas-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sueltas-seleccion {
    position: static;
  }
}

@media(max-width:600px) {
  .suelta-fila {
    gap: 12px;
    min-height: 54px;
  }

  .suelta-fila .nombre {
    font-size: 1.1rem;
  }

  .suelta-panel {
    padding-left: 0;
  }

  .muestras {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 4px;
  }

  .suelta-color {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .suelta-panel.nueva {
    animation: none;
  }

  .suelta-fila .flecha {
    transition: none;
  }
}

/* Con "Flores sueltas" el menú de arriba tiene más enlaces: en pantallas anchas no se parten
   en dos líneas; en las más estrechas (antes del menú ☰) pueden partirse para que quepan. */
@media(min-width:1001px) {
  nav a {
    white-space: nowrap;
  }
}

@media(min-width:841px) and (max-width:1120px) {
  nav {
    gap: 18px;
  }

  nav a {
    font-size: .86rem;
  }
}
