:root {
  --naranja: #ee4e24;
  --naranja-d: #d63f17;
  --azul: #3d68ae;
  --azul-d: #284b85;
  --tinta: #1f3561;
  --celeste: #e3f8fa;
  --celeste-2: #cdeff3;
  --papel: #fffdf8;
  --linea: rgba(61, 104, 174, .18);
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(31, 53, 97, .35);
  --display: "Fraunces", Georgia, serif;
  --body: "Outfit", system-ui, sans-serif;
  --gingham: repeating-linear-gradient(0deg, rgba(61,104,174,.55) 0 12px, transparent 12px 24px),
             repeating-linear-gradient(90deg, rgba(61,104,174,.55) 0 12px, transparent 12px 24px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--body); color: var(--tinta); background: var(--celeste);
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; border-radius: 6px; }

.demo-bar {
  background: var(--tinta); color: #fff; text-align: center; font-size: 13px; padding: 6px 12px; letter-spacing: .02em;
}

/* ---------- Logo (máscara del logo real, recoloreable) ---------- */
.logo {
  display: block; width: 132px; aspect-ratio: 1400 / 716; background: var(--azul);
  -webkit-mask: url(assets/img/logo-mask.png) center / contain no-repeat;
          mask: url(assets/img/logo-mask.png) center / contain no-repeat;
}
.logo-light { background: #fff; width: 170px; margin: 0 auto 10px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px); background: rgba(227, 248, 250, .88);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea);
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--azul); }
.nav-links a:hover { color: var(--naranja); }
.cart-btn {
  display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 16px 10px 14px;
  background: var(--naranja); color: #fff; font-weight: 600; box-shadow: 0 6px 16px -8px var(--naranja);
}
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.cart-count {
  min-width: 22px; height: 22px; border-radius: 999px; background: #fff; color: var(--naranja);
  font-size: 13px; display: grid; place-items: center; padding: 0 6px;
}
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }

/* ---------- Tipografía ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: var(--azul); margin: 0 0 14px; }
.eyebrow.light { color: var(--celeste-2); }
h1, .title, .title-sm {
  font-family: var(--display); font-style: italic; font-weight: 900; color: var(--naranja);
  letter-spacing: -.01em; line-height: .98; margin: 0;
}
h1 { font-size: clamp(44px, 7vw, 92px); }
h1 em, .title em { color: var(--azul); }
.title { font-size: clamp(36px, 5vw, 60px); }
.title-sm { font-size: clamp(26px, 3vw, 34px); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head .title { position: relative; padding-bottom: 14px; margin-bottom: 14px; }
.section-head .title::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 3px; background: var(--naranja); border-radius: 3px; }
.section-head p { color: var(--azul); margin: 0; }
.fine { font-size: 14px; color: var(--azul); text-align: center; margin: 24px 0 0; opacity: .85; }
.fine.left { text-align: left; margin-top: 10px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px;
  padding: 14px 26px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--naranja); color: #fff; }
.btn-primary:hover { background: var(--naranja-d); }
.btn-ghost { border-color: var(--azul); color: var(--azul); }
.btn-ghost:hover { background: var(--azul); color: #fff; }
.btn-link { background: none; border: 0; color: var(--azul); padding: 10px; }
.btn.small { padding: 10px 18px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

section { padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 48px); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  max-width: 1240px; margin: 0 auto; padding-top: clamp(40px, 6vw, 72px);
}
.lead { font-size: 19px; color: var(--azul-d); max-width: 520px; margin: 22px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li { background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 500; color: var(--azul); border: 1px solid var(--linea); }
.hero-art { position: relative; height: clamp(420px, 46vw, 560px); }
.polaroid {
  position: absolute; margin: 0; background: #fff; padding: 10px 10px 34px; border-radius: 6px; box-shadow: var(--shadow);
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.p1 { width: 58%; height: 78%; left: 18%; top: 4%; transform: rotate(-3deg); z-index: 2; }
.p2 { width: 40%; height: 46%; right: 0; top: 0; transform: rotate(6deg); }
.p3 { width: 40%; height: 44%; left: 0; bottom: 0; transform: rotate(-8deg); z-index: 3; }
.hero-art::before {
  content: ""; position: absolute; inset: 14% 6% 6% 22%; background: var(--gingham); opacity: .25; border-radius: 24px; transform: rotate(4deg);
}
.sticker {
  position: absolute; right: 4%; bottom: 8%; z-index: 4; width: 112px; height: 112px; border-radius: 50%;
  background: var(--naranja); color: #fff; display: grid; place-items: center; text-align: center;
  font-size: 13px; line-height: 1.15; transform: rotate(10deg); box-shadow: var(--shadow);
}
.sticker b { font-family: var(--display); font-style: italic; font-size: 30px; }

/* ---------- Clientes ---------- */
.clientes { padding: 28px 0; background: var(--azul); color: #fff; text-align: center; overflow: hidden; }
.clientes p { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; opacity: .8; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 34px; width: max-content; animation: scroll 28s linear infinite; align-items: center; }
.track span { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 28px; white-space: nowrap; }
.track i { font-style: normal; color: var(--naranja); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Calculadora ---------- */
.calc { padding-bottom: 0; }
.calc-card {
  max-width: 1100px; margin: 0 auto; background: var(--papel); border-radius: 28px; padding: 28px 32px;
  display: grid; grid-template-columns: 1.2fr auto 1.4fr; gap: 28px; align-items: center; box-shadow: var(--shadow);
  border: 2px dashed var(--celeste-2);
}
.calc-card p { margin: 8px 0 0; color: var(--azul); font-size: 15px; }
.calc-ctrl label { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--azul); margin-bottom: 6px; }
.calc-out { background: var(--celeste); border-radius: 18px; padding: 16px 20px; }
.calc-out .big-n { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 40px; color: var(--naranja); line-height: 1; }
.calc-out p { margin: 6px 0 10px; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; background: var(--celeste); border-radius: 999px; padding: 3px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: var(--azul); font-size: 18px; line-height: 1; }
.stepper button:hover { background: var(--azul); color: #fff; }
.stepper input, .stepper output { width: 44px; text-align: center; border: 0; background: none; font: 600 16px var(--body); color: var(--tinta); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.stepper.big button { width: 44px; height: 44px; font-size: 22px; }
.stepper.big input { width: 70px; font-size: 24px; }

/* ---------- Carta ---------- */
.carta { max-width: 1240px; margin: 0 auto; }
.tabs { scrollbar-width: none; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; justify-content: center; flex-wrap: wrap; }
.tab {
  border: 2px solid var(--azul); background: transparent; color: var(--azul); border-radius: 999px;
  padding: 9px 18px; font-weight: 600; white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--azul); color: #fff; }
.tab:hover:not([aria-selected="true"]) { background: #fff; }
.cat-panel { display: grid; grid-template-columns: 340px 1fr; gap: 28px; margin-top: 18px; align-items: start; }
.cat-photo {
  margin: 0; position: sticky; top: 96px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.cat-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cat-photo figcaption { padding: 16px 20px 20px; }
.cat-photo h3 { font-family: var(--display); font-style: italic; font-weight: 900; color: var(--naranja); font-size: 30px; margin: 0 0 4px; line-height: 1; }
.cat-photo p { margin: 0; color: var(--azul); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.item {
  background: var(--papel); border-radius: var(--radius); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--linea); transition: transform .15s, box-shadow .15s;
}
.item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.item h4 { margin: 0; font-size: 19px; font-weight: 700; color: var(--azul); line-height: 1.2; }
.item .desc { margin: 0; font-size: 14px; color: var(--tinta); opacity: .8; flex: 1; }
.item select { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--linea); background: #fff; font: 500 14px var(--body); color: var(--tinta); }
.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.size {
  border: 1.5px solid var(--linea); background: #fff; border-radius: 12px; padding: 7px 8px; text-align: left; color: var(--tinta);
}
.size small { display: block; font-size: 12px; color: var(--azul); }
.size b { font-size: 16px; }
.size[aria-pressed="true"] { border-color: var(--naranja); background: #fff3ef; box-shadow: inset 0 0 0 1px var(--naranja); }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.add {
  border: 0; background: var(--naranja); color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px;
}
.add:hover { background: var(--naranja-d); }
.single-price { font-family: var(--display); font-style: italic; font-weight: 800; color: var(--naranja); font-size: 24px; }

/* ---------- Packs ---------- */
.packs { background: var(--azul); color: #fff; position: relative; }
.packs::before { content: ""; position: absolute; inset: 0 0 auto; height: 18px; background: var(--gingham); opacity: .5; }
.section-head.on-blue p { color: var(--celeste-2); }
.section-head.on-blue .title { color: #fff; }
.section-head.on-blue .title::after { background: var(--naranja); }
.pack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1240px; margin: 0 auto; }
.pack {
  background: var(--celeste); color: var(--tinta); border-radius: 24px; padding: 24px 22px; display: flex; flex-direction: column; position: relative;
}
.pack.destacado { outline: 4px solid var(--naranja); }
.pack .badge { position: absolute; top: -13px; left: 22px; background: var(--naranja); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.pack h3 { font-family: var(--display); font-style: italic; font-weight: 900; color: var(--naranja); font-size: 30px; line-height: 1; margin: 0; }
.pack .count { font-weight: 700; color: var(--azul); margin: 6px 0 14px; }
.pack h5 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 18px; color: var(--azul); margin: 8px 0 4px; }
.pack ul { list-style: none; padding: 0; margin: 0 0 6px; font-size: 14.5px; }
.pack li { padding: 2px 0; }
.pack li b { font-family: var(--display); font-style: italic; color: var(--naranja); margin-right: 4px; }
.tag {
  margin: 16px 0 14px; align-self: flex-start; background: var(--naranja); color: #fff; padding: 8px 16px 8px 26px; border-radius: 10px;
  position: relative; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 26px; line-height: 1;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
}
.tag::before { content: ""; position: absolute; left: 14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; }
.tag small { display: block; font: 600 10px var(--body); font-style: normal; letter-spacing: .05em; margin-top: 4px; }
.pack .btn { margin-top: auto; }

/* ---------- Nosotros ---------- */
.nosotros { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; max-width: 1240px; margin: 0 auto; }
.nos-img { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.nos-copy p { color: var(--azul-d); }
.nos-copy .title { margin-bottom: 18px; }
.extras { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.extras li { background: var(--papel); border-radius: 16px; padding: 14px; border: 1px solid var(--linea); }
.extras b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; color: var(--naranja); font-size: 20px; }
.extras span { font-size: 14px; }

/* ---------- Cómo ---------- */
.como { background: var(--papel); }
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { text-align: center; padding: 10px 18px; }
.steps span {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--celeste);
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: 32px; color: var(--naranja); margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; color: var(--azul); font-size: 21px; }
.steps p { margin: 0; font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--papel); border-radius: 16px; margin-bottom: 10px; border: 1px solid var(--linea); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--azul); list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--naranja); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 22px 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--tinta); color: #fff; text-align: center; padding: 56px 20px 90px; }
.footer p { margin: 0 0 16px; opacity: .85; }
.foot-links { display: flex; gap: 22px; justify-content: center; margin-bottom: 22px; }
.foot-links a { color: #fff; font-weight: 600; }
.footer small { opacity: .55; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 25; width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Drawer / carrito ---------- */
.scrim { position: fixed; inset: 0; background: rgba(31,53,97,.45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: var(--papel); z-index: 50;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; box-shadow: -10px 0 40px rgba(0,0,0,.15);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--linea); }
.drawer-head h2 { font-family: var(--display); font-style: italic; font-weight: 900; color: var(--naranja); margin: 0; font-size: 28px; }
.icon-btn { border: 0; background: var(--celeste); width: 36px; height: 36px; border-radius: 50%; color: var(--azul); }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px dashed var(--linea); }
.cart-list .ci-name { font-weight: 600; color: var(--azul); }
.cart-list .ci-meta { font-size: 13px; opacity: .75; grid-column: 1; }
.cart-list .ci-price { font-weight: 700; text-align: right; }
.cart-list .ci-ctrl { grid-column: 2; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.cart-list .stepper button { width: 26px; height: 26px; font-size: 16px; }
.cart-list .stepper output { width: 28px; font-size: 15px; }
.rm { border: 0; background: none; color: var(--naranja); font-size: 13px; text-decoration: underline; padding: 0; }
.cart-empty { text-align: center; padding: 50px 0; color: var(--azul); }
.drawer-foot { padding: 16px 22px 20px; border-top: 1px solid var(--linea); background: #fff; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 28px; color: var(--naranja); }
.drawer-foot .btn-primary { margin-top: 12px; }

.checkout fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.checkout legend { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 20px; color: var(--azul); margin-bottom: 8px; }
.checkout label { display: block; font-size: 14px; font-weight: 600; color: var(--tinta); margin-bottom: 10px; }
.checkout label small { font-weight: 400; opacity: .7; }
.checkout input:not([type=checkbox]), .checkout select, .checkout textarea {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--linea);
  font: 400 16px var(--body); color: var(--tinta); background: #fff;
}
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { border-color: var(--azul); outline: none; }
.checkout .invalid { border-color: var(--naranja) !important; background: #fff3ef !important; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.chk { display: flex !important; align-items: center; gap: 8px; background: var(--celeste); border-radius: 12px; padding: 10px 12px; margin: 0 !important; cursor: pointer; }
.chk input { accent-color: var(--naranja); width: 18px; height: 18px; }
.form-error { color: var(--naranja-d); font-weight: 600; font-size: 14px; margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%); background: var(--tinta); color: #fff; z-index: 60;
  padding: 12px 20px; border-radius: 999px; font-weight: 500; transition: transform .3s ease, opacity .3s; pointer-events: none; white-space: nowrap;
  opacity: 0;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-card { grid-template-columns: 1fr 1fr; }
  .calc-card > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .cart-btn { margin-left: auto; }
  .hero, .nosotros { grid-template-columns: 1fr; }
  .hero-art { height: 420px; }
  .cat-panel { grid-template-columns: 1fr; }
  .cat-photo { position: static; display: grid; grid-template-columns: 120px 1fr; align-items: center; }
  .cat-photo img { aspect-ratio: 1; height: 100%; }
  .cat-photo h3 { font-size: 24px; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; }
  .steps { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pack-grid, .calc-card { grid-template-columns: 1fr; }
  .cart-btn span { display: none; }
  .logo { width: 110px; }
  .hero-art { height: 360px; }
  .sticker { width: 92px; height: 92px; font-size: 11px; }
  .sticker b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Con el carrito abierto, el aviso sale arriba para no tapar el botón */
.drawer.open ~ .toast { bottom: auto; top: 20px; }

/* crédito del desarrollador */
.footer .dev-credit { margin: 14px 0 0; font-size: .8rem; opacity: .7; }
.dev-credit a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dev-credit a:hover { opacity: 1; color: #fff; }
