/* ==========================================
   MELLIXIAN — H5 Stylesheet ("lujo lookbook")
   Distinct from gafival (sidebar/ledger/ribbon) and foreway (navy broadsheet):
   centered dark hero, horizontal-scroll product rail, center-split timeline,
   bento client grid. Palette unchanged: wine #241318 · gold #c9a227 · rose #d9a3b3
   ========================================== */

:root{
  --ink:      #241318;
  --ink-2:    #2e1a20;
  --ink-3:    #3a222a;
  --gold:     #c9a227;
  --gold-lt:  #e6cd88;
  --rose:     #d9a3b3;
  --cream:    #f7f2ec;
  --paper:    #ffffff;
  --text:     #35292d;
  --muted:    #7b6a70;
  --line:     rgba(36,19,24,.12);
  --line-2:   rgba(201,162,39,.30);
  --wrap:     1140px;
  --shadow:   0 22px 50px -26px rgba(36,19,24,.40);
  --ease:     cubic-bezier(.22,.68,.36,1);
  --f-disp:   "Cormorant Garamond", "Playfair Display", Georgia, "Songti SC", serif;
  --f-body:   "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; font-family:var(--f-body); font-size:16px; line-height:1.7;
  color:var(--text); background:var(--cream); overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3{ margin:0; line-height:1.15; font-weight:600; }
p{ margin:0 0 1em; }
p:last-child{ margin-bottom:0; }
.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 22px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 30px; border-radius:999px; border:1px solid transparent;
  font-family:var(--f-body); font-size:14px; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; cursor:pointer;
  transition:transform .28s var(--ease), background .28s var(--ease), box-shadow .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
  text-align:center;
}
.btn:active{ transform:scale(.97); }
.btn-gold{ background:linear-gradient(135deg,var(--gold-lt),var(--gold)); color:#2a1a06; box-shadow:0 10px 26px -12px rgba(201,162,39,.85); }
.btn-gold:hover{ box-shadow:0 16px 34px -12px rgba(201,162,39,.95); transform:translateY(-2px); }
.btn-ghost{ background:rgba(255,255,255,.06); color:#fff; border-color:rgba(255,255,255,.34); backdrop-filter:blur(6px); }
.btn-ghost:hover{ background:rgba(255,255,255,.14); transform:translateY(-2px); }

/* ---------- Header (transparent over dark hero → solid wine) ---------- */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:90; background:transparent;
  border-bottom:1px solid transparent;
  transition:background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled{ background:rgba(36,19,24,.96); border-bottom-color:var(--line-2); box-shadow:0 10px 30px -16px rgba(0,0,0,.5); }
.header-inner{ max-width:var(--wrap); margin:0 auto; padding:14px 22px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand{ display:flex; align-items:center; gap:11px; color:var(--gold-lt); }
.brand-mark{ display:block; }
.brand-text strong{ display:block; font-family:var(--f-disp); font-size:22px; font-weight:600; letter-spacing:.14em; color:#fff; line-height:1.1; }
.brand-text em{ display:block; font-style:normal; font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:rgba(255,255,255,.55); margin-top:2px; }
.nav-desktop{ display:none; gap:30px; align-items:center; }
.nav-desktop a{ font-size:13px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:rgba(255,255,255,.85); position:relative; padding:6px 0; }
.nav-desktop a::after{ content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--gold); transition:width .3s var(--ease); }
.nav-desktop a:hover{ color:#fff; }
.nav-desktop a:hover::after{ width:100%; }
.nav-desktop a.active{ color:#fff; }
.nav-desktop a.active::after{ width:100%; }
.menu-toggle{ width:44px; height:44px; border:1px solid rgba(255,255,255,.3); border-radius:12px; background:transparent; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; cursor:pointer; }
.menu-toggle span{ display:block; width:18px; height:1.8px; background:var(--gold-lt); border-radius:1px; transition:transform .3s var(--ease), opacity .2s var(--ease); }
.menu-toggle.open span:nth-child(1){ transform:translateY(6.8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity:0; }
.menu-toggle.open span:nth-child(3){ transform:translateY(-6.8px) rotate(-45deg); }
.mobile-menu{ display:grid; gap:0; max-height:0; overflow:hidden; padding:0 22px; background:var(--ink-2); transition:max-height .42s var(--ease), padding .42s var(--ease); }
.mobile-menu.open{ max-height:340px; padding:8px 22px 18px; }
.mobile-menu a{ padding:15px 4px; color:rgba(255,255,255,.9); font-size:14px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; border-bottom:1px solid rgba(255,255,255,.1); }

/* ---------- Hero (centered) ---------- */
.hero{ position:relative; overflow:hidden; color:#fff; background:linear-gradient(160deg,#2c181e 0%,#241318 45%,#1c1014 100%); padding:calc(132px + env(safe-area-inset-top)) 0 76px; }
.hero-bg{ position:absolute; inset:0; pointer-events:none; background: radial-gradient(55% 42% at 78% 14%, rgba(201,162,39,.30), transparent 68%), radial-gradient(46% 40% at 14% 86%, rgba(217,163,179,.20), transparent 72%); }
.hero-inner{ position:relative; z-index:2; max-width:680px; margin:0 auto; padding:0 22px; text-align:center; }
.hero-eyebrow{ display:inline-block; font-family:var(--f-mono, "Space Mono", monospace); font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--gold-lt); border:1px solid var(--line-2); border-radius:999px; padding:7px 16px; margin-bottom:24px; background:rgba(201,162,39,.08); }
.hero-title{ font-family:var(--f-disp); font-size:clamp(44px,12vw,82px); font-weight:600; line-height:1.0; letter-spacing:-.01em; margin-bottom:22px; }
.hero-title .line{ display:block; }
.hero-title .accent{ background:linear-gradient(105deg,var(--gold-lt),var(--gold) 45%,var(--rose)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-lead{ max-width:52ch; margin:0 auto 30px; color:rgba(255,255,255,.78); font-size:16px; font-weight:300; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; margin-bottom:46px; }
.hero-visual{ width:min(84%,320px); margin:0 auto 44px; opacity:.95; }
.hero-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; border-top:1px solid rgba(255,255,255,.16); padding-top:26px; max-width:540px; margin:0 auto; }
.stat b{ display:block; font-family:var(--f-disp); font-size:clamp(22px,6vw,30px); font-weight:600; color:var(--gold-lt); line-height:1.1; }
.stat span{ font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.55); }

/* ---------- Trust bar ---------- */
.trustbar{ background:var(--ink-2); border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); }
.trustbar-inner{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:rgba(255,255,255,.09); }
.trust{ background:var(--ink-2); padding:18px 16px; display:flex; flex-direction:column; gap:3px; }
.trust-k{ font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.42); }
.trust-v{ font-size:13.5px; font-weight:600; color:var(--gold-lt); }

/* ---------- Sections ---------- */
.section{ padding:80px 0; }
.section-alt{ background:var(--paper); }
.section-center .chapter-head{ text-align:center; margin-left:auto; margin-right:auto; }
.chapter-head{ max-width:780px; margin-bottom:34px; }
.kicker{ display:inline-block; font-family:var(--f-mono, "Space Mono", monospace); font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); font-weight:700; margin-bottom:14px; }
.kicker::before{ content:""; display:inline-block; width:28px; height:2px; background:var(--gold); vertical-align:middle; margin-right:12px; }
.section-center .kicker::before{ margin:0 12px; }
.section-title{ font-family:var(--f-disp); font-size:clamp(30px,6.4vw,46px); font-weight:600; color:var(--ink); line-height:1.06; letter-spacing:-.01em; }
.section-title em{ font-style:italic; color:var(--gold); }
.section-lead{ color:var(--muted); max-width:60ch; margin-top:16px; font-size:15.5px; }
.section-center .section-lead{ margin-left:auto; margin-right:auto; }
.prose{ max-width:64ch; margin:0 auto; }
.prose p{ color:var(--text); font-size:15.5px; }
.prose strong{ color:var(--ink); font-weight:700; }

/* ---------- Pillars (Nosotros) ---------- */
.pillars{ display:grid; gap:14px; margin-top:34px; grid-template-columns:1fr; }
.pillar{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:24px 22px; position:relative; overflow:hidden; transition:transform .35s var(--ease), box-shadow .35s var(--ease); }
.pillar::before{ content:""; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--gold),var(--rose)); transform:scaleX(0); transform-origin:left; transition:transform .4s var(--ease); }
.pillar:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.pillar:hover::before{ transform:scaleX(1); }
.pillar-n{ font-family:var(--f-disp); font-size:32px; font-weight:700; color:var(--gold); line-height:1; display:block; margin-bottom:8px; }
.pillar h3{ font-family:var(--f-disp); font-size:21px; color:var(--ink); margin-bottom:7px; }
.pillar p{ font-size:14px; color:var(--muted); margin:0; }

/* ---------- Rail (Productos) — horizontal scroll ---------- */
.rail-hint{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-top:14px; }
.section-center .rail-hint{ text-align:center; }
.rail{
  display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding:14px max(22px, calc((100vw - var(--wrap))/2 + 22px)) 26px;
  margin-top:10px; -webkit-overflow-scrolling:touch;
}
.rail::-webkit-scrollbar{ height:6px; }
.rail::-webkit-scrollbar-thumb{ background:var(--line-2); border-radius:999px; }
.rail-card{
  flex:0 0 auto; width:min(82%,300px); scroll-snap-align:start;
  background:#fff; border:1px solid var(--line); border-radius:16px;
  padding:24px 22px; position:relative; overflow:hidden;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.rail-card::before{ content:""; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--gold),var(--rose)); transform:scaleX(0); transform-origin:left; transition:transform .4s var(--ease); }
.rail-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow); border-color:var(--line-2); }
.rail-card:hover::before{ transform:scaleX(1); }
.card-ico{ width:54px; height:54px; border-radius:14px; display:grid; place-items:center; background:linear-gradient(140deg,rgba(201,162,39,.16),rgba(217,163,179,.16)); color:var(--gold); border:1px solid var(--line-2); margin-bottom:15px; }
.rail-card h3{ font-family:var(--f-disp); font-size:21px; color:var(--ink); margin-bottom:8px; }
.rail-card p{ font-size:13.5px; color:var(--muted); margin-bottom:14px; }
.tags{ display:flex; flex-wrap:wrap; gap:6px; }
.tags li{ font-family:var(--f-mono, "Space Mono", monospace); font-size:10px; letter-spacing:.03em; text-transform:uppercase; color:var(--ink); background:rgba(201,162,39,.13); border:1px solid var(--line-2); padding:4px 10px; border-radius:999px; }

/* ---------- Services (index list) ---------- */
.svc-list{ border-top:1px solid var(--line); }
.svc{ display:grid; grid-template-columns:auto 1fr; gap:20px; padding:24px 4px; border-bottom:1px solid var(--line); align-items:start; transition:background .3s var(--ease); }
.svc:hover{ background:rgba(201,162,39,.06); }
.svc-num{ font-family:var(--f-disp); font-size:clamp(34px,7vw,52px); font-weight:700; color:var(--gold); line-height:.9; }
.svc h3{ font-family:var(--f-disp); font-size:22px; color:var(--ink); margin-bottom:7px; }
.svc p{ font-size:14.5px; color:var(--muted); margin:0; max-width:64ch; }

/* ---------- Steps (center timeline) ---------- */
.steps{ position:relative; max-width:780px; margin:10px auto 0; }
.steps::before{ content:""; position:absolute; left:50%; top:8px; bottom:8px; width:2px; background:var(--line-2); transform:translateX(-50%); }
.step{ position:relative; width:50%; padding:14px 36px; box-sizing:border-box; }
.step:nth-child(odd){ left:0; text-align:right; }
.step:nth-child(even){ left:50%; text-align:left; }
.step span{ position:absolute; top:14px; width:40px; height:40px; border-radius:50%; background:var(--ink); color:var(--gold-lt); display:grid; place-items:center; font-family:var(--f-disp); font-size:19px; font-weight:700; border:3px solid var(--paper); z-index:2; }
.step:nth-child(odd) span{ right:-20px; }
.step:nth-child(even) span{ left:-20px; }
.step h3{ font-family:var(--f-disp); font-size:20px; color:var(--ink); margin-bottom:5px; }
.step p{ font-size:13.5px; color:var(--muted); margin:0; }

/* ---------- Bento (Clientes) ---------- */
.bento{ display:grid; gap:14px; grid-template-columns:1fr; }
.tile{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px 20px; position:relative; overflow:hidden; transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.tile::before{ content:""; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--gold),var(--rose)); transform:scaleX(0); transform-origin:left; transition:transform .4s var(--ease); }
.tile:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--line-2); }
.tile:hover::before{ transform:scaleX(1); }
.tile .card-ico{ width:46px; height:46px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(140deg,rgba(201,162,39,.16),rgba(217,163,179,.16)); color:var(--gold); border:1px solid var(--line-2); margin-bottom:14px; }
.tile h3{ font-family:var(--f-disp); font-size:20px; color:var(--ink); margin-bottom:7px; }
.tile p{ font-size:13.5px; color:var(--muted); margin-bottom:12px; }
.tile .tags li{ color:var(--ink); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink); color:rgba(255,255,255,.6); padding:56px 0 72px; }
.footer-inner{ display:grid; gap:28px; }
.footer-brand{ display:flex; align-items:center; gap:12px; color:var(--gold-lt); }
.footer-brand p{ font-size:13px; color:rgba(255,255,255,.55); margin:0; }
.footer-brand strong{ font-family:var(--f-disp); font-size:19px; letter-spacing:.14em; color:#fff; }
.footer-nav{ display:flex; flex-wrap:wrap; gap:22px; }
.footer-nav a{ font-size:13px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:rgba(255,255,255,.6); }
.footer-nav a:hover{ color:var(--gold-lt); }
.footer-legal{ font-size:11.5px; line-height:1.85; color:rgba(255,255,255,.5); border-top:1px solid rgba(255,255,255,.12); padding-top:22px; }

/* ---------- Reveal ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition-duration:.01ms !important; }
  .reveal{ opacity:1; transform:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- Responsive ---------- */
@media (min-width:560px){ .pillars{ grid-template-columns:repeat(2,1fr); } .bento{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:700px){
  .trustbar-inner{ grid-template-columns:repeat(4,1fr); }
  .section{ padding:96px 0; }
  .hero{ padding-top:calc(150px + env(safe-area-inset-top)); }
  .bento .tile:nth-child(1), .bento .tile:nth-child(2){ grid-column:span 1; }
}
@media (min-width:820px){
  .bento{ grid-template-columns:repeat(6,1fr); }
  .bento .tile:nth-child(1){ grid-column:span 3; }
  .bento .tile:nth-child(2){ grid-column:span 3; }
  .bento .tile:nth-child(3){ grid-column:span 2; }
  .bento .tile:nth-child(4){ grid-column:span 2; }
  .bento .tile:nth-child(5){ grid-column:span 2; }
  .bento .tile:nth-child(6){ grid-column:span 6; }
  .footer-inner{ grid-template-columns:auto 1fr; align-items:center; }
  .footer-legal{ grid-column:1/-1; }
}
@media (min-width:1000px){
  .nav-desktop{ display:flex; }
  .menu-toggle{ display:none; }
  .mobile-menu{ display:none !important; }
}
@media (max-width:760px){
  .steps::before{ left:19px; }
  .step{ width:100%; left:0 !important; text-align:left !important; padding:12px 0 12px 56px; }
  .step span{ left:0 !important; right:auto !important; top:12px; }
}
