/* ============ Tokens ============ */
:root {
  --bg: #fff9f2;
  --surface: #ffffff;
  --ink: #1f2440;
  --muted: #6a6e80;
  --line: #efe5d8;

  --coral: #f2705c;
  --sun: #f5b43c;
  --teal: #1f9e89;
  --sky: #4f9fe0;
  --lilac: #9b7bf0;

  --danger: #c94236;
  --ok: #1f8a5b;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(31, 36, 64, .25);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --coral-strong: #c63c28; /* coral para texto y botones (contraste AA) */
  --c: var(--coral);        /* color de la categoría: fondos e iconos */
  --ct: var(--coral-strong); /* versión oscura de la categoría: textos */
}


/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; } /* nada se sale por los lados (sin romper la cabecera fija) */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
em { font-style: italic; font-weight: 500; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; }
.section { padding: 72px 20px; }
.muted { color: var(--muted); }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-strong); margin-bottom: 10px; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 40px; }

/* ============ Header ============ */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 249, 242, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.header-inner .logo { flex: 0 1 auto; min-width: 0; } /* el nombre cede espacio al menú */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: clamp(1.02rem, .82rem + .9vw, 1.35rem); font-weight: 700; }
.logo-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-mark { flex: none; }
.main-nav { flex: none; }
.dropdown-menu-icon { display: none; width: 20px; height: 20px; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--coral); color: #fff; transform: rotate(-12deg); transition: transform .4s; }
.logo:hover .logo-mark { transform: rotate(12deg) scale(1.08); }
.logo-mark .icon { width: 20px; height: 20px; }
.main-nav { display: flex; align-items: center; gap: 10px; }

/* Desplegable de categorías */
.dropdown { position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: .95rem; font-weight: 500; cursor: pointer; user-select: none; transition: background .2s; }
.dropdown-btn:hover, .dropdown[open] .dropdown-btn { background: #f3ebe1; }
.dropdown-btn.is-current { color: var(--coral-strong); }
.dropdown-btn .chevron { width: 16px; height: 16px; transition: transform .2s; }
.dropdown[open] .chevron { transform: rotate(180deg); }
.dropdown-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; min-width: 260px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 48px -20px rgba(31, 36, 64, .3); animation: drop .18s ease-out; }
.dropdown-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; font-size: .95rem; font-weight: 500; transition: background .15s, color .15s; }
.dropdown-item:hover, .dropdown-item.active { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--ct); }
.dropdown-item.active { font-weight: 600; }
.dropdown-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--c); color: #fff; }
.dropdown-icon .icon { width: 18px; height: 18px; }
.dropdown-all { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 12px 10px 6px; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--coral-strong); }
.dropdown-all .icon { width: 16px; height: 16px; transition: transform .2s; }
.dropdown-all:hover .icon { transform: translateX(3px); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-cta { flex: none; font-weight: 500; font-size: .95rem; background: var(--ink); color: #fff; padding: 8px 18px; border-radius: 999px; transition: background .2s; }
.nav-cta:hover { background: var(--coral-strong); }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 14px 28px; border-radius: 999px; font: 600 1rem var(--sans); cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; background: var(--ink); color: #fff; }
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(4px); }
.btn-primary { background: var(--coral-strong); box-shadow: 0 2px 0 rgba(31, 36, 64, .12); }
.btn-primary:hover { background: #a93220; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.danger { color: var(--danger); }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; padding: 72px 0 110px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; font-size: .85rem; font-weight: 500; box-shadow: 0 6px 16px -10px rgba(31,36,64,.2); }
.pill .icon { color: var(--coral); }
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); margin: 22px 0 20px; }
.hero h1 em { color: var(--coral-strong); font-weight: 700; white-space: nowrap; }
.lead { color: #4f5366; font-size: 1.15rem; max-width: 520px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.blob { position: absolute; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; filter: blur(2px); opacity: .55; z-index: 0; animation: morph 14s ease-in-out infinite; }
.blob-1 { width: 420px; height: 420px; background: #ffd9cf; top: -120px; right: -80px; }
.blob-2 { width: 280px; height: 280px; background: #ffeab8; bottom: -60px; left: -90px; animation-delay: -4s; }
.blob-3 { width: 180px; height: 180px; background: #cdeee6; top: 40%; left: 46%; animation-delay: -8s; }

.hero-visual { position: relative; height: 480px; }
.hero-circle { position: absolute; inset: 40px 30px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffe3d6, #ffd0c0 60%, #ffc0ad); }
.hero-paw { position: absolute; inset: 0; display: grid; place-items: center; color: var(--coral); }
.hero-paw .icon { width: 180px; height: 180px; animation: float 5s ease-in-out infinite; }
.hero-card { position: absolute; width: 210px; background: #fff; border-radius: 20px; padding: 10px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; transition: transform .3s; }
.hero-card-img { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--c) 22%, #fff); }
.hero-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-body { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 6px 4px; font-size: .85rem; }
.hero-card-body span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-card-body strong { color: var(--ct); white-space: nowrap; }
.hero-card-1 { top: 0; left: 4%; --r: -6deg; }
.hero-card-2 { top: 70px; right: 0; --r: 5deg; animation-delay: -2s; }
.hero-card-3 { bottom: 0; left: 24%; --r: -3deg; animation-delay: -4s; z-index: 1; }

.paw-trail { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 56px; z-index: 1; color: var(--coral); }
.paw-trail span { opacity: 0; animation: step 8s infinite; animation-delay: calc(var(--i) * .45s); }
.paw-trail span:nth-child(odd) { transform: translateY(-14px) rotate(80deg); }
.paw-trail span:nth-child(even) { transform: translateY(10px) rotate(100deg); }
.paw-trail .icon { width: 22px; height: 22px; }

/* ============ Marquee ============ */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: -10px -20px 0; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.marquee-paw { color: var(--sun); width: 22px; height: 22px; }
.marquee-track .icon:nth-of-type(5n+2) { color: var(--coral); }
.marquee-track .icon:nth-of-type(5n+3) { color: #6fd6c3; }
.marquee-track .icon:nth-of-type(5n+4) { color: #c3b0ff; }

/* ============ Categorías ============ */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 26px 22px; border: 0; border-radius: var(--radius); cursor: pointer; font: inherit; color: var(--ink); background: color-mix(in srgb, var(--c) 16%, #fff); transition: transform .3s, box-shadow .3s, background .3s; }
.cat-tile::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--c); opacity: .14; right: -50px; bottom: -60px; transition: transform .5s; }
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: color-mix(in srgb, var(--c) 26%, #fff); }
.cat-tile:hover::after { transform: scale(1.6); }
.cat-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--c); color: #fff; margin-bottom: 14px; transition: transform .3s; }
.cat-tile:hover .cat-icon { transform: rotate(-10deg) scale(1.08); }
.cat-icon .icon { width: 28px; height: 28px; }
.cat-label { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.cat-count { font-size: .85rem; color: var(--muted); }

/* ============ Productos ============ */
.products-section { background: #fff; border-radius: 48px 48px 0 0; padding-left: 0; padding-right: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; padding: 8px 18px; border-radius: 999px; font: 500 .9rem var(--sans); cursor: pointer; color: var(--ink); transition: all .2s; }
.chip:hover { border-color: var(--ct); color: var(--ct); }
.chip.active { background: var(--ct); border-color: var(--ct); color: #fff; }
.chip[data-filter="all"] { --ct: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-img { position: relative; aspect-ratio: 1; background: color-mix(in srgb, var(--c) 18%, #fff); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.06); }
.card:hover .ph-icon { transform: scale(1.12) rotate(-8deg); }
.tag { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ct); font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.tag-static { position: static; display: inline-block; background: color-mix(in srgb, var(--c) 16%, #fff); margin-bottom: 14px; }
.badge-new { position: absolute; top: 14px; right: 14px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 12px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.card-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, #fff); color: var(--ct); transition: background .25s, color .25s, transform .25s; }
.card:hover .card-go { background: var(--ct); color: #fff; transform: rotate(-30deg); }
.img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--c); }
.ph-icon { width: 38%; height: 38%; opacity: .85; transition: transform .5s; }
.empty { color: var(--muted); text-align: center; padding: 48px 0; }

/* ============ Página de categoría ============ */
.cat-hero { background: color-mix(in srgb, var(--c) 14%, var(--bg)); padding: 48px 0; }
.cat-hero-inner { display: flex; align-items: center; gap: 24px; }
.cat-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; color: var(--ink); }
.cat-hero .back { margin-bottom: 6px; }
.cat-hero p { margin: 4px 0 0; }
.cat-icon-lg { width: 84px; height: 84px; border-radius: 24px; margin: 0; flex: none; }
.cat-icon-lg .icon { width: 42px; height: 42px; }

/* ============ Ficha de producto ============ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-media { aspect-ratio: 1; border-radius: 32px; overflow: hidden; background: color-mix(in srgb, var(--c) 20%, #fff); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .ph-icon { width: 34%; height: 34%; }
.product-info h1 { font-size: clamp(2rem, 4vw, 3rem); }
.back { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.back:hover { color: var(--coral-strong); }
.price.big { font-size: 1.9rem; margin: 0 0 10px; color: var(--ct); }
.stock { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-size: .92rem; font-weight: 500; margin: 0; }
.stock .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); }
.stock.out { color: var(--danger); }
.description { margin-top: 24px; color: #474b5e; font-size: 1.05rem; }
.impact-note { display: flex; gap: 14px; align-items: center; margin-top: 30px; padding: 18px 20px; border-radius: 16px; background: #fff0ec; }
.impact-note > span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: #fff; }
.impact-note p { margin: 0; font-size: .95rem; }
.related { padding-top: 0; }

/* ============ Formularios / Admin ============ */
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; }
.form input[type=text], .form input[type=password], .form input[type=number], .form textarea, .form input[type=file], .form select {
  font: 400 1rem var(--sans); padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid #ffe0d8; border-color: var(--coral); }
.form .check { flex-direction: row; align-items: center; gap: 10px; }
.form .btn { align-self: flex-start; }
.error { color: var(--danger); font-weight: 400; }
.current-img { display: flex; align-items: center; gap: 12px; }
.current-img img, .current-img .img-placeholder { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.table th { font-weight: 500; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.table tr:last-child td { border-bottom: 0; }
.thumb { width: 64px; }
.thumb img, .thumb .img-placeholder { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #fbeee6; }
.actions { text-align: right; white-space: nowrap; }
.actions > a, .actions > form { display: inline-block; margin-left: 14px; }
.actions a { color: var(--ink); font-weight: 500; }
.actions a:hover { color: var(--coral-strong); }
.badge { font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
.badge.on { background: #e3f4ea; color: var(--ok); }
.badge.off { background: #fbe6e3; color: var(--danger); }

.flashes { padding-top: 20px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; font-size: .95rem; }
.flash-success { background: #e3f4ea; color: var(--ok); }
.flash-info { background: #fff1e0; color: #8a5a17; }
.flash-error { background: #fbe6e3; color: var(--danger); }

/* ============ Footer ============ */
.site-footer { margin-top: 40px; background: #fff; }
.stripes { display: flex; height: 6px; }
.stripes span { flex: 1; }
.stripes span:nth-child(1) { background: var(--coral); }
.stripes span:nth-child(2) { background: var(--sun); }
.stripes span:nth-child(3) { background: var(--teal); }
.stripes span:nth-child(4) { background: var(--sky); }
.stripes span:nth-child(5) { background: var(--lilac); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.footer-inner p { margin: 10px 0 0; max-width: 380px; font-size: .92rem; }
.made .icon { vertical-align: -0.15em; }
.heart-inline { color: var(--coral-strong); }

/* ============ Animaciones ============ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-6px); transition-delay: 0s; }
.js .cat-tile.reveal.in:hover { transform: translateY(-6px); transition-delay: 0s; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }
@keyframes morph { 0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(0, 0); } 50% { border-radius: 63% 37% 40% 60% / 55% 62% 38% 45%; transform: translate(20px, -16px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes step { 0% { opacity: 0; } 8%, 45% { opacity: .55; } 60%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .paw-trail span { opacity: .4; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 760px) {
  .section { padding: 52px 16px; }
  .hero { padding: 40px 0 90px; }
  .header-inner { height: 64px; gap: 12px; }
  .main-nav { gap: 4px; }
  .nav-cta { display: none; } /* en móvil, "Ver toda la tienda" está en el desplegable */
  .dropdown-panel { position: fixed; top: 72px; left: 16px; right: 16px; min-width: 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-tile { padding: 20px 18px; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .products-section { border-radius: 32px 32px 0 0; }
  .hero-visual { height: 330px; }
  .hero-card { width: 140px; padding: 8px; }
  .hero-card-2 { top: 40px; }
  .hero-card-3 { left: 22%; }
  .hero-card-body { font-size: .75rem; }
  .paw-trail { gap: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 14px; }
  .card-body h3 { font-size: 1rem; }
}
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .logo { gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-mark .icon { width: 17px; height: 17px; }
  /* «Categorías» pasa a icono para que quepan cuenta y carrito */
  .dropdown-label, .dropdown-btn .chevron { display: none; }
  .dropdown-menu-icon { display: block; }
  .dropdown-btn { padding: 0; width: 40px; height: 40px; justify-content: center; }
  .nav-icon { min-width: 40px; height: 40px; }
  .main-nav { gap: 2px; }
}
@media (max-width: 380px) {
  .logo { font-size: .96rem; gap: 6px; letter-spacing: -.01em; }
  .logo-mark { width: 28px; height: 28px; }
  .dropdown-btn, .nav-icon { width: 36px; min-width: 36px; height: 36px; }
  .nav-account .level-badge { transform: scale(.9); }
}
@media (max-width: 345px) {
  .logo { font-size: .86rem; }
  .logo-mark { width: 26px; height: 26px; }
  .logo-mark .icon { width: 15px; height: 15px; }
  .main-nav { gap: 0; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}


/* ============ Precios, stock y galería de producto ============ */
.price ins { text-decoration: none; color: var(--coral-strong); }
.price del { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 4px; }
.price.big ins { color: var(--ct); }
.price-line { margin: 0 0 6px; }
.price-line .price.big { margin: 0; }
.sale-until { margin: 0 0 10px; font-size: .9rem; color: var(--coral-strong); font-weight: 500; }
.badge-sale { background: var(--coral-strong); }
.badge-out { background: #6a6e80; }
.card.is-out .card-img img, .card.is-out .img-placeholder { opacity: .55; filter: grayscale(.4); }
.stock.stock-pocas, .stock.stock-bajo_pedido { color: #9a5f00; }
.stock.stock-agotado { color: var(--danger); }
.tag-digital { background: #ece8ff; color: #5b3cc4; margin-left: 6px; }
.short-description { margin-top: 20px; font-size: 1.08rem; color: #3d4155; }
.meta-line { margin: 18px 0 0; font-size: .85rem; color: var(--muted); }

.product-gallery { display: flex; flex-direction: column; gap: 14px; }
.product-media { position: relative; }
.media-badge { top: 18px; right: 18px; font-size: .85rem; padding: 6px 14px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.thumb-btn { aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; cursor: pointer; background: none; opacity: .7; transition: opacity .15s, border-color .15s; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn:hover { opacity: 1; }
.thumb-btn.active { opacity: 1; border-color: var(--ct, var(--ink)); }

.product-more { padding-top: 0; }
.product-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.product-more h2 { font-size: 1.6rem; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; font-weight: 600; padding-right: 16px; }
.spec-table td { color: #474b5e; }

/* ============ Selector de variaciones ============ */
.price .from { font-size: .72em; font-weight: 500; color: var(--muted); }
.variant-picker { margin: 22px 0 6px; display: grid; gap: 18px; }
.vp-label { margin: 0 0 10px; font-size: .95rem; color: var(--muted); }
.vp-label strong { color: var(--ink); font-weight: 600; }
.vp-options { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 12px; font: 500 .93rem var(--sans); cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.vp-chip:hover { border-color: var(--ct, var(--ink)); transform: translateY(-1px); }
.vp-chip.active { border-color: var(--ct, var(--ink)); background: var(--ct, var(--ink)); color: #fff; }
.vp-chip.is-out:not(.active) { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.vp-chip.is-unavailable { opacity: .35; cursor: not-allowed; transform: none; border-style: dashed; }
.vp-desc { padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: .95rem; }
.vp-desc > :first-child { margin-top: 0; }
.vp-desc > :last-child { margin-bottom: 0; }

/* ============ Descripciones con formato ============ */
.rich p { margin: 0 0 1em; }
.rich h2 { font-size: 1.45rem; margin: 1.4em 0 .5em; }
.rich h3 { font-size: 1.2rem; margin: 1.3em 0 .5em; }
.rich h4 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.rich ul, .rich ol { padding-left: 1.3em; margin: 0 0 1em; }
.rich li { margin-bottom: .35em; }
.rich a { color: var(--coral-strong); text-decoration: underline; text-underline-offset: 2px; }
.rich img { border-radius: 16px; margin: 1em auto; height: auto; }
.rich table { border-collapse: collapse; margin: 0 0 1em; font-size: .92rem; display: block; overflow-x: auto; }
.rich th, .rich td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.rich th { background: #fbf6ef; }
.rich > :first-child { margin-top: 0; }
.short-description.rich p:last-child { margin-bottom: 0; }

/* ============ Cabecera: cuenta y carrito ============ */
.nav-icon { position: relative; display: inline-grid; place-items: center; min-width: 42px; height: 42px; border-radius: 999px; color: var(--ink); transition: background .15s; }
.nav-icon:hover { background: #f3ebe1; }
.nav-icon > .icon { width: 22px; height: 22px; }
.nav-account { display: inline-flex; gap: 6px; padding: 0 12px 0 6px; font-weight: 500; font-size: .92rem; }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--coral-strong); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
@media (max-width: 760px) { .nav-account-name { display: none; } .nav-account { padding: 0; } }

/* ============ Insignias de nivel ============ */
.level-badge { display: inline-grid; place-items: center; flex: none; border-radius: 50%; vertical-align: middle; }
.level-badge svg { width: 62%; height: 62%; }
.level-gato { background: #ffe7dc; color: #c63c28; }
.level-perro { background: #fff0cc; color: #9a5f00; }
.level-elefante { background: #e3ddff; color: #5b3cc4; }
.level-xs { width: 22px; height: 22px; }
.level-sm { width: 30px; height: 30px; }
.level-md { width: 46px; height: 46px; }
.level-xl { width: 96px; height: 96px; box-shadow: 0 0 0 8px rgba(255,255,255,.6); }

/* ============ Añadir al carrito ============ */
.add-to-cart { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 24px 0 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 42px; height: 48px; border: 0; background: none; font-size: 1.25rem; cursor: pointer; color: var(--ink); }
.qty button:hover:not(:disabled) { background: #f6efe6; }
.qty button:disabled { opacity: .3; cursor: default; }
.qty input { width: 44px; border: 0; text-align: center; font: 600 1rem var(--sans); -moz-appearance: textfield; background: none; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 34px; height: 36px; font-size: 1.05rem; }
.qty-sm span { min-width: 26px; text-align: center; font-weight: 600; }
.btn-cart { flex: 1; justify-content: center; min-width: 220px; font-size: 1.02rem; }
.btn-cart .icon { width: 20px; height: 20px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.sold-out-note { margin: 22px 0 6px; padding: 14px 18px; border-radius: 14px; background: #f3e5e3; color: var(--danger); font-weight: 500; }
.early-note { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: #efe8ff; color: #5b3cc4; font-size: .9rem; font-weight: 500; }
/* Casillas (registro, cuenta, checkout) */
.cc-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: .85rem; color: var(--muted); cursor: pointer; }
/* Casillas y opciones propias del tema en TODA la web (tienda y admin), en vez de las nativas.
   Los interruptores (.switch) esconden su input y pintan el suyo. */
input[type="checkbox"], input[type="radio"] { -webkit-appearance: none; appearance: none; flex: none; position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0; border: 2px solid #d9cbb9; background: #fff; cursor: pointer; vertical-align: middle; transition: background .15s, border-color .15s, box-shadow .15s; }
input[type="checkbox"] { border-radius: 7px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]::after { content: ""; width: 6px; height: 11px; margin-top: -3px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .15s ease; }
input[type="radio"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s ease; }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: var(--coral); }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--coral-strong); border-color: var(--coral-strong); }
input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
input[type="radio"]:checked::after { transform: scale(1); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(242, 112, 92, .28); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .5; cursor: not-allowed; }
.cc-check input[type="checkbox"] { margin-top: -1px; }
.cc-check.has-error input[type="checkbox"] { border-color: var(--danger); }
.cc-check { line-height: 1.45; }
.toast-shop { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 16px; font-weight: 500; box-shadow: 0 20px 40px -16px rgba(0,0,0,.45); }
.toast-shop a { color: #ffd38a; font-weight: 600; margin-left: 8px; white-space: nowrap; }
.toast-shop.is-error { background: var(--danger); }

.btn-sm { padding: 10px 16px !important; font-size: .9rem !important; }
/* ============ Páginas de tienda (carrito, checkout, cuenta) ============ */
.shop-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.narrow-shop { max-width: 760px; }
.panel-shop { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px; }
.panel-shop h2 { font-size: 1.3rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.small { font-size: .9rem; }
.btn-wide { width: 100%; justify-content: center; }
.btn.is-disabled { pointer-events: none; opacity: .45; }
.link-strong { color: var(--coral-strong); font-weight: 600; }

.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto 100px; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px 18px 12px 12px; }
.cart-line.has-problem { border-color: #f0b8b0; background: #fffafa; }
.cart-thumb { display: block; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--c, #f2705c) 18%, #fff); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph-icon { width: 48%; height: 48%; }
.cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-name { font-weight: 600; }
.cart-name:hover { color: var(--coral-strong); }
.cart-variant { display: inline-block; align-self: flex-start; font-size: .82rem; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c, #f2705c) 15%, #fff); color: var(--ct, var(--ink)); }
.cart-unit { font-size: .85rem; }
.cart-problem { color: var(--danger); font-size: .85rem; font-weight: 600; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-remove { color: var(--muted); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.cart-remove:hover { color: var(--danger); background: #fbeae7; }
.cart-remove .icon { width: 18px; height: 18px; }
.cart-total { text-align: right; font-size: 1.05rem; }
.cart-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.cart-side h2 { margin: 0; }
.cart-warning { margin: 0; color: var(--danger); font-size: .9rem; font-weight: 500; }
.cart-perks { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: #faf6f0; font-size: .88rem; color: #4f5366; }
.cart-perks a { color: var(--coral-strong); font-weight: 600; }
.impact-mini { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 0; font-size: .85rem; color: var(--muted); }
.impact-mini .icon { color: var(--coral-strong); }
.empty-cart, .done-hero { text-align: center; padding: 40px 0 20px; }
.empty-paw { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #ffe7dc; color: var(--coral-strong); margin-bottom: 14px; }
.empty-paw .icon { width: 40px; height: 40px; }
.done-hero .ref { color: var(--ink); font-size: 1.1em; }
.done-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pay-box { margin-bottom: 18px; border-color: #f5c7a9; background: #fff8f2; }

.totals { margin: 0; display: grid; gap: 10px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.totals dt { color: #4f5366; display: inline-flex; gap: 8px; align-items: center; }
.totals dd { margin: 0; font-weight: 600; white-space: nowrap; }
.totals-discount dt, .totals-discount dd { color: #5b3cc4; }
.totals-total { padding-top: 12px; border-top: 1px solid var(--line); }
.totals-total dt { color: var(--ink); font-weight: 600; }
.totals-total dd { font-size: 1.4rem; font-family: var(--serif); }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; margin-top: 20px; }
.checkout-main { display: grid; gap: 18px; }
.checkout-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.checkout-side h2 { margin: 0; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 .9rem var(--sans); }
.sfields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.sfield { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; }
.sfield-wide { grid-column: 1 / -1; }
.sfield input, .sfield textarea { font: 400 1rem var(--sans); padding: 12px 14px; border: 1px solid #e3d9cc; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.sfield input:focus, .sfield textarea:focus { outline: none; border-color: var(--coral-strong); box-shadow: 0 0 0 3px #ffe0d8; }
.sfield.has-error input { border-color: var(--danger); }
.sfield input:disabled { background: #f6f2ec; color: var(--muted); }
.checkout-main .sfield { margin-top: 14px; }
.sfields .sfield { margin-top: 0; }
.choice-list { display: grid; gap: 10px; margin-top: 18px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.choice:has(input:checked) { border-color: var(--ink); background: #faf6f0; }
.choice input { flex: none; }
.choice-body { flex: 1; display: flex; flex-direction: column; }
.choice-body small { font-size: .85rem; }
.choice-price { font-weight: 600; }
.mini-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-lines li { display: flex; gap: 10px; font-size: .92rem; }
.mini-qty { color: var(--muted); font-weight: 600; min-width: 26px; }
.mini-name { flex: 1; }
.terms { font-size: .85rem; }
.account-offer .cc-check { margin: 0; font-size: .95rem; color: var(--ink); align-items: center; }
.account-offer .sfield { margin-top: 14px; }  /* ancho completo, como el campo Email */

.auth-page { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 380px); gap: 40px; justify-content: center; align-items: start; }
.auth-card h1 { font-size: 2.2rem; }
.auth-card .sfields { grid-template-columns: 1fr; margin-top: 18px; }
.auth-switch { margin: 18px 0 0; text-align: center; font-size: .92rem; }
.auth-levels { padding-top: 12px; }
.auth-levels h2 { font-size: 1.3rem; }
.lv-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.lv-row small { display: block; font-size: .87rem; line-height: 1.45; margin-top: 2px; }

.account-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.level-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 32px; border-radius: 28px; margin: 10px 0 18px; }
.level-card-gato { background: linear-gradient(120deg, #ffe7dc, #fff4ec); }
.level-card-perro { background: linear-gradient(120deg, #fff0cc, #fff8e6); }
.level-card-elefante { background: linear-gradient(120deg, #e3ddff, #f3f0ff); }
.level-main { display: flex; gap: 22px; align-items: center; }
.level-main h2 { font-size: 2rem; margin: 2px 0 6px; }
.level-main p { margin: 0; color: #4f5366; }
.lp-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.8); overflow: hidden; }
.lp-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--sun)); }
.level-progress p, .level-top { margin: 12px 0 0; font-size: .95rem; line-height: 1.7; }
.level-progress p .level-badge { display: inline-grid; vertical-align: middle; margin: 0 2px; }
.levels-ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.ladder-step { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); opacity: .75; }
.ladder-step.is-current { opacity: 1; border: 2px solid var(--ink); }
.ladder-step.is-done { opacity: 1; }
.ladder-step strong { margin-top: 8px; }
.ladder-step ul { margin: 8px 0 0; padding-left: 1.1em; font-size: .88rem; color: #4f5366; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-list a { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); font-size: .92rem; }
.order-list a:hover { border-color: var(--ink); }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; font-family: var(--sans); }
.status-pendiente { background: #fff1d6; color: #8a5a00; }
.status-pagado { background: #e1efff; color: #1f5f9e; }
.status-preparando { background: #efe8ff; color: #5b3cc4; }
.status-para_recoger { background: #fff0db; color: #9a5b00; }
.status-enviado { background: #dff3ee; color: #0f6e5f; }
.status-entregado { background: #e3f4ea; color: #1f7a4d; }
.status-cancelado { background: #f3e5e3; color: #a33a2f; }

@media (max-width: 980px) {
  .cart-grid, .checkout-grid, .auth-page, .account-grid, .level-card { grid-template-columns: 1fr; }
  .cart-side, .checkout-side { position: static; }
  .levels-ladder { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-thumb { width: 72px; height: 72px; }
  .cart-qty { grid-column: 2; }
  .cart-total { grid-column: 2; text-align: left; }
  .sfields { grid-template-columns: 1fr; }
  .order-list a { grid-template-columns: 1fr auto; }
  .level-main { flex-direction: column; text-align: center; }
}
/* Insignias de nivel también en el admin */

/* ============ Reseñas en vídeo ============ */
.video-reviews { padding-top: 10px; }
.reels { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.reel { position: relative; flex: none; width: 220px; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 22px; overflow: hidden; cursor: pointer; scroll-snap-align: start; background: #1f2440; box-shadow: 0 16px 34px -20px rgba(31,36,64,.6); transition: transform .25s; }
.reel:hover { transform: translateY(-4px); }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,22,38,.85)); }
.reel-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ct, var(--coral-strong)); transition: transform .2s; }
.reel:hover .reel-play { transform: translate(-50%, -50%) scale(1.08); }
.reel-play .icon { width: 26px; height: 26px; margin-left: 3px; }
.reel-dur { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 600; }
.reel-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px; text-align: left; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.reel-info strong { font-size: .98rem; line-height: 1.3; }
.reel-info small { opacity: .8; font-size: .82rem; }
.reels-nav { display: flex; gap: 8px; }
.reels-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.4rem; cursor: pointer; color: var(--ink); }
.reels-nav button:hover { border-color: var(--ink); }
.reel-viewer { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.reel-viewer[open] { display: flex; align-items: center; justify-content: center; gap: 18px; }
.reel-viewer::backdrop { background: rgba(14, 15, 26, .92); }
.rv-stage { position: relative; height: min(88vh, 860px); aspect-ratio: 9 / 16; max-width: 92vw; border-radius: 22px; overflow: hidden; background: #000; }
.rv-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.rv-caption { position: absolute; left: 0; right: 0; top: 0; padding: 18px 20px 40px; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.6), transparent); display: flex; flex-direction: column; pointer-events: none; }
.rv-caption strong { font-size: 1.05rem; }
.rv-caption small { opacity: .8; }
.rv-close { position: fixed; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.8rem; cursor: pointer; }
.rv-nav { width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 2rem; cursor: pointer; flex: none; }
.rv-close:hover, .rv-nav:hover { background: rgba(255,255,255,.28); }
@media (max-width: 640px) {
  .reel { width: 160px; }
  .rv-nav { position: fixed; bottom: 22px; }
  .rv-prev { left: 22px; } .rv-next { right: 22px; }
  .rv-stage { height: 80vh; }
}

/* Checkout: envío solo a España y recogida local */
.ship-note { display: flex; gap: 8px; align-items: center; margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; background: #eef7f3; color: #1e6b52; font-size: .9rem; }
.ship-note .icon { width: 18px; height: 18px; flex: none; }
.sub-step { font-size: 1rem; margin: 22px 0 4px; }
.sfield input[readonly] { background: #f7f2ec; color: var(--muted); }
.pickup-note { margin: 14px 0 0; }

.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Página de pago con Stripe embebido */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 20px; }
.pay-embed-box { min-height: 420px; padding: 12px; }
.stripe-checkout { min-height: 400px; }
.pay-loading { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 380px; margin: 0; }
.pay-loading .icon, .pay-summary .icon { width: 16px; height: 16px; vertical-align: -2px; }
.pay-error { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 60px 20px; }
.pay-error p { margin: 0; color: var(--danger); font-weight: 500; }
.pay-summary { position: sticky; top: 90px; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } .pay-summary { position: static; order: -1; } }

/* ---------- Páginas de error (404 / 500) ---------- */
.lost { position: relative; overflow: hidden; padding: 64px 0 120px; text-align: center; }
.lost-inner { position: relative; z-index: 2; max-width: 680px; }
.lost h1 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.1; margin: 0 0 14px; }
.lost .lead { max-width: 520px; margin: 0 auto; }
.lost-art { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 18px; }
.lost-digit { font-family: var(--serif); font-weight: 700; font-size: clamp(5.5rem, 16vw, 9rem); line-height: 1; color: var(--ink); }
.lost-paw { display: grid; place-items: center; width: clamp(88px, 14vw, 128px); aspect-ratio: 1; border-radius: 50%; background: var(--coral); color: #fff;
  box-shadow: 0 16px 40px rgba(242, 112, 92, .35); animation: lost-sniff 3.2s ease-in-out infinite; }
.lost-paw .icon { width: 52%; height: 52%; }
@keyframes lost-sniff { 0%, 100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(12deg) translateY(-8px); } }
.lost-actions { justify-content: center; margin-top: 28px; }
.lost-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.lost-cats a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; transition: border-color .15s, color .15s; }
.lost-cats a:hover { border-color: var(--coral); color: var(--coral-strong); }
.lost-suggest { padding-top: 0; }
@media (prefers-reduced-motion: reduce) { .lost-paw { animation: none; } }

/* ---------- Blog ---------- */
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; font-weight: 500; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--coral-strong); }
.blog-head { text-align: center; max-width: 720px; padding-bottom: 10px; }
.blog-head h1 { font-family: var(--serif); font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.1; margin: 0 0 12px; }
.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; padding-bottom: 60px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31, 36, 64, .1); }
.post-card-img { aspect-ratio: 16 / 10; background: #ffe7df; display: grid; place-items: center; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-paw { color: var(--coral); }
.post-card-paw .icon { width: 56px; height: 56px; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-body h2 { font-family: var(--serif); font-size: 1.28rem; line-height: 1.22; margin: 0; }
.post-card-body p { margin: 0; color: var(--muted); font-size: .94rem; flex: 1; }
.post-card-more { color: var(--coral-strong); font-weight: 600; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }
.post-meta { color: var(--muted); font-size: .85rem; }
.blog-pager { display: flex; justify-content: center; gap: 12px; padding-bottom: 60px; }

.post-head { max-width: 820px; padding-top: 40px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.post-head h1 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; margin: 0 0 14px; }
.post-lead { font-size: 1.15rem; color: var(--ink); opacity: .85; margin: 0 0 12px; }
.post-cover { max-width: 900px; margin-top: 18px; margin-bottom: 8px; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; display: block; }
.post-body { max-width: 760px; padding-top: 28px; padding-bottom: 40px; font-size: 1.06rem; line-height: 1.75; }
.post-body h2 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.post-body blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--coral); background: #fff; border-radius: 0 14px 14px 0; font-style: italic; }

.post-product { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: center; margin: 1.8em 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 28px rgba(31, 36, 64, .06); line-height: 1.5; }
.post-product-img { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--soft, #ffe7df); }
.post-product-img img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.post-product-cat { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-strong); }
.post-body .post-product h3 { font-family: var(--serif); font-size: 1.2rem; margin: 4px 0 6px; }
.post-body .post-product h3 a { color: var(--ink); text-decoration: none; }
.post-product p { margin: 0 0 10px; font-size: .93rem; color: var(--muted); }
.post-product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.post-product-foot .price { font-weight: 700; font-size: 1.1rem; }
.post-body .post-product .btn { text-decoration: none; color: #fff; }
@media (max-width: 560px) { .post-product { grid-template-columns: 1fr; } }

.post-faq { margin-top: 2.2em; }
.post-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; margin-bottom: 10px; }
.post-faq summary { cursor: pointer; font-weight: 600; }
.post-faq details p { margin: 10px 0 0; }
.post-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 2.4em 0 1em; padding: 22px; border-radius: 22px; background: #fff1ea; line-height: 1.5; }
.post-cta p { margin: 4px 0 0; font-size: .93rem; color: var(--muted); }
.post-cta-paw { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--coral); color: #fff; }
.post-body .post-cta .btn { color: #fff; text-decoration: none; }
@media (max-width: 640px) { .post-cta { grid-template-columns: 1fr; text-align: center; } .post-cta-paw { margin: 0 auto; } }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags span { font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }

/* Carrusel de imágenes de la ficha de producto */
.slider { touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; }
.slider:focus-visible { box-shadow: 0 0 0 4px rgba(242, 112, 92, .35); }
.slider.is-dragging { cursor: grabbing; }
.slider .slides { display: flex; height: 100%; will-change: transform; }
.slider .slide { flex: 0 0 100%; height: 100%; }
.slider .slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 6px 18px rgba(31, 36, 64, .16); cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s; z-index: 2; }
.slider-btn svg { width: 22px; height: 22px; }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider:hover .slider-btn, .slider:focus-within .slider-btn { opacity: 1; }
.slider-btn:hover { transform: translateY(-50%) scale(1.06); }
.slider-count { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(31, 36, 64, .62); color: #fff; font-size: .8rem; font-weight: 600; z-index: 2; pointer-events: none; }
@media (hover: none) { .slider-btn { opacity: 1; width: 38px; height: 38px; } }

/* Perfil: novedades anticipadas */
.early-shop { grid-column: 1 / -1; background: linear-gradient(135deg, #fff1ea, #fff); }
.early-shop h2 { margin-top: 2px; }
.early-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.early-card { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.early-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 36, 64, .08); }
.early-img { flex: 0 0 76px; height: 76px; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--c, #f2705c) 20%, #fff); display: grid; place-items: center; }
.early-img img { width: 100%; height: 100%; object-fit: cover; }
.early-img .ph-icon { width: 40%; height: 40%; }
.early-body { display: flex; flex-direction: column; gap: 2px; font-size: .94rem; }
.early-body .price { font-weight: 700; }

/* ============ Landing del Calendario Solidario 2027 (/calendario-solidario-2027) ============ */
.lp-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 16px; border-radius: 999px; background: #fff4dc; color: #7a5208; font-weight: 600; font-size: .92rem; }
.lp-link:hover { background: #ffeab8; }
.lp { overflow-x: clip; }
.lp h2 em, .lp h1 em { color: var(--coral-strong); }
.lp-hero { position: relative; overflow: hidden; padding: 56px 0 84px; background: linear-gradient(180deg, #fff3ea 0%, var(--bg) 100%); }
.lp-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.lp-hero-grid > *, .lp-story-grid > *, .lp-final-inner > * { min-width: 0; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--coral-strong); box-shadow: 0 6px 18px -10px rgba(31,36,64,.3); animation: lp-pop .6s cubic-bezier(.2,.9,.3,1.4) both; }
.lp-pill .icon { color: var(--sun); }
.lp-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); margin: 18px 0 18px; animation: lp-up .7s .1s both; }
.lp-hero h1 em { white-space: nowrap; }
.lp-year { display: inline-block; padding: 0 .18em; border-radius: .2em; background: var(--sun); color: var(--ink); transform: rotate(-3deg); animation: lp-wiggle 4s 1.2s ease-in-out infinite; }
.lp-lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #474b5e; max-width: 34em; margin: 0 0 22px; animation: lp-up .7s .2s both; }
.lp-buy { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px 16px; box-shadow: var(--shadow); max-width: 480px; animation: lp-up .7s .3s both; }
.lp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lp-price .price.big { margin: 0; font-size: 2.2rem; font-family: var(--serif); }
.lp-price del { color: var(--muted); font-size: .55em; font-family: var(--sans); }
.lp-price ins { text-decoration: none; }
.lp-save { padding: 4px 10px; border-radius: 999px; background: #e3f5ee; color: var(--ok); font-size: .82rem; font-weight: 600; }
.lp-form { margin: 14px 0 10px; }
.lp-cta { flex: 1; justify-content: center; min-height: 52px; font-size: 1.05rem; position: relative; overflow: hidden; }
.lp-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: lp-shine 3.6s 1.5s ease-in-out infinite; }
.lp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 18px 0 0; font-size: .9rem; font-weight: 500; color: #474b5e; }
.lp-trust li { display: inline-flex; align-items: center; gap: 7px; }
.lp-trust .icon { color: var(--teal); }

/* Fotos que flotan */
.lp-hero-visual { position: relative; height: 560px; }
.lp-photo { position: absolute; margin: 0; background: #fff; padding: 10px; border-radius: 22px; box-shadow: 0 30px 60px -28px rgba(31,36,64,.45); animation: float 7s ease-in-out infinite; }
.lp-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.lp-photo-main { width: 62%; aspect-ratio: 3 / 4; left: 19%; top: 4%; --r: -3deg; z-index: 2; }
.lp-photo-a { width: 38%; aspect-ratio: 1; right: 0; bottom: 4%; --r: 6deg; animation-delay: -2.5s; z-index: 3; }
.lp-photo-b { width: 34%; aspect-ratio: 1; left: 0; bottom: 10%; --r: -8deg; animation-delay: -4.5s; z-index: 1; }
.lp-ring { position: absolute; right: 2%; top: 0; width: 132px; height: 132px; z-index: 4; display: grid; place-items: center; }
.lp-ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: lp-spin 18s linear infinite; }
.lp-ring text { font: 600 15px var(--sans); letter-spacing: .14em; text-transform: uppercase; fill: var(--ink); }
.lp-ring > span { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px var(--coral); }
.lp-ring > span .icon { width: 30px; height: 30px; animation: lp-wiggle 3s ease-in-out infinite; }
.lp-sticker { position: absolute; left: 10%; top: 6%; z-index: 5; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--sun); font: 700 1.15rem var(--serif); transform: rotate(-14deg); box-shadow: 0 10px 20px -10px rgba(0,0,0,.35); animation: lp-pulse 2.4s ease-in-out infinite; }
.lp-paws span { position: absolute; z-index: 1; color: var(--coral); opacity: 0; left: calc(6% + var(--i) * 13%); bottom: -40px; animation: lp-rise 14s linear infinite; animation-delay: calc(var(--i) * -2s); }
.lp-paws .icon { width: calc(18px + var(--i) * 3px); height: calc(18px + var(--i) * 3px); }

/* Cinta */
.lp-marquee { overflow: hidden; background: var(--ink); color: #fff; padding: 14px 0; transform: rotate(-1.2deg); margin: -18px -10px 0; position: relative; z-index: 3; }
.lp-marquee-track { display: flex; align-items: center; gap: 22px; width: max-content; animation: marquee 32s linear infinite; font: 600 1.05rem var(--serif); white-space: nowrap; }
.lp-dot { color: var(--sun); display: inline-flex; }

/* Características */
.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: transform .25s, box-shadow .25s; }
.lp-feature:hover { transform: translateY(-6px) !important; box-shadow: var(--shadow); }
.lp-feature h3 { font-size: 1.22rem; margin: 14px 0 8px; }
.lp-feature p { margin: 0; color: #474b5e; font-size: .96rem; }
.lp-feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff0ec; color: var(--coral-strong); }
.lp-feature:nth-child(2) .lp-feature-icon { background: #e6f6f2; color: var(--teal); }
.lp-feature:nth-child(3) .lp-feature-icon { background: #fff4dc; color: #b47a0c; }
.lp-feature:nth-child(4) .lp-feature-icon { background: #efeaff; color: #6a4fd0; }
.lp-feature-icon .icon { width: 26px; height: 26px; }

/* Galería en movimiento */
.lp-gallery { padding: 20px 0 64px; }
.lp-strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lp-strip-track { display: flex; gap: 18px; width: max-content; animation: marquee 40s linear infinite; padding: 14px 0 24px; }
.lp-strip:hover .lp-strip-track { animation-play-state: paused; }
.lp-strip-item { margin: 0; width: 260px; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 18px 34px -22px rgba(31,36,64,.5); flex: none; transition: transform .3s; }
.lp-strip-item:nth-child(odd) { transform: rotate(-2deg) translateY(6px); }
.lp-strip-item:nth-child(even) { transform: rotate(2deg); }
.lp-strip-item:hover { transform: rotate(0) scale(1.04); }
.lp-strip-item img { width: 100%; height: 100%; object-fit: cover; }

/* Historia */
.lp-story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.lp-story p { color: #474b5e; font-size: 1.05rem; }
.lp-credits { display: flex; flex-direction: column; gap: 14px; }
.lp-credit { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.lp-credit > span { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--coral); color: #fff; }
.lp-credit strong { display: block; }
.lp-credit small { color: var(--muted); font-size: .92rem; }

/* Pasos y entrega */
.lp-steps-wrap { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; position: relative; }
.lp-steps li { position: relative; background: var(--bg); border-radius: var(--radius); padding: 26px 22px 22px; }
.lp-steps h3 { font-size: 1.2rem; margin: 14px 0 6px; }
.lp-steps p { margin: 0; color: #474b5e; font-size: .96rem; }
.lp-step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 1.2rem var(--serif); }
.lp-steps li:nth-child(2) .lp-step-n { background: var(--coral-strong); }
.lp-steps li:nth-child(3) .lp-step-n { background: var(--teal); }
.lp-delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lp-delivery-box { border: 1px dashed #e2d3c0; border-radius: var(--radius); padding: 22px; }
.lp-delivery-box h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.lp-delivery-box .icon { color: var(--coral-strong); }
.lp-delivery-box p { margin: 12px 0 0; font-size: .9rem; }
.lp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.lp-chips li { padding: 7px 14px; border-radius: 999px; background: #e6f6f2; color: #146b5c; font-weight: 600; font-size: .9rem; }
.lp-ship { list-style: none; padding: 0; margin: 0; }
.lp-ship li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lp-ship li:last-child { border-bottom: 0; }

/* Packs */
.lp-pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 880px; margin: 0 auto; }
.lp-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 18px 20px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s; }
.lp-pack:hover { transform: translateY(-6px) !important; border-color: var(--coral); box-shadow: var(--shadow); }
.lp-pack.is-pop { border-color: var(--coral); background: #fff8f5; }
.lp-pack-tag { position: absolute; top: -13px; padding: 4px 12px; border-radius: 999px; background: var(--coral-strong); color: #fff; font-size: .78rem; font-weight: 600; }
.lp-pack-n { font: 700 3rem/1 var(--serif); color: var(--coral-strong); }
.lp-pack-label { font-weight: 600; font-size: 1.05rem; }
.lp-pack small { color: var(--muted); }
.lp-pack strong { font: 700 1.4rem var(--serif); margin: 8px 0 12px; }
.lp-pack-go { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem; transition: background .2s; }
.lp-pack:hover .lp-pack-go, .lp-pack.is-pop .lp-pack-go { background: var(--coral-strong); }
.lp-pack.is-added .lp-pack-go { background: var(--ok); }

/* FAQ */
.lp-faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.lp-q { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .25s; }
.lp-q[open] { box-shadow: 0 16px 34px -24px rgba(31,36,64,.4); }
.lp-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.04rem; }
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff0ec; transition: transform .3s, background .3s; }
.lp-q summary i::before, .lp-q summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--coral-strong); transform: translate(-50%, -50%); border-radius: 2px; }
.lp-q summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.lp-q[open] summary i { transform: rotate(180deg); background: var(--coral); }
.lp-q[open] summary i::before { background: #fff; }
.lp-q[open] summary i::after { transform: translate(-50%, -50%) rotate(0); background: #fff; }
.lp-q p { margin: 0; padding: 0 20px 20px; color: #474b5e; animation: lp-up .35s both; }
.lp-posts { padding-top: 0; }

/* Cierre */
.lp-final { padding: 20px 0 80px; }
.lp-final-inner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; background: var(--ink); color: #fff; border-radius: 32px; padding: 40px; position: relative; overflow: hidden; }
.lp-final-inner::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(242,112,92,.45), transparent 70%); }
.lp-final h2 em { color: #ffb4a6; }
.lp-final p { color: #d6d8e4; margin: 0 0 22px; font-size: 1.05rem; }
.lp-final-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; transform: rotate(-4deg); box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); }
.lp-final .lp-cta { flex: none; }
.lp-more { display: inline-flex; align-items: center; gap: 8px; margin-left: 18px; color: #ffd38a; font-weight: 600; }

/* Barra fija de compra (móvil) */
.lp-buybar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 40px -16px rgba(31,36,64,.45); transform: translateY(calc(100% + 40px)); visibility: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s .35s; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.lp-buybar.is-on { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.lp-buybar img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.lp-buybar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; font-size: .92rem; }
.lp-buybar-text .price { font-weight: 700; color: var(--coral-strong); }
.lp-buybar-text del { color: var(--muted); font-weight: 400; font-size: .85em; }
.lp-buybar-text ins { text-decoration: none; }
.lp-buybar .btn { padding: 12px 18px; flex: none; }
body.lp-buybar-on .toast-shop { bottom: 96px; }

@keyframes lp-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lp-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes lp-pulse { 0%, 100% { transform: rotate(-14deg) scale(1); } 50% { transform: rotate(-10deg) scale(1.08); } }
@keyframes lp-shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes lp-rise { 0% { transform: translateY(0) rotate(-20deg); opacity: 0; } 10% { opacity: .22; } 85% { opacity: .18; } 100% { transform: translateY(-640px) rotate(25deg); opacity: 0; } }

@media (max-width: 980px) {
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lp-hero-visual { height: 520px; max-width: 520px; width: 100%; margin: 0 auto; order: -1; }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-story-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .lp-hero { padding: 24px 0 64px; }
  .lp-hero-text { text-align: center; }
  .lp-lead { margin-left: auto; margin-right: auto; }
  .lp-buy { margin: 0 auto; padding: 16px; text-align: left; }
  .lp-price { justify-content: center; }
  .lp-form { flex-wrap: nowrap; }
  .lp-form .lp-cta { padding: 12px 16px; font-size: 1rem; }
  .lp-buy .stock { display: flex; justify-content: center; }
  .lp-trust { justify-content: center; }
  .lp-hero-visual { height: 330px; max-width: 360px; }
  .lp-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); margin: 14px 0 12px; }
  .lp-lead { font-size: 1rem; margin-bottom: 18px; }
  .lp-ring { width: 98px; height: 98px; right: 0; }
  .lp-ring > span { width: 46px; height: 46px; }
  .lp-ring > span .icon { width: 22px; height: 22px; }
  .lp-sticker { width: 60px; height: 60px; font-size: .95rem; left: 4%; }
  .lp-photo { padding: 7px; border-radius: 18px; }
  .lp-photo-main { width: 54%; left: 23%; top: 2%; }
  .lp-photo-a { width: 34%; }
  .lp-photo-b { width: 31%; }
  .lp-marquee-track { font-size: .95rem; gap: 16px; }
  .lp-features { grid-template-columns: 1fr; gap: 12px; }
  .lp-feature { display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; padding: 20px 18px; }
  .lp-feature-icon { grid-row: span 2; }
  .lp-feature h3 { margin: 2px 0 4px; font-size: 1.12rem; }
  .lp-strip-item { width: 190px; }
  .lp-strip-track { gap: 12px; animation-duration: 30s; }
  .lp-steps { grid-template-columns: 1fr; gap: 12px; }
  .lp-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px; padding: 18px; }
  .lp-step-n { grid-row: span 2; }
  .lp-steps h3 { margin: 0; }
  .lp-delivery { grid-template-columns: 1fr; }
  .lp-pack-grid { grid-template-columns: 1fr; gap: 20px; max-width: 420px; }
  .lp-pack { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "n label price" "n note go"; align-items: center; justify-items: start; gap: 2px 14px; padding: 18px; text-align: left; }
  .lp-pack-n { grid-area: n; font-size: 2.4rem; }
  .lp-pack-label { grid-area: label; }
  .lp-pack small { grid-area: note; }
  .lp-pack strong { grid-area: price; margin: 0; justify-self: end; font-size: 1.2rem; }
  .lp-pack-go { grid-area: go; justify-self: end; padding: 8px 12px; font-size: .84rem; }
  .lp-pack-tag { top: -11px; left: 18px; }
  .lp-q summary { padding: 16px; font-size: 1rem; }
  .lp-q p { padding: 0 16px 16px; }
  .lp-final { padding: 10px 0 100px; }
  .lp-final-inner { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; gap: 22px; }
  .lp-final-img { width: 150px; margin: 0 auto; }
  .lp-final .lp-cta { width: 100%; }
  .lp-more { margin: 16px 0 0; }
  .lp-buybar { display: flex; }
  .lp-posts .post-card:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-marquee-track, .lp-strip-track { animation: none !important; }
  .lp-strip { overflow-x: auto; }
  .lp-paws { display: none; }
}

/* ============ Productos personalizables ============ */
.custom-list { list-style: none; margin: 6px 0 2px; padding: 8px 12px; border-radius: 12px; background: #fff7ef; border: 1px dashed #ecd9c3; font-size: .88rem; line-height: 1.45; display: flex; flex-direction: column; gap: 2px; }
.custom-list li { overflow-wrap: anywhere; white-space: pre-line; }
.cl-label { color: var(--muted); font-weight: 500; }
.cl-value { color: var(--ink); font-weight: 600; }
.custom-mini { padding: 4px 8px; margin-top: 4px; font-size: .8rem; background: transparent; border-style: dotted; }
.tag-custom { background: #fff1d6 !important; color: #8a5a00 !important; }

.personalize { width: 100%; margin: 22px 0 4px; padding: 18px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.personalize-head { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 1.1rem var(--serif); }
.personalize-head .icon { color: var(--coral-strong); }
.pz-field { display: flex; flex-direction: column; gap: 6px; }
.pz-label { font-weight: 600; font-size: .92rem; }
.pz-label .req { color: var(--coral-strong); }
.pz-label .opt { color: var(--muted); font-weight: 400; font-size: .85em; }
.pz-field input[type=text], .pz-field input[type=number], .pz-field input[type=date], .pz-field textarea, .pz-field select {
  width: 100%; font: 400 1rem var(--sans); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); transition: border-color .2s, background .2s; }
.pz-field textarea { min-height: 96px; resize: vertical; }
.pz-field input:focus, .pz-field textarea:focus, .pz-field select:focus { outline: none; border-color: var(--coral); background: #fff; }
.pz-field.is-invalid input, .pz-field.is-invalid textarea, .pz-field.is-invalid select { border-color: var(--danger); }
.pz-help { color: var(--muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 10px; }
.pz-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-chips label { position: relative; }
.pz-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pz-chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 500; font-size: .92rem; transition: all .2s; }
.pz-chips input:checked + span { border-color: var(--coral-strong); background: var(--coral-strong); color: #fff; font-weight: 600; box-shadow: 0 6px 14px -8px var(--coral-strong); }
.pz-chips input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.pz-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.pz-check input { width: 20px; height: 20px; accent-color: var(--coral-strong); margin-top: 2px; flex: none; }


/* Mensaje informativo del método de envío elegido (checkout) */
.ship-notice { display: flex; gap: 12px; align-items: flex-start; margin: -4px 0 4px; padding: 14px 16px; border-radius: 14px; background: #fff6e0; border: 1px solid #f3dca2; color: #6b4a00; font-size: .94rem; line-height: 1.5; }
.ship-notice .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; color: #b47a0c; }
.ship-notice p { margin: 0; white-space: pre-line; }
.ship-notice.pop { animation: ship-pop .35s ease-out; }
@keyframes ship-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Donación para la deuda veterinaria (carrito) */
.donation-thumb { display: grid; place-items: center; background: #fdeae6; color: var(--coral-strong); }
.donation-thumb .icon { width: 38px; height: 38px; }
.cart-line-donation { border-color: #f6c9c0; background: #fffaf8; }
.donation-offer { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border: 2px dashed #f2a596; border-radius: 20px; background: linear-gradient(135deg, #fff5f2, #fffaf3); }
.donation-icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--coral); color: #fff; }
.donation-icon .icon { width: 28px; height: 28px; }
.donation-body { min-width: 0; }
.donation-body h2 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.3; }
.donation-body p { margin: 0 0 14px; color: var(--muted); }
.donation-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.donation-actions .btn .icon { width: 18px; height: 18px; }
.donation-no { color: var(--muted); text-decoration: underline; font-size: .92rem; }
@media (max-width: 560px) { .donation-offer { gap: 14px; padding: 18px 16px; } .donation-icon { width: 40px; height: 40px; } .donation-icon .icon { width: 20px; height: 20px; } }
.cart-line.is-updating, .donation-offer.is-updating { opacity: .55; transition: opacity .15s; pointer-events: none; }

/* ============ SEO: migas, presentación de categoría y entrega en la ficha ============ */
.product-info .crumbs { margin-bottom: 10px; }
.cat-hero .crumbs { margin-bottom: 6px; }
.crumbs a:hover { color: var(--coral-strong); }
.cat-intro { max-width: 62ch; margin: 6px 0 8px; color: #4f5366; }
.cat-intro p { margin: 0 0 6px; }
.delivery-info { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; color: #4f5366; }
.delivery-info li { display: flex; gap: 10px; align-items: flex-start; }
.delivery-info .icon { width: 20px; height: 20px; flex: none; color: var(--coral-strong); margin-top: 1px; }

/* ============ Carrito: envío gratis y código de descuento ============ */
.free-ship { margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; background: #fff7e6; border: 1px solid #f6e0b5; }
.free-ship p { display: flex; gap: 10px; align-items: center; margin: 0; color: #6b4a12; }
.free-ship .icon { width: 22px; height: 22px; flex: none; }
.free-ship-bar { height: 8px; margin-top: 10px; border-radius: 999px; background: #f3e3c4; overflow: hidden; }
.free-ship-bar span { display: block; height: 100%; border-radius: inherit; background: #e3a234; transition: width .4s ease; }
.free-ship.is-done { background: #eaf7ee; border-color: #c7e8d1; }
.free-ship.is-done p { color: #22663a; }
.free-ship.is-done .free-ship-bar span { background: #3a9a5b; }
.cart-code { display: grid; gap: 6px; }
.cart-code summary { cursor: pointer; color: var(--coral-strong); font-weight: 600; font-size: .92rem; }
.code-row { display: flex; gap: 8px; margin-top: 10px; }
.code-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.code-applied { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: #efe8ff; color: #5b3cc4; font-size: .92rem; }
.code-applied .icon { width: 18px; height: 18px; flex: none; }
.code-applied span { flex: 1; }
.code-applied.is-pending { background: #fff1e0; color: #8a5a17; }
.code-note { color: #8a5a17; }
.code-row input { font: 500 1rem var(--sans); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.code-row input:focus { outline: 3px solid #ffe0d8; border-color: var(--coral); }
.code-row input::placeholder { text-transform: none; letter-spacing: 0; }

/* Nombres de producto sin espacios (p. ej. «Invierno|Navidad|Otoño|Primavera»): se parten en vez de salirse */
.product-card h3, .post-product h3, .product-info h1, .cart-name, .hero-card-body span { overflow-wrap: anywhere; }

/* ============ Deuda veterinaria (/deuda-veterinaria) ============ */
.dp-hero { position: relative; overflow: hidden; padding: 56px 0 72px; background: linear-gradient(180deg, #fff3ea 0%, var(--bg) 100%); }
.dp-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; z-index: 0; }
.dp-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.dp-live { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--coral-strong); }
.dp-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(242,112,92,.6); animation: dp-ping 1.8s ease-out infinite; }
@keyframes dp-ping { to { box-shadow: 0 0 0 10px rgba(242,112,92,0); } }
.dp-hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); margin: 18px 0 16px; }
.dp-lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #474b5e; max-width: 34em; margin: 0 0 18px; }
.dp-since { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .9rem; }
.dp-since .icon { width: 18px; height: 18px; }

.dp-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.dp-card-label { margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dp-big { display: block; margin: 4px 0 16px; font: 700 clamp(2.4rem, 5vw, 3.4rem)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.dp-bar { position: relative; height: 14px; border-radius: 999px; background: #f3ebe1; overflow: hidden; }
.dp-bar i { position: absolute; inset: 0 auto 0 0; min-width: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--coral), var(--coral-strong)); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.dp-bar-legend { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin: 9px 0 0; font-size: .9rem; color: #474b5e; }
.dp-bar-legend strong { color: var(--ink); }
.dp-goal { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .9rem; font-weight: 600; color: #8a5a00; }
.dp-goal .icon { flex: none; width: 17px; height: 17px; color: var(--sun); }
.dp-stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.dp-stats li { min-width: 0; }
.dp-stats strong { display: block; font: 700 1.25rem/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.dp-stats span { display: block; font-size: .8rem; color: var(--muted); }

.dp-donate { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.dp-donate h2 { margin: 0 0 12px; font-size: 1.2rem; }
.dp-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 8px; }
.dp-amount { position: relative; cursor: pointer; }
.dp-amount input { position: absolute; opacity: 0; pointer-events: none; }
.dp-amount span { display: grid; place-items: center; height: 48px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 700; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s, color .15s; }
.dp-amount:hover span { border-color: var(--coral); }
.dp-amount input:checked + span { border-color: var(--coral-strong); background: #fff0ec; color: var(--coral-strong); }
.dp-amount input:focus-visible + span { box-shadow: 0 0 0 3px #ffe0d8; }
.dp-other { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 0 6px 0 14px; border: 1.5px solid var(--line); border-radius: 14px; font-size: .92rem; color: var(--muted); }
.dp-other:focus-within { border-color: var(--coral-strong); }
.dp-other input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; font: 700 1rem var(--sans); color: var(--ink); text-align: right; outline: 0; }
.dp-cta { width: 100%; justify-content: center; margin-top: 14px; padding: 16px 20px; font-size: 1.05rem; }
.dp-cta b { font-variant-numeric: tabular-nums; }
.dp-note { display: flex; gap: 8px; margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.dp-note .icon { flex: none; width: 15px; height: 15px; margin-top: 2px; }

/* Bloque de progreso (debajo de la portada): barra gigante, tres cifras y 20 huellas */
.dp-prog { position: relative; overflow: hidden; padding: 80px 0 76px; background: var(--ink); color: #fff; }
.dp-prog-glow { position: absolute; width: 640px; height: 640px; right: -180px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(242,112,92,.35), transparent 65%); pointer-events: none; }
.dp-prog-inner { position: relative; }
.dp-prog-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.dp-prog .kicker { color: #ffb4a6; }
.dp-prog h2 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; color: #fff; }
.dp-prog h2 em { color: #ffb4a6; }
.dp-prog-head p { margin: 16px auto 0; max-width: 40em; color: #d6d8e4; font-size: 1.08rem; }

.dp-track-wrap { max-width: 1040px; margin: 0 auto; }
.dp-track-ends { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #a9adc2; }
.dp-track-ends b { display: block; margin-top: 2px; font: 700 1.15rem var(--serif); letter-spacing: 0; text-transform: none; color: #fff; }
.dp-track-ends span:last-child { text-align: right; }
.dp-track { position: relative; height: 46px; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.dp-track-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); min-width: 46px; border-radius: 999px;
  background: linear-gradient(90deg, #f2705c, #f5a23c); box-shadow: 0 0 30px -4px rgba(242,112,92,.7); }
.dp-track-fill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(115deg, rgba(255,255,255,.18) 0 14px, transparent 14px 28px); background-size: 200% 100%; animation: dp-stripes 2.4s linear infinite; }
@keyframes dp-stripes { to { background-position: -64px 0; } }
.js .dp-track-fill { width: 0; transition: width 1.8s cubic-bezier(.2,.8,.2,1); }
.js .dp-prog.is-in .dp-track-fill { width: var(--w); }
.dp-track-paw { position: absolute; z-index: 2; right: 4px; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; background: #fff; color: var(--coral-strong); box-shadow: 0 6px 14px -4px rgba(0,0,0,.45); }
.dp-track-paw .icon { width: 22px; height: 22px; }
.dp-track-mark { position: absolute; top: 50%; z-index: 1; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255,255,255,.35); }
.dp-track-mark.is-done { background: #fff; }
.dp-track-goal { position: absolute; top: -10px; bottom: -10px; z-index: 1; width: 0; border-left: 3px dashed var(--sun); }
.dp-track-under { position: relative; height: 64px; margin-top: 14px; }
.dp-track-now { position: absolute; left: clamp(70px, var(--w), calc(100% - 70px)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 8px 14px; border-radius: 14px; background: #fff; color: var(--ink); font: 700 1.2rem var(--serif); white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.dp-track-now::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; background: #fff; transform: rotate(45deg); }
.dp-track-now b { font: 600 .7rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dp-track-goal-label { position: absolute; left: var(--x); top: 6px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--sun); white-space: nowrap; }
.dp-track-goal-label .icon { width: 16px; height: 16px; }

.dp-prog-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 40px auto 0; }
.dp-prog-stats > div { padding: 22px 24px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); text-align: center; }
.dp-prog-stats small { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #a9adc2; }
.dp-prog-stats strong { display: block; margin: 6px 0 2px; font: 700 clamp(1.8rem, 3.6vw, 2.7rem)/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.dp-prog-stats span { font-size: .9rem; color: #c9cbd8; }
.dp-prog-stats .is-paid { background: linear-gradient(160deg, rgba(242,112,92,.3), rgba(245,162,60,.16)); border-color: rgba(255,180,166,.45); }
.dp-prog-stats .is-paid strong { color: #ffd0c4; }

.dp-paws { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 8px; max-width: 1040px; margin: 44px auto 0; }
.dp-paws span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.06); color: rgba(255,255,255,.18); }
.dp-paws .icon { width: 58%; height: 58%; }
.dp-paws .is-on { background: rgba(242,112,92,.22); color: #ff9a86; }
.dp-paws .is-half { color: rgba(255,154,134,.6); }
.js .dp-paws .is-on { transform: scale(.4); opacity: 0; transition: transform .45s cubic-bezier(.2,1.4,.4,1), opacity .3s; transition-delay: calc(.9s + var(--i) * 70ms); }
.js .dp-prog.is-in .dp-paws .is-on { transform: none; opacity: 1; }
.dp-paws-label { margin: 16px 0 0; text-align: center; color: #c9cbd8; font-size: .95rem; }
.dp-paws-label b { color: #fff; }
.lp-editing .dp-track-fill, .lp-editing .dp-paws span { transition: none !important; }

@media (max-width: 760px) {
  .dp-prog { padding: 56px 0 52px; }
  .dp-prog-head { margin-bottom: 32px; }
  .dp-track { height: 36px; }
  .dp-track-fill { min-width: 36px; }
  .dp-track-paw { width: 30px; height: 30px; margin-top: -15px; right: 3px; }
  .dp-track-paw .icon { width: 17px; height: 17px; }
  .dp-track-under { height: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .dp-track-now, .dp-track-goal-label { position: static; transform: none; }
  .dp-track-now::before { display: none; }
  .dp-prog-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 28px; }
  .dp-prog-stats > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; text-align: left; padding: 16px 18px; }
  .dp-prog-stats strong { grid-row: span 2; grid-column: 2; font-size: 1.6rem; }
  .dp-paws { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin-top: 30px; }
}

/* Gráfica */
.dp-sub { margin: 10px 0 0; color: #474b5e; }
.dp-chart { max-width: 960px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 16px; }
.dp-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 16px; font-size: .9rem; color: var(--muted); }
.dp-chart-head strong { color: var(--ink); }
.dp-key { display: inline-flex; align-items: center; gap: 8px; }
.dp-key i { width: 22px; border-top: 2px dashed #8b8fa3; }
.dp-key-off .icon { width: 15px; height: 15px; color: var(--sun); }
.dp-plot-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 280px auto; column-gap: 12px; }
.dp-yaxis { position: relative; min-width: 64px; }
.dp-yaxis span { position: absolute; right: 0; transform: translateY(-50%); font-size: .78rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dp-plot { position: relative; touch-action: pan-y; cursor: crosshair; }
.dp-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dp-grid { stroke: #efe7dc; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dp-area { fill: rgba(242, 112, 92, .12); }
.dp-line { fill: none; stroke: var(--coral-strong); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dp-goal-line { stroke: #8b8fa3; stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.dp-end, .dp-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--coral-strong); box-shadow: 0 0 0 3px #fff; pointer-events: none; }
.dp-end-label { position: absolute; right: 0; transform: translateY(-160%); padding: 2px 8px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; white-space: nowrap; pointer-events: none; }
.dp-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid rgba(31,36,64,.35); pointer-events: none; }
.dp-tip { position: absolute; z-index: 3; transform: translate(12px, -50%); padding: 8px 12px; border-radius: 12px; background: var(--ink); color: #fff; white-space: nowrap; pointer-events: none; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.dp-tip.is-left { transform: translate(calc(-100% - 12px), -50%); }
.dp-tip small { display: block; font-size: .75rem; color: #c9cbd8; }
.dp-tip strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
.dp-xaxis { grid-column: 2; display: flex; justify-content: space-between; padding-top: 8px; font-size: .78rem; color: var(--muted); }
.dp-table { margin-top: 14px; font-size: .9rem; }
.dp-table summary { cursor: pointer; color: var(--coral-strong); font-weight: 600; }
.dp-table table { width: 100%; max-width: 420px; margin-top: 10px; border-collapse: collapse; }
.dp-table th, .dp-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.dp-table td:last-child, .dp-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* Qué está pasando */
.dp-story-wrap { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dp-story { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.dp-story-text p { color: #474b5e; font-size: 1.05rem; }
.dp-facts { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.dp-facts li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.dp-facts span { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff0ec; color: var(--coral-strong); }
.dp-facts strong { font: 700 1.35rem/1.15 var(--serif); }
.dp-facts small { color: var(--muted); font-size: .9rem; }
.dp-fact-debt { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff; }
.dp-fact-debt span { background: rgba(255,255,255,.12); color: #ffb4a6; }
.dp-fact-debt small { color: #c9cbd8; }

/* En qué se va el dinero */
.dp-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 0 auto; padding: 0; }
.dp-chips li { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; box-shadow: 0 6px 14px -12px rgba(31,36,64,.5); }

/* Hitos */
.dp-ms-wrap { background: linear-gradient(180deg, var(--bg), #fff3ea); }
.dp-ms { list-style: none; position: relative; max-width: 720px; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dp-ms::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; border-left: 2px dashed #e6d9c8; }
.dp-ms li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 20px 16px 0; }
.dp-ms-mark { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid #e6d9c8; font-weight: 700; font-size: .9rem; color: var(--muted); }
.dp-ms li.is-done .dp-ms-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.dp-ms-mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dp-ms h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.dp-ms p { margin: 0; color: #474b5e; }
.dp-ms .dp-ms-amount { font-size: .82rem; font-weight: 600; color: var(--muted); }
.dp-ms .dp-ms-amount b { color: var(--ok); }

/* Últimas aportaciones */
.dp-feed { list-style: none; max-width: 640px; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dp-feed li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.dp-feed-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff0ec; color: var(--coral-strong); }
.dp-feed strong { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.dp-feed small, .dp-feed time { color: var(--muted); font-size: .86rem; }
.dp-empty { max-width: 520px; margin: 0 auto; padding: 22px; text-align: center; background: #fff; border: 1px dashed #e6d9c8; border-radius: 18px; color: #474b5e; }

/* Otras formas de ayudar */
.dp-help-wrap { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dp-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.dp-share { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Cierre */
.dp-final { padding-top: 72px; }
.dp-final-inner { grid-template-columns: minmax(0, 1fr) auto; }
.dp-final-num { position: relative; text-align: right; }
.dp-final-num small { display: block; color: #c9cbd8; font-size: .9rem; }
.dp-final-num strong { font: 700 clamp(2rem, 4vw, 3rem)/1.1 var(--serif); color: #ffb4a6; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .dp-hero { padding: 32px 0 48px; }
  .dp-hero-grid, .dp-story { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dp-final-inner { grid-template-columns: minmax(0, 1fr); }
  .dp-final-num { text-align: left; }
}
@media (max-width: 560px) {
  .dp-card { padding: 22px 18px; border-radius: 24px; }
  .dp-chart { padding: 16px 12px 12px; border-radius: 18px; }
  .dp-plot-wrap { grid-template-rows: 220px auto; column-gap: 8px; }
  .dp-yaxis { min-width: 52px; }
  .dp-yaxis span { font-size: .72rem; }
  .dp-stats strong { font-size: 1.1rem; }
  .dp-feed li { grid-template-columns: 40px minmax(0, 1fr); }
  .dp-feed time { grid-column: 2; margin-top: -8px; }
}

/* Extras con precio en la ficha (p. ej. «Añade una pegatina», +3 €): tarjetas con foto que se marcan */
.extras { width: 100%; margin: 18px 0 4px; padding: 18px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.personalize + .extras { margin-top: 12px; }
.ex-list { display: grid; gap: 10px; }
.ex-card { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 24px; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.ex-card:hover { border-color: #e3cdb4; }
.ex-card:active { transform: scale(.99); }
.ex-card input { position: absolute; opacity: 0; pointer-events: none; }
.ex-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; color: var(--coral-strong); }
.ex-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ex-img .icon { width: 26px; height: 26px; }
.ex-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ex-text strong { font-weight: 600; font-size: .97rem; line-height: 1.3; }
.ex-text small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.ex-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.ex-check { width: 24px; height: 24px; border-radius: 999px; border: 1.5px solid #d9c9b5; background: #fff; display: grid; place-items: center; transition: all .2s; }
.ex-check::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s; }
.ex-card:has(input:checked) { border-color: var(--coral-strong); background: #fff; box-shadow: 0 10px 22px -14px var(--coral-strong); }
.ex-card:has(input:checked) .ex-check { background: var(--coral-strong); border-color: var(--coral-strong); }
.ex-card:has(input:checked) .ex-check::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.ex-card:has(input:checked) .ex-img img { transform: scale(1.06); }
.ex-card:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 2px; }
.ex-total { margin: 2px 0 0; display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .95rem; }
.ex-total strong { color: var(--ink); font: 700 1.25rem var(--serif); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) {
  .ex-card { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; }
  .ex-img { width: 52px; height: 52px; }
  .ex-check { display: none; }
}

/* Etiqueta de categoría en las tarjetas: una sola línea; si no cabe junto a «Nuevo»/«Agotado», se recorta con … */
.product-card .card-img > .tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 28px); }
.product-card .card-img > .tag:has(~ .badge-new) { max-width: calc(100% - 110px); }
