/* ============================================================
   Bark & Cat — sistema de diseño (compartido por todas las páginas)
   Paleta derivada del logo: navy + celeste, acento cálido ámbar.
   ============================================================ */
:root{
  --navy:#16324f; --navy-800:#0f2740; --navy-900:#0a1c30;
  --sky:#7fc1e8; --sky-600:#2f8fce; --sky-100:#e8f4fb;
  --amber:#f6a92b; --amber-600:#e0961a;
  --milk:#f6fbff; --cream:#eef6fc; --tint:#e8f4fb;
  --ink:#12283d; --muted:#56697d; --line:rgba(22,50,79,.12);
  --shadow:0 18px 48px -22px rgba(22,50,79,.45);
  --r:20px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Nunito',system-ui,sans-serif;
  color:var(--ink); background:var(--milk);
  margin:0; line-height:1.6; -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,.display{font-family:'Fredoka',sans-serif;letter-spacing:-.01em;line-height:1.08;color:var(--navy)}
a{text-decoration:none}
img{max-width:100%}
.container{max-width:1140px}
::selection{background:var(--amber);color:var(--navy)}

/* ---- eyebrow con huella ---- */
.eyebrow{display:inline-flex;align-items:center;gap:.5rem;font-family:'Nunito';font-weight:800;
  font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;color:var(--sky-600);margin:0 0 .9rem}
.eyebrow svg{width:20px;height:auto;flex:none}
.eyebrow--light{color:#bfe3f5}

/* ---- botones ---- */
.btn{font-family:'Nunito';font-weight:700;border-radius:999px;padding:.72rem 1.5rem;border:2px solid transparent;transition:.18s}
.btn-cta{background:var(--amber);color:var(--navy);border-color:var(--amber)}
.btn-cta:hover{background:var(--amber-600);border-color:var(--amber-600);color:var(--navy);transform:translateY(-2px)}
.btn-navy{background:var(--navy);color:#fff;border-color:var(--navy)}
.btn-navy:hover{background:var(--navy-800);color:#fff;transform:translateY(-2px)}
.btn-ghost{background:transparent;color:var(--navy);border-color:rgba(22,50,79,.28)}
.btn-ghost:hover{background:var(--navy);color:#fff;border-color:var(--navy)}
.btn-ghost-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.btn-ghost-light:hover{background:#fff;color:var(--navy)}
.btn-sm{padding:.5rem 1rem;font-size:.9rem}
:focus-visible{outline:3px solid var(--amber);outline-offset:2px;border-radius:6px}

/* ---- navbar ---- */
.nav-wrap{position:sticky;top:0;z-index:1030;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(140%) blur(8px);border-bottom:1px solid var(--line)}
.navbar-brand img{height:62px;width:auto;display:block}
.nav-link{font-weight:700;color:var(--navy)!important;padding:.4rem .95rem!important;border-radius:999px}
.nav-link:hover,.nav-link.active{color:var(--sky-600)!important}
.navbar-toggler{border:none;padding:.25rem .5rem}
.navbar-toggler:focus{box-shadow:none}

/* ---- hero ---- */
.hero{padding:clamp(3rem,6vw,5.5rem) 0 clamp(3.5rem,6vw,6rem);position:relative;overflow:hidden}
.hero h1{font-size:clamp(2.3rem,5.3vw,4rem);font-weight:700}
.hero h1 .accent{color:var(--sky-600)}
.hero-lead{font-size:1.12rem;color:var(--muted);max-width:36rem;margin:1.1rem 0 1.8rem}
.hero-trust{display:flex;flex-wrap:wrap;gap:1.3rem;margin-top:2.2rem;color:var(--navy);font-weight:700;font-size:.92rem}
.hero-trust span{display:inline-flex;align-items:center;gap:.45rem}
.hero-trust svg{width:20px;height:20px;color:var(--sky-600)}

/* panel ovalado firma */
.brand-oval{position:relative;background:linear-gradient(160deg,var(--navy) 0%,var(--navy-800) 70%,var(--navy-900) 100%);
  border-radius:50%/38%;padding:3rem 2.4rem;box-shadow:var(--shadow);
  border:6px solid rgba(255,255,255,.14);color:#fff;min-height:340px;
  display:flex;flex-direction:column;justify-content:center}
.brand-oval::before{content:"";position:absolute;inset:12px;border-radius:50%/40%;border:2px solid rgba(255,255,255,.16)}
.oval-crown{position:absolute;top:-16px;left:50%;transform:translateX(-50%);width:64px;color:var(--sky);filter:drop-shadow(0 6px 10px rgba(0,0,0,.3))}
.oval-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem 1.1rem;position:relative;z-index:2}
.oval-item{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:16px;
  padding:.85rem .5rem;text-align:center}
.oval-item svg{width:34px;height:34px;color:#bfe3f5;margin-bottom:.3rem}
.oval-item small{display:block;font-size:.72rem;font-weight:700;letter-spacing:.02em;color:rgba(255,255,255,.9)}

/* ===== Hero full-bleed con carrusel (estilo ambios) ===== */
.hero-bc{position:relative;min-height:clamp(540px,80vh,760px);display:flex;align-items:center;
  color:#fff;overflow:hidden;background:var(--navy-900)}
.hero-bc .hb-slides{position:absolute;inset:0;z-index:0}
.hero-bc .hb-slide{position:absolute;inset:0;background-size:cover;background-repeat:no-repeat;
  background-position:center;opacity:0;transition:opacity 1.2s ease;will-change:opacity}
.hero-bc .hb-slide.active{opacity:1;animation:hbZoom 8s ease-out both}
@keyframes hbZoom{from{transform:scale(1.06)}to{transform:scale(1)}}
.hero-bc .hb-overlay{position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(10,28,48,.90) 0%,rgba(10,28,48,.66) 42%,rgba(10,28,48,.24) 78%,rgba(10,28,48,.06) 100%)}
.hero-bc .hb-overlay::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(10,28,48,.34),transparent 26%,transparent 66%,rgba(10,28,48,.5))}
.hero-bc .container{position:relative;z-index:2}
.hero-bc .hb-inner{max-width:640px;padding:clamp(2.5rem,6vw,4rem) 0}
.hero-bc h1{color:#fff;font-size:clamp(2.4rem,5.4vw,4rem);font-weight:700;line-height:1.05;margin:.25em 0 .4em;
  text-shadow:0 2px 24px rgba(0,0,0,.28)}
.hero-bc h1 .accent{color:var(--amber)}
.hero-bc .hb-lead{font-size:1.16rem;line-height:1.6;color:rgba(255,255,255,.94);max-width:36rem;margin:0 0 1.8rem}
.hero-bc .hb-trust{display:flex;flex-wrap:wrap;gap:1.3rem;margin-top:2.2rem;color:#fff;font-weight:700;font-size:.92rem}
.hero-bc .hb-trust span{display:inline-flex;align-items:center;gap:.45rem}
.hero-bc .hb-trust svg{width:20px;height:20px;color:var(--sky)}
/* puntos del carrusel */
.hero-bc .hb-dots{position:absolute;left:0;right:0;bottom:22px;z-index:3;display:flex;justify-content:center;gap:10px}
.hero-bc .hb-dot{width:11px;height:11px;padding:0;border:0;border-radius:50%;cursor:pointer;
  background:rgba(255,255,255,.42);transition:.2s;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.hero-bc .hb-dot:hover{background:rgba(255,255,255,.7)}
.hero-bc .hb-dot.active{background:var(--amber);width:30px;border-radius:999px}
/* indicador de scroll */
.hero-bc .scroll-cue{position:absolute;left:50%;bottom:46px;transform:translateX(-50%);z-index:3}
.hero-bc .scroll-cue .mouse{display:block;width:22px;height:34px;border:2px solid rgba(255,255,255,.65);border-radius:12px;position:relative}
.hero-bc .scroll-cue .mouse::before{content:"";position:absolute;left:50%;top:6px;width:4px;height:7px;border-radius:2px;
  background:#fff;transform:translateX(-50%);animation:hbWheel 1.6s ease-in-out infinite}
@keyframes hbWheel{0%{opacity:0;transform:translate(-50%,0)}30%{opacity:1}100%{opacity:0;transform:translate(-50%,11px)}}
@media (max-width:768px){.hero-bc{min-height:clamp(460px,74vh,600px)}
  .hero-bc .hb-overlay{background:linear-gradient(180deg,rgba(10,28,48,.62),rgba(10,28,48,.82))}
  .hero-bc .scroll-cue{display:none}}
@media (prefers-reduced-motion:reduce){.hero-bc .hb-slide.active{animation:none}
  .hero-bc .scroll-cue .mouse::before{animation:none}}

/* ---- barra de cifras ---- */
.stats{background:var(--navy);color:#fff;border-radius:var(--r);padding:2rem 1rem;box-shadow:var(--shadow)}
.stat .num{font-family:'Fredoka';font-weight:700;font-size:2.1rem;color:#fff;line-height:1}
.stat .num b{color:var(--amber);font-weight:700}
.stat .lbl{font-size:.86rem;color:rgba(255,255,255,.75);margin-top:.25rem}

/* ---- secciones ---- */
.section{padding:clamp(3.5rem,7vw,6rem) 0}
.section-tint{background:var(--tint)}
.section-head{max-width:44rem}
.section-head h2{font-size:clamp(1.9rem,3.6vw,2.7rem);font-weight:700}
.section-head p{color:var(--muted);font-size:1.06rem;margin-top:.7rem}

/* pilares */
.pillar{display:flex;gap:1rem;align-items:flex-start}
.pillar .ic{flex:none;width:52px;height:52px;border-radius:14px;background:var(--navy);color:#fff;display:grid;place-items:center}
.pillar .ic svg{width:26px;height:26px;color:#bfe3f5}
.pillar h4{font-size:1.15rem;margin:.1rem 0 .3rem}
.pillar p{color:var(--muted);font-size:.96rem;margin:0}

/* tarjetas perro / gato */
.spec{position:relative;border-radius:22px;padding:2rem 1.8rem;height:100%;overflow:hidden;color:#fff;
  box-shadow:var(--shadow);display:flex;flex-direction:column;min-height:300px}
.spec.dog{background:var(--navy)}
.spec.cat{background:var(--sky-600)}
.spec .spec-photo{position:absolute;inset:0;z-index:0;background-size:cover;background-position:center}
.spec::after{content:"";position:absolute;inset:0;z-index:1}
.spec.dog::after{background:linear-gradient(150deg,rgba(15,39,64,.84),rgba(10,28,48,.62) 55%,rgba(10,28,48,.5))}
.spec.cat::after{background:linear-gradient(150deg,rgba(18,74,116,.92),rgba(15,50,79,.78) 55%,rgba(15,50,79,.6))}
.spec .spec-ic,.spec h3,.spec p,.spec .btn{position:relative;z-index:2}
.spec .spec-ic{width:58px;height:58px;border-radius:16px;background:rgba(255,255,255,.18);backdrop-filter:blur(2px);display:grid;place-items:center;margin-bottom:1.1rem}
.spec .spec-ic svg{width:32px;height:32px;color:#fff}
.spec h3{color:#fff;font-size:1.5rem;margin:0 0 .4rem}
.spec p{color:rgba(255,255,255,.85);font-size:.98rem;margin:0 0 1.3rem}
.spec .btn{margin-top:auto;align-self:flex-start}

/* tarjetas de categoría (home) */
.cat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:1.6rem 1.4rem;height:100%;
  transition:.2s;box-shadow:0 1px 0 rgba(22,50,79,.03)}
.cat:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:transparent}
.cat .ic{width:56px;height:56px;border-radius:16px;background:var(--tint);display:grid;place-items:center;margin-bottom:1rem}
.cat .ic svg{width:30px;height:30px;color:var(--navy)}
.cat:hover .ic{background:var(--amber)}
.cat:hover .ic svg{color:var(--navy)}
.cat h4{font-size:1.18rem;margin:0 0 .35rem}
.cat p{color:var(--muted);font-size:.92rem;margin:0}

/* pasos cómo funciona */
.step{background:#fff;border-radius:18px;padding:1.7rem 1.5rem;height:100%;border:1px solid var(--line);position:relative}
.step .n{position:absolute;top:-14px;left:1.5rem;width:34px;height:34px;border-radius:50%;background:var(--amber);color:var(--navy);
  font-family:'Fredoka';font-weight:700;display:grid;place-items:center;font-size:1rem}
.step .ic{width:50px;height:50px;border-radius:50%;background:var(--navy);display:grid;place-items:center;margin:.4rem 0 1rem}
.step .ic svg{width:26px;height:26px;color:#bfe3f5}
.step h4{font-size:1.12rem;margin:0 0 .35rem}
.step p{color:var(--muted);font-size:.93rem;margin:0}

/* testimonios */
.review{background:#fff;border:1px solid var(--line);border-radius:18px;padding:1.6rem 1.5rem;height:100%}
.review .stars{color:var(--amber);font-size:1.05rem;letter-spacing:.1em;margin-bottom:.6rem}
.review p{color:var(--ink);font-size:.98rem;margin:0 0 1rem}
.review .who{display:flex;align-items:center;gap:.7rem}
.review .who .av{width:42px;height:42px;border-radius:50%;background:var(--tint);color:var(--navy);display:grid;place-items:center;font-family:'Fredoka';font-weight:700}
.review .who .nm{font-weight:800;font-size:.92rem;color:var(--navy)}
.review .who .pet{font-size:.8rem;color:var(--muted)}

/* CTA band */
.cta-band{background:linear-gradient(135deg,var(--navy),var(--navy-800));border-radius:26px;color:#fff;
  padding:clamp(2.4rem,5vw,3.6rem);text-align:center;box-shadow:var(--shadow);position:relative;overflow:hidden}
.cta-band h2{color:#fff;font-size:clamp(1.7rem,3.4vw,2.4rem)}
.cta-band p{color:rgba(255,255,255,.82);max-width:40rem;margin:.6rem auto 1.6rem}
.cta-crown{position:absolute;right:-10px;bottom:-24px;width:150px;color:rgba(127,193,232,.16)}

/* contacto */
.contact-info{background:var(--navy);color:#fff;border-radius:22px;padding:2.2rem 2rem;height:100%}
.contact-info h3{color:#fff}
.ci-row{display:flex;gap:.9rem;align-items:flex-start;margin-top:1.3rem}
.ci-row .ic{flex:none;width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.1);display:grid;place-items:center}
.ci-row .ic svg{width:20px;height:20px;color:var(--sky)}
.ci-row .k{font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.ci-row .v{font-weight:700}
.ci-row a{color:#fff}
.card-form{background:#fff;border:1px solid var(--line);border-radius:22px;padding:2.2rem 2rem;box-shadow:var(--shadow)}
.form-label{font-weight:700;color:var(--navy);font-size:.9rem;margin-bottom:.3rem}
.form-control,.form-select{border:1.5px solid var(--line);border-radius:12px;padding:.7rem .9rem;font-size:.95rem}
.form-control:focus,.form-select:focus{border-color:var(--amber);box-shadow:0 0 0 .2rem rgba(246,169,43,.2)}
.alert-ok{background:#e6f6ea;border:1px solid #9fd9ae;color:#1c6b34;border-radius:12px;padding:.8rem 1rem;font-weight:700}
.alert-err{background:#fdeaea;border:1px solid #f0b3b3;color:#93231f;border-radius:12px;padding:.8rem 1rem;font-weight:700}
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ============================================================
   TIENDA (catálogo, filtros, tarjetas de producto, detalle)
   ============================================================ */
.page-head{background:linear-gradient(160deg,var(--navy),var(--navy-800));color:#fff;padding:2.6rem 0 2.8rem}
.page-head h1{color:#fff;font-size:clamp(1.9rem,4vw,2.8rem)}
.page-head p{color:rgba(255,255,255,.8);margin:.5rem 0 0;max-width:40rem}
.crumbs{font-size:.85rem;color:rgba(255,255,255,.7);margin-bottom:.6rem}
.crumbs a{color:rgba(255,255,255,.85)}
.crumbs a:hover{color:#fff}

/* barra de filtros */
.filterbar{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;justify-content:space-between;
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:.9rem 1rem;box-shadow:0 1px 0 rgba(22,50,79,.03)}
.pill{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .95rem;border-radius:999px;font-weight:700;font-size:.9rem;
  border:1.5px solid var(--line);color:var(--navy);background:#fff;transition:.15s}
.pill:hover{border-color:var(--sky-600);color:var(--sky-600)}
.pill.active{background:var(--navy);border-color:var(--navy);color:#fff}
.pill svg{width:17px;height:17px}
.search-mini{display:flex;align-items:center;gap:.5rem;border:1.5px solid var(--line);border-radius:999px;padding:.35rem .9rem}
.search-mini input{border:none;outline:none;font-size:.92rem;background:transparent;min-width:150px}
.search-mini svg{width:18px;height:18px;color:var(--muted)}

/* tarjeta de producto */
.p-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;height:100%;
  display:flex;flex-direction:column;transition:.2s;box-shadow:0 1px 0 rgba(22,50,79,.03)}
.p-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:transparent}
.p-thumb{position:relative;aspect-ratio:4/3;background:var(--tint);display:grid;place-items:center;overflow:hidden}
.p-thumb img{width:100%;height:100%;object-fit:cover}
.p-thumb .ph{display:flex;flex-direction:column;align-items:center;gap:.4rem;color:var(--sky-600);opacity:.8}
.p-thumb .ph svg{width:56px;height:56px}
.p-thumb .ph small{font-family:'Fredoka';font-weight:600;font-size:.85rem;color:var(--navy);opacity:.7}
.p-badges{position:absolute;top:.7rem;left:.7rem;display:flex;flex-direction:column;gap:.35rem}
.badge-bc{font-family:'Nunito';font-weight:800;font-size:.68rem;letter-spacing:.04em;text-transform:uppercase;
  padding:.28rem .6rem;border-radius:999px;color:#fff}
.badge-oferta{background:var(--amber);color:var(--navy)}
.badge-especie{background:rgba(22,50,79,.85)}
.badge-agotado{background:#93231f}
.p-fav{position:absolute;top:.7rem;right:.7rem;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.92);
  display:grid;place-items:center;border:1px solid var(--line)}
.p-fav svg{width:18px;height:18px;color:var(--navy)}
.p-fav:hover{background:#fff}
.p-body{padding:1.1rem 1.1rem 1.2rem;display:flex;flex-direction:column;flex:1}
.p-cat{font-size:.74rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--sky-600);margin-bottom:.2rem}
.p-name{font-family:'Fredoka';font-weight:600;font-size:1.08rem;color:var(--navy);margin:0 0 .5rem;line-height:1.2}
.p-name a{color:inherit}
.p-name a:hover{color:var(--sky-600)}
.p-price{display:flex;align-items:baseline;gap:.5rem;margin-top:auto}
.p-price .now{font-family:'Fredoka';font-weight:700;font-size:1.3rem;color:var(--navy)}
.p-price .was{font-size:.92rem;color:var(--muted);text-decoration:line-through}
.p-actions{display:flex;gap:.5rem;margin-top:.9rem}
.p-actions .btn{flex:1;text-align:center}

/* estado vacío */
.empty{background:#fff;border:1px dashed var(--line);border-radius:18px;padding:3rem 1.5rem;text-align:center;color:var(--muted)}
.empty svg{width:54px;height:54px;color:var(--sky);margin-bottom:.8rem}

/* detalle de producto */
.detail-thumb{background:var(--tint);border-radius:22px;aspect-ratio:1/1;display:grid;place-items:center;overflow:hidden;box-shadow:var(--shadow)}
.detail-thumb img{width:100%;height:100%;object-fit:cover}
.detail-thumb .ph{display:flex;flex-direction:column;align-items:center;gap:.6rem;color:var(--sky-600)}
.detail-thumb .ph svg{width:96px;height:96px}
.detail-price{display:flex;align-items:baseline;gap:.7rem;margin:.4rem 0 1rem}
.detail-price .now{font-family:'Fredoka';font-weight:700;font-size:2rem;color:var(--navy)}
.detail-price .was{font-size:1.1rem;color:var(--muted);text-decoration:line-through}
.spec-list{list-style:none;padding:0;margin:1rem 0}
.spec-list li{display:flex;gap:.6rem;padding:.5rem 0;border-bottom:1px solid var(--line);font-size:.95rem}
.spec-list li b{color:var(--navy);min-width:130px}
.info-box{background:#fff;border:1px solid var(--line);border-radius:16px;padding:1.4rem 1.5rem;height:100%}
.info-box h4{font-size:1.1rem;margin:0 0 .6rem}
.info-box p{color:var(--muted);font-size:.95rem;margin:0}

/* footer */
footer{background:var(--navy-900);color:rgba(255,255,255,.72);padding:3.2rem 0 1.6rem;margin-top:3rem}
footer h5{color:#fff;font-family:'Fredoka';font-size:1rem;letter-spacing:.02em;margin-bottom:.9rem}
footer a{color:rgba(255,255,255,.72)}
footer a:hover{color:var(--amber)}
.foot-brand{display:flex;align-items:center;margin-bottom:1rem}
.foot-brand img{height:84px;width:auto;display:block}
.foot-links li{margin-bottom:.5rem;list-style:none}
.foot-links{padding:0}
.soc{display:flex;gap:.6rem;margin-top:1rem}
.soc a{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.08);display:grid;place-items:center}
.soc a:hover{background:var(--amber)}
.soc svg{width:20px;height:20px;color:#fff}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:2.2rem;padding-top:1.3rem;font-size:.85rem}

/* ---- cabecera: cuenta y carrito ---- */
.nav-icon{position:relative;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--navy)}
.nav-icon:hover{background:var(--sky-100)}
.nav-icon svg{width:24px;height:24px}
.cart-badge{position:absolute;top:1px;right:1px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--amber);color:var(--navy);font-size:.68rem;font-weight:800;display:grid;place-items:center;line-height:1}
.nav-user{font-weight:700;color:var(--navy);font-size:.92rem;white-space:nowrap}
.nav-user b{color:var(--sky-600)}

/* ---- mensajes flash ---- */
.flash{border-radius:12px;padding:.75rem 1rem;font-weight:700;margin-top:1rem}
.flash-ok{background:#e6f6ea;border:1px solid #9fd9ae;color:#1c6b34}
.flash-err{background:#fdeaea;border:1px solid #f0b3b3;color:#93231f}
.flash-info{background:var(--sky-100);border:1px solid #bfe3f5;color:var(--navy)}

/* ---- formularios de cuenta ---- */
.auth-card{max-width:460px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:22px;padding:2.4rem 2.2rem;box-shadow:var(--shadow)}
.auth-card h1{font-size:1.7rem;margin-bottom:.2rem}
.auth-sub{color:var(--muted);margin-bottom:1.4rem}
.auth-alt{text-align:center;margin-top:1.2rem;color:var(--muted);font-size:.95rem}
.auth-alt a{color:var(--sky-600);font-weight:700}

/* ---- carrito ---- */
.cart-row{display:flex;gap:1rem;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:.9rem 1rem;margin-bottom:.9rem}
.cart-row .thumb{flex:none;width:76px;height:76px;border-radius:12px;background:var(--tint);display:grid;place-items:center;overflow:hidden}
.cart-row .thumb img{width:100%;height:100%;object-fit:cover}
.cart-row .thumb svg{width:34px;height:34px;color:var(--sky-600)}
.cart-row .nm{font-family:'Fredoka';font-weight:600;color:var(--navy);margin:0;line-height:1.2}
.cart-row .nm a{color:inherit}
.cart-row .meta{font-size:.85rem;color:var(--muted)}
.cart-row .price{font-family:'Fredoka';font-weight:700;color:var(--navy)}
.qty{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:999px;overflow:hidden}
.qty a{width:32px;height:34px;display:grid;place-items:center;color:var(--navy);font-weight:800;font-size:1.1rem}
.qty a:hover{background:var(--sky-100)}
.qty span{min-width:36px;text-align:center;font-weight:700}
.cart-remove{color:var(--muted);font-size:.85rem;font-weight:700}
.cart-remove:hover{color:#93231f}
.cart-summary{background:#fff;border:1px solid var(--line);border-radius:18px;padding:1.5rem 1.6rem;box-shadow:var(--shadow);position:sticky;top:90px}
.cart-summary h4{font-size:1.15rem;margin:0 0 1rem}
.cart-summary .line{display:flex;justify-content:space-between;padding:.4rem 0;color:var(--muted)}
.cart-summary .line.total{border-top:1px solid var(--line);margin-top:.5rem;padding-top:.8rem;color:var(--navy);font-family:'Fredoka';font-weight:700;font-size:1.3rem}
.qty-input{width:64px;border:1.5px solid var(--line);border-radius:10px;padding:.5rem;text-align:center;font-weight:700}

/* ---- checkout / confirmación / cuenta ---- */
.estado-badge{display:inline-block;font-family:'Nunito';font-weight:800;font-size:.72rem;letter-spacing:.04em;
  text-transform:uppercase;padding:.28rem .7rem;border-radius:999px}
.mini-item{display:flex;justify-content:space-between;gap:.6rem;padding:.5rem 0;border-bottom:1px solid var(--line);font-size:.92rem}
.mini-item:last-child{border-bottom:none}
.mini-item .q{color:var(--muted)}
.order-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:1.2rem 1.3rem;margin-bottom:1rem;
  display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;justify-content:space-between;transition:.18s}
.order-card:hover{box-shadow:var(--shadow);border-color:transparent}
.order-card .code{font-family:'Fredoka';font-weight:700;color:var(--navy);font-size:1.05rem}
.order-card .when{font-size:.85rem;color:var(--muted)}
.order-card .amt{font-family:'Fredoka';font-weight:700;color:var(--navy)}
.confirm-hero{width:82px;height:82px;border-radius:50%;background:var(--sky-100);display:grid;place-items:center;margin:0 auto 1rem}
.confirm-hero svg{width:44px;height:44px;color:#2e7d46}
.acct-side{background:#fff;border:1px solid var(--line);border-radius:16px;padding:1.3rem;box-shadow:0 1px 0 rgba(22,50,79,.03)}
.acct-side .lbl{font-size:.74rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800;margin-top:.8rem}
.acct-side .val{color:var(--navy);font-weight:700}

/* ---- mascotas ---- */
.pet-card{display:flex;gap:1rem;align-items:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:1.1rem 1.2rem;transition:.18s;height:100%}
.pet-card:hover{box-shadow:var(--shadow);border-color:transparent;transform:translateY(-3px)}
.pet-avatar{flex:none;width:64px;height:64px;border-radius:50%;background:var(--tint);display:grid;place-items:center;overflow:hidden}
.pet-avatar.lg{width:96px;height:96px}
.pet-avatar img{width:100%;height:100%;object-fit:cover}
.pet-avatar svg{width:34px;height:34px;color:var(--sky-600)}
.pet-avatar.lg svg{width:52px;height:52px}
.pet-card .nm{font-family:'Fredoka';font-weight:600;color:var(--navy);margin:0;font-size:1.15rem}
.pet-card .meta{font-size:.85rem;color:var(--muted)}
.pet-stat{background:var(--tint);border-radius:14px;padding:.9rem 1rem;text-align:center;height:100%}
.pet-stat .v{font-family:'Fredoka';font-weight:700;color:var(--navy);font-size:1.3rem;line-height:1.1}
.pet-stat .k{font-size:.76rem;color:var(--muted);margin-top:.2rem}
.chart-box{background:#fff;border:1px solid var(--line);border-radius:18px;padding:1.4rem 1.5rem;box-shadow:0 1px 0 rgba(22,50,79,.03)}
.growth-table{width:100%;border-collapse:collapse}
.growth-table th{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);text-align:left;padding:.55rem .5rem;border-bottom:2px solid var(--line)}
.growth-table td{padding:.6rem .5rem;border-bottom:1px solid var(--line);font-size:.92rem;color:var(--ink)}
.growth-table tr:last-child td{border-bottom:none}
.growth-table .del{color:var(--muted);font-weight:700;font-size:.82rem}
.growth-table .del:hover{color:#93231f}

/* ---- páginas legales ---- */
.legal-card{background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:0 1px 0 rgba(22,50,79,.03);padding:clamp(1.5rem,4vw,2.6rem);max-width:820px}
.legal-card h2{font-size:1.35rem;font-weight:700;margin:2rem 0 .7rem;color:var(--navy)}
.legal-card h2:first-child{margin-top:0}
.legal-card p{color:var(--ink);margin:0 0 1rem;line-height:1.7}
.legal-card ul{margin:0 0 1rem;padding-left:1.2rem}
.legal-card li{margin:.35rem 0;line-height:1.6}
.legal-card strong{color:var(--navy)}
.legal-card a{color:var(--sky-600);font-weight:700}
.legal-updated{display:inline-block;margin-top:1rem;font-size:.85rem;font-weight:700;color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:.35rem .9rem}

/* ---- suscripciones (cliente) ---- */
.sub-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:1.4rem 1.5rem;margin-bottom:1.2rem;box-shadow:0 1px 0 rgba(22,50,79,.03)}
.sub-card .sub-head{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;justify-content:space-between;margin-bottom:1rem}
.sub-card .sub-title{font-family:'Fredoka';font-weight:600;color:var(--navy);font-size:1.15rem;margin:0}
.sub-meta{display:flex;flex-wrap:wrap;gap:1.2rem;color:var(--muted);font-size:.9rem;margin-bottom:.9rem}
.sub-meta b{color:var(--navy)}
.sub-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;border-top:1px solid var(--line);padding-top:.9rem;margin-top:.3rem}

/* ============================================================
   PANEL DE ADMINISTRACIÓN
   ============================================================ */
.admin-body{background:#eef3f8}
.admin-top{background:var(--navy);color:#fff;padding:.7rem 1.4rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;position:sticky;top:0;z-index:1030}
.admin-top .brand{display:flex;align-items:center;gap:.6rem}
.admin-top .brand img{height:44px;width:auto;display:block}
.admin-top .tag{font-size:.7rem;background:var(--amber);color:var(--navy);font-weight:800;padding:.1rem .5rem;border-radius:999px;letter-spacing:.04em}
.admin-top a{color:rgba(255,255,255,.85);font-weight:700;font-size:.9rem}
.admin-top a:hover{color:#fff}
.admin-wrap{display:flex;min-height:calc(100vh - 52px);align-items:stretch}
.admin-side{flex:none;width:230px;background:#fff;border-right:1px solid var(--line);padding:1.2rem .8rem}
.admin-nav a{display:flex;align-items:center;gap:.6rem;padding:.7rem .9rem;border-radius:12px;color:var(--navy);font-weight:700;font-size:.95rem;margin-bottom:.25rem}
.admin-nav a:hover{background:var(--sky-100)}
.admin-nav a.active{background:var(--navy);color:#fff}
.admin-nav a svg{width:20px;height:20px}
.admin-main{flex:1;padding:1.8rem 2rem;min-width:0}
.admin-main h1{font-size:1.6rem;margin:0 0 1.2rem}
.metric{background:#fff;border:1px solid var(--line);border-radius:16px;padding:1.2rem 1.3rem}
.metric .v{font-family:'Fredoka';font-weight:700;font-size:1.9rem;color:var(--navy);line-height:1}
.metric .k{font-size:.85rem;color:var(--muted);margin-top:.3rem}
.metric .v b{color:var(--amber)}
.admin-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:1.3rem 1.4rem}
.admin-table{width:100%;border-collapse:collapse;font-size:.92rem}
.admin-table th{text-align:left;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:.6rem .6rem;border-bottom:2px solid var(--line)}
.admin-table td{padding:.7rem .6rem;border-bottom:1px solid var(--line);vertical-align:middle}
.admin-table tr:hover td{background:#f8fbfe}
.admin-table .thumbmini{width:44px;height:44px;border-radius:10px;background:var(--tint);display:grid;place-items:center;overflow:hidden}
.admin-table .thumbmini img{width:100%;height:100%;object-fit:cover}
.admin-table .thumbmini svg{width:22px;height:22px;color:var(--sky-600)}
.chip{display:inline-block;font-size:.72rem;font-weight:800;padding:.2rem .55rem;border-radius:999px}
.chip-on{background:#e6f6ea;color:#1c6b34}
.chip-off{background:#fdeaea;color:#93231f}
.chip-low{background:#fff3e0;color:#a35b00}
@media (max-width:820px){
  .admin-wrap{flex-direction:column}
  .admin-side{width:auto;border-right:none;border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;gap:.3rem}
  .admin-nav{display:flex;flex-wrap:wrap;gap:.3rem}
  .admin-nav a{margin:0}
  .admin-main{padding:1.2rem}
}

@media (max-width:575px){
  .navbar-brand img{height:50px}
  .brand-oval{border-radius:36px;padding:2.4rem 1.4rem}
  .brand-oval::before{border-radius:26px}
  .cart-summary{position:static}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
