 :root {
  --navy: #071d32;
  --navy-2: #0c2a46;
  --blue: #a9cce7;
  --blue-light: #e6f2fb;
  --blue-pale: #f4f9fd;
  --ink: #122b40;
  --muted: #62788b;
  --white: #fff;
  --line: #d2e3f0;
  --shadow: 0 12px 30px rgba(4, 25, 44, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; background: var(--navy); color: var(--ink); font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .8; background-image:
  radial-gradient(circle at 7% 12%, #fff 0 1px, transparent 2px),
  radial-gradient(circle at 84% 16%, #b9d9f2 0 1.5px, transparent 2.5px),
  radial-gradient(circle at 18% 47%, #fff 0 1px, transparent 2px),
  radial-gradient(circle at 94% 60%, #fff 0 1px, transparent 2px),
  radial-gradient(circle at 12% 77%, #a7c9e4 0 1px, transparent 2px),
  radial-gradient(circle at 76% 88%, #fff 0 1px, transparent 2px); }
.site-header { max-width: 1240px; margin: 18px auto 0; border: 2px solid #9dc4e4; border-bottom: 0; border-radius: 25px 25px 0 0; overflow: hidden; box-shadow: 0 0 0 5px rgba(180, 216, 241, .06); }
.topbar { min-height: 146px; padding: 15px 24px 18px; display: flex; align-items: center; justify-content: center; position: relative; background:
  radial-gradient(circle at 8% 22%, #fff 0 2px, transparent 3px),
  radial-gradient(circle at 17% 68%, #a8cde9 0 2px, transparent 3px),
  radial-gradient(circle at 30% 18%, #fff 0 1.5px, transparent 2.5px),
  radial-gradient(circle at 67% 27%, #fff 0 2px, transparent 3px),
  radial-gradient(circle at 83% 64%, #fff 0 1.5px, transparent 2.5px),
  radial-gradient(circle at 92% 20%, #a8cde9 0 2px, transparent 3px),
  linear-gradient(120deg, #071a2c, #0b2b48); }
.brand { position: relative; display: flex; flex-direction: column; align-items: center; line-height: .77; font-family: "Nunito", sans-serif; font-weight: 900; letter-spacing: -2px; transform: rotate(-2deg); text-shadow: 0 3px 0 #06172b; }
.brand-the { color: #b7d4ee; font-size: 31px; -webkit-text-stroke: 1px white; }
.brand-starry { color: #152d72; font-size: 35px; -webkit-text-stroke: 1.7px white; }
.brand-spot { color: #a9d7f3; font-size: 36px; -webkit-text-stroke: 1.5px white; }
.brand-tagline { margin-top: 12px; color: #b7d6ef; font-family: "DM Sans", sans-serif; font-size: 8px; letter-spacing: 1.5px; font-weight: 600; line-height: 1; text-shadow: none; }
.brand-spark { position: absolute; color: #c9e5fb; font-size: 25px; text-shadow: none; }
.spark-a { left: -30px; top: 30px; }.spark-b { right: -30px; bottom: 22px; }
.header-note { position: absolute; right: 24px; bottom: 12px; color: #c2d9eb; font-size: 11px; margin: 0; }
.header-note span { color: #fff; font-size: 16px; }
.category-nav { display: grid; grid-template-columns: repeat(4, 1fr); background: #c4dced; }
.category-nav a { min-height: 55px; display: flex; justify-content: center; align-items: center; text-align: center; padding: 9px 12px; font-size: 13px; line-height: 1.2; font-weight: 700; border-right: 1px solid rgba(255,255,255,.75); transition: background .2s, color .2s; }
.category-nav a:last-child { border: 0; }.category-nav a:hover { background: #e9f5fd; color: #173e62; }
main { max-width: 1240px; margin: 0 auto; padding: 0 0 30px; background: rgba(5, 25, 43, .18); }
.shell { margin-left: 0; margin-right: 0; }
.popular-section { background: #fff; padding: 36px 5.2% 42px; border-radius: 0 0 25px 25px; box-shadow: var(--shadow); }
.section-kicker { text-align: center; color: #6286a4; font-weight: 800; font-size: 10px; letter-spacing: 3px; }
.section-kicker span { color: #9dc6e5; margin: 0 7px; }
h1 { font-family: "Nunito", sans-serif; text-align: center; font-size: clamp(27px, 4vw, 45px); line-height: 1.08; margin: 13px 0 8px; color: var(--navy); letter-spacing: -1.4px; }
h1 em { color: #6396bd; font-style: normal; }
.intro { text-align: center; color: var(--muted); margin: 0 0 34px; font-size: 14px; }
.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.section-heading h2 { font-size: 18px; margin: 0; text-transform: uppercase; color: var(--navy); letter-spacing: .8px; }
.heading-line { flex: 1; height: 1px; background: #dce9f3; }.tiny-star { color: #7aaed4; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.popular-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.product-card { background: #fff; border: 1px solid #d5e3ee; border-radius: 15px; padding: 9px; box-shadow: 0 3px 10px rgba(11, 43, 69, .08); min-width: 0; transition: transform .22s, box-shadow .22s, border-color .22s; }
.product-card:hover { transform: translateY(-4px); border-color: #a9cce7; box-shadow: 0 12px 24px rgba(11, 43, 69, .13); }
.product-image-button { display: block; width: 100%; border: 0; padding: 0; cursor: pointer; background: #e8f1f8; border-radius: 10px; overflow: hidden; aspect-ratio: 1.45; }
.product-image-button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.product-card:hover .product-image-button img { transform: scale(1.04); }
.product-name { font-size: 13px; line-height: 1.25; text-align: center; font-weight: 800; min-height: 34px; display: flex; justify-content: center; align-items: center; margin: 10px 3px 8px; }
.card-actions { display: flex; justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 12px 23px; background: var(--navy); color: white; font-weight: 800; font-family: inherit; font-size: 13px; cursor: pointer; box-shadow: 0 4px 0 rgba(1, 14, 27, .14); transition: transform .2s, background .2s; }
.button:hover { background: #17486d; transform: translateY(-2px); }.button span { font-size: 17px; line-height: .7; }
.card-order { min-width: 118px; padding: 8px 18px; font-size: 11px; }
.category-section { padding: 42px 4.3% 8px; scroll-margin-top: 22px; }
.category-title { color: white; margin-bottom: 18px; }
.category-title > div { display: flex; align-items: center; gap: 10px; }
.category-title h2 { margin: 0; font: 800 clamp(21px, 3vw, 29px)/1.1 "Nunito", sans-serif; letter-spacing: -.5px; }
.title-spark { color: #b4d8f2; font-size: 25px; }
.category-title p { margin: 7px 0 0 34px; color: #b4cde0; font-size: 12px; }
.category-section .product-card { border-radius: 14px; }
.custom-banner { position: relative; overflow: hidden; text-align: center; color: white; margin: 48px 3% 12px; padding: 42px 20px 46px; border: 1px solid #7faed2; border-radius: 25px; background: radial-gradient(ellipse at 50% 0%, #164369, #0b2741 65%, #081d31); box-shadow: 0 12px 25px rgba(0,0,0,.12); }
.custom-banner:before, .custom-banner:after { content: "✦  ·  ✧  ·  ✦"; position: absolute; color: #b6d9f3; opacity: .75; letter-spacing: 13px; font-size: 18px; }
.custom-banner:before { top: 20px; left: 6%; }.custom-banner:after { bottom: 18px; right: 6%; }
.eyebrow { text-transform: uppercase; font-size: 10px; letter-spacing: 3px; color: #a9d0ed; font-weight: 800; }
.custom-banner h2 { font: 900 clamp(26px, 4vw, 38px)/1.1 "Nunito", sans-serif; margin: 10px 0; }
.custom-banner p:not(.eyebrow) { color: #d0e1ef; font-size: 14px; margin: 0 0 22px; }
.button-light { background: #e8f4fc; color: var(--navy); }.button-light:hover { background: white; }
.cloud { position: absolute; width: 130px; height: 35px; border-radius: 40px; background: rgba(173, 211, 239, .1); border: 1px solid rgba(173,211,239,.18); }
.cloud:before, .cloud:after { content: ""; position: absolute; border-radius: 50%; background: inherit; border-top: 1px solid rgba(173,211,239,.18); }
.cloud:before { width: 50px; height: 50px; left: 18px; bottom: 0; }.cloud:after { width: 38px; height: 38px; left: 55px; bottom: 0; }
.cloud-left { left: -22px; bottom: 24px; }.cloud-right { right: -28px; top: 30px; }.banner-stars { color: #bdddf4; margin-bottom: 5px; letter-spacing: 7px; }
.site-footer { position: relative; text-align: center; color: #c3d8e9; padding: 30px 20px 34px; }
.footer-logo { font-family: "Nunito", sans-serif; font-size: 23px; color: #c2ddf2; font-weight: 700; letter-spacing: -1px; }.footer-logo strong { color: white; }.footer-logo span { color: #8ebde1; }
.site-footer p { margin: 10px 0 4px; font-family: "Nunito", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }.site-footer .footer-sub { font-size: 9px; font-weight: 600; letter-spacing: 2px; color: #87aac7; }
.back-top { display: inline-block; margin-top: 15px; font-size: 11px; color: #a8cce7; border-bottom: 1px solid #517b9c; padding-bottom: 3px; }
.modal-backdrop { display: none; position: fixed; z-index: 50; inset: 0; padding: 22px; background: rgba(3, 17, 30, .72); backdrop-filter: blur(7px); align-items: center; justify-content: center; }
.modal-backdrop.open { display: flex; }
.product-modal { width: min(100%, 970px); max-height: min(90vh, 800px); overflow-y: auto; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px; border-radius: 26px; border: 2px solid #c3dced; background: linear-gradient(135deg, #f3f9fd, #dcecf7); box-shadow: 0 25px 90px rgba(0,0,0,.35); }
.modal-close { position: absolute; top: 12px; right: 15px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--navy); background: #fff; box-shadow: 0 3px 10px #b4cddd; font-size: 27px; cursor: pointer; }
.main-image-wrap { overflow: hidden; border: 4px solid white; border-radius: 17px; box-shadow: 0 3px 12px rgba(6,35,57,.12); aspect-ratio: 1 / .93; background: #e4edf4; }
.main-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumbnail-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.thumbnail { aspect-ratio: 1 / .82; padding: 0; border: 3px solid white; border-radius: 12px; overflow: hidden; cursor: pointer; background: #d5e6f2; opacity: .75; }
.thumbnail.active { border-color: #214e70; opacity: 1; }.thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }.gallery-dots span { width: 9px; height: 9px; border-radius: 50%; background: #aab9c5; }.gallery-dots span.active { background: var(--navy); }
.modal-info { padding: 18px 8px 8px 0; align-self: center; }
.modal-label { color: #688ba7; letter-spacing: 2px; font-size: 10px; font-weight: 900; }
.modal-info h2 { color: #081f34; font: 900 clamp(28px, 4vw, 43px)/1.04 "Nunito", sans-serif; letter-spacing: -1px; margin: 14px 0 20px; }
.modal-info > p { font-size: 16px; line-height: 1.55; color: #2d465a; margin-bottom: 22px; }
.modal-note { color: #5d7d96; font-size: 12px; line-height: 1.5; margin: 20px 0 28px; }.modal-note span { color: #6195bc; margin-right: 6px; }
.order-button { width: 100%; min-height: 53px; font-size: 14px; }
body.modal-open { overflow: hidden; }
@media (min-width: 1241px) { main { border-left: 1px solid rgba(178,211,235,.5); border-right: 1px solid rgba(178,211,235,.5); } }
@media (max-width: 800px) {
  .site-header { margin: 10px 10px 0; border-radius: 18px 18px 0 0; }
  .topbar { min-height: 130px; }.header-note { display: none; }
  .category-nav a { font-size: 11px; padding: 8px 4px; min-height: 54px; }
  .popular-section { padding: 30px 18px 32px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .popular-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-section { padding: 32px 16px 5px; }
  .product-card { padding: 7px; }.product-name { font-size: 12px; }
  .product-modal { grid-template-columns: 1fr; gap: 15px; padding: 18px; max-width: 520px; }
  .modal-gallery { padding-top: 22px; }.main-image-wrap { aspect-ratio: 1.4 / 1; }
  .modal-info { padding: 4px 2px 2px; }.modal-info h2 { margin: 8px 0 12px; font-size: 30px; }
  .modal-info > p { font-size: 14px; margin-bottom: 12px; }.modal-note { margin: 12px 0 18px; }
  .modal-backdrop { padding: 12px; }
}
@media (max-width: 440px) {
  .category-nav { grid-template-columns: repeat(2,1fr); }
  .category-nav a:nth-child(2) { border-right: 0; }.category-nav a:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.75); }
  .product-grid, .popular-grid { gap: 9px; }
  .card-order { min-width: 0; width: 100%; padding: 9px 8px; }
  .category-title h2 { font-size: 22px; }.category-title p { margin-left: 28px; }
  .custom-banner { margin: 35px 12px 10px; padding: 35px 15px; }
}

/* Edición Starry: más detalles, profundidad y composición editorial */
body { background: radial-gradient(ellipse at 50% 5%, #123858 0%, #071d32 68%); }
.starfield {
  opacity: 1;
  background-image:
    radial-gradient(circle at 4% 10%, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 13% 22%, #a8cce8 0 2px, transparent 3px),
    radial-gradient(circle at 24% 6%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 36% 18%, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 49% 8%, #b9daf2 0 2px, transparent 3px),
    radial-gradient(circle at 62% 23%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 75% 8%, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 87% 28%, #a8cce8 0 2px, transparent 3px),
    radial-gradient(circle at 97% 12%, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 8% 42%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 93% 48%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 4% 70%, #a8cce8 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 95% 77%, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 20% 91%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 72% 94%, #b9daf2 0 1.5px, transparent 2.5px);
}
.site-header { border-radius: 27px 27px 0 0; border-width: 2px; box-shadow: 0 0 0 5px rgba(180,216,241,.05), 0 15px 36px rgba(0,0,0,.12); }
.topbar { min-height: 166px; }
.topbar:before, .topbar:after { content:"✦"; position:absolute; color:#d6ebfa; font-size:23px; text-shadow:0 0 16px #b8dcf7; }
.topbar:before { left:7%; top:24%; }.topbar:after { right:8%; bottom:24%; }
.brand { filter: drop-shadow(0 4px 8px #0003); }
.category-nav { box-shadow: inset 0 1px rgba(255,255,255,.65); }
.category-nav a { font-size: 13px; letter-spacing:.1px; }
main { position:relative; }
.popular-section { position:relative; overflow:hidden; background:linear-gradient(180deg,#fff 0%,#f8fcff 100%); border-radius:0 0 27px 27px; }
.popular-section:before { content:"✧"; position:absolute; right:3%; top:28px; color:#c1dced; font-size:34px; }
.popular-section:after { content:"✦"; position:absolute; left:2%; bottom:20px; color:#c1dced; font-size:23px; }
.intro { margin-bottom:38px; }
.section-heading h2 { font-size:20px; letter-spacing:1.2px; }
.product-card { border-radius:17px; padding:10px; border-color:#ccdfed; box-shadow:0 5px 14px rgba(11,43,69,.075); }
.product-image-button { aspect-ratio:1.38; background:#e4f0f8; }
.product-image-button img { object-fit:cover; }
.product-name { font-size:13px; min-height:36px; }
.card-order { min-width:125px; box-shadow:0 3px 0 #bed5e7; }
.category-section { position:relative; margin-top:25px; padding:26px 4.3% 28px; border:1px solid rgba(192,220,240,.95); border-radius:24px; background:linear-gradient(135deg,rgba(238,247,253,.99),rgba(216,235,247,.98)); box-shadow:0 8px 22px rgba(0,0,0,.12), inset 0 1px rgba(255,255,255,.95); }
.category-section:before { content:"✧   ·   ✦"; position:absolute; top:17px; right:22px; color:#9abbd5; font-size:18px; letter-spacing:8px; }
.category-title { color:var(--navy); }
.category-title p { color:#617e95; }
.category-title h2 { color:#102b43; }
.category-section .product-card { background:rgba(255,255,255,.96); }
.category-section .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.custom-banner { border-width:2px; box-shadow:0 0 0 6px rgba(160,201,231,.07),0 16px 32px rgba(0,0,0,.2); }
.site-footer { padding-top:42px; }
.site-footer:before { content:"✦     ·     ✧     ·     ✦"; display:block; color:#a9cce7; letter-spacing:12px; margin-bottom:17px; opacity:.8; }
@media (min-width: 801px) {
  .popular-grid .product-card:nth-child(2) { transform:translateY(-5px); }
  .popular-grid .product-card:nth-child(2):hover { transform:translateY(-9px); }
}
@media (max-width:800px) {
  .topbar { min-height:145px; }
  .category-section { margin:18px 10px 0; padding:25px 13px 22px; }
  .category-section .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Galería automática: transiciones suaves y contador discreto */
.product-image-button { position:relative; overflow:hidden; }
.product-image-button img { transition: opacity .35s ease, transform .55s ease; }
.product-image-button img.image-fading { opacity:.25; transform:scale(1.025); }
.image-count {
  position:absolute; right:9px; bottom:8px; z-index:2;
  padding:4px 8px; border:1px solid rgba(255,255,255,.75);
  border-radius:999px; background:rgba(8,31,51,.72);
  color:#eef8ff; font-size:10px; line-height:1; letter-spacing:.5px;
  box-shadow:0 2px 8px rgba(0,0,0,.12); backdrop-filter:blur(5px);
}
.image-count[hidden] { display:none; }
.thumbnail img { transition:transform .25s ease, opacity .25s ease; }
.thumbnail.active { border-color:#6f9fc4; box-shadow:0 0 0 2px rgba(111,159,196,.18); }
.main-image-wrap img { transition:opacity .3s ease; }
.site-footer { padding-bottom:42px; }
.site-footer > p:first-of-type { max-width:520px; margin:13px auto 8px; font-family:Georgia,serif; font-size:clamp(16px,2.2vw,21px); font-weight:400; text-transform:none; letter-spacing:.3px; color:#d6e9f8; }
.site-footer .footer-sub { margin-top:10px; }
@media (prefers-reduced-motion: reduce) {
  .product-image-button img, .thumbnail img, .main-image-wrap img { transition:none !important; }
}
