:root {
  --verde-oscuro: #123525;
  --verde: #1d5638;
  --verde-claro: #78a849;
  --naranja: #ef7d24;
  --amarillo: #f7d66f;
  --crema: #fbf8ef;
  --blanco: #fffefa;
  --tinta: #172119;
  --gris: #69736b;
  --borde: rgba(28, 70, 46, .12);
  --sombra-suave: 0 18px 50px rgba(26, 58, 39, .09);
  --sombra-alta: 0 28px 80px rgba(16, 47, 30, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 9% 9%, rgba(247, 214, 111, .21), transparent 22rem), var(--crema);
  color: var(--tinta);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button, a { color: inherit; }
a { text-decoration: none; }
button { -webkit-tap-highlight-color: transparent; }

.solo-lectores { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.salto-contenido { position: fixed; z-index: 999; left: 14px; top: -70px; background: #fff; padding: 12px 18px; border-radius: 12px; }
.salto-contenido:focus { top: 14px; }

.aviso-superior {
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 5px 4%;
  background: linear-gradient(90deg, #123525, #286244 55%, #123525);
  color: #fff8dc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-align: center;
}

.cabecera {
  width: min(1480px, calc(100% - 32px));
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 14px auto 0;
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 24px;
  background: rgba(255, 254, 250, .86);
  box-shadow: 0 14px 50px rgba(20, 53, 35, .1);
  backdrop-filter: blur(18px) saturate(135%);
  position: sticky;
  top: 12px;
  z-index: 30;
  transition: box-shadow .3s ease, background .3s ease;
}
.cabecera.cabecera-compacta { background: rgba(255, 254, 250, .95); box-shadow: 0 10px 35px rgba(20, 53, 35, .15); }
.marca { width: 128px; height: 66px; flex: 0 0 auto; overflow: hidden; display: block; border-radius: 17px; }
.marca img { width: 138px; transform: translate(-5px, -29px); }

.buscador-cabecera {
  flex: 1;
  max-width: 540px;
  height: 50px;
  border: 1px solid rgba(29, 86, 56, .14);
  border-radius: 999px;
  display: flex;
  background: rgba(245, 246, 238, .86);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.buscador-cabecera:focus-within { border-color: rgba(239, 125, 36, .65); background: #fff; box-shadow: 0 0 0 5px rgba(239, 125, 36, .1); }
.buscador-cabecera input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 20px; }
.buscador-cabecera button { width: 40px; margin: 5px; border: 0; border-radius: 50%; background: var(--verde); color: #fff; font-size: 21px; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.buscador-cabecera button:hover { transform: rotate(-8deg) scale(1.05); background: var(--naranja); }
.cabecera nav { display: flex; gap: 21px; font-size: 13px; font-weight: 650; }
.cabecera nav a { position: relative; padding: 8px 0; }
.cabecera nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; border-radius: 2px; background: var(--naranja); transition: right .24s ease; }
.cabecera nav a:hover::after { right: 0; }

.boton-carrito {
  flex: 0 0 auto;
  border: 0;
  background: linear-gradient(135deg, #225e3e, #123525);
  color: #fff;
  padding: 12px 15px 12px 19px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(22, 73, 45, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.boton-carrito:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(22, 73, 45, .26); }
.boton-carrito span { display: inline-grid; place-items: center; margin-left: 7px; padding: 0 6px; background: var(--amarillo); color: var(--tinta); min-width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 800; }

.portada {
  width: min(1480px, calc(100% - 32px));
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  margin: 18px auto 0;
  padding: 76px clamp(30px, 6vw, 90px);
  overflow: hidden;
  border-radius: 42px;
  position: relative;
  isolation: isolate;
  color: #fff;
  background: radial-gradient(circle at 83% 34%, rgba(247, 214, 111, .33), transparent 18rem), radial-gradient(circle at 70% 100%, rgba(239, 125, 36, .3), transparent 25rem), linear-gradient(125deg, #102e20 5%, #1c5337 58%, #123a28 100%);
  box-shadow: var(--sombra-alta);
}
.portada::before, .portada::after { content: ""; position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; animation: flotar-forma 8s ease-in-out infinite; }
.portada::before { width: 470px; height: 470px; right: -125px; top: -180px; }
.portada::after { width: 220px; height: 220px; right: 42%; bottom: -130px; animation-delay: -3s; }
.portada-contenido { align-self: center; max-width: 680px; position: relative; z-index: 2; animation: aparecer-arriba .8s both; }
.etiqueta { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 2.2px; color: var(--verde-claro); font-weight: 800; }
.portada .etiqueta { padding: 8px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; background: rgba(255,255,255,.08); color: #f9dc7e; }
.portada h1 { max-width: 760px; margin: 22px 0 26px; font-size: clamp(54px, 6.1vw, 94px); line-height: .94; letter-spacing: clamp(-5px, -.06em, -2px); text-wrap: balance; }
.portada h1 em { color: var(--amarillo); font-style: normal; }
.portada-contenido > p { max-width: 600px; margin: 0; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.75; }
.acciones-portada { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }

.boton { min-height: 50px; border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 750; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.boton:hover { transform: translateY(-2px); }
.principal { background: linear-gradient(135deg, var(--naranja), #f5a03d); color: #fff; box-shadow: 0 13px 28px rgba(239, 125, 36, .28); }
.secundario { border: 1px solid var(--borde); background: rgba(255,255,255,.9); }
.portada .secundario { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(7px); }
.claro { background: #fff8db; color: var(--verde); }
.ancho { width: 100%; }
.portada ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 34px 0 0; }
.portada li { padding: 8px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.78); font-size: 11px; }
.portada li::before { content: "✓"; color: var(--amarillo); margin-right: 7px; font-weight: 900; }

.portada-grafica { min-height: 490px; display: grid; place-items: center; position: relative; isolation: isolate; animation: aparecer-escala 1s .12s both; }
.portada-grafica::before, .portada-grafica::after { content: ""; position: absolute; width: 78px; aspect-ratio: 1; border-radius: 28px 55% 32px 55%; background: linear-gradient(145deg, rgba(120,168,73,.9), rgba(34,94,62,.5)); transform: rotate(24deg); animation: hoja-volando 6s ease-in-out infinite; }
.portada-grafica::before { left: 4%; top: 13%; }
.portada-grafica::after { right: 1%; bottom: 15%; width: 54px; animation-delay: -2.4s; }
.portada-grafica .resplandor { position: absolute; width: min(500px, 86%); aspect-ratio: 1; border-radius: 44% 56% 62% 38% / 43% 35% 65% 57%; background: radial-gradient(circle at 42% 38%, rgba(255,255,255,.75), transparent 7%), radial-gradient(circle, #f9df87 0, #edb843 35%, rgba(239,125,36,.37) 57%, transparent 70%); animation: respirar 5s ease-in-out infinite; }
.portada-grafica img { position: relative; z-index: 2; width: min(470px, 86%); border-radius: 42% 58% 48% 52% / 50% 44% 56% 50%; filter: drop-shadow(0 28px 30px rgba(23, 48, 29, .27)); transform: rotate(-1.5deg); }
.portada-grafica span { position: absolute; z-index: 3; right: 8%; bottom: 10%; padding: 11px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 12px 28px rgba(13,43,26,.2); color: var(--verde-oscuro); font-size: 9px; font-weight: 850; letter-spacing: 2px; animation: flotar-etiqueta 4s ease-in-out infinite; }

.como-comprar { width: min(1240px, calc(100% - 64px)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: -46px auto 0; padding: 12px; border: 1px solid rgba(255,255,255,.75); border-radius: 30px; background: rgba(255,255,255,.76); box-shadow: var(--sombra-suave); backdrop-filter: blur(16px); position: relative; z-index: 5; }
.como-comprar > div { min-height: 126px; padding: 26px; display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 15px; border-radius: 21px; transition: transform .25s ease, background .25s ease; }
.como-comprar > div:hover { transform: translateY(-5px); background: #fff; }
.como-comprar span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; background: #fff3d1; color: var(--naranja); font-weight: 900; }
.como-comprar strong { font-size: 16px; }
.como-comprar p { margin: 4px 0 0; color: var(--gris); font-size: 12px; }

.seccion-catalogo { width: min(1480px, 100%); margin: 0 auto; padding: 104px clamp(22px, 5vw, 76px) 80px; position: relative; }
.seccion-catalogo::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; left: -260px; top: 160px; border-radius: 50%; background: rgba(120,168,73,.08); }
.encabezado-seccion { display: flex; justify-content: space-between; align-items: end; gap: 25px; }
.encabezado-seccion h2, .bloque-ofertas h2, .nosotros h2 { margin: 10px 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: -2.4px; text-wrap: balance; }
.encabezado-seccion p { margin: 0 0 10px; color: var(--gris); }
.categorias { display: flex; gap: 8px; overflow-x: auto; padding: 26px 3px 22px; scrollbar-width: thin; }
.categorias button { flex: 0 0 auto; border: 1px solid var(--borde); background: rgba(255,255,255,.78); padding: 11px 16px; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 14px rgba(32,70,45,.035); transition: transform .2s ease, color .2s ease, background .2s ease; }
.categorias button:hover { transform: translateY(-2px); border-color: rgba(29,86,56,.28); }
.categorias button.activa { border-color: var(--verde); background: var(--verde); color: #fff; }
.categorias small { opacity: .64; margin-left: 4px; }
.estado-catalogo { padding: 55px; text-align: center; color: var(--gris); }

.grilla-productos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 17px; }
.tarjeta-producto { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(29,86,56,.1); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 11px 30px rgba(30,63,42,.055); transform: translateZ(0); transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease; }
.tarjeta-producto:hover { transform: translateY(-8px); border-color: rgba(29,86,56,.23); box-shadow: 0 24px 52px rgba(27,65,41,.14); }
.imagen-producto { aspect-ratio: 1 / 1.02; overflow: hidden; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 72% 22%, rgba(255,255,255,.9), transparent 22%), linear-gradient(145deg, #f1f3e9, #ece8d8); }
.imagen-producto::after { content: ""; position: absolute; right: -28px; bottom: -44px; width: 125px; height: 125px; border: 1px solid rgba(29,86,56,.12); border-radius: 50%; }
.imagen-producto img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.tarjeta-producto:hover .imagen-producto img { transform: scale(1.045) rotate(-1deg); }
.sin-imagen { width: 61%; aspect-ratio: 1; display: grid; place-items: center; position: relative; z-index: 1; border: 1px solid rgba(255,255,255,.7); border-radius: 42% 58% 55% 45% / 53% 43% 57% 47%; background: linear-gradient(145deg, #fbe5a0, #edcb63); box-shadow: 0 19px 34px rgba(134,106,29,.15), inset 0 1px 0 rgba(255,255,255,.7); color: var(--verde); font-size: 21px; font-weight: 950; letter-spacing: -1px; transition: transform .35s ease, border-radius .35s ease; }
.tarjeta-producto:hover .sin-imagen { transform: scale(1.04) rotate(-2deg); border-radius: 55% 45% 43% 57% / 48% 56% 44% 52%; }
.insignia { position: absolute; z-index: 3; left: 13px; top: 13px; padding: 7px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--naranja), #f6a23d); box-shadow: 0 7px 18px rgba(239,125,36,.22); color: #fff; font-size: 9px; font-weight: 850; }
.datos-producto { padding: 17px; display: flex; flex-direction: column; flex: 1; }
.datos-producto > small { color: var(--verde-claro); font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.datos-producto h3 { min-height: 42px; margin: 8px 0; font-size: 14px; line-height: 1.3; }
.datos-producto p { margin: 0 0 14px; color: var(--gris); font-size: 10px; }
.precio { margin-top: auto; font-size: 19px; font-weight: 900; letter-spacing: -.5px; }
.precio small { color: var(--gris); font-size: 9px; font-weight: 500; letter-spacing: 0; }
.agregar-producto { display: grid; grid-template-columns: 55px 1fr; gap: 7px; margin-top: 14px; }
.agregar-producto input { width: 100%; min-width: 0; border: 1px solid var(--borde); border-radius: 12px; background: #f7f8f2; text-align: center; outline: 0; }
.agregar-producto input:focus { border-color: var(--naranja); box-shadow: 0 0 0 3px rgba(239,125,36,.1); }
.agregar-producto button { min-height: 41px; overflow: hidden; position: relative; border: 0; border-radius: 12px; background: linear-gradient(135deg, #255f40, #173f2c); color: #fff; font-size: 12px; font-weight: 750; cursor: pointer; box-shadow: 0 9px 19px rgba(25,74,47,.15); transition: transform .18s ease, box-shadow .18s ease; }
.agregar-producto button:hover { transform: translateY(-2px); box-shadow: 0 13px 24px rgba(25,74,47,.22); }
.agregar-producto button:active { transform: scale(.97); }
.cargar-mas { display: flex; margin: 34px auto 0; }
.cargar-mas[hidden] { display: none; }

.bloque-ofertas, .nosotros { width: min(1320px, calc(100% - 48px)); margin: 45px auto; padding: clamp(34px, 5vw, 64px); overflow: hidden; border-radius: 34px; position: relative; }
.bloque-ofertas { display: flex; align-items: center; justify-content: space-between; gap: 35px; color: #fff; background: radial-gradient(circle at 86% 20%, rgba(247,214,111,.35), transparent 14rem), linear-gradient(125deg, #ed7520, #f39a36 54%, #d9681a); box-shadow: 0 25px 60px rgba(194, 89, 15, .18); }
.bloque-ofertas::before { content: "%"; position: absolute; right: 12%; top: -44px; color: rgba(255,255,255,.1); font-size: 240px; line-height: 1; font-weight: 950; transform: rotate(-12deg); }
.bloque-ofertas .etiqueta { color: #fff8d8; }
.bloque-ofertas h2 { max-width: 670px; }
.bloque-ofertas p { max-width: 660px; color: rgba(255,255,255,.82); }
.bloque-ofertas > * { position: relative; z-index: 1; }
.nosotros { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 34px; border: 1px solid rgba(29,86,56,.1); background: radial-gradient(circle at 12% 45%, rgba(120,168,73,.18), transparent 14rem), linear-gradient(135deg, #fffdf5, #f2edda); box-shadow: var(--sombra-suave); }
.nosotros p { max-width: 750px; color: var(--gris); }
.estrella { width: 145px; height: 145px; display: grid; place-items: center; border-radius: 42% 58% 48% 52% / 56% 46% 54% 44%; background: linear-gradient(145deg, var(--amarillo), #f4b84b); color: var(--verde); font-size: 76px; animation: girar-lento 14s linear infinite; }

footer { width: min(1320px, calc(100% - 48px)); display: flex; align-items: center; gap: 25px; margin: 80px auto 0; padding: 34px 0 70px; border-top: 1px solid var(--borde); color: var(--gris); }
footer img { width: 92px; border-radius: 18px; }
footer a { margin-left: auto; font-size: 12px; }

.panel-carrito, .panel-checkout { width: min(540px, 100%); max-width: none; max-height: none; height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 34px 0 0 34px; background: #fff; box-shadow: -25px 0 75px rgba(4,25,12,.2); }
.panel-carrito[open], .panel-checkout[open] { animation: entrar-panel .28s ease-out both; }
.panel-carrito::backdrop, .panel-checkout::backdrop { background: rgba(7,17,9,.63); backdrop-filter: blur(6px); }
.cabecera-panel { display: flex; align-items: start; justify-content: space-between; padding: 30px; border-bottom: 1px solid var(--borde); }
.cabecera-panel h2 { margin: 7px 0 0; font-size: 33px; letter-spacing: -1px; }
.cabecera-panel button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f3eb; font-size: 24px; cursor: pointer; transition: transform .2s ease; }
.cabecera-panel button:hover { transform: rotate(8deg); }
.lineas-carrito { max-height: calc(100dvh - 320px); overflow: auto; padding: 10px 30px; }
.linea-carrito { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--borde); }
.linea-carrito h3 { margin: 0; font-size: 14px; }
.linea-carrito small { color: var(--gris); }
.control-cantidad { display: flex; align-items: center; gap: 8px; }
.control-cantidad button { width: 30px; height: 30px; border: 1px solid var(--borde); border-radius: 50%; background: #fff; cursor: pointer; }
.quitar-linea { justify-self: start; border: 0; background: transparent; padding: 0; color: #a33; font-size: 11px; cursor: pointer; }
.total-carrito { display: flex; justify-content: space-between; padding: 22px 30px 0; }
.total-carrito strong { font-size: 24px; }
.aclaracion { padding: 0 30px; color: var(--gris); font-size: 11px; }
.panel-carrito > .boton { width: calc(100% - 60px); margin: 10px 30px; }
.panel-checkout form { height: 100%; overflow: auto; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 26px 30px; }
.campos label { display: grid; gap: 6px; font-size: 12px; font-weight: 650; }
.campos input, .campos select, .campos textarea { width: 100%; border: 1px solid var(--borde); border-radius: 13px; background: #fafbf6; padding: 13px; outline: 0; }
.campos input:focus, .campos select:focus, .campos textarea:focus { border-color: var(--naranja); box-shadow: 0 0 0 4px rgba(239,125,36,.09); }
.campo-completo { grid-column: 1 / -1; }
.panel-checkout form > .boton { width: calc(100% - 60px); margin: 10px 30px 30px; }
.mensaje-error { padding: 0 30px; color: #a12b2b; font-size: 12px; }

.contacto-flotante { position: fixed; right: 22px; bottom: 22px; z-index: 25; }
.contacto-flotante > button { border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 12px 40px rgba(23,54,31,.22); padding: 9px 16px 9px 9px; color: var(--verde); font-weight: 850; cursor: pointer; backdrop-filter: blur(10px); }
.contacto-flotante > button::before { content: "●"; width: 36px; height: 36px; display: inline-grid; place-items: center; margin-right: 9px; border-radius: 50%; background: #27ad60; box-shadow: 0 0 0 0 rgba(39,173,96,.36); color: #fff; animation: pulso-whatsapp 2s infinite; }
.contacto-flotante > button span { color: var(--gris); font-weight: 500; }
.contacto-flotante > div { display: none; width: 230px; position: absolute; right: 0; bottom: 62px; padding: 8px; border: 1px solid var(--borde); border-radius: 17px; background: #fff; box-shadow: var(--sombra-alta); }
.contacto-flotante.abierto > div { display: grid; animation: aparecer-arriba .2s both; }
.contacto-flotante a { padding: 11px; border-radius: 11px; }
.contacto-flotante a:hover { background: #f1f4eb; }
.notificacion { min-width: 260px; position: fixed; left: 50%; bottom: 25px; z-index: 60; padding: 13px 18px; border-radius: 13px; background: var(--tinta); box-shadow: 0 14px 36px rgba(0,0,0,.2); color: #fff; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .2s ease, transform .2s ease; }
.notificacion.visible { opacity: 1; transform: translate(-50%, 0); }
.revelar { opacity: 0; transform: translateY(25px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
.revelar.visible { opacity: 1; transform: none; }

@keyframes aparecer-arriba { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes aparecer-escala { from { opacity: 0; transform: scale(.92) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes respirar { 50% { transform: scale(1.035) rotate(3deg); border-radius: 56% 44% 38% 62% / 51% 58% 42% 49%; } }
@keyframes hoja-volando { 50% { transform: translateY(-16px) rotate(38deg); } }
@keyframes flotar-etiqueta { 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes flotar-forma { 50% { transform: translateY(16px) scale(1.03); } }
@keyframes girar-lento { to { transform: rotate(360deg); } }
@keyframes entrar-panel { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes pulso-whatsapp { 70% { box-shadow: 0 0 0 10px rgba(39,173,96,0); } 100% { box-shadow: 0 0 0 0 rgba(39,173,96,0); } }

@media (max-width: 1220px) {
  .cabecera nav { display: none; }
  .grilla-productos { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 980px) {
  .grilla-productos { grid-template-columns: repeat(3, 1fr); }
  .portada { grid-template-columns: 1fr; }
  .portada-contenido { max-width: 900px; }
  .portada-grafica { min-height: 390px; }
  .portada-grafica img { width: min(440px, 70%); }
}

@media (max-width: 760px) {
  .aviso-superior { min-height: 28px; font-size: 7px; letter-spacing: 1.2px; }
  .cabecera { width: calc(100% - 18px); min-height: auto; margin-top: 8px; padding: 9px; gap: 8px; top: 6px; border-radius: 20px; flex-wrap: wrap; }
  .marca { width: 96px; height: 54px; border-radius: 13px; }
  .marca img { width: 105px; transform: translate(-4px, -22px); }
  .buscador-cabecera { order: 3; flex-basis: 100%; max-width: none; height: 46px; }
  .boton-carrito { margin-left: auto; padding: 10px 12px 10px 15px; }
  .portada { width: calc(100% - 18px); min-height: 0; margin-top: 10px; padding: 52px 23px 35px; border-radius: 30px; }
  .portada h1 { margin-top: 18px; font-size: clamp(48px, 15vw, 68px); letter-spacing: -3px; }
  .portada-contenido > p { font-size: 15px; }
  .portada ul { margin-top: 25px; }
  .portada-grafica { min-height: 300px; }
  .portada-grafica img { width: min(350px, 90%); }
  .portada-grafica span { right: 0; bottom: 4%; }
  .como-comprar { width: calc(100% - 30px); grid-template-columns: 1fr; margin-top: -10px; border-radius: 25px; }
  .como-comprar > div { min-height: 105px; padding: 20px; }
  .seccion-catalogo { padding: 78px 15px 55px; }
  .encabezado-seccion { display: block; }
  .encabezado-seccion h2, .bloque-ofertas h2, .nosotros h2 { font-size: 35px; letter-spacing: -1.7px; }
  .encabezado-seccion p { margin-top: 8px; }
  .categorias { margin-right: -15px; }
  .grilla-productos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .tarjeta-producto { border-radius: 19px; }
  .datos-producto { padding: 13px; }
  .datos-producto h3 { min-height: 39px; font-size: 13px; }
  .precio { font-size: 17px; }
  .precio small { display: block; }
  .agregar-producto { grid-template-columns: 45px 1fr; }
  .agregar-producto button { min-height: 41px; font-size: 12px; }
  .bloque-ofertas, .nosotros { width: calc(100% - 30px); padding: 30px 24px; border-radius: 27px; }
  .bloque-ofertas { display: block; }
  .bloque-ofertas .boton { margin-top: 12px; }
  .nosotros { grid-template-columns: 1fr; }
  .estrella { width: 82px; height: 82px; font-size: 45px; }
  footer { width: calc(100% - 30px); align-items: flex-start; flex-wrap: wrap; }
  footer a { width: 100%; margin-left: 0; }
  .panel-carrito, .panel-checkout { border-radius: 24px 0 0 24px; }
  .campos { grid-template-columns: 1fr; }
  .campo-completo { grid-column: auto; }
  .contacto-flotante { right: 12px; bottom: 12px; }
  .contacto-flotante > button span { display: none; }
}

@media (max-width: 340px) {
  .grilla-productos { grid-template-columns: 1fr; }
  .imagen-producto { aspect-ratio: 1.3 / 1; }
  .sin-imagen { width: 48%; }
}

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