:root{--brand:#183a34;--accent:#b5cc91;--paper:#faf9f5;--muted:#6c746e}*{box-sizing:border-box}body{background:var(--paper);color:var(--brand);line-height:1.6}a{text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #bd8b3c;outline-offset:4px}header{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid #dedfd7}.brand{font-size:23px;letter-spacing:3px;font-weight:800}.brand span{display:block;font-size:10px;letter-spacing:2px;font-weight:500;color:var(--muted)}header nav{align-items:center;font-size:14px}.skip{position:absolute;left:12px;top:-80px;background:#fff;padding:12px;z-index:9}.skip:focus{top:12px}.hero{max-width:900px;padding:70px 0 80px}.hero h1{line-height:1.08;letter-spacing:-2px;margin:22px 0}.hero p{max-width:640px;font-size:19px;color:var(--muted)}.eyebrow{text-transform:uppercase;font-size:11px;font-weight:700;letter-spacing:2px}.button{background:var(--brand);font-weight:600;transition:transform .15s}.button:hover{transform:translateY(-2px);text-decoration:none}.secondary{color:var(--brand);background:transparent;border:1px solid #c8cdc3}.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:24px 0;border-top:1px solid #dedfd7;border-bottom:1px solid #dedfd7;margin-bottom:55px;font-size:13px}.section-heading{display:flex;justify-content:space-between;align-items:center}.section-heading h2{font-size:32px;margin:5px 0 20px}.category-links{display:flex;gap:10px;flex-wrap:wrap}.category-links a{border:1px solid #d9ded4;padding:7px 15px;border-radius:24px;font-size:13px}.category-links a[aria-current]{background:var(--brand);color:#fff}.filters{justify-content:space-between}.filters label{font-size:13px}input,select{padding:10px 12px;border:1px solid #d9ded4;border-radius:8px;background:#fff;color:var(--brand);max-width:100%}.card{background:white;border-color:#e4e5dd;box-shadow:0 4px 15px #183a3405}.card h2{font-size:18px;line-height:1.35;min-height:48px;margin:10px 0}.card .photo span,.detail .photo span{font-size:80px;opacity:.25}.price{font-size:25px;font-weight:750;margin:12px 0}.card .price{font-size:21px}.card .button{font-size:13px}.breadcrumbs{font-size:12px;margin:20px 0 35px}.detail h1{font-size:clamp(30px,4vw,44px);line-height:1.2;margin:12px 0}.description{white-space:normal;color:var(--muted)}.detail .photo{border-radius:18px;overflow:hidden}.purchase{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px;align-items:end}.purchase label{display:grid;gap:6px;font-size:12px}.purchase input{width:90px}.text-button{border:0;background:none;color:var(--brand);padding:0;text-decoration:underline}.steps{padding-left:24px}.steps li{margin-bottom:35px}.steps h2{margin-bottom:5px}footer{border-top:1px solid #d9ded4;margin-top:70px!important;display:flex;justify-content:space-between;flex-wrap:wrap;gap:24px;font-size:13px}footer p{color:var(--muted)}#nf-status:not(:empty){background:#e9efdf;padding:15px;border-radius:10px;margin-top:25px}button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:700px){header{flex-direction:column;align-items:start}header,main,footer{padding:20px}.hero{padding:40px 0}.hero h1{letter-spacing:-1px}.hero .button{margin:6px 0}.benefits{grid-template-columns:1fr;gap:8px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-body{padding:12px}.card h2{font-size:15px}.card .eyebrow{font-size:9px;letter-spacing:1px}.card .button{padding:8px 10px}.detail{grid-template-columns:1fr}.section-heading{align-items:start}.section-heading h2{font-size:25px}.filters input{width:190px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

body[data-template="boutique"]{--paper:#fff8f5;font-family:Georgia,serif}body[data-template="boutique"] .hero{text-align:center;margin:auto}body[data-template="boutique"] .hero p{margin:20px auto}body[data-template="boutique"] .card{border-radius:24px}body[data-template="boutique"] .button{border-radius:25px}body[data-template="boutique"] .brand{letter-spacing:1px}body[data-template="mercado"] .hero{padding:32px;max-width:none;background:var(--brand);color:white;border-radius:16px;margin:30px 0}body[data-template="mercado"] .hero p{color:white}body[data-template="mercado"] .hero .button{background:white;color:var(--brand)}body[data-template="mercado"] .grid{gap:12px}body[data-template="mercado"] .card{border-radius:6px}body[data-template="mercado"] h1{font-size:clamp(30px,4vw,48px)}

.category-links a[aria-current]{border-color:var(--accent)}.brand img{vertical-align:middle;margin-right:10px;object-fit:contain}

/* Recomendaciones: conservar tarjetas compactas aunque haya pocos productos. */
main .detail + h2 + .grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  align-items: start;
  justify-content: start;
}
main .detail + h2 + .grid .card { min-width: 0; width: 100%; }
main .detail + h2 + .grid .photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
main .detail + h2 + .grid .photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  padding: 12px;
}
@media (max-width: 700px) {
  main .detail + h2 + .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 360px) {
  main .detail + h2 + .grid {
    grid-template-columns: minmax(0, 280px);
  }
}

/* Cantidades directas, una fila por presentación. */
.nf-variants{width:100%;margin-top:16px;border-top:1px solid #e1e5dc}
.nf-variant{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #e1e5dc}
.nf-variant-info strong,.nf-variant-info span,.nf-variant-info small{display:block;overflow-wrap:anywhere}
.nf-variant-info strong{font-size:13px}.nf-variant-info span{font-size:14px;font-weight:700}.nf-variant-info small{font-size:11px;color:var(--muted)}
.nf-quantity{display:flex;align-items:center;gap:0;border:1px solid #cfd8cb;border-radius:8px;overflow:hidden;background:white}
.nf-quantity button{flex:0 0 30px;width:30px;height:36px;padding:0;border:0;background:#edf2e8;color:var(--brand);font-size:20px}
.nf-quantity input{width:45px;min-width:0;height:36px;border:0;border-radius:0;padding:0;text-align:center;font-size:14px;-moz-appearance:textfield}
.nf-quantity input::-webkit-inner-spin-button,.nf-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.nf-variant-consult{grid-column:1/-1;justify-self:start;background:none;border:0;padding:0;color:var(--brand);font-size:11px;text-decoration:underline}
.nf-variant.in-cart .nf-quantity{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
@media(max-width:700px){.card .nf-variant{grid-template-columns:1fr}.card .nf-quantity{justify-self:start}.card .nf-variant-consult{grid-column:1}}

.nf-more-variants{display:block;width:100%;padding:9px 10px;margin-top:8px;border:1px solid #cfd8cb;border-radius:8px;background:transparent;color:var(--brand);font-size:12px;font-weight:600}
.nf-variant[hidden]{display:none!important}

/* Separación de las acciones de portada en todas las plantillas. */
main .hero > .button{margin:0 12px 12px 0;vertical-align:middle}
@media(max-width:700px){main .hero > .button{margin:6px 12px 6px 0}}

/* Catálogo y categorías: no estirar tarjetas cuando hay pocos productos. */
main .grid[data-grid]{grid-template-columns:repeat(auto-fill,minmax(220px,280px));justify-content:start;align-items:start}
main .grid[data-grid] .card{min-width:0;width:100%}
main .grid[data-grid] .photo{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden}
main .grid[data-grid] .photo img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;object-fit:contain;padding:12px}
@media(max-width:700px){main .grid[data-grid]{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:360px){main .grid[data-grid]{grid-template-columns:minmax(0,280px)}}

/* Seis diseños adicionales. Comparten el contenido, las URLs y el carrito. */
body[data-template="minimalista"]{background:#fff;color:#252525;font-family:Arial,sans-serif}
body[data-template="minimalista"] .hero{padding-top:50px;border-bottom:1px solid #ddd}
body[data-template="minimalista"] .hero h1{font-weight:500;letter-spacing:-2px}
body[data-template="minimalista"] .card,body[data-template="minimalista"] .button,body[data-template="minimalista"] .detail .photo{border-radius:0;box-shadow:none}
body[data-template="minimalista"] .card{border-color:#eee}
body[data-template="industrial"]{background:#20211f;color:#f4f0e8}
body[data-template="industrial"] header,body[data-template="industrial"] footer,body[data-template="industrial"] .benefits{border-color:#454640}
body[data-template="industrial"] .hero{max-width:none;padding:40px;background:#2c2d29;border-left:7px solid var(--brand)}
body[data-template="industrial"] .hero h1{text-transform:uppercase;font-weight:900;letter-spacing:-1px}
body[data-template="industrial"] .hero p,body[data-template="industrial"] .description,body[data-template="industrial"] footer p,body[data-template="industrial"] .brand span{color:#c4c4ba}
body[data-template="industrial"] .card{background:#2d2e29;border-color:#4a4b44;border-radius:2px}
body[data-template="industrial"] .photo{background:#383a34}
body[data-template="industrial"] .secondary{color:#f4f0e8;border-color:#8a8b81}
body[data-template="industrial"] .category-links a{border-color:#77786d}
body[data-template="industrial"] .nf-variant{border-color:#65665d}
body[data-template="industrial"] .nf-variant-info small{color:#ccc}
body[data-template="industrial"] .nf-more-variants,body[data-template="industrial"] .nf-variant-consult,body[data-template="industrial"] .text-button{color:#f4f0e8}
body[data-template="industrial"] #nf-status:not(:empty){background:#394134;color:#fff}
body[data-template="natural"]{background:#f3efe4;color:#35472e;font-family:Georgia,serif}
body[data-template="natural"] .hero{max-width:none;background:#e7e5d5;border-radius:50px 4px;padding:45px}
body[data-template="natural"] .hero h1{font-weight:500;letter-spacing:-1px}
body[data-template="natural"] .card{background:#fffdf6;border-color:#d9d6bd;border-radius:22px 4px;box-shadow:none}
body[data-template="natural"] .photo{background:#e6e3d5}
body[data-template="natural"] .button{border-radius:25px}
body[data-template="tecnologia"]{background:#f3f7ff;color:#172b53}
body[data-template="tecnologia"] .hero{max-width:none;padding:45px;border:1px solid #ccdafa;border-radius:20px;background:linear-gradient(130deg,#e0ebff,#f8fbff)}
body[data-template="tecnologia"] .hero h1{font-weight:800;letter-spacing:-2px}
body[data-template="tecnologia"] .card{border-color:#d1dff6;border-radius:14px;box-shadow:0 5px 18px #2454b810}
body[data-template="tecnologia"] .photo{background:#e9effa}
body[data-template="tecnologia"] .button{border-radius:6px}
body[data-template="colorido"]{background:#fff9ee;color:#493074}
body[data-template="colorido"] .hero{max-width:none;text-align:center;padding:45px;border-radius:35px;background:linear-gradient(125deg,#f1dcff,#fff0bc)}
body[data-template="colorido"] .hero p{margin:20px auto}
body[data-template="colorido"] .hero h1{font-weight:900}
body[data-template="colorido"] .card{border:2px solid #dfcbee;border-radius:24px;box-shadow:4px 4px 0 #e6d4f3}
body[data-template="colorido"] .button{border-radius:25px}
body[data-template="colorido"] .photo{background:#f2e6ff}
body[data-template="elegante"]{background:#fcf8ed;color:#29251d;font-family:Georgia,serif}
body[data-template="elegante"] header,body[data-template="elegante"] footer{border-color:var(--accent)}
body[data-template="elegante"] .hero{max-width:none;text-align:center;border:1px solid var(--accent);padding:45px;margin:30px 0}
body[data-template="elegante"] .hero p{margin:20px auto}
body[data-template="elegante"] .hero h1{font-weight:500}
body[data-template="elegante"] .brand{font-weight:500;letter-spacing:4px}
body[data-template="elegante"] .card{border-color:var(--accent);border-radius:0;box-shadow:none}
body[data-template="elegante"] .button{border-radius:0}
body[data-template="elegante"] .photo{background:#f0eadd}
@media(max-width:700px){body[data-template="industrial"] .hero,body[data-template="natural"] .hero,body[data-template="tecnologia"] .hero,body[data-template="colorido"] .hero,body[data-template="elegante"] .hero{padding:25px 20px}}
