/* ============ Guardianes · Tienda de mascotas ============
   Regla de marca: el turquesa reconoce; el azul explica; el amarillo activa.
   Tipografías: Fredoka (titulares) · Rubik (información) · Oregano (dos frases, no más)
   Superficies planas y opacas. La única sombra es la del carrito y los flotantes.
   El único adorno es el borde ondulado: foto del inicio y pie. */

:root{
  --tq:#47E5DC; --tq-d:#2BC4BB; --tq-l:#7BF0E8; --tq-s:#A0F7F1;
  --blue:#0D47A1; --blue-d:#0A2F6E; --ink:#0A1F44; --muted:#4a5f82;
  --yellow:#FFC107; --yellow-d:#E6AC00; --cream:#EDEBE4; --paper:#F6F5F1; --white:#fff;
  --wa:#25D366; --wa-ink:#05361b; --danger:#c5221f;
  --line:rgba(10,31,68,.14);
  --f-head:'Fredoka',system-ui,sans-serif; --f-body:'Rubik',system-ui,sans-serif; --f-script:'Oregano',cursive;
  --r-sm:12px; --r-md:20px; --r-lg:28px;
  --float:0 12px 32px rgba(10,31,68,.18);
  --paw-one:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23000'%3E%3Cellipse cx='32' cy='42' rx='15' ry='12'/%3E%3Cellipse cx='13' cy='28' rx='6' ry='8' transform='rotate(-20 13 28)'/%3E%3Cellipse cx='25' cy='15' rx='6' ry='9' transform='rotate(-8 25 15)'/%3E%3Cellipse cx='39' cy='15' rx='6' ry='9' transform='rotate(8 39 15)'/%3E%3Cellipse cx='51' cy='28' rx='6' ry='8' transform='rotate(20 51 28)'/%3E%3C/g%3E%3C/svg%3E");
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--f-body);font-size:1rem;line-height:1.55;color:var(--ink);background:var(--cream);overflow-x:clip}
body.no-scroll{overflow:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
h1,h2,h3,h4{font-family:var(--f-head);font-weight:600;line-height:1.1;margin:0;color:var(--blue);text-wrap:balance}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.advice :focus-visible,.footer :focus-visible,.topbar :focus-visible{outline-color:var(--yellow)}
.container{width:min(1200px,calc(100% - 2*clamp(16px,4vw,40px)));margin-inline:auto}

.icon{width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.icon.fill{fill:currentColor;stroke:none}

.skip{position:absolute;left:8px;top:-60px;z-index:2000;background:var(--blue);color:#fff;padding:.7rem 1rem;border-radius:var(--r-sm)}
.skip:focus{top:8px}

/* ---------- Botones ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:48px;padding:.7rem 1.4rem;border-radius:999px;font-family:var(--f-head);font-weight:500;font-size:1.05rem;text-align:center;transition:background-color .15s}
.btn-lg{min-height:54px;padding:.85rem 1.7rem;font-size:1.12rem}
.btn-yellow{background:var(--yellow);color:var(--ink)}
.btn-yellow:hover{background:var(--yellow-d)}
.btn-blue{background:var(--blue);color:#fff}
.btn-blue:hover{background:var(--blue-d)}
.btn-light{background:#fff;color:var(--blue)}
.btn-light:hover{background:var(--tq-s)}
.btn-wa{background:var(--wa);color:var(--wa-ink);width:100%}
.btn-wa:hover{background:#1fbf5b}
.icon-btn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--cream)}
.icon-btn:hover{background:#e0ddd3}
.link-btn{display:block;margin:.4rem auto 0;color:var(--blue);font-size:.95rem;text-decoration:underline;text-underline-offset:3px;min-height:44px}

/* ---------- Borde ondulado (único adorno) ---------- */
.edge{position:absolute;display:block;pointer-events:none}
.edge-v{left:-1px;top:0;width:36px;height:100%;fill:var(--tq)}
.edge-h{display:none;left:0;bottom:-1px;width:100%;height:26px;fill:var(--tq)}
.edge-top{left:0;top:-1px;width:100%;height:clamp(22px,3vw,36px);fill:var(--cream);transform:scaleY(-1)}

/* ---------- Franja y menú ---------- */
.topbar{background:var(--blue);color:#fff;text-align:center;font-size:.9rem;padding:.5rem 1rem}
.nav{position:sticky;top:0;z-index:1000;background:var(--cream);border-bottom:1px solid var(--line)}
.nav-inner{width:min(1200px,calc(100% - 2*clamp(16px,4vw,40px)));margin-inline:auto;min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand{display:flex;align-items:center;gap:.6rem}
.brand img{width:44px;height:44px;border-radius:50%;background:var(--tq);padding:2px}
.brand b{font-family:var(--f-head);font-weight:600;font-size:1.35rem;color:var(--blue)}
.nav-links{display:flex;gap:.25rem}
.nav-links a{padding:.6rem .9rem;border-radius:999px;font-weight:500;white-space:nowrap}
.nav-links a:hover{background:rgba(13,71,161,.08)}
.nav-links a.active{color:var(--blue);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.nav-actions{display:flex;align-items:center;gap:.5rem}
.cart-btn{position:relative;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:#fff}
.cart-btn:hover{background:var(--blue-d)}
.cart-count{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 5px;border-radius:99px;background:var(--yellow);color:var(--ink);font:500 .82rem/22px var(--f-body);text-align:center;transform:scale(0);transition:transform .15s}
.cart-count.has{transform:scale(1)}
.cart-btn.bump{animation:bump .3s ease-out}
@keyframes bump{40%{transform:scale(1.15)}}
.burger{display:none;width:48px;height:48px;border-radius:50%;place-items:center}
.burger:hover{background:rgba(13,71,161,.08)}

/* ---------- Inicio ---------- */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:var(--tq);min-height:min(700px,calc(100svh - 106px))}
.hero-copy{align-self:center;justify-self:end;width:100%;max-width:620px;padding:clamp(2.5rem,5vw,4.5rem) clamp(1.5rem,4vw,3.5rem) clamp(2.5rem,5vw,4.5rem) clamp(16px,4vw,40px);display:grid;gap:1.4rem;justify-items:start}
.hero h1{font-size:clamp(2.4rem,4.6vw,4.1rem);line-height:1.04;letter-spacing:-.01em}
.lead{font-size:clamp(1.05rem,1.4vw,1.2rem);max-width:46ch}
.hero-cta{display:flex;flex-wrap:wrap;gap:.8rem}
.hero-photo{position:relative;order:2;min-height:440px;background:#4d8fbd}
.hero-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 68%}
.hero-note{position:absolute;top:9%;right:8%;font-family:var(--f-script);font-size:clamp(1.5rem,2.3vw,2.1rem);line-height:1.1;color:#fff;transform:rotate(-5deg);text-align:right}

/* ---------- Confianza ---------- */
.perks{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line)}
.perks li{display:flex;align-items:center;gap:.85rem;padding:1.4rem 1.2rem}
.perks li+li{border-left:1px solid var(--line)}
.perks .icon{width:1.9rem;height:1.9rem;color:var(--blue);stroke-width:1.7}
.perks span{display:grid;font-size:.92rem;color:var(--muted);line-height:1.35}
.perks b{font-family:var(--f-head);font-weight:500;font-size:1.05rem;color:var(--ink)}

/* ---------- Secciones ---------- */
.section{padding:clamp(3.5rem,7vw,6rem) 0}
.sec-head{max-width:640px;margin-bottom:clamp(1.6rem,3vw,2.4rem);display:grid;gap:.6rem}
.sec-head h2{font-size:clamp(1.9rem,3.6vw,2.8rem)}
.sec-head p{color:var(--muted);font-size:1.08rem}

/* ---------- Catálogo ---------- */
.toolbar{display:flex;flex-wrap:wrap;gap:1rem 1.5rem;align-items:center;justify-content:space-between;margin-bottom:1.6rem}
.chips{display:flex;flex-wrap:wrap;gap:.5rem}
.chip-btn{min-height:44px;padding:.4rem 1.1rem;border-radius:999px;font-weight:500;color:var(--blue);background:transparent;box-shadow:inset 0 0 0 1.5px var(--blue);transition:background-color .15s,color .15s}
.chip-btn:hover{background:rgba(13,71,161,.08)}
.chip-btn.active{background:var(--blue);color:#fff}
.tools{display:flex;gap:.6rem}
.search{display:flex;align-items:center;gap:.5rem;background:#fff;border:1px solid var(--line);border-radius:var(--r-sm);padding:0 .9rem;min-height:46px;color:var(--muted)}
.search input{border:0;background:transparent;outline:0;min-width:170px;width:100%;color:var(--ink)}
.search:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue)}
select{min-height:46px;border-radius:var(--r-sm);border:1px solid var(--line);padding:0 .8rem;background:#fff;color:var(--ink)}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:1.25rem}
.card{background:#fff;border-radius:var(--r-md);padding:10px 10px 16px;display:flex;flex-direction:column;gap:.8rem}
.card-img{position:relative;aspect-ratio:1;border-radius:var(--r-sm);overflow:hidden;background:var(--paper)}
.card-img img{width:100%;height:100%;object-fit:cover}
.badge{position:absolute;top:.6rem;left:.6rem;z-index:2;padding:.2rem .65rem;border-radius:8px;font-size:.82rem;font-weight:500;background:var(--blue);color:#fff}
.badge.sale{background:var(--yellow);color:var(--ink)}
.badge.new{background:var(--tq);color:var(--ink)}
.card-body{padding:0 6px;display:grid;gap:.2rem}
.tag{font-size:.84rem;color:var(--muted)}
.card h3{font-size:1.12rem;font-weight:500;color:var(--ink);line-height:1.25}
.card p{font-size:.92rem;color:var(--muted)}
.card-foot{margin-top:auto;padding:0 6px;display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.price{display:grid;line-height:1.15}
.price b{font-weight:600;font-size:1.25rem;color:var(--ink);font-variant-numeric:tabular-nums}
.price s{font-size:.88rem;color:#5f6f8c}
.add{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;padding:.4rem 1rem;border-radius:999px;background:var(--blue);color:#fff;font:500 1rem var(--f-head);transition:background-color .15s}
.add:hover{background:var(--blue-d)}
.add.ok{background:var(--wa);color:var(--wa-ink)}
.empty{padding:3rem 0;display:grid;gap:1rem;justify-items:start;font-size:1.1rem}
.empty[hidden]{display:none}

/* ---------- Asesoría ---------- */
.advice{background:var(--blue);color:#fff;padding:clamp(3.5rem,7vw,6rem) 0}
.advice-inner{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,6vw,5rem);align-items:center}
.advice-copy{display:grid;gap:1.3rem;justify-items:start}
.advice h2{color:#fff;font-size:clamp(2rem,4vw,3.1rem)}
.advice-copy p{font-size:1.12rem;max-width:44ch;color:rgba(255,255,255,.92)}
.chat{display:grid;gap:.8rem}
.bubble{max-width:34ch;padding:.9rem 1.15rem;border-radius:22px;color:var(--ink);font-size:1.02rem;line-height:1.45}
.bubble.me{background:#fff;justify-self:end;border-bottom-right-radius:6px}
.bubble.us{background:var(--tq);justify-self:start;border-bottom-left-radius:6px}
.bubble b{display:block;font-family:var(--f-head);font-weight:500;color:var(--blue-d);font-size:.92rem;margin-bottom:.15rem}

/* ---------- Opiniones ---------- */
.reviews-inner{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(2rem,5vw,4.5rem);align-items:center}
.reviews-photo{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:42% 50%;border-radius:var(--r-lg)}
.quotes li{padding:1.3rem 0;border-top:1px solid var(--line)}
.quotes li:last-child{padding-bottom:0}
.quotes blockquote{margin:0 0 .4rem;font-size:clamp(1.1rem,1.6vw,1.3rem);line-height:1.4;color:var(--ink)}
.quotes cite{font-style:normal;color:var(--muted);font-size:.95rem}

/* ---------- Cómo comprar ---------- */
.how{background:#fff}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.5rem,4vw,3rem)}
.steps li{display:grid;gap:.5rem;justify-items:start;align-content:start}
.num{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--tq);color:var(--ink);font:600 1.5rem var(--f-head);margin-bottom:.4rem}
.steps h3{font-size:1.35rem}
.steps p{color:var(--muted)}
.faq{max-width:760px;margin-top:clamp(3rem,6vw,4.5rem)}
.faq h3{font-size:1.6rem;margin-bottom:.8rem}
.faq details{border-top:1px solid var(--line)}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;padding:1.1rem 0;font:500 1.1rem var(--f-head);color:var(--ink);display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:56px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.6rem;line-height:1;color:var(--blue);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{padding:0 2.5rem 1.2rem 0;color:var(--muted);max-width:62ch}

.outro{background:#fff;text-align:center;font-family:var(--f-script);font-size:clamp(1.6rem,3vw,2.3rem);line-height:1.2;color:var(--blue);padding:0 1.25rem clamp(4.5rem,8vw,6.5rem)}

/* ---------- Pie ---------- */
.footer{position:relative;background:var(--blue);color:#fff;padding-top:clamp(4rem,7vw,5.5rem)}
.footer .edge-top{fill:#fff}
.footer-grid{display:grid;grid-template-columns:1.1fr 1fr 1.1fr 1.5fr;gap:2.4rem;padding-bottom:3.5rem}
.f-brand{display:grid;gap:.8rem;justify-items:start;align-content:start}
.f-brand img{width:110px;height:110px}
.f-brand p{font-family:var(--f-head);font-size:1.15rem}
.footer h4{color:var(--tq);font-weight:500;font-size:1.1rem;margin-bottom:.7rem}
.footer li{padding:.35rem 0}
.footer li a{display:inline-block;padding:.35rem 0;margin:-.35rem 0;text-decoration:underline;text-decoration-color:rgba(255,255,255,.4);text-underline-offset:4px}
.footer li a:hover{text-decoration-color:#fff}
.footer .btn{margin-top:1rem}
.copy{text-align:center;padding:1.1rem 4% 1.4rem;font-size:.9rem;border-top:1px solid rgba(255,255,255,.2)}

/* ---------- Carrito ---------- */
.overlay{position:fixed;inset:0;z-index:1500;background:rgba(10,31,68,.55);opacity:0;pointer-events:none;transition:opacity .25s}
.overlay.show{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(440px,100%);z-index:1600;display:flex;flex-direction:column;background:var(--paper);transform:translateX(100%);visibility:hidden;transition:transform .3s ease-in,visibility 0s .3s;box-shadow:var(--float)}
.drawer.open{transform:none;visibility:visible;transition:transform .3s ease-out}
.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;border-bottom:1px solid var(--line);background:#fff}
.drawer-head h2{font-size:1.5rem}
.drawer-body{flex:1;overflow:auto;padding:1rem 1.25rem 1.5rem;overscroll-behavior:contain}
.cart-items{display:grid;gap:.7rem;align-content:start}
.fields{display:grid;gap:.8rem;margin-top:1.5rem;padding-top:1.3rem;border-top:1px solid var(--line)}
.drawer-body:has(.cart-empty) .fields{display:none}
.fields label{display:grid;gap:.3rem;font-size:.95rem;font-weight:500;color:var(--ink)}
.fields input{min-height:48px;border-radius:var(--r-sm);border:1.5px solid var(--line);padding:0 .9rem;background:#fff;font-size:1rem;font-weight:400}
.fields input:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 1.5px var(--blue)}
.drawer-foot{padding:1rem 1.25rem max(1rem,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}
.total-row{display:flex;justify-content:space-between;align-items:baseline;font-size:1.05rem;margin-bottom:.8rem}
.total-row b{font-weight:600;font-size:1.6rem;font-variant-numeric:tabular-nums}
.ci{display:grid;grid-template-columns:68px 1fr auto;gap:.8rem;align-items:center;background:#fff;border-radius:var(--r-md);padding:.6rem}
.ci.out{animation:slideOut .25s ease-in forwards}
@keyframes slideOut{to{opacity:0;transform:translateX(40px)}}
.ci img{width:68px;height:68px;object-fit:cover;border-radius:var(--r-sm)}
.ci h4{font-size:1rem;color:var(--ink);font-weight:500;line-height:1.25}
.ci .p{font-weight:500;color:var(--muted);margin:.1rem 0 .4rem;font-variant-numeric:tabular-nums}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:99px}
.qty button{width:44px;height:40px;display:grid;place-items:center;color:var(--blue);border-radius:99px}
.qty button:hover{background:rgba(13,71,161,.08)}
.qty span{min-width:24px;text-align:center;font-weight:500}
.ci .del{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--danger)}
.ci .del:hover{background:rgba(197,34,31,.1)}
.cart-empty{text-align:center;padding:3rem 1rem;display:grid;gap:.8rem;justify-items:center;color:var(--muted)}
.cart-empty .pawbig{width:64px;height:64px;background:var(--tq-d);-webkit-mask:var(--paw-one) center/contain no-repeat;mask:var(--paw-one) center/contain no-repeat}
.cart-empty h3{font-size:1.35rem}
.cart-empty .btn{margin-top:.4rem}

/* ---------- Flotantes ---------- */
.toast{position:fixed;left:50%;bottom:24px;z-index:1700;transform:translate(-50%,16px);opacity:0;pointer-events:none;background:var(--ink);color:#fff;padding:.75rem 1.2rem;border-radius:999px;font-weight:500;transition:opacity .2s,transform .2s;max-width:calc(100vw - 104px);text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
.fab-wa{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:900;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--wa);color:var(--wa-ink);box-shadow:var(--float)}
.fab-wa .icon{width:30px;height:30px}
.fab-wa:hover{background:#1fbf5b}

/* ---------- Adaptación ---------- */
@media (max-width:980px){
  .burger{display:grid}
  .nav-links{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;gap:0;padding:.5rem clamp(16px,4vw,40px) 1rem;background:var(--cream);border-bottom:1px solid var(--line)}
  .nav-links.open{display:flex}
  .nav-links a{padding:.9rem .5rem;font-size:1.1rem;border-radius:var(--r-sm)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .hero{grid-template-columns:1fr;min-height:0}
  .hero-photo{order:-1;min-height:0;height:min(44svh,420px)}
  .hero-photo img{object-position:50% 58%}
  .edge-v{display:none}
  .edge-h{display:block}
  .hero-copy{justify-self:start;max-width:none;padding:1.6rem clamp(16px,4vw,40px) 2.6rem}
  .hero-note{top:7%;right:6%}
  .perks{grid-template-columns:1fr}
  .perks li{padding:1rem 0}
  .perks li+li{border-left:0;border-top:1px solid var(--line)}
  .advice-inner,.reviews-inner{grid-template-columns:1fr}
  .reviews-photo{aspect-ratio:4/3}
  .steps{grid-template-columns:1fr}
  .toolbar{flex-direction:column;flex-wrap:nowrap;align-items:stretch}
  .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(-1*clamp(16px,4vw,40px));padding:2px clamp(16px,4vw,40px)}
  .chips::-webkit-scrollbar{display:none}
  .chip-btn{flex:none}
  .tools .search{flex:1}
  .search input{min-width:0}
}
@media (max-width:560px){
  .hero-cta{width:100%}
  .hero-cta .btn{flex:1 1 100%}
  .tools{flex-direction:column}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
  .card{padding:8px 8px 12px;border-radius:16px}
  .card h3{font-size:1rem;overflow-wrap:anywhere}
  .card p{display:none}
  .card-foot{flex-direction:column;align-items:stretch;gap:.5rem}
  .price b{font-size:1.15rem}
  .badge{font-size:.78rem;top:.45rem;left:.45rem}
  .footer-grid{grid-template-columns:1fr;gap:1.8rem}
  .copy{padding-bottom:5.5rem}
  .advice .btn{width:100%}
}
@media (max-width:359px){
  .grid{grid-template-columns:minmax(0,1fr)}
  .card p{display:block}
  .brand b{font-size:1.15rem}
}

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