/* Paleta derivada del violeta del logo (#9400D1) */
:root {
  --bg: #FDFAFF;
  --surf: #F6EEFC;
  --surf2: #FFFFFF;
  --fg: #1E1527;
  --muted: #6E6379;
  --line: #E8D9F3;
  --accent: #9400D1;
  --accent-ink: #FFFFFF;
  --accent-soft: #EEDDFA;
  --glow: rgba(148, 0, 209, .20);
  --nav-bg: rgba(253, 250, 255, .80);
  --art-1: #FFFFFF;
  --art-line: #D9BFEE;
  --art-dark: #2A1636;
  --shadow: rgba(80, 20, 120, .14);
  --grad-a: #9400D1;
  --grad-b: #D067FF;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110A17; --surf: #1D1326; --surf2: #261A31; --fg: #F7F0FB; --muted: #B2A3BF;
    --line: #36283F; --accent: #CD82FF; --accent-ink: #1B0B26; --accent-soft: #3B2052;
    --glow: rgba(148, 0, 209, .40); --nav-bg: rgba(17, 10, 23, .80);
    --art-1: #2D2139; --art-line: #5C4573; --art-dark: #0C0710; --shadow: rgba(0, 0, 0, .5);
    --grad-a: #CD82FF; --grad-b: #F2BCFF; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #110A17; --surf: #1D1326; --surf2: #261A31; --fg: #F7F0FB; --muted: #B2A3BF;
  --line: #36283F; --accent: #CD82FF; --accent-ink: #1B0B26; --accent-soft: #3B2052;
  --glow: rgba(148, 0, 209, .40); --nav-bg: rgba(17, 10, 23, .80);
  --art-1: #2D2139; --art-line: #5C4573; --art-dark: #0C0710; --shadow: rgba(0, 0, 0, .5);
  --grad-a: #CD82FF; --grad-b: #F2BCFF; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--bg); z-index: 60;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--nav-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
}
.nav-inner { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand picture { display: block; line-height: 0; }
.brand .b-icon { height: 30px; width: auto; display: block; }
.brand .b-word { height: 13px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; font-size: 13px; color: var(--muted);
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.on { color: var(--fg); background: var(--surf); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-cta {
  text-decoration: none; font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
}
.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--surf);
  color: var(--fg); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 18px; height: 18px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 500;
  text-decoration: none; border: 0; cursor: pointer; transition: transform .2s ease, filter .2s ease;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.arrow-link { color: var(--accent); text-decoration: none; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.arrow-link::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform .2s; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; width: 760px; height: 760px; max-width: 120vw; right: -12%; top: -22%;
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px;
  padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 104px);
}
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; margin-top: 16px;
}
.grad { color: var(--accent); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background: linear-gradient(100deg, var(--grad-a), var(--grad-b));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
}
.hero p.lead { margin-top: 20px; font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--muted); max-width: 30ch; line-height: 1.4; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.art-wrap { will-change: transform; transform: translateY(var(--py, 0px)); min-width: 0; }
.hero-art { width: 100%; max-width: 520px; height: auto; display: block; margin-inline: auto; }
.float { animation: bob 6s ease-in-out infinite; }
.f2 { animation-duration: 7.5s; animation-delay: -2s; }
.f3 { animation-duration: 6.8s; animation-delay: -4s; }
.f4 { animation-duration: 8s; animation-delay: -1s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(64px, 10vw, 128px); }
.band { background: var(--surf); }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2, .h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; margin-top: 12px; }
.sec-head p.lead { margin-top: 16px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); line-height: 1.4; }

/* Productos: categorías */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 360px; padding: 32px; border-radius: 32px; background: var(--surf); text-decoration: none;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .3s;
}
.tile:hover { transform: translateY(-4px); }
.tile h3 { font-size: 1.75rem; letter-spacing: -.02em; font-weight: 600; }
.tile p { color: var(--muted); margin-top: 6px; max-width: 24ch; }
.tile .arrow-link { margin-top: 14px; }
.tile .ico {
  position: absolute; right: 4%; bottom: -4%; width: min(52%, 230px); height: auto;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover .ico { transform: scale(1.07) rotate(-3deg); }
.tile.alt { background: var(--accent-soft); }

/* Catálogo */
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.seg button {
  font: inherit; font-size: 14px; font-weight: 500; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--fg); transition: background .2s, color .2s, border-color .2s;
}
.seg button:hover { border-color: var(--accent); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.card {
  min-width: 0; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: var(--surf);
  animation: pop .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.card:hover { transform: translateY(-4px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(160deg, var(--surf2), var(--accent-soft)); }
.thumb svg { width: 44%; max-width: 100%; height: auto; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .thumb svg { transform: scale(1.08); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: 1.15rem; letter-spacing: -.01em; font-weight: 600; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.4; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-size: 14px; color: var(--muted); }
.mini { font-size: 14px; padding: 9px 16px; }
.note { margin-top: 32px; font-size: 14px; color: var(--muted); max-width: 60ch; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about p.lead { margin-top: 20px; font-size: 1.15rem; color: var(--muted); line-height: 1.5; max-width: 40ch; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.point { background: var(--surf2); border-radius: 24px; padding: 24px; border: 1px solid var(--line); }
.point .pi { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.point .pi svg { width: 22px; height: 22px; }
.point h3 { margin-top: 16px; font-size: 1.05rem; font-weight: 600; }
.point p { margin-top: 4px; font-size: 15px; color: var(--muted); line-height: 1.4; }

/* Ubicación */
.where { display: grid; grid-template-columns: 1fr 1fr; background: var(--surf); border-radius: 36px; overflow: hidden; }
.where-info { padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 28px; justify-content: center; min-width: 0; }
.where-info dl { margin: 0; display: grid; gap: 20px; }
.where-info dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.where-info dd { margin: 4px 0 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.where-map { min-height: 300px; position: relative; }
.where-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }

/* Contacto */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ccard { border-radius: 32px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; background: var(--surf); min-width: 0; }
.ccard.main { background: var(--accent); color: var(--accent-ink); }
.ccard h3 { font-size: 1.6rem; letter-spacing: -.02em; font-weight: 600; }
.ccard p { opacity: .85; }
.ccard .btn { align-self: flex-start; }
.ccard.main .btn { background: var(--accent-ink); color: var(--accent); }
.num-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.num { font-size: 1.1rem; font-weight: 500; user-select: all; }
.copy { font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; opacity: .85; }
.copy:hover { opacity: 1; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 20px; }
.steps li::before { content: counter(s); display: block; font-size: 2.4rem; font-weight: 600; letter-spacing: -.03em; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.steps h3 { font-size: 1.1rem; font-weight: 600; }
.steps p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* Pie */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 14px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }
.copyright { margin-top: 28px; font-size: 13px; }

/* ---------- Revelado al hacer scroll ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  @keyframes reveal { from { opacity: .3; transform: translateY(36px) scale(.985); } to { opacity: 1; transform: none; } }
}
.io .reveal { opacity: .3; transform: translateY(32px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.io .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about, .where { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { font-size: 17px; padding: 12px 14px; }
  .bento, .contact, .points { grid-template-columns: 1fr; }
  .tile { min-height: 300px; padding: 24px; }
  .where-map { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .io .reveal { opacity: 1 !important; transform: none !important; }
}

.thumb { overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .thumb img { transform: scale(1.05); }
.hero-photo { width: 100%; max-width: 520px; border-radius: 36px; display: block; margin-inline: auto; }

footer .brand .b-icon { height: 36px; }
footer .brand .b-word { height: 15px; }
@media (max-width: 380px) { .brand .b-word { height: 11px; } .brand { gap: 8px; } }
