/* ===== UniON LANDING — Estilos de producción ===== */

/* Montserrat ya se importa desde index.html con preconnect */

/* ── DESIGN TOKENS ── */
:root {
  --verde:         #4D7A59;
  --verde-dark:    #2F4F3A;
  --dorado:        #C8A96E;
  --blanco:        #FFFFFF;
  --pastel-fin:    #E0F0E4;
  --pastel-gra:    #F5E6C8;
  --pastel-ins:    #E8F0F5;
  --pastel-mer:    #F2F2F2;
  --pastel-prod:   #EAF0E0;
  --pastel-alert:  #FDF3DE;
  --positivo:      #2E7D3E;
  --negativo:      #C73E3E;
  --fondo-gris:    #F8F8F8;
  --texto:         #1A1A1A;
  --texto-sec:     #555;
  --font: 'Montserrat', 'Gotham', 'Nunito Sans', sans-serif;
  --r-card:  24px;
  --r-btn:   100px;
  --shadow:  0 8px 32px rgba(0,0,0,0.08);
  --shadow-h:0 20px 56px rgba(0,0,0,0.14);
  --shadow-ph:0 32px 80px rgba(0,0,0,0.22);
}

/* ── RESET ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--texto);
  background: var(--blanco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); }
p { text-wrap: pretty; }

/* ── TIPOGRAFÍA ── */
.eyebrow      { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--dorado); }
.eyebrow-white{ font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--dorado); }
.h1 { font-size: clamp(44px,6.5vw,80px); font-weight: 900; line-height: 1.04; letter-spacing: -.02em; }
.h2 { font-size: clamp(32px,4vw,56px);   font-weight: 700; line-height: 1.1;  letter-spacing: -.015em; }
.h3 { font-size: clamp(18px,2.2vw,26px); font-weight: 700; line-height: 1.2; }
.body-lg  { font-size: clamp(16px,1.4vw,19px); line-height: 1.65; color: var(--texto-sec); }
.body-md  { font-size: 16px; line-height: 1.65; }
.microtexto { font-size: 13px; opacity: .6; line-height: 1.5; }

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.sec    { padding: 110px 0; }
.sec-lg { padding: 140px 0; }
.tc  { text-align: center; }
.tw  { color: #fff; }
.td  { color: var(--dorado); }
.tv  { color: var(--verde); }
.bg-verde { background: var(--verde); }
.bg-dark  { background: var(--verde-dark); }
.bg-gris  { background: var(--fondo-gris); }
.stack { display: flex; flex-direction: column; }
.row   { display: flex; align-items: center; }

/* ── BOTONES ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--r-btn);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .22s ease; border: 2px solid transparent; letter-spacing: .01em;
}
.btn-prim  { background: var(--verde); color: #fff; }
.btn-prim:hover { background: var(--verde-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(77,122,89,.4); }
.btn-outline { background: transparent; border-color: var(--verde); color: var(--verde); }
.btn-outline:hover { background: var(--verde); color: #fff; }
.btn-white { background: #fff; color: var(--verde-dark); box-shadow: 0 4px 18px rgba(0,0,0,.1); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.15); }
.btn-store {
  background: #111; color: #fff; padding: 13px 22px; border-radius: 14px;
  font-size: 13px; font-weight: 600; position: relative; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; transition: all .2s;
}
.btn-store:hover { background: #000; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.btn-store svg { flex-shrink: 0; }
.badge-prox {
  position: absolute; top: -9px; right: -9px;
  background: var(--dorado); color: #fff;
  font-size: 9px; font-weight: 700; padding: 3px 7px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 22px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .35s ease, box-shadow .35s ease, padding .3s ease;
}
#nav.solid { background: #fff; box-shadow: 0 2px 24px rgba(0,0,0,.07); padding: 14px 48px; }
.nav-logo { font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.nav-logo .uni { color: var(--dorado); }
.nav-logo .on  { color: var(--verde-dark); }
#nav:not(.solid) .nav-logo .on { color: var(--verde-dark); }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--texto); transition: color .2s; }
.nav-links a:hover { color: var(--verde); }
#nav:not(.solid) .nav-links a       { color: var(--texto-sec); }
#nav:not(.solid) .nav-links a:hover { color: var(--verde); }

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; background: #fff; padding-top: 80px;
}
.hero-shape {
  position: absolute; top: -10%; right: -5%; width: 50%; height: 120%;
  background: var(--verde); border-radius: 50% 0 0 60%; opacity: .07; pointer-events: none;
}
.hero-shape-2 {
  position: absolute; bottom: -15%; right: 15%; width: 30%; height: 50%;
  background: var(--dorado); border-radius: 50%; opacity: .05; pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; width: 100%; }
.hero-phones-wrap {
  position: relative; display: flex; justify-content: flex-end;
  align-items: flex-end; min-height: 620px;
}
.hero-splash {
  height: 580px; width: auto; position: relative; z-index: 1;
  will-change: transform; filter: drop-shadow(0 40px 80px rgba(0,0,0,.22));
}
.hero-phone-front {
  position: absolute; right: -20px; bottom: 0; z-index: 2;
  will-change: transform; filter: drop-shadow(0 24px 48px rgba(0,0,0,.18));
}

/* ── PHONE FRAME ── */
.pf {
  width: 268px; height: 568px; background: #111; border-radius: 48px;
  padding: 11px; box-shadow: var(--shadow-ph); position: relative; flex-shrink: 0;
}
.ps { width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #fff; position: relative; }
.pnotch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100px; height: 32px; background: #111; border-radius: 0 0 22px 22px; z-index: 10;
}

/* ── BILLETERA ── */
#billetera { padding: 130px 0; overflow: hidden; }
.bill-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.feat-list { display: flex; flex-direction: column; gap: 30px; }
.feat-item { display: flex; gap: 18px; align-items: flex-start; }
.feat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(200,169,110,.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.phone-bill { transform: rotate(-3deg); filter: drop-shadow(0 40px 80px rgba(0,0,0,.35)); }

/* ── MÓDULOS ── */
#funcionalidades { padding: 110px 0; background: #fff; }
.mods-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 60px; }
.mod-card {
  border-radius: var(--r-card); padding: 32px 28px;
  position: relative; overflow: hidden; cursor: default;
  transition: transform .25s, box-shadow .25s;
}
.mod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); }
.mod-icon { width: 48px; height: 48px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; }
.mod-badge {
  display: inline-block; background: var(--dorado); color: #fff;
  font-size: 10px; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
}

/* ── POR QUÉ ── */
#por-que { padding: 110px 0; background: var(--fondo-gris); }
.pq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; margin-top: 60px; }
.pq-item { display: flex; gap: 24px; align-items: flex-start; }
.pq-illo { width: 72px; height: 72px; flex-shrink: 0; border-radius: 20px; display: flex; align-items: center; justify-content: center; }

/* ── ROADMAP ── */
#lo-que-viene { padding: 110px 0; background: #fff; }
.rm-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 56px; }
.rm-card {
  border-radius: var(--r-card); padding: 28px 24px; background: var(--fondo-gris);
  position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.rm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.rm-badge {
  display: inline-block; background: var(--dorado); color: #fff;
  font-size: 10px; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.rm-illo { margin-bottom: 16px; opacity: .7; }

/* ── FAQ ── */
#faq { padding: 110px 0; background: #fff; }
.faq-wrap { max-width: 780px; margin: 0 auto; }
.faq-list { margin-top: 52px; }
.faq-item { border-bottom: 1.5px solid #ebebeb; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; background: none; border: none; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--texto);
  text-align: left; gap: 14px; transition: color .2s; font-family: var(--font);
}
.faq-q:hover { color: var(--verde); }
.faq-chev { width: 22px; height: 22px; flex-shrink: 0; transition: transform .32s ease; color: var(--verde); }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-ans { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-ans { max-height: 200px; }
.faq-ans p { padding: 0 0 22px; font-size: 15px; line-height: 1.75; color: var(--texto-sec); }

/* ── SOPORTE ── */
#soporte { padding: 100px 0; background: #F2F9F4; }
.sp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 52px; }
.sp-card {
  background: #fff; border-radius: var(--r-card); padding: 40px 28px 32px;
  text-align: center; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.sp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.sp-icon {
  width: 56px; height: 56px; background: var(--pastel-fin); border-radius: 18px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.sp-link { font-size: 20px; font-weight: 700; color: var(--verde); display: block; margin: 8px 0 4px; }

/* ── CTA FINAL ── */
#descargar { padding: 140px 0; background: var(--verde); text-align: center; position: relative; overflow: hidden; }
.cta-shape   { position: absolute; bottom: -20%; right: -10%;  width: 400px; height: 400px; background: rgba(255,255,255,.05); border-radius: 50%; pointer-events: none; }
.cta-shape-2 { position: absolute; top: -15%;  left: -8%;     width: 300px; height: 300px; background: rgba(200,169,110,.1);  border-radius: 50%; pointer-events: none; }
.qr-placeholder {
  width: 130px; height: 130px; background: rgba(255,255,255,.95); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 32px auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  font-size: 11px; font-weight: 600; color: var(--verde-dark);
  text-align: center; line-height: 1.4; padding: 10px;
}
.stores-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
/* Botones de stores deshabilitados mientras no están publicadas las apps */
a[aria-disabled="true"] { pointer-events: none; }

/* ── FOOTER ── */
#footer { background: var(--verde-dark); color: #fff; padding: 64px 0 28px; }
.ft-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.ft-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dorado); margin-bottom: 18px;
}
.ft-col a { display: block; color: rgba(255,255,255,.6); font-size: 13px; margin-bottom: 9px; transition: color .2s; }
.ft-col a:hover { color: #fff; }
.ft-tagline { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; margin-top: 10px; }
.ft-bottom { padding-top: 22px; text-align: center; font-size: 12px; color: rgba(255,255,255,.3); }
.ft-social { display: flex; gap: 12px; margin-top: 16px; }
.ft-social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .2s; margin-bottom: 0; }
.ft-social a:hover { background: rgba(255,255,255,.18); }

/* ── ANIMACIONES SCROLL ── */
.au { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.au.vis { opacity: 1; transform: translateY(0); }
.as { opacity: 0; transform: scale(.94); transition: opacity .7s ease, transform .7s ease; }
.as.vis { opacity: 1; transform: scale(1); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }
.d6 { transition-delay: .6s; }

/* ── RESPONSIVE ── */
@media (max-width: 1023px) {
  .container { padding: 0 32px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-phones-wrap { justify-content: center; min-height: 460px; margin-top: 48px; }
  .hero-splash { height: 440px; }
  .hero-phone-front { right: -10px; bottom: -10px; }
  .bill-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .mods-grid { grid-template-columns: repeat(2,1fr); }
  .pq-grid { grid-template-columns: 1fr; gap: 36px; }
  .rm-grid { grid-template-columns: repeat(2,1fr); }
  .ft-grid { grid-template-columns: repeat(2,1fr); gap: 36px; }
  .sp-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  #nav { padding: 16px 32px; }
  #nav.solid { padding: 12px 32px; }
}
@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .sec    { padding: 72px 0; }
  .sec-lg { padding: 90px 0; }
  .mods-grid { grid-template-columns: 1fr; }
  .rm-grid   { grid-template-columns: 1fr; }
  .ft-grid   { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  #nav { padding: 13px 20px; }
  #nav.solid { padding: 11px 20px; }
  #hero { min-height: auto; align-items: flex-start; padding-bottom: 60px; }
  .hero-inner { gap: 32px; }
  .hero-phones-wrap { display: block; width: 270px; margin: 0 auto; min-height: 360px; position: relative; }
  .hero-splash { position: absolute; left: 0; bottom: 0; height: 290px; width: auto; margin: 0; }
  .hero-phone-front { display: block; right: 0; bottom: 0; }
  .pf { zoom: 0.62; }
  .feat-list { gap: 20px; }
  .pq-grid   { gap: 24px; }
  .sp-grid   { grid-template-columns: 1fr; }
  .stores-row { flex-direction: column; align-items: center; }
}
