:root{--pink:#ec268f;--pink-dark:#bd146f;--teal:#0f827e;--teal-dark:#123f40;--mint:#e6f8f5;--ink:#172b30;--muted:#5d6c70;--line:#dfe8e8}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#fff;font:16px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.wrap{width:min(1320px,calc(100% - 40px));margin:auto}.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.header-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand img{display:block;width:220px;max-width:100%;height:auto}.header-inner nav{display:flex;gap:26px;font-size:14px;font-weight:700}.header-inner nav a:hover,.service-note a:hover{color:var(--pink)}.header-actions{display:flex;gap:10px}.quiet-button,.cart-button{border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px 14px;font-size:13px;font-weight:800;color:var(--teal-dark)}.cart-button{background:var(--pink);border-color:var(--pink);color:#fff}.intro{display:grid;grid-template-columns:1.5fr .6fr;margin:26px 0 16px;min-height:280px;overflow:hidden;border-radius:22px;background:linear-gradient(110deg,#dff7f3,#b8e7e1);position:relative}.intro>div:first-child{padding:44px 6%;position:relative;z-index:1}.eyebrow{color:var(--teal);font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.intro h1{font-size:clamp(36px,4.5vw,60px);line-height:1.02;letter-spacing:-.045em;margin:14px 0}.intro p{max-width:560px;color:#29494b;margin:0;font-size:17px}.intro-art{position:relative;background:linear-gradient(135deg,#ffffff66,#f7d5e9aa)}.shape{position:absolute;border-radius:50%}.shape-one{width:330px;height:330px;right:-30px;top:-120px;background:#ffffffa6}.shape-two{width:220px;height:220px;left:-40px;bottom:-120px;background:#ec268f30}.cross{position:absolute;top:40px;right:25%;font-size:140px;line-height:1;color:#ec268f}.notice{border:1px solid #b8e5de;background:#f0fbf8;border-radius:12px;padding:13px 18px;color:#155f5c;font-size:14px}.catalog-section{padding:28px 0 60px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.section-title h2{font-size:29px;letter-spacing:-.03em;margin:5px 0 0}.search{font-size:12px;font-weight:700;color:var(--muted);display:grid;gap:5px}.search input{width:min(300px,70vw);border:1px solid var(--line);border-radius:9px;padding:11px 13px;outline-color:var(--teal)}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.product-card{border:1px solid var(--line);border-radius:15px;padding:14px;display:flex;flex-direction:column;min-width:0}.product-card img{width:100%;height:180px;object-fit:contain;background:#f7f9fa;border-radius:10px}.product-card h3{font-size:16px;line-height:1.3;min-height:42px;margin:13px 0 8px}.product-card .price{color:var(--pink);font-size:19px;font-weight:900;margin-top:auto}.product-card .availability{font-size:12px;color:var(--muted);margin:5px 0 10px}.product-card button,.primary-button{width:100%;border:0;border-radius:9px;background:var(--teal-dark);color:#fff;padding:12px;font-weight:800;font-size:13px}.product-card button:disabled,.primary-button:disabled{background:#cfdbdc;color:#53686a;cursor:not-allowed}.empty-state{padding:30px;border:1px dashed var(--line);background:#f8fbfb;border-radius:14px;color:var(--muted)}.empty-state a{color:var(--teal);font-weight:800;text-decoration:underline}.service-note{display:flex;justify-content:space-between;gap:20px;align-items:center;background:var(--mint);border-radius:16px;padding:24px;margin-bottom:55px}.service-note p{margin:4px 0 0;color:var(--muted);font-size:14px}.service-note a{white-space:nowrap;font-weight:800;font-size:13px;color:var(--teal-dark)}footer{background:#111827;color:#e8f2f1;padding:34px 0}footer .wrap{display:grid;gap:7px}footer span,footer small{color:#bdc9ce}footer a{text-decoration:underline}.overlay{position:fixed;inset:0;background:#101c2499;z-index:20}.drawer,.dialog{position:fixed;background:#fff;z-index:21;box-shadow:0 20px 50px #10262e33}.drawer{right:0;top:0;bottom:0;width:min(430px,100%);display:flex;flex-direction:column;padding:20px}.dialog{top:50%;left:50%;transform:translate(-50%,-50%);width:min(430px,calc(100% - 28px));max-height:90vh;overflow:auto;border-radius:18px;padding:22px}.drawer[hidden],.dialog[hidden],.overlay[hidden],[hidden]{display:none!important}.panel-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:12px}.panel-head h2{font-size:22px;margin:0}.close-button{font-size:28px;border:0;background:#fff;color:var(--muted)}.cart-items{overflow:auto;flex:1}.cart-row{display:grid;grid-template-columns:1fr auto;gap:8px;padding:18px 0;border-bottom:1px solid var(--line)}.cart-row strong{display:block;font-size:14px}.cart-row small{color:var(--muted)}.cart-row select{border:1px solid var(--line);border-radius:8px;padding:6px}.cart-row button{border:0;background:none;color:var(--pink);font-size:12px;font-weight:800}.panel-foot{border-top:1px solid var(--line);padding-top:16px}.panel-foot p,.help{font-size:12px;color:var(--muted)}.total{display:flex;justify-content:space-between;font-size:16px}.total strong{font-size:21px}.tabs{display:flex;gap:8px;margin:20px 0}.tabs button{flex:1;padding:10px;background:#fff;border:1px solid var(--line);border-radius:9px;font-weight:800}.tabs button.active{background:var(--mint);border-color:var(--teal);color:var(--teal-dark)}#authForm{display:grid;gap:15px}#authForm label{display:grid;gap:5px;font-size:13px;font-weight:700}#authForm input{width:100%;border:1px solid var(--line);border-radius:9px;padding:11px}.order-list{display:grid;gap:10px;margin:14px 0}.order-entry{padding:12px;background:#f5faf9;border-radius:9px;font-size:13px}@media(max-width:900px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.header-inner nav{gap:12px}}@media(max-width:700px){.wrap{width:min(100% - 28px,1320px)}.header-inner{min-height:70px;flex-wrap:wrap;gap:8px;padding:9px 0}.brand img{width:175px}.header-inner nav{order:3;width:100%;overflow:auto;padding:7px 0 3px;font-size:12px;white-space:nowrap}.header-actions{margin-left:auto}.quiet-button,.cart-button{padding:8px;font-size:12px}.intro{grid-template-columns:1fr;min-height:0}.intro>div:first-child{padding:26px}.intro-art{display:none}.intro p{font-size:14px}.section-title{align-items:start;flex-direction:column}.search,.search input{width:100%}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-card{padding:10px}.product-card img{height:125px}.product-card h3{font-size:14px;min-height:37px}.service-note{align-items:start;flex-direction:column}.service-note a{white-space:normal}}@media(max-width:360px){.product-grid{grid-template-columns:1fr}.product-card img{height:180px}}
.preview-section{padding-bottom:34px}
.preview-section .section-title{align-items:end}
.preview-section .section-title p{max-width:750px;margin:7px 0 0;color:var(--muted);font-size:14px}
.preview-card{background:#fff;box-shadow:0 6px 20px #173f4010}
.preview-card img{background:#fff;border:1px solid #f0f3f3;padding:9px}
.preview-category{margin-top:12px;color:var(--teal);font-size:11px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.preview-card h3{min-height:0;margin:6px 0 12px}
.preview-status{margin:auto 0 0;color:var(--muted);font-size:12px}
@media(max-width:700px){.preview-section .section-title{align-items:stretch}.preview-card img{height:150px}}
.preview-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.preview-filters .search{min-width:180px}
.preview-filters select{height:43px;max-width:250px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:9px 11px;color:var(--ink);font:inherit}
.product-placeholder{height:180px;display:grid;place-items:center;padding:15px;border:1px solid #edf1f1;border-radius:10px;background:#f7f9fa;color:#75868a;text-align:center;font-size:12px}
.show-more{display:block;margin:22px auto 0;padding:11px 22px;border:1px solid var(--teal);border-radius:9px;background:#fff;color:var(--teal-dark);font-weight:800}
.show-more:hover{background:var(--mint)}
@media(max-width:700px){.preview-filters,.preview-filters .search,.preview-filters select{width:100%;max-width:none}.product-placeholder{height:150px}}
@media(max-width:700px){.intro{margin:14px 0 10px}.intro>div:first-child{padding:20px}.intro h1{font-size:34px;margin:8px 0}.intro p{font-size:13px}.notice{padding:10px 12px;font-size:12px}.preview-section{padding-top:16px}.preview-section .section-title h2{font-size:25px}}
.consultation-code{margin:0 17px 17px;color:#687c7c;font-size:11px}.price-freshness{color:#126b68;font-size:13px;font-weight:700}
/* Foto principal entregada por la farmacia: texto sobre la zona libre a la izquierda. */
.intro{display:flex;align-items:center;min-height:320px;background-image:linear-gradient(90deg,rgba(231,247,244,.70) 0%,rgba(231,247,244,.42) 35%,transparent 58%),url('../assets/tienda-familia-banner.png');background-size:cover;background-position:center}
.intro>div:first-child{width:min(57%,660px);padding:40px 4%}
.intro-art{display:none}
@media(max-width:700px){
  .intro{display:flex;flex-direction:column;align-items:stretch;min-height:0;background:#e7f7f4}
  .intro::before{content:"";display:block;height:clamp(175px,48vw,240px);background:url('../assets/tienda-familia-banner.png') right center/cover no-repeat}
  .intro>div:first-child{width:100%;padding:22px 24px 26px}
}
.preview-card .preview-price{margin:2px 0 6px;font-size:19px;color:var(--pink-dark)}
.preview-card .preview-status{margin:0;color:var(--muted)}
.preview-card>button{margin-top:12px}
/* Tarjetas de producto: jerarquía de catálogo y controles sobrios de la marca. */
.preview-section .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.preview-card{padding:0;overflow:hidden;border-radius:12px;box-shadow:0 2px 12px #173f400b}
.preview-media{height:230px;margin:0;display:grid;place-items:center;padding:12px;background:#fff;border-bottom:1px solid #eef2f2}
.preview-media img{display:block;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;object-fit:contain}

.preview-media .product-placeholder{width:100%;height:100%;border:0;border-radius:0}
.preview-card .preview-brand{margin:16px 17px 5px;color:#718183;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.preview-card h3{margin:0 17px 12px;min-height:42px;font-size:17px;line-height:1.25;letter-spacing:-.015em;font-weight:700}
.preview-card .preview-category{width:max-content;max-width:calc(100% - 34px);margin:0 17px 16px;padding:5px 9px;border-radius:5px;background:#e2f4f0;color:#126b68;font-size:10px;line-height:1.2;letter-spacing:.03em}
.preview-card .preview-price{margin:auto 17px 16px;color:#0f5754;font-size:23px;line-height:1.1;font-weight:800;letter-spacing:-.03em}
.preview-card.no-image{background:#f9fcfc;min-height:170px}
.preview-card.no-image .preview-category{margin-top:17px}
.preview-pickup{display:flex;align-items:center;gap:8px;margin:0 17px 12px;padding-top:13px;border-top:1px solid #e6eded;color:#415b5c;font-size:12px;font-weight:600}
.preview-pickup svg{width:17px;height:17px;stroke:#0f827e;stroke-width:1.8;flex:none}
.preview-actions{height:44px;margin:0 17px 17px}
.preview-actions .add-button{height:44px;padding:0;border-radius:5px;background:#123f40;color:#fff;font-size:13px;letter-spacing:.01em}
.preview-actions .add-button:hover{background:#0f6662}
.preview-actions--selected{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;border:1px solid #b7d4d0;border-radius:5px;color:#123f40;font-weight:800;text-align:center}
.preview-actions--selected .qty-control{height:42px;width:44px;padding:0;border:0;background:#fff;color:#0f827e;font-size:22px;line-height:1}
.preview-actions--selected .qty-control:hover{background:#e7f7f4}
.preview-actions--selected .qty-control:disabled{color:#9baaaa;background:#fff}
.cart-toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:30;width:min(390px,calc(100% - 28px));display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px 11px 17px;border:1px solid #cfe1de;border-radius:10px;background:#fff;box-shadow:0 12px 35px #10262e24;font-size:13px;font-weight:700}
.cart-toast[hidden]{display:none}
.cart-toast button{border:0;border-radius:5px;background:#123f40;color:#fff;padding:10px 14px;font-size:12px;font-weight:800;white-space:nowrap}
.cart-row{display:grid;grid-template-columns:64px minmax(0,1fr);gap:4px 12px;align-items:start}
.cart-thumb{width:64px;height:64px;object-fit:contain;border:1px solid #e7eded;border-radius:7px;background:#fff}
.cart-thumb--empty{display:block;background:#f5f8f8}
.cart-row strong{line-height:1.3}
.cart-row small{display:block;margin-top:7px;color:#0f5754;font-size:15px;font-weight:800}
.cart-actions{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
.cart-quantity{display:grid;grid-template-columns:32px 36px 32px;align-items:center;border:1px solid #d7e2e0;border-radius:6px;text-align:center;font-size:13px;font-weight:800}
.cart-quantity button{width:32px;height:32px;padding:0;color:#0f827e;font-size:20px;font-weight:500}
.cart-quantity button:disabled{color:#a9b8b7}
.cart-actions .cart-remove{color:#687c7c;font-size:12px;text-decoration:underline}
@media(max-width:900px){.preview-section .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.preview-section .product-grid{gap:10px}.preview-media{height:170px;padding:8px}.preview-card .preview-brand{margin:12px 11px 4px;font-size:10px}.preview-card h3{margin:0 11px 10px;min-height:54px;font-size:14px}.preview-card .preview-category{max-width:calc(100% - 22px);margin:0 11px 12px;font-size:9px}.preview-card .preview-price{margin:0 11px 12px;font-size:20px}.preview-pickup{margin:0 11px 10px;padding-top:10px;font-size:11px}.preview-actions{margin:0 11px 12px;height:40px}.preview-actions .add-button{height:40px}.preview-actions--selected{grid-template-columns:40px 1fr 40px}.preview-actions--selected .qty-control{width:40px;height:38px}}
@media(max-width:360px){.preview-section .product-grid{grid-template-columns:1fr}.preview-media{height:220px}}
.preview-media{position:relative;display:block;overflow:hidden}
.preview-media img,.preview-media .product-placeholder{position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);max-height:none}
@media(max-width:700px){.preview-media img,.preview-media .product-placeholder{inset:8px;width:calc(100% - 16px);height:calc(100% - 16px)}}
.preview-card[data-code="54364"] .preview-media img{left:4%;width:92%}
@media(min-width:1150px){.preview-filters{display:grid;grid-template-columns:1.2fr 1fr 1fr;width:min(650px,100%);gap:10px}.preview-filters .search{min-width:0}.preview-filters input,.preview-filters select{width:100%;max-width:none}}

/* Carrito 2026-09-28: ícono con contador, subtotal en cabecera y animación al agregar. */
.cart-button{display:inline-flex;align-items:center;gap:9px;height:44px;padding:0 16px 0 12px;border-radius:10px;box-shadow:0 4px 14px #ec268f33;transition:background .15s,transform .15s}
.cart-button:hover{background:var(--pink-dark);border-color:var(--pink-dark)}
.cart-button:focus-visible{outline:3px solid #ec268f55;outline-offset:2px}
.cart-icon{position:relative;display:grid;place-items:center;width:26px;height:26px}
.cart-icon svg{width:24px;height:24px;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cart-button .cart-badge{position:absolute;top:-8px;right:-9px;display:grid;place-items:center;min-width:19px;height:19px;margin:0;padding:0 5px;border:2px solid var(--pink);border-radius:999px;background:#fff;color:var(--pink-dark);font-size:10.5px;font-weight:900;line-height:1}
.cart-button .cart-badge[data-empty="true"]{display:none}
.cart-label{font-size:13px}
.cart-header-total{padding-left:10px;border-left:1px solid #ffffff66;font-size:13px;font-weight:800;white-space:nowrap}
.cart-bump{animation:cartBump .45s ease}
.cart-bump .cart-badge{animation:badgePop .45s ease}
@keyframes cartBump{0%,100%{transform:none}30%{transform:scale(1.06)}60%{transform:scale(.97)}}
@keyframes badgePop{0%{transform:scale(.6)}50%{transform:scale(1.25)}100%{transform:none}}
@media(prefers-reduced-motion:reduce){.cart-bump,.cart-bump .cart-badge{animation:none}}
.cart-title{display:flex;align-items:center;gap:9px}
.cart-title svg{width:24px;height:24px;stroke:var(--teal);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cart-title span{color:var(--muted);font-size:16px;font-weight:600}
.cart-empty{display:grid;justify-items:center;gap:6px;padding:48px 20px;text-align:center;color:var(--muted);font-size:13px}
.cart-empty svg{width:46px;height:46px;margin-bottom:6px;stroke:#b7cbc9;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.cart-empty strong{color:var(--ink);font-size:15px}
@media(max-width:700px){.cart-button{height:40px;padding:0 11px 0 9px;gap:7px}.cart-header-total{display:none}}
@media(max-width:420px){.cart-label{display:none}.cart-button{padding:0 10px}}
.preview-actions .add-button{display:flex;align-items:center;justify-content:center;gap:8px}
.preview-actions .add-button svg{width:19px;height:19px;flex:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cart-button .cart-badge{transform-origin:center}
.preview-section .section-title .price-freshness{margin-top:4px;font-size:12px;color:#155f5c}
.preview-section .section-title .price-freshness[data-stale="true"]{color:#9a3412;font-weight:700}
