/* Málaga Makers — estilos (mobile first) */

@font-face {
  font-family: 'Epilogue';
  src: url('/fonts/epilogue-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #AF0C08;
  --red-deep: #8E0906;
  --navy: #434991;
  --navy-deep: #353A78;
  --yellow: #F6C94C;
  --cream: #FFFAF2;
  --paper: #F5EEDF;
  --ink: #2A2222;
  --ink-soft: #5B5050;
  --wa: #25D366;

  --gutter: 16px;
  --max: 1180px;
  --radius: 22px;
  --track: -0.053em; /* interletrado de marca: -53 */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 0 rgba(42, 34, 34, .06), 0 12px 30px -12px rgba(42, 34, 34, .25);
  --header-h: 64px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Epilogue', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1; letter-spacing: var(--track); font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px;
  transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ─── Botones ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.4em;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-weight: 700; font-size: 1rem; letter-spacing: -.01em; text-decoration: none;
  cursor: pointer; box-shadow: 0 4px 0 0 var(--ink);
  transform: translateY(-2px);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 0 var(--ink); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-red { background: var(--red); border-color: var(--ink); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-wa { background: var(--wa); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: .5em 1.1em; font-size: .9375rem; box-shadow: 0 3px 0 0 var(--ink); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }

.textlink {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.textlink svg { width: 1.2em; height: 1.2em; }

.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45em 1.05em;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--cream);
  font-weight: 700; font-size: .9375rem; text-decoration: none;
  transition: background-color .2s, transform .2s var(--ease);
}
.chip:hover { background: var(--yellow); transform: rotate(-2deg); }

/* ─── Cabecera ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: rgba(42, 34, 34, .1); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: block; margin-right: auto; }
.brand img { height: 34px; width: auto; }
.nav-desktop { display: none; }
.lang-switch {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px;
  font-weight: 800; font-size: .875rem; text-decoration: none; border-radius: 999px;
  border: 2px solid transparent;
}
.lang-switch:hover { border-color: var(--ink); }
.nav-cta { display: none; }
.menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s; position: relative;
}
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.menu-sheet {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  background: var(--red); color: var(--cream);
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .45s var(--ease), visibility 0s .45s;
  visibility: hidden;
}
.menu-sheet.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
.menu-sheet ul { list-style: none; margin: 0; padding: 0; }
.menu-sheet li a {
  display: block; padding: .18em 0; text-decoration: none;
  font-size: clamp(2.2rem, 10vw, 3rem); font-weight: 800; letter-spacing: var(--track); line-height: 1.1;
}
.menu-sheet li { opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .4s var(--ease); }
.menu-sheet.is-open li { opacity: 1; transform: none; }
.menu-sheet.is-open li:nth-child(2) { transition-delay: .04s; }
.menu-sheet.is-open li:nth-child(3) { transition-delay: .08s; }
.menu-sheet.is-open li:nth-child(4) { transition-delay: .12s; }
.menu-sheet.is-open li:nth-child(5) { transition-delay: .16s; }
.menu-sheet .menu-foot { margin-top: auto; display: grid; gap: 12px; }
.menu-sheet .menu-social { display: flex; gap: 20px; font-weight: 700; }
body.menu-open { overflow: hidden; }

/* ─── Hero ─── */
.hero {
  position: relative; overflow: hidden;
  padding: 28px 0 36px;
  background-image:
    linear-gradient(rgba(42, 34, 34, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 34, 34, .06) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: -1px -1px;
}
/* Etiqueta de rotuladora (tipo Dymo) */
.eyebrow {
  display: inline-block; position: relative;
  margin: 0 0 22px; padding: .42em .9em .36em;
  background: var(--red);
  color: var(--cream);
  font-size: .875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45), 0 -1px 0 rgba(255, 255, 255, .18);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 2px 4px rgba(42, 34, 34, .25);
  transform: rotate(-2.5deg);
  transform-origin: left center;
}
/* textura de la cinta */
.eyebrow::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
}

.hero-title {
  font-size: min(var(--fit, 20vw), 9rem);
  line-height: .86; font-weight: 800; letter-spacing: -.06em;
  margin-bottom: 18px;
}
.hero-title .l { display: block; }
.hero-title .l:nth-child(even) { color: var(--red); }
.hero-sub { font-size: clamp(1.35rem, 5.6vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 26px; }
.hero-sub em { font-style: normal; color: var(--red); font-weight: 800; }

/* Composición del hero con los stickers de marca */
.hero-visual { position: relative; margin: 0 auto 30px; width: min(88%, 360px); aspect-ratio: 1 / 1.02; }
.hv { position: absolute; height: auto; user-select: none; -webkit-user-drag: none; }
.hv-forma-azul { width: 40%; left: -2%; bottom: 8%; z-index: 0; animation: spin 48s linear infinite; }
.hv-forma-amarilla { width: 40%; right: -2%; top: 2%; z-index: 0; animation: spin 60s linear infinite reverse; }
.hv-llavero { width: 76%; left: 12%; top: 0; z-index: 2; transform-origin: 52% 2%; animation: sway 5.5s ease-in-out infinite; filter: drop-shadow(0 12px 14px rgba(42, 34, 34, .22)); }
.hv-smile { width: 28%; left: 0; top: 10%; z-index: 3; transform: rotate(-12deg); animation: bob 6s ease-in-out infinite; }
.hv-adelante { width: 22%; right: 2%; top: 42%; z-index: 3; transform: rotate(9deg); animation: bob 7s ease-in-out -2s infinite; }
.hv-oval { width: 42%; left: 30%; bottom: 0; z-index: 3; transform: rotate(-7deg); }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes bob { 50% { translate: 0 -7px; } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-text { color: var(--ink-soft); max-width: 36ch; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }

/* ─── Marquee ─── */
.marquee {
  background: var(--red); color: var(--cream);
  border-block: 2px solid var(--ink);
  overflow: hidden; white-space: nowrap;
  transform: rotate(-1.2deg); margin: -6px -10px 0; position: relative; z-index: 3;
}
.marquee-track { display: inline-flex; padding: 12px 0; animation: marquee 32s linear infinite; }
.marquee span { font-weight: 800; font-size: 1.125rem; letter-spacing: -.02em; padding-inline: 14px; }
.marquee .star { color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Secciones ─── */
.section { padding: 52px 0; position: relative; }
/* sin margen sobrante al final de cada sección */
.section .wrap > :last-child, .section .wrap > div > :last-child, .section .split > div > :last-child { margin-bottom: 0; }
.kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-weight: 800; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em;
}
.kicker .num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid currentColor; font-size: .9375rem; letter-spacing: 0;
}
.section h2 { font-size: clamp(2.1rem, 9.4vw, 4.4rem); line-height: .98; margin-bottom: 22px; text-wrap: balance; }
.section .lead { font-size: 1.125rem; max-width: 52ch; }
.strong { font-weight: 800; font-size: 1.1875rem; letter-spacing: -.02em; }

/* ¿Qué buscas? */
.audience { padding: 44px 0 8px; }
.audience h2 { font-size: clamp(1.9rem, 8vw, 3rem); margin-bottom: 20px; }
.cards { display: grid; gap: 14px; }
.card {
  position: relative; display: block; padding: 22px 22px 24px; border-radius: var(--radius);
  border: 2px solid var(--ink); text-decoration: none; box-shadow: 0 5px 0 var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:nth-child(1) { background: var(--yellow); }
.card:nth-child(2) { background: var(--navy); color: var(--cream); }
.card:nth-child(3) { background: var(--red); color: var(--cream); }
.card h3 { font-size: 1.6rem; margin-bottom: 10px; padding-right: 48px; }
.card p { margin: 0; font-size: 1rem; }
.card .go {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); color: var(--ink); border: 2px solid var(--ink);
  transition: transform .25s var(--ease);
}
.card:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 8px 0 var(--ink); }
.card:hover .go { transform: rotate(-45deg); }
.card:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }

/* 01 Merch */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 8px var(--gutter) 16px; margin: 6px 0 14px; scrollbar-width: none;
  scroll-padding-inline: var(--gutter);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure {
  margin: 0; scroll-snap-align: start; background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease);
  display: flex; flex-direction: column;
}
.gallery figcaption { flex: 1; }
.gallery figure:nth-child(1), .gallery figure:nth-child(4) { background: var(--yellow); }
.gallery figure:nth-child(2), .gallery figure:nth-child(6) { background: var(--navy); }
.gallery figure:nth-child(3) { background: var(--red); }
.gallery figure:nth-child(5) { background: var(--paper); }
.gallery img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 12px 16px 14px; font-weight: 700; font-size: .9375rem; border-top: 2px solid var(--ink); background: var(--cream); }
.swipe-hint { font-weight: 700; font-size: .875rem; color: var(--ink-soft); margin: 0; }

/* 02 Barras */
.bars { background: var(--navy); color: var(--cream); overflow: hidden; }
.bars .lead { color: color-mix(in srgb, var(--cream) 88%, var(--navy)); }
.bars-visual { position: relative; margin: 30px auto 34px; width: min(86%, 420px); }
.bars-visual img:not(.bars-forma) { border-radius: var(--radius); transform: rotate(-2.5deg); background: var(--cream); border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.bars-forma { position: absolute; right: -40px; top: -40px; width: 120px; z-index: 1; animation: spin 60s linear infinite; }
.bar-items { display: grid; gap: 14px; margin-bottom: 28px; }
.bar-item {
  background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 5px 0 var(--ink);
}
.bar-item h3 { font-size: 1.6rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.bar-item h3 .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; border: 2px solid var(--ink); flex: none; }
.bar-item h3 .ico svg { width: 20px; height: 20px; }
.bar-item p { margin: 0; }
.includes { margin: 0 0 30px; }
.includes-label { font-weight: 800; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; margin-bottom: 12px; }
.includes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.includes li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px;
  background: var(--navy-deep); border: 2px solid color-mix(in srgb, var(--cream) 25%, transparent);
  font-weight: 700;
}
.includes li svg { width: 24px; height: 24px; color: var(--yellow); flex: none; }

/* 03 Concept store */
.store { background: var(--yellow); }
.store h2 .alt { color: var(--red); display: block; }
.store-punch {
  font-size: clamp(1.6rem, 7vw, 2.6rem); font-weight: 800; letter-spacing: var(--track); line-height: 1.05;
  margin: 26px 0; max-width: 20ch;
}
.store-photo {
  margin: 10px auto 30px; max-width: 420px; background: var(--cream); padding: 10px 10px 14px;
  border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 6px 0 var(--ink);
  transform: rotate(-2deg); transition: transform .4s var(--ease);
}
.store-photo img { border-radius: 4px; }
.store-photo:hover { transform: rotate(0) scale(1.02); }
.note {
  position: relative; background: var(--cream); padding: 26px 22px 22px; margin-bottom: 24px;
  border-radius: 4px; box-shadow: var(--shadow); transform: rotate(-1deg);
  background-image: repeating-linear-gradient(transparent 0 29px, rgba(175, 12, 8, .12) 29px 30px);
  font-weight: 600;
}
.note::before {
  content: ''; position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; margin-left: -48px;
  background: color-mix(in srgb, var(--navy) 35%, transparent); transform: rotate(-3deg);
}
.store-ctas { display: grid; gap: 16px; justify-items: start; }

/* El taller */
.about { overflow: hidden; }
.about h2 { font-size: clamp(2.4rem, 11vw, 5.4rem); text-transform: uppercase; line-height: .92; }
.strike { position: relative; white-space: nowrap; }
.strike::after {
  content: ''; position: absolute; left: -2%; right: -2%; top: 52%; height: .12em; background: var(--red);
  transform: scaleX(0) rotate(-3deg); transform-origin: left; transition: transform .7s .3s var(--ease);
  border-radius: 4px;
}
.is-in .strike::after, .no-js .strike::after { transform: scaleX(1) rotate(-3deg); }
.about-sub { font-size: clamp(2rem, 9vw, 4rem); font-weight: 800; letter-spacing: var(--track); color: var(--red); line-height: 1; margin-bottom: 22px; }
.about-lines { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 10px; }
.about-lines li {
  padding: 14px 18px; border-left: 4px solid var(--yellow); background: var(--paper); border-radius: 0 14px 14px 0;
  font-weight: 600; font-size: 1.0625rem;
}
.about-end { font-size: clamp(1.5rem, 6vw, 2.2rem); font-weight: 800; letter-spacing: var(--track); }
.about-img { margin: 34px 0 0; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 0 var(--ink); }

/* FAQ */
.faq { background: var(--paper); }
.faq-group {
  margin-top: 12px; background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--ink); interpolate-size: allow-keywords;
}
.faq-group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; min-height: 64px;
}
.faq-group > summary::-webkit-details-marker { display: none; }
.faq-group h3 { font-size: 1.25rem; letter-spacing: -.02em; margin: 0; flex: 1; line-height: 1.15; }
.faq-group .count {
  flex: none; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--yellow);
  display: grid; place-items: center; font-weight: 800; font-size: .8125rem;
}
.faq-group .chev {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); position: relative;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq-group .chev::before {
  content: ''; position: absolute; left: 50%; top: 45%; width: 9px; height: 9px;
  border-right: 2.5px solid var(--cream); border-bottom: 2.5px solid var(--cream);
  transform: translate(-50%, -50%) rotate(45deg);
}
.faq-group[open] .chev { transform: rotate(180deg); background: var(--red); }
.faq-group[open] > summary { border-bottom: 2px solid rgba(42, 34, 34, .12); }
.faq-items { padding: 0 20px 6px; }
.faq-q { border-bottom: 2px solid rgba(42, 34, 34, .1); interpolate-size: allow-keywords; }
.faq-q:last-child { border-bottom: 0; }
.faq-q > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; font-weight: 700; font-size: 1.0625rem; min-height: 56px;
}
.faq-q > summary::-webkit-details-marker { display: none; }
.faq-q summary .plus {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); position: relative;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq-q summary .plus::before, .faq-q summary .plus::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink);
  transform: translate(-50%, -50%);
}
.faq-q summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[open] .plus { transform: rotate(45deg); background: var(--yellow); }
.faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq-q p { padding: 0 40px 16px 0; margin: 0; color: var(--ink-soft); }

/* Contacto */
.contact { background: var(--red); color: var(--cream); overflow: hidden; }
.contact h2 { font-size: clamp(2.4rem, 11vw, 5.2rem); }
.contact .lead { font-size: 1.25rem; font-weight: 600; }
.contact .btn-wa { margin: 6px 0 36px; }
.form-card {
  background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 24px 18px; box-shadow: 0 6px 0 var(--ink);
}
.form-card h3 { font-size: 1.8rem; margin-bottom: 8px; }
.form-card .intro { color: var(--ink-soft); font-size: .9375rem; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend, .field label { display: block; font-weight: 700; font-size: .9375rem; margin-bottom: 8px; }
.type-options { display: flex; flex-wrap: wrap; gap: 8px; }
.type-options label { position: relative; }
.type-options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.type-options span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4em 1em; border-radius: 999px;
  border: 2px solid var(--ink); font-weight: 700; font-size: .9375rem; transition: background-color .15s, transform .15s;
}
.type-options input:checked + span { background: var(--ink); color: var(--cream); }
.type-options input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.fields { display: grid; gap: 14px; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px;
  background: #fff; font: inherit; font-size: 1rem; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 30%, transparent); }
.field .err { display: none; color: var(--red); font-size: .8125rem; font-weight: 700; margin-top: 4px; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field.has-error .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; margin: 18px 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
.check.has-error { color: var(--red); }
.contact-foot { margin: 32px 0 0; font-size: clamp(2rem, 10vw, 4rem); font-weight: 800; letter-spacing: var(--track); text-align: center; }

/* Pie */
.site-footer { background: var(--ink); color: var(--cream); padding: 48px 0 calc(100px + env(safe-area-inset-bottom)); font-size: .9375rem; }
.site-footer .logo { width: 170px; margin-bottom: 14px; }
.site-footer .tag { font-size: 1.4rem; font-weight: 800; letter-spacing: var(--track); margin-bottom: 30px; }
.foot-cols { display: grid; gap: 26px; margin-bottom: 30px; }
.foot-cols h2 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-bottom: 10px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-cols a, .linklike {
  text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left;
  min-height: 32px; display: inline-flex; align-items: center;
}
.foot-cols a:hover, .foot-cols .linklike:hover { text-decoration: underline; }
.legal-page .linklike { text-decoration: underline; font-weight: 700; color: var(--red); padding: 0; min-height: 0; display: inline; }
.copy { opacity: .6; font-size: .8125rem; border-top: 1px solid rgba(255, 250, 242, .15); padding-top: 18px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  transition: transform .3s var(--ease), opacity .3s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--wa);
  animation: ping 2.6s var(--ease) 3; pointer-events: none;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float.is-hidden { transform: translateY(120px); opacity: 0; pointer-events: none; }

/* Cookies */
.cookie-banner {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 60;
  background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 18px; box-shadow: 0 6px 0 var(--ink), 0 20px 50px -10px rgba(0, 0, 0, .35);
  animation: rise .5s var(--ease);
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.cookie-banner h2 { font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 6px; }
.cookie-banner p { font-size: .875rem; margin-bottom: 14px; color: var(--ink-soft); }
.cookie-banner p a { font-weight: 700; color: var(--ink); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions .btn { min-height: 46px; font-size: .9375rem; padding-inline: .8em; }
.cookie-actions .btn-config { grid-column: 1 / -1; background: transparent; color: var(--ink); box-shadow: none; border-color: transparent; text-decoration: underline; min-height: 40px; transform: none; }

.cookie-dialog {
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 0; width: min(560px, calc(100% - 16px));
  background: var(--cream); color: var(--ink); max-height: calc(100dvh - 32px);
  margin: auto auto 8px;
}
.cookie-dialog::backdrop { background: rgba(42, 34, 34, .55); }
.cookie-dialog form { padding: 22px 18px; }
.cookie-dialog h2 { font-size: 1.5rem; margin-bottom: 14px; }
.cookie-cat { border-top: 2px solid rgba(42, 34, 34, .12); padding: 14px 0; }
.cookie-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 800; }
.cookie-cat p { font-size: .875rem; color: var(--ink-soft); margin: 6px 0 0; }
.cookie-cat .always { font-size: .75rem; font-weight: 700; color: var(--ink-soft); }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #D8D0C4; border: 2px solid var(--ink); transition: background-color .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--red); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.cookie-dialog .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cookie-dialog .dialog-actions .btn-save { grid-column: 1 / -1; }

/* Páginas legales */
.legal-page { padding: 40px 0 72px; }
.legal-page .wrap { max-width: 780px; }
.legal-page h1 { font-size: clamp(2.4rem, 10vw, 4rem); margin: 18px 0 8px; }
.legal-page .updated { color: var(--ink-soft); font-size: .875rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.4rem; letter-spacing: -.02em; margin: 34px 0 12px; line-height: 1.2; }
.legal-page ul { padding-left: 1.2em; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--red); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: 12px 0 18px; min-width: 520px; }
.legal-page th, .legal-page td { text-align: left; vertical-align: top; padding: 10px; border: 1px solid rgba(42, 34, 34, .2); }
.legal-page th { background: var(--paper); }
.lead-note { background: var(--paper); padding: 12px 16px; border-radius: 12px; font-size: .875rem; }
mark.todo { background: var(--yellow); padding: 0 .25em; border-radius: 4px; font-weight: 700; }
.back { font-weight: 700; text-decoration: none; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound .big { font-size: clamp(6rem, 40vw, 14rem); font-weight: 800; letter-spacing: -.07em; line-height: .8; color: var(--red); }
.notfound h1 { font-size: clamp(1.8rem, 7vw, 3rem); margin: 20px 0 12px; }

/* ─── Animaciones de entrada ─── */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero .l { opacity: 0; transform: translateY(40%) rotate(2deg); animation: lineIn .8s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 80ms); }
@keyframes lineIn { to { opacity: 1; transform: none; } }

/* ─── Tablet / Desktop ─── */
@media (min-width: 720px) {
  :root { --gutter: 32px; --header-h: 76px; }
  .brand img { height: 42px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-auto-columns: 38%; }
  .bar-items { grid-template-columns: 1fr 1fr; }
  .includes ul { grid-template-columns: repeat(4, 1fr); }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .full { grid-column: 1 / -1; }
  .form-card { padding: 36px; }
  .foot-cols { grid-template-columns: 2fr 1fr 1fr; }
  .cookie-banner { left: auto; right: 24px; bottom: 24px; width: 420px; }
  .cookie-dialog { margin: auto; }
  .section { padding: 80px 0; }
}

@media (min-width: 1024px) {

  .hero { padding: 48px 0 72px; }
  .hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-areas: "eyebrow visual" "title visual" "sub visual" "text visual" "buttons visual" "wa visual"; column-gap: 48px; align-items: start; }
  .hero .eyebrow { grid-area: eyebrow; justify-self: start; }
  .hero-title { grid-area: title; font-size: min(var(--fit-d, 10vw), 9rem); }
  .hero-sub { grid-area: sub; }
  .hero-text { grid-area: text; }
  .hero-buttons { grid-area: buttons; }
  .hero .wa-inline { grid-area: wa; }
  .hero-visual { grid-area: visual; width: 100%; max-width: 460px; align-self: center; margin: 0; }

  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; gap: 22px; }
  .gallery figure:hover { transform: rotate(-1.5deg) translateY(-4px); }
  .swipe-hint { display: none; }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .bars-visual { margin: 0; width: 100%; }
  .store-photo { margin: 0 0 30px; }
  .about-grid { max-width: 820px; }
  .faq .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
  .faq h2 { position: sticky; top: calc(var(--header-h) + 24px); }
  .faq-group:first-of-type { margin-top: 0; }
  .contact .split { align-items: start; }
}

@media (min-width: 1200px) {
  .menu-btn, .menu-sheet { display: none; }
  .nav-desktop { display: flex; gap: 2px; }
  .nav-desktop a { padding: .5em .75em; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9375rem; white-space: nowrap; transition: background-color .2s; }
  .nav-desktop a:hover { background: var(--paper); }
  .nav-cta { display: inline-flex; white-space: nowrap; }
}

/* ─── Movimiento reducido ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero .l { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

.wa-float.behind-banner { opacity: 0; pointer-events: none; }
