:root {
  --purple: #2A2438;
  --magenta: #D94F70;
  --yellow: #F2C14E;
  --teal: #3AA981;
  --lilac: #C9B6F2;
  --paper: #FAF6F2;
  --ink: #1F1A29;
  --muted: #746B7D;
  --line: rgba(42, 36, 56, 0.14);
  --white: #ffffff;
  --shadow: 0 18px 56px rgba(49, 25, 72, 0.16);
}

.pronto-bar {
  background: var(--teal);
  text-align: center;
  padding: 10px clamp(18px, 4vw, 56px);
}

.pronto-bar p {
  margin: 0;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
}

.pronto-bar a {
  color: var(--white);
  text-decoration: underline;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 247, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav,
.cart-button,
.hero-actions,
.trust-row,
.filters,
.b2b-benefits,
.site-footer > div:last-child {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-family: "Baloo 2", Montserrat, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 0.95;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: Montserrat, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--purple);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--yellow), var(--magenta));
  color: var(--purple);
  font-size: 0.78rem;
  box-shadow: 5px 5px 0 var(--teal);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--white);
  opacity: 0.92;
}

.brand-mark::before {
  width: 16px;
  height: 16px;
  right: -3px;
  top: 5px;
}

.brand-mark::after {
  width: 9px;
  height: 9px;
  left: 6px;
  bottom: 6px;
}

.main-nav {
  justify-content: center;
  gap: clamp(12px, 2.6vw, 30px);
  color: #4B385B;
  font-size: 0.92rem;
  font-weight: 800;
}

.main-nav a:hover {
  color: var(--magenta);
}

.cart-button {
  gap: 9px;
  justify-content: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 2px solid var(--purple);
  border-radius: 8px;
  background: var(--white);
  color: var(--purple);
  cursor: pointer;
  font-weight: 900;
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--magenta);
  color: var(--white);
  font-size: 0.82rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  min-height: calc(100vh - 72px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(36px, 7vw, 82px) clamp(18px, 4vw, 56px) 42px;
  overflow: hidden;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--magenta);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Baloo 2", Montserrat, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--purple);
  font-size: clamp(3rem, 7vw, 6.35rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 16px;
  color: var(--purple);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.26rem;
  line-height: 1.05;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  color: #4F405A;
  font-size: clamp(1.04rem, 1.6vw, 1.25rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 22px;
}

.button,
.product-footer button,
.filter,
.cart-head button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
}

.primary {
  background: var(--purple);
  color: var(--white);
}

.ghost {
  background: var(--white);
  color: var(--purple);
  box-shadow: inset 0 0 0 2px rgba(90, 45, 130, 0.2);
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span,
.b2b-benefits span,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-media {
  position: relative;
  min-height: 520px;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 5% -7% 2% 9%;
  background:
    radial-gradient(circle at 14% 17%, rgba(255, 197, 61, 0.9), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(41, 199, 136, 0.58), transparent 26%),
    radial-gradient(circle at 44% 92%, rgba(167, 139, 250, 0.6), transparent 23%),
    linear-gradient(135deg, rgba(255, 107, 136, 0.3), rgba(90, 45, 130, 0.16));
  border-radius: 34px;
  transform: rotate(-3deg);
}

.hero-media img {
  position: relative;
  width: 100%;
  height: min(65vh, 690px);
  min-height: 500px;
  object-fit: cover;
  border: 8px solid var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: end;
  background: var(--purple);
  color: var(--white);
}

.intro-band h2,
.b2b-section h2,
.featured-section h2 {
  color: var(--white);
}

.intro-band .eyebrow,
.b2b-section .eyebrow,
.featured-section .eyebrow {
  color: var(--yellow);
}

.featured-section .section-heading > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.intro-band p:last-child {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.04rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-grid a {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 8px solid var(--accent);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(49, 25, 72, 0.07);
  color: var(--purple);
  font-weight: 900;
}

/* Guía SEO por categoría */
.cat-guide {
  margin-top: 40px;
}

.cat-guide-list {
  display: grid;
  gap: 10px;
}

.cat-guide-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.cat-guide-list summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--purple);
  font-weight: 900;
}

.cat-guide-list summary::-webkit-details-marker {
  display: none;
}

.cat-guide-list summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--magenta);
  line-height: 1;
}

.cat-guide-list details[open] summary::after {
  content: "−";
}

.cat-emoji {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.cat-title {
  flex: 1;
  font-size: 1rem;
}

.cat-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.cat-content {
  padding: 0 22px 22px;
  border-top: 1px solid var(--line);
}

.cat-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-top: 18px;
  margin-bottom: 0;
}

.cat-content a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  color: var(--purple);
  font-weight: 900;
  font-size: 0.9rem;
}

.cat-content a:hover {
  color: var(--magenta);
}

.product-section {
  background: var(--white);
}

.filters {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter {
  padding: 10px 15px;
  background: #F1E7FA;
  color: var(--purple);
}

.filter.is-active {
  background: var(--teal);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  --visual-height: 170px;
  display: grid;
  grid-template-rows: var(--visual-height) 1fr auto;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(49, 25, 72, 0.08);
}

.product-card.pack-size-s {
  --visual-height: 145px;
}

.product-card.pack-size-m {
  --visual-height: 205px;
}

.product-card.pack-size-l {
  --visual-height: 255px;
}

.product-card.pack-size-xl {
  --visual-height: 315px;
}

.product-card.featured {
  border-color: rgba(255, 107, 136, 0.62);
  box-shadow: 0 18px 55px rgba(255, 107, 136, 0.18);
}

.product-visual {
  position: relative;
  overflow: hidden;
  background: #FFE8EF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}

.product-visual::before,
.product-visual::after {
  content: "";
  position: absolute;
  border-radius: 8px;
}

.product-visual::before {
  width: 54%;
  height: 58%;
  left: 18%;
  top: 25%;
  background: var(--white);
  box-shadow: 0 14px 0 rgba(90, 45, 130, 0.16);
  transform: rotate(-7deg);
}

.product-visual::after {
  width: 52%;
  height: 32%;
  right: 12%;
  top: 20%;
  background: repeating-linear-gradient(90deg, var(--magenta) 0 18px, var(--yellow) 18px 36px, var(--teal) 36px 54px);
  box-shadow: -56px 40px 0 rgba(167, 139, 250, 0.88), -12px 70px 0 rgba(90, 45, 130, 0.78);
  transform: rotate(8deg);
}

.product-visual.party {
  background: #FFF0B9;
}

.product-visual.gaming {
  background: #EDE7FF;
}

.product-visual.choco {
  background: #F2E3D7;
}

.product-visual.spicy {
  background: #FFE0DA;
}

.product-visual.xl {
  background: #DDF8EE;
}

.product-visual.mystery {
  background: #F0E9FF;
}

/* Sistema de fotos de producto — ver assets/packs/FOTOS.txt */
.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: none;
}

.product-visual.has-photo .product-photo {
  display: block;
}

.product-visual.has-photo .product-icon {
  display: none;
}

.product-visual.has-photo::before,
.product-visual.has-photo::after {
  display: none;
}

.product-visual.has-photo::before {
  content: attr(data-box-code);
  position: absolute;
  left: 42%;
  bottom: 20px;
  z-index: 2;
  display: inline-flex;
  max-width: calc(58% - 22px);
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border: 2px solid rgba(42, 36, 56, 0.48);
  border-radius: 2px;
  background: rgba(250, 246, 242, 0.18);
  color: rgba(42, 36, 56, 0.78);
  box-shadow: none;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.product-visual.has-photo::after {
  content: attr(data-box-size);
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 2px solid rgba(217, 79, 112, 0.62);
  border-radius: 2px;
  background: rgba(250, 246, 242, 0.2);
  color: rgba(217, 79, 112, 0.9);
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.product-card.pack-size-s .product-visual.has-photo::before {
  left: 39%;
  bottom: 16px;
  max-width: calc(61% - 78px);
  min-height: 22px;
  font-size: 0.52rem;
  padding: 4px 7px;
}

.product-card.pack-size-s .product-visual.has-photo::after {
  right: 12px;
  bottom: 15px;
  min-height: 23px;
  padding: 4px 7px;
  font-size: 0.6rem;
}

.product-card.pack-size-xl .product-visual.has-photo::before {
  left: 43%;
  bottom: 26px;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.68rem;
}

.product-card.pack-size-xl .product-visual.has-photo::after {
  right: 20px;
  bottom: 25px;
  min-height: 32px;
  padding: 7px 11px;
  font-size: 0.78rem;
}

.product-visual.has-photo .persons-tag {
  z-index: 2;
}

.product-visual.has-photo::before,
.product-visual.has-photo::after {
  content: "";
  display: none;
}

.product-copy {
  padding: 20px;
}

.box-meta {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(42, 36, 56, 0.16);
  border-radius: 4px;
  background: rgba(250, 246, 242, 0.86);
  color: #6B5A78;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.product-copy p,
.product-copy li,
.box-list p,
.steps p,
.legal-grid p,
.faq-list p,
.cart-note,
.site-footer p {
  color: var(--muted);
}

.product-copy ul {
  margin: 16px 0 0;
  padding-left: 19px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px 20px;
}

.product-footer strong {
  color: var(--purple);
  font-size: 1.34rem;
}

.product-footer button {
  min-width: 104px;
  padding: 10px 16px;
  background: var(--purple);
  color: var(--white);
}

.box-list,
.steps,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.box-list article,
.steps article,
.legal-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
}

.box-list span {
  color: var(--teal);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.76rem;
}

/* Mesas dulces y kioskos */
.mesa-dulce-section {
  background:
    radial-gradient(circle at 88% 8%, rgba(201, 182, 242, 0.35), transparent 34%),
    linear-gradient(180deg, rgba(242, 193, 78, 0.16), rgba(217, 79, 112, 0.08));
}

.mesa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mesa-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(49, 25, 72, 0.07);
  overflow: hidden;
}

.mesa-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  background:
    radial-gradient(circle at 18% 22%, rgba(242, 193, 78, 0.5), transparent 42%),
    radial-gradient(circle at 82% 80%, rgba(201, 182, 242, 0.55), transparent 46%),
    linear-gradient(135deg, var(--mesa-accent, var(--magenta)), rgba(42, 36, 56, 0.88));
}

.mesa-icon {
  font-size: 3.1rem;
  filter: drop-shadow(0 6px 14px rgba(31, 26, 41, 0.35));
}

.mesa-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mesa-visual img.loaded {
  opacity: 1;
}

.mesa-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.mesa-copy h3 {
  color: var(--purple);
}

.mesa-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.96rem;
}

.mesa-copy a {
  margin-top: auto;
  color: var(--magenta);
  font-weight: 900;
}

.mesa-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.how-it-works {
  background: #F5EEFF;
}

.steps article span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 22px;
  background: var(--yellow);
  border-radius: 8px;
  color: var(--purple);
  font-weight: 900;
}

.b2b-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(28px, 5vw, 62px);
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(90, 45, 130, 0.98), rgba(45, 29, 68, 0.98)),
    var(--purple);
  color: var(--white);
}

.b2b-copy {
  align-self: center;
}

.b2b-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.b2b-benefits {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.b2b-benefits span {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.account-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.b2b-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.account-form {
  min-height: 100%;
}

.account-form.professional {
  border: 2px solid rgba(255, 197, 61, 0.88);
}

.form-intro {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid rgba(90, 45, 130, 0.14);
  padding-bottom: 14px;
}

.form-intro span {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-intro h3 {
  margin-bottom: 0;
  color: var(--purple);
}

.form-intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.b2b-form label {
  display: grid;
  gap: 7px;
  color: #3C2E47;
  font-size: 0.9rem;
  font-weight: 800;
}

.b2b-form input,
.b2b-form select,
.b2b-form textarea {
  width: 100%;
  border: 1px solid rgba(90, 45, 130, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: #FFFCF8;
  color: var(--ink);
}

.b2b-form textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 24px;
  color: #157956;
  font-weight: 800;
}

.faq-section {
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--purple);
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: flex-end;
  background: rgba(36, 24, 46, 0.42);
}

.cart-panel.is-open {
  display: flex;
}

.cart-content {
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  width: min(430px, 100%);
  height: 100%;
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cart-head,
.cart-item,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-head button {
  padding: 9px 12px;
  background: #F1E7FA;
  color: var(--purple);
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 12px 0;
}

.cart-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.cart-total {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.checkout {
  width: 100%;
}

.cart-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: var(--white);
}

.site-footer strong {
  font-family: "Baloo 2", Montserrat, sans-serif;
  font-size: 1.35rem;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer > div:last-child {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

/* Páginas legales */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) clamp(18px, 4vw, 56px);
}

.legal-content h1 {
  margin-bottom: 28px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 36px;
  margin-bottom: 10px;
  color: var(--purple);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 10px;
}

.legal-content a {
  color: var(--purple);
  text-decoration: underline;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.92rem;
}

.legal-content th,
.legal-content td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.legal-content th {
  width: 36%;
  background: #F5EEFF;
  color: var(--purple);
  font-weight: 800;
}

.legal-date {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem !important;
}

/* Sección ¿Por qué? */
.trust-section {
  background: #F5EEFF;
}

.trust-section .section-heading,
.featured-section .section-heading {
  text-align: center;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-item {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

.trust-icon {
  font-size: 1.9rem;
  line-height: 1;
}

.trust-item h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

.trust-item p {
  color: var(--muted);
  font-size: 0.91rem;
  margin-bottom: 0;
}

/* Sección packs más solicitados */
.featured-section {
  background: var(--purple);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.featured-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.featured-card-visual {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: rgba(255, 255, 255, 0.07);
}

.featured-card-body {
  padding: 16px;
}

.featured-card-body h3 {
  color: var(--white);
  font-size: 1.06rem;
  margin-bottom: 6px;
}

.featured-card-body p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  margin-bottom: 0;
}

.featured-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
}

.featured-card-footer strong {
  color: var(--yellow);
  font-size: 1.18rem;
}

.featured-card-footer span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
}

.featured-card-footer a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  transition: background 0.15s;
}

.featured-card-footer a:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Mejoras tarjetas de producto */
.persons-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(36, 24, 46, 0.82);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.product-tagline {
  font-size: 0.87rem;
  color: #5A4A6A;
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.5;
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-per-person {
  font-size: 0.76rem;
  color: var(--teal);
  font-weight: 900;
}

.substitution-note {
  font-size: 0.74rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-bottom: 0;
}

/* Lista B2B profesional */
.b2b-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 20px;
  margin: 14px 0 20px;
}

.b2b-list li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  padding-left: 16px;
  position: relative;
}

.b2b-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 900;
}

/* Botón pequeño */
.button.sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.86rem;
}

/* Calculadora de invitados */
.calc-section {
  background: #F5EEFF;
}

.calc-section .section-heading {
  text-align: center;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.calc-form {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  max-width: 740px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.calc-field {
  flex: 1;
  min-width: 160px;
  display: grid;
  gap: 7px;
}

.calc-field label {
  color: #3C2E47;
  font-size: 0.9rem;
  font-weight: 800;
}

.calc-field select,
.calc-field input[type="number"] {
  min-height: 46px;
  border: 1px solid rgba(90, 45, 130, 0.24);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.calc-result {
  max-width: 740px;
  margin: 22px auto 0;
}

.calc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(41, 199, 136, 0.14);
  flex-wrap: wrap;
}

.calc-card-emoji {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}

.calc-card-info {
  flex: 1;
  min-width: 180px;
}

.calc-card-info h3 {
  margin-bottom: 4px;
  color: var(--purple);
  font-size: 1.14rem;
}

.calc-card-info p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.calc-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.calc-card-price strong {
  color: var(--purple);
  font-size: 1.4rem;
  font-weight: 900;
}

.calc-card-price > span {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
}

.calc-error {
  color: var(--magenta);
  font-weight: 800;
  font-size: 0.92rem;
  margin: 0;
  text-align: center;
}

/* Sección de reseñas */
.reviews-section {
  background: var(--white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(49, 25, 72, 0.06);
}

.review-stars {
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.review-author strong {
  display: block;
  color: var(--purple);
  font-size: 0.9rem;
}

.review-author span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.reviews-cta {
  text-align: center;
  padding: 30px 22px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.reviews-cta p {
  margin-bottom: 16px;
}

/* Botón flotante WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: #25D366;
  color: var(--white);
  font: inherit;
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.55);
}

.whatsapp-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: var(--white);
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .intro-band,
  .b2b-section {
    grid-template-columns: 1fr;
  }

  .account-forms {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid,
  .box-list,
  .steps,
  .mesa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-meta {
    display: none;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b2b-list {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 16px;
  }

  .cart-button span {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.35rem);
  }

  .hero-media img {
    height: 390px;
    min-height: 390px;
    border-width: 5px;
  }

  .category-grid,
  .product-grid,
  .box-list,
  .steps,
  .legal-grid,
  .b2b-form,
  .trust-grid,
  .featured-grid,
  .reviews-grid,
  .mesa-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .calc-form {
    flex-direction: column;
  }

  .calc-field {
    min-width: auto;
    width: 100%;
  }

  .calc-form .button {
    width: 100%;
  }

  .calc-card-price {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
  }

  .whatsapp-btn span {
    display: none;
  }

  .whatsapp-btn {
    padding: 14px;
    bottom: 20px;
    right: 20px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer > div:last-child {
    justify-content: flex-start;
  }
}

/* --- Consentimiento RGPD en formularios --- */
.account-form .consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

.account-form .consent input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.account-form .consent a {
  text-decoration: underline;
}

/* --- Botón de pedido en cajas completas --- */
.box-list article .button {
  margin-top: 14px;
}
