/* Dolcetti - estilos del sitio institucional
   Tokens según design.md v1.0 (07/11/2026) */

@font-face { font-family: "Nunito"; src: url("../fonts/nunito-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --magenta: #DF0785;
  --magenta-dark: #9D0B5C;
  --turquesa: #00CBC6;
  --amarillo: #E6EA98;
  --rosa: #F9C1D5;
  --rosa-30: #FDECF2;
  --ink: #2B1B26;
  --ink-soft: #5A4752;
  --line: #F3E3EA;
  --white: #FFFFFF;
  --radius-card: 28px;
  --radius-ui: 16px;
  --shadow-ui: 0 2px 8px rgba(43, 27, 38, .08);
  --shadow-card: 0 2px 8px rgba(43, 27, 38, .08), 0 18px 48px rgba(43, 27, 38, .10);
  --gutter: clamp(16px, 4vw, 60px);
  --section-y: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
a { color: var(--magenta-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-brand :focus-visible { outline-color: var(--white); }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px;
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--rosa { background: var(--rosa-30); }
.kicker { font-size: 18px; font-weight: 700; color: var(--magenta-dark); margin-bottom: 10px; }
.title { font-size: clamp(34px, 4vw, 54px); color: var(--magenta); }
.lead { font-size: 19px; margin-top: 20px; max-width: 520px; }
.center { text-align: center; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 800; font-size: 17px; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-ui); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--primary { background: var(--magenta); color: var(--white); }
.btn--primary:hover { color: var(--white); }
.btn--outline { background: var(--white); color: var(--magenta-dark); border-color: var(--magenta); }
.btn--outline:hover { color: var(--magenta-dark); }
.btn--white { background: var(--white); color: var(--magenta-dark); }
.btn--white:hover { color: var(--magenta-dark); }
.btn--sm { min-height: 48px; padding: 0 22px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Encabezado */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-block: 14px;
}
.site-header__logo img { width: 64px; height: 64px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 16px; font-weight: 700; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--magenta-dark); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .nav { order: 3; width: 100%; gap: 0 20px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
}

/* Portada */
.hero__media { height: clamp(380px, 48vw, 660px); overflow: hidden; background: #261817; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__card-wrap { position: relative; margin-top: clamp(-200px, -12vw, -120px); }
.hero__card {
  background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: clamp(28px, 4vw, 52px); max-width: 680px;
}
.hero__kicker { font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; color: var(--magenta-dark); margin-bottom: 10px; }
.hero__title { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.08; color: var(--magenta); }
.hero__text { font-size: clamp(17px, 1.5vw, 20px); margin-top: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.notice { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }
.notice a { font-weight: 700; }

/* Franja de firma */
.signature { background: var(--magenta); color: var(--white); margin-top: clamp(40px, 5vw, 64px); }
.signature__inner { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); padding-block: 22px; }
.logo-ring {
  width: clamp(72px, 8vw, 104px); height: clamp(72px, 8vw, 104px); flex-shrink: 0;
  border-radius: 50%; border: 4px solid var(--white);
}
.divider-v { width: 2px; align-self: stretch; background: var(--white); flex-shrink: 0; }
.signature__l1 { font-size: clamp(18px, 2.4vw, 30px); font-weight: 800; line-height: 1.25; }
.signature__l2 { font-size: clamp(16px, 2vw, 25px); font-weight: 700; line-height: 1.25; margin-top: 4px; }

/* Dos columnas genéricas */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.split > * { flex: 1 1 400px; min-width: 0; }
.photo { width: 100%; height: auto; border-radius: var(--radius-card); object-fit: cover; }
.photo--45 { aspect-ratio: 4 / 5; }
.photo--34 { aspect-ratio: 3 / 4; }

/* Cifras */
.stats, .sizes { list-style: none; padding: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; max-width: 540px; }
.stat { background: var(--rosa-30); border-radius: var(--radius-ui); padding: 20px 12px; text-align: center; }
.stat__num { font-size: clamp(36px, 4vw, 52px); line-height: 1; font-weight: 900; color: var(--magenta); }
.stat__label { font-size: 15px; font-weight: 700; margin-top: 8px; }

/* Ola */
.wave { display: block; width: 100%; height: 48px; }
.wave path { fill: var(--rosa-30); }
.wave + .section { padding-top: clamp(48px, 6vw, 88px); }

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.cat {
  border-radius: var(--radius-card); padding: 36px 36px 40px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
/* Texto oscuro sobre turquesa: el blanco no llega al contraste mínimo WCAG (aprox. 1,9:1). */
.cat--clasico { background: var(--turquesa); color: var(--ink); }
.cat--ddl { background: var(--amarillo); color: var(--ink); }
.cat--premium { background: var(--magenta); color: var(--white); }
.pill { align-self: flex-start; font-size: 14px; font-weight: 800; border-radius: 999px; padding: 6px 16px; }
.cat--clasico .pill { background: var(--white); color: var(--ink); }
.cat--ddl .pill { background: var(--ink); color: var(--white); }
.cat--premium .pill { background: var(--white); color: var(--magenta-dark); }
.cat__num { font-size: 140px; line-height: .9; font-weight: 900; }
.cat__name { font-size: 60px; line-height: 1; font-weight: 800; margin-top: 6px; }
.cat__note { font-size: 18px; font-weight: 700; margin-top: 14px; }
@media (max-width: 420px) { .cat__num { font-size: 112px; } .cat__name { font-size: 52px; } }

.subtitle { font-size: 26px; font-weight: 800; color: var(--ink); margin: 64px 0 20px; }
.flavors { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.flavor { margin: 0; position: relative; border-radius: var(--radius-ui); overflow: hidden; aspect-ratio: 4 / 5; background: #261817; }
.flavor img { width: 100%; height: 100%; object-fit: cover; }
.flavor figcaption {
  position: absolute; left: 12px; bottom: 12px; background: var(--white); color: var(--ink);
  font-size: 15px; font-weight: 800; border-radius: 999px; padding: 6px 14px;
}
.after-grid { font-size: 18px; margin-top: 28px; }
.after-grid a { font-weight: 800; }

/* Para disfrutar */
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.head-row > div { flex: 1 1 420px; min-width: 0; }
.head-row > p { flex: 1 1 320px; max-width: 440px; font-size: 19px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }

/* Potes */
.sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; max-width: 440px; }
.size { background: var(--white); border-radius: var(--radius-ui); box-shadow: var(--shadow-ui); padding: 24px 12px; text-align: center; }
.size__num { font-size: 44px; line-height: 1; font-weight: 900; color: var(--magenta); }
.size__unit { font-size: 16px; font-weight: 700; margin-top: 6px; }
.potes-photo { max-width: 460px; }

/* Reseñas */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.review { margin: 0; background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 40px 36px; text-align: center; }
.review__mark { font-size: 96px; line-height: .8; font-weight: 900; color: var(--magenta); }
.review blockquote { margin: 12px 0 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 800; color: var(--ink); }
.review figcaption { margin-top: 20px; font-size: 18px; font-weight: 700; color: var(--magenta-dark); }

/* Bloques magenta */
.on-brand { background: var(--magenta); color: var(--white); }
.on-brand .kicker { color: var(--white); }
.on-brand a:not(.btn) { color: var(--white); font-weight: 800; }
.on-brand a:not(.btn):hover { color: var(--rosa); }
.buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(56px, 7vw, 96px); }
.buy > div { flex: 1 1 480px; min-width: 0; }
.buy__title { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; }
.buy__text { font-size: 21px; font-weight: 700; margin-top: 20px; }
.buy__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.buy__phone { font-size: 18px; font-weight: 800; }
.buy__cone { width: clamp(180px, 22vw, 300px); height: auto; flex-shrink: 0; }
@media (max-width: 600px) { .buy__cone { width: 120px; } }
.notice--brand { color: var(--white); font-size: 15px; font-weight: 700; margin-top: 16px; }

/* Comercios */
.trade { display: flex; flex-wrap: wrap; border-radius: var(--radius-card); overflow: hidden; }
.trade__media { flex: 1 1 420px; min-width: 0; min-height: 320px; background: #261817; }
.trade__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.trade__body { flex: 1 1 420px; min-width: 0; padding: clamp(32px, 4.5vw, 60px); }
.trade__kicker { font-size: 16px; font-weight: 800; letter-spacing: .08em; }
.trade__title { font-size: clamp(34px, 4vw, 54px); line-height: 1.08; margin-top: 14px; }
.trade__text { font-size: 20px; margin-top: 18px; }
.trade__text + .trade__text { font-size: 18px; margin-top: 8px; }
.trade hr { border: 0; height: 2px; background: rgba(255, 255, 255, .55); margin: 28px 0; }

/* Pie */
.site-footer { padding-block: 48px 32px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px 48px; }
.footer-brand { display: flex; align-items: center; gap: 20px; flex: 1 1 320px; }
.footer-brand .logo-ring { width: 96px; height: 96px; }
.footer-brand__l1 { font-size: 22px; font-weight: 800; line-height: 1.3; }
.footer-brand__l2 { font-size: 18px; font-weight: 700; margin-top: 4px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 17px; font-weight: 700; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; overflow-wrap: anywhere; }
.contact-list svg { width: 20px; height: 20px; flex-shrink: 0; }
.footer-rule { height: 1px; background: rgba(255, 255, 255, .5); margin: 36px 0 20px; border: 0; }
.legal-box { border: 2px solid rgba(255, 255, 255, .7); border-radius: var(--radius-ui); padding: 18px 22px; font-size: 14px; line-height: 1.5; font-weight: 700; }
.legal-box p + p { margin-top: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 15px; font-weight: 700; margin-top: 20px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Consentimiento (solo aparece si se configuran etiquetas de Google o Meta) */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px;
  background: var(--white); color: var(--ink); border-radius: var(--radius-ui);
  box-shadow: 0 10px 40px rgba(43, 27, 38, .25); padding: 20px 22px; font-size: 15px;
}
.consent__title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Página legal */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(48px, 6vw, 88px) var(--gutter) var(--section-y); }
.legal h1 { font-size: clamp(36px, 4.4vw, 56px); color: var(--magenta); }
.legal h2 { font-size: 26px; line-height: 1.2; color: var(--magenta); margin: 40px 0 12px; scroll-margin-top: 16px; }
.legal ul, .legal ol { margin: 8px 0 0; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal p + p { margin-top: 12px; }
.legal .meta { font-size: 16px; margin-top: 12px; }
.summary { margin-top: 32px; background: var(--rosa-30); border-radius: var(--radius-ui); padding: 24px 28px; }
.toc { margin-top: 32px; border: 2px solid var(--line); border-radius: var(--radius-ui); padding: 22px 28px; }
.toc ol { columns: 2 240px; column-gap: 32px; font-size: 16px; }
.boxes { display: grid; gap: 12px; }
.boxes--2 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.box { border: 2px solid var(--line); border-radius: var(--radius-ui); padding: 20px 24px; }
.box__title { font-weight: 800; font-size: 19px; }
.box p + p { margin-top: 6px; }
.authority { margin-top: 48px; background: var(--ink); color: var(--white); border-radius: var(--radius-ui); padding: 28px 30px; }
.authority h2 { color: var(--white); font-size: 22px; margin: 0 0 10px; }
.authority p { font-weight: 700; }
.authority a { color: var(--white); font-weight: 800; }
.back-link { display: inline-flex; align-items: center; gap: 8px; }
.back-link svg { width: 18px; height: 18px; }
.mini-footer { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 15px; font-weight: 700; }

/* Error 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding-block: var(--section-y); }

@media print {
  .site-header nav, .consent, .wave, .skip-link { display: none !important; }
  .on-brand { background: none; color: var(--ink); }
}
