:root {
  --cream: #FBF6EE;
  --paper: #FFFDF9;
  --pine: #1F4D3A;
  --pine-deep: #143528;
  --red: #C2413B;
  --red-deep: #9E2F2A;
  --rose: #F6E1DA;
  --gold: #E8B04B;
  --sage: #E4ECE4;
  --ink: #2A2420;
  --muted: #7A6E66;
  --line: #EADFD2;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 10px 30px -12px rgba(60, 40, 20, .18);
  --shadow-lg: 0 30px 60px -20px rgba(40, 25, 10, .35);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --dw: 600;
  --band: #143528;
  --tree: #2E6B50;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding-bottom: 90px; font-family: var(--sans); color: var(--ink); background: var(--cream);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: var(--dw); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }

#snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
main, .nav, .footer { position: relative; z-index: 1; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--cream) 85%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; font-family: var(--serif); font-weight: var(--dw); font-size: 1.2rem; color: var(--pine); margin: 0; }
.brand em { font-style: italic; font-weight: 500; color: var(--red); }
.brand-mark { color: var(--gold); font-size: 1.3rem; }
.nav-links { display: flex; flex-shrink: 0; gap: 22px; align-items: center; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 700; color: var(--muted); font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--pine); }
@media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 800; font-size: 1rem; padding: 14px 26px; border-radius: 999px;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(194, 65, 59, .7); }
.btn-red:hover { background: var(--red-deep); }
.btn-gold { background: var(--gold); color: var(--pine-deep); }
.btn-ghost { background: transparent; color: var(--pine); box-shadow: inset 0 0 0 2px var(--pine); }
.btn-ghost:hover { background: var(--pine); color: var(--cream); }
.btn-small { padding: 9px 18px; font-size: .9rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { font-weight: 800; color: var(--red); text-decoration: none; }

/* HERO */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 5vw, 72px) 60px; max-width: 1320px; margin: 0 auto;
}
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: .78rem; color: var(--red); margin-bottom: 14px; }
.eyebrow.light { color: var(--gold); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); color: var(--pine-deep); }
.hero h1 .accent { font-style: italic; color: var(--red); }
.lead { font-size: 1.15rem; color: var(--ink); opacity: .85; max-width: 34em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.countdown { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-weight: 700; font-size: .9rem; }
.countdown .cd { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; text-align: center; min-width: 64px; }
.countdown .cd b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--pine); line-height: 1; }
.countdown .cd small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }

.hero-art { position: relative; height: 520px; }
.hero > *, .studio > *, .tree-section > * { min-width: 0; }
.lights { position: absolute; top: -10px; left: -5%; right: -5%; height: 60px; }
.lights svg { width: 100%; height: 100%; overflow: visible; }
.bulb { animation: twinkle 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.polaroid-stack { position: relative; width: 100%; height: 100%; }
.polaroid {
  position: absolute; background: #fff; padding: 12px 12px 46px; border-radius: 6px; box-shadow: var(--shadow-lg);
  width: 260px; transition: transform .4s cubic-bezier(.2, .8, .2, 1); cursor: pointer;
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.polaroid figcaption { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-family: var(--hand); font-size: 1.6rem; color: var(--ink); }
.polaroid:hover { transform: rotate(0deg) scale(1.04) !important; z-index: 5; }
.polaroid .tape { position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; margin-left: -45px; background: rgba(232, 176, 75, .55); transform: rotate(-3deg); }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .filters input[type=search] { min-width: 0; flex: 1 1 100%; }
  .hero-art { height: 400px; }
  .polaroid { width: 200px; }
}

/* NOTA */
.note { max-width: 1120px; margin: 10px auto 0; padding: 30px 16px 10px; text-align: center; }
.note-text { max-width: 860px; margin: 0 auto; font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.45; color: var(--ink); font-weight: 400; }
.note-text b { font-weight: 600; color: var(--red); white-space: nowrap; }
.note-text .hand { font-family: var(--hand); font-size: 1.3em; color: var(--pine); margin-right: .12em; }
.faces { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 26px auto 10px; max-width: 1100px; }
.face { position: relative; width: 58px; height: 58px; margin: 4px -4px; border: 0; padding: 0; background: none; cursor: pointer; transition: transform .2s; }
.face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--cream); filter: grayscale(.35); }
.face:hover { transform: translateY(-6px) scale(1.12); z-index: 2; }
.face:hover img { filter: none; }
.face.home img { filter: none; border-color: var(--gold); }
.face.home::after { content: "🏠"; position: absolute; right: -2px; bottom: -2px; font-size: 15px; background: var(--paper); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; box-shadow: var(--shadow); }
.face span { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.face:hover span { opacity: 1; }
.faces-legend { font-size: .82rem; color: var(--muted); font-weight: 700; display: flex; gap: 8px; justify-content: center; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #CFC4B8; margin-left: 10px; }
.dot.home { background: var(--gold); }

/* SECTION */
.section { max-width: 1240px; margin: 0 auto; padding: 80px clamp(16px, 4vw, 40px); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }

/* FILTERS */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: center; margin-bottom: 34px;
}
.filters input[type=search], .filters select {
  font: inherit; font-size: .92rem; border: 1px solid var(--line); background: var(--cream); padding: 9px 16px; border-radius: 999px; color: var(--ink); outline: none;
}
.filters input[type=search] { min-width: 200px; }
.filters input:focus, .filters select:focus { border-color: var(--pine); }
.filter-label { font-weight: 800; font-size: .85rem; color: var(--muted); margin-right: -14px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; background: var(--paper); border: 1px solid var(--line); padding: 4px; border-radius: 999px; }
.chip { border: 0; background: transparent; font: inherit; font-size: .88rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.chip.active { background: var(--pine); color: #fff; }
.toggle { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--red); cursor: pointer; padding: 0 8px; }
.toggle input { accent-color: var(--red); }

/* GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative;
  transition: transform .25s ease, box-shadow .25s ease; cursor: pointer; display: flex; flex-direction: column; border: 1px solid var(--line);
  animation: rise .5s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-photo { position: relative; aspect-ratio: 4/4.2; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-photo img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px; background: rgba(255, 253, 249, .94); color: var(--pine); font-weight: 800; font-size: .76rem;
  padding: 5px 10px; border-radius: 99px; backdrop-filter: blur(6px);
}
.badge.adopted { background: var(--gold); color: var(--pine-deep); }
.fav {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 253, 249, .94);
  font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; color: var(--muted); transition: transform .2s;
}
.fav.on { color: var(--red); }
.fav:hover { transform: scale(1.12); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; }
.card-title h3 { font-size: 1.55rem; margin: 0; color: var(--pine-deep); }
.card-title span { font-weight: 800; color: var(--red); font-size: .95rem; }
.card-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.card-wish { font-family: var(--hand); font-size: 1.35rem; color: var(--red-deep); line-height: 1.15; margin: 6px 0 0; }
.traits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.trait { font-size: .74rem; font-weight: 800; background: var(--sage); color: var(--pine); padding: 3px 9px; border-radius: 99px; }
.card.is-adopted .card-photo img { filter: saturate(.7); }
.card.is-adopted::after {
  content: "¡Milagro cumplido! 🎄"; position: absolute; top: 34%; left: -10px; right: -10px; text-align: center;
  background: var(--gold); color: var(--pine-deep); font-family: var(--serif); font-weight: 800; padding: 8px; transform: rotate(-6deg); box-shadow: var(--shadow);
}
.empty { text-align: center; color: var(--muted); font-size: 1.1rem; padding: 40px; }

/* TREE */
.tree-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--band); color: #FFFDF6;
  border-radius: 36px; max-width: 1180px; margin: 40px auto; padding: 60px clamp(24px, 5vw, 70px); overflow: hidden; position: relative;
}
@media (max-width: 1220px) { .tree-section { margin-inline: 16px; } }
.tree-section h2 { color: #fff; }
.tier { fill: var(--tree); }
.tier:nth-of-type(2) { opacity: .94; } .tier:nth-of-type(3) { opacity: .88; } .tier:nth-of-type(4) { opacity: .82; }
.tree-section p { opacity: .88; }
.progress { height: 14px; background: rgba(255, 255, 255, .12); border-radius: 99px; overflow: hidden; margin: 20px 0 8px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--gold), #FFD98A); border-radius: 99px; width: 0; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.progress-label { font-weight: 800; color: var(--gold); opacity: 1 !important; }
.tree-wrap svg { width: 100%; max-height: 480px; }
.tree-light { cursor: pointer; transition: r .2s; }
.tree-light.on { filter: drop-shadow(0 0 8px #FFD98A); animation: twinkle 2.6s ease-in-out infinite; }
@media (max-width: 860px) { .tree-section { grid-template-columns: 1fr; } }

/* COMO ADOPTAR */
.steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; max-width: 1040px; }
.steps li { position: relative; padding-top: 8px; }
.step-n { font-family: var(--hand); font-size: 4.2rem; line-height: 1; color: var(--red); display: block; margin-bottom: 6px; }
.steps h3 { font-size: 1.5rem; color: var(--pine-deep); }
.steps p { color: var(--muted); }
.steps-foot { text-align: center; margin-top: 40px; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 18px; } }

/* STUDIO */
.studio { display: grid; grid-template-columns: 400px 1fr; gap: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: 32px; padding: 30px; box-shadow: var(--shadow); }
@media (max-width: 980px) { .studio { grid-template-columns: 1fr; padding: 18px; } }
.ctrl { margin-bottom: 22px; }
.ctrl > label { display: block; font-weight: 800; color: var(--pine); margin-bottom: 10px; font-size: .95rem; }
.dog-picker { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.dog-pick { flex: 0 0 auto; width: 62px; text-align: center; border: 0; background: none; cursor: pointer; padding: 0; font: inherit; font-size: .72rem; font-weight: 700; color: var(--muted); }
.dog-pick img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 auto 4px; border: 3px solid transparent; transition: border-color .2s; }
.dog-pick.active img { border-color: var(--red); }
.dog-pick.active { color: var(--red); }
.formats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fmt { text-align: left; border: 1.5px solid var(--line); background: var(--cream); border-radius: 14px; padding: 10px 12px; cursor: pointer; font: inherit; transition: all .15s; }
.fmt b { display: block; font-size: .92rem; color: var(--ink); }
.fmt small { color: var(--muted); font-size: .76rem; }
.fmt.active { border-color: var(--red); background: var(--rose); }
.themes { display: flex; gap: 8px; }
.theme { flex: 1; border: 2px solid transparent; border-radius: 14px; padding: 12px 6px; cursor: pointer; font: inherit; font-weight: 800; background: var(--a); color: var(--b); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.theme.active { border-color: var(--ink); }
textarea { width: 100%; font: inherit; font-size: .9rem; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--cream); resize: vertical; margin-bottom: 8px; }
.studio-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--sage); border-radius: 24px; padding: 30px 16px; }
.phone { background: #111; padding: 10px; border-radius: 34px; box-shadow: var(--shadow-lg); max-width: 100%; }
.phone canvas { display: block; border-radius: 26px; width: auto; height: min(62vh, 620px); max-width: 100%; object-fit: contain; }
.phone.print { background: #fff; border-radius: 6px; padding: 0; }
.phone.print canvas { border-radius: 4px; }
.studio-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.studio-hint { color: var(--muted); font-size: .88rem; text-align: center; max-width: 440px; margin: 0; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; font-weight: 800; cursor: pointer; color: var(--muted); }
.carousel-dots button.active { background: var(--pine); color: #fff; }

/* FOOTER */
.footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 50px clamp(16px, 5vw, 72px); border-top: 1px solid var(--line); background: var(--paper); margin-top: 60px; }
.footer h4 { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.footer li { margin-bottom: 4px; }
@media (max-width: 760px) { .footer { grid-template-columns: 1fr; } }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 30, 25, .55); backdrop-filter: blur(4px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; background: var(--paper); border-radius: 28px; max-width: 980px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); animation: pop .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; cursor: pointer; box-shadow: var(--shadow); }
.dog-detail { display: grid; grid-template-columns: 1fr 1.1fr; }
.dog-detail-photo { position: relative; min-height: 420px; }
.dog-detail-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dog-detail-info { padding: 36px 34px; }
.dog-detail-info h2 { font-size: 2.8rem; color: var(--pine-deep); margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.fact { background: var(--cream); border-radius: 14px; padding: 10px; text-align: center; }
.fact b { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--red); }
.fact small { font-size: .74rem; color: var(--muted); font-weight: 700; }
.letter {
  background: #FFF8E8; border-radius: 6px; padding: 18px 22px; margin: 18px 0; position: relative; box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(transparent 0 31px, #EFDDBB 31px 32px); font-family: var(--hand); font-size: 1.45rem; line-height: 32px; color: #5A3A22;
  transform: rotate(-.6deg);
}
.goodwith { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.gw { font-size: .82rem; font-weight: 800; padding: 5px 12px; border-radius: 99px; }
.gw.yes { background: var(--sage); color: var(--pine); }
.gw.no { background: #F2ECE6; color: #A89B90; text-decoration: line-through; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.share-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--muted); font-weight: 700; }
.share-row button, .share-row a { border: 1px solid var(--line); background: var(--cream); border-radius: 99px; padding: 7px 14px; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; text-decoration: none; color: var(--ink); }
@media (max-width: 760px) { .dog-detail { grid-template-columns: 1fr; } .dog-detail-photo { min-height: 300px; } .dog-detail-info { padding: 24px; } }

.form { padding: 40px; max-width: 620px; margin: 0 auto; }
.form h2 { color: var(--pine-deep); }
.form label { display: block; font-weight: 700; font-size: .9rem; margin: 12px 0 6px; color: var(--pine); }
.form input, .form select, .form textarea { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: var(--cream); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn { margin-top: 20px; width: 100%; }
.success { text-align: center; padding: 60px 30px; }
.success .big { font-size: 4rem; }

/* TOAST */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--pine-deep); color: #fff; padding: 12px 22px; border-radius: 99px; font-weight: 700; z-index: 200; box-shadow: var(--shadow-lg); animation: pop .3s; }

.confetti { position: fixed; top: -20px; z-index: 300; pointer-events: none; font-size: 22px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

@media (max-width: 520px) {
  .brand { font-size: 1rem; }
  .hero-art { height: 360px; }
  .polaroid { width: 160px; padding: 8px 8px 34px; }
  .polaroid figcaption { font-size: 1.2rem; bottom: 6px; }
  .countdown .cd { min-width: 54px; }
  .formats { grid-template-columns: 1fr 1fr; }
  .phone canvas { height: auto; width: 100%; }
  .form { padding: 28px 18px; } .form .row { grid-template-columns: 1fr; }
}

/* ---------- KIT DE DIFUSIÓN (galería) ---------- */
.kit-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 26px; }
.kit-tab { border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 800; font-size: .92rem; padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.kit-tab.active { background: var(--pine); color: var(--cream); border-color: var(--pine); }
[data-design="noche"] .kit-tab.active { color: #15123A; }
.kit-intro { text-align: center; color: var(--muted); margin: -8px auto 24px; max-width: 640px; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; align-items: start; }
.kit-grid.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.kit-item { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.kit-thumb { position: relative; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: repeating-conic-gradient(#e9e4dc 0 25%, #f7f3ee 0 50%) 0 0 / 18px 18px; }
.kit-thumb img { width: 100%; display: block; transition: transform .3s; }
.kit-thumb:hover img { transform: scale(1.03); }
.kit-thumb.loading { aspect-ratio: var(--ar, 4/5); animation: shimmer 1.2s infinite linear; background: linear-gradient(90deg, var(--line), var(--paper), var(--line)) 0 0 / 200% 100%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.kit-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 0 2px; }
.kit-meta b { font-size: .9rem; color: var(--ink); line-height: 1.2; }
.kit-meta small { display: block; color: var(--muted); font-size: .74rem; font-weight: 700; }
.kit-dl { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; font-size: 1.05rem; display: grid; place-items: center; }
.kit-dl:hover { background: var(--red-deep); }
.kit-actions { display: flex; justify-content: center; margin-top: 26px; gap: 10px; flex-wrap: wrap; }
.lightbox { padding: 26px; text-align: center; }
.lightbox img { max-height: 72vh; width: auto; max-width: 100%; margin: 0 auto 18px; border-radius: 10px; box-shadow: var(--shadow-lg); background: repeating-conic-gradient(#e9e4dc 0 25%, #f7f3ee 0 50%) 0 0 / 18px 18px; }
.lightbox h3 { color: var(--pine-deep); margin-bottom: 4px; }
.lightbox p { color: var(--muted); }

/* ---------- IDEAS ---------- */
.ideas-wrap { margin-top: 20px; }
.idea-groups { columns: 3 320px; column-gap: 22px; }
.idea-group { break-inside: avoid; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-bottom: 22px; box-shadow: var(--shadow); }
.idea-group h3 { font-size: 1.35rem; color: var(--pine-deep); margin-bottom: 12px; }
.idea-group ol { margin: 0; padding: 0; list-style: none; counter-reset: idea var(--start); }
.idea-group li { counter-increment: idea; display: grid; grid-template-columns: 34px 1fr; gap: 4px 8px; padding: 10px 0; border-top: 1px dashed var(--line); }
.idea-group li:first-child { border-top: 0; }
.idea-group li::before { content: counter(idea); font-family: var(--hand); font-size: 1.6rem; line-height: 1; color: var(--red); grid-row: span 2; }
.idea-group li b { color: var(--ink); }
.idea-group li span { color: var(--muted); font-size: .92rem; }

/* ---------- SELECTOR DE DISEÑOS ---------- */
.dz { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 400; font-family: "Nunito", system-ui, sans-serif; color: #1d1d1f; width: min(860px, calc(100% - 24px)); }
.dz-bar { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 22px; padding: 8px 8px 8px 16px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 18px 50px -10px rgba(0,0,0,.45); }
.dz-label { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8a8a8f; white-space: nowrap; }
.dz-name { flex: 1; min-width: 0; font-weight: 800; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-name small { color: #8a8a8f; font-weight: 700; margin-right: 6px; }
.dz-sw { display: flex; gap: 3px; }
.dz-sw i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.dz button { font: inherit; cursor: pointer; border: 0; }
.dz-nav { width: 42px; height: 42px; border-radius: 14px; background: #f1f1f3; font-size: 1.2rem; font-weight: 800; color: #1d1d1f; }
.dz-nav:hover { background: #e4e4e8; }
.dz-all { height: 42px; padding: 0 16px; border-radius: 14px; background: #1d1d1f; color: #fff; font-weight: 800; white-space: nowrap; }
.dz-panel { background: #fff; border-radius: 22px; padding: 14px; margin-bottom: 10px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 18px 50px -10px rgba(0,0,0,.45); display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-height: 60vh; overflow: auto; }
.dz-panel[hidden] { display: none; }
.dz-opt { text-align: left; padding: 0; border-radius: 14px; overflow: hidden; background: #f6f6f8; box-shadow: inset 0 0 0 2px transparent; transition: transform .15s; }
.dz-opt:hover { transform: translateY(-2px); }
.dz-opt.active { box-shadow: inset 0 0 0 3px #1d1d1f; }
.dz-prev { height: 64px; display: flex; align-items: flex-end; padding: 8px 10px; font-size: 1.45rem; line-height: 1; position: relative; }
.dz-prev i { position: absolute; top: 8px; right: 8px; display: flex; gap: 3px; }
.dz-prev i b { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.dz-opt span { display: block; padding: 7px 10px 9px; font-size: .78rem; font-weight: 800; color: #1d1d1f; }
.dz-opt span small { color: #8a8a8f; margin-right: 4px; }
@media (max-width: 720px) { .dz-panel { grid-template-columns: repeat(3, 1fr); } .dz-label, .dz-sw { display: none; } }
@media (max-width: 420px) { .dz-panel { grid-template-columns: repeat(2, 1fr); } }
.kit-item.wide { grid-column: span 2; }
@media (max-width: 600px) { .kit-item.wide { grid-column: auto; } }
