/* =====================================================================
   GruApp · Sitio informativo — Diseño UI/UX
   Cliente: Top Assist 24, S.A. · Panamá
   Marca oficial (manual): #01A6CC · #1583A9 · #165773 · #EE7723
   Tipografía: Causten Semi Bold
   Rendimiento: animaciones solo transform/opacity (compositor),
   content-visibility en secciones bajo el pliegue, sin filtros blur.
   ===================================================================== */

@font-face {
  font-family: "Causten";
  src: url("../assets/fonts/causten-semi-bold.otf") format("opentype");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* Marca */
  --teal:      #01A6CC;
  --teal-mid:  #1583A9;
  --teal-deep: #165773;
  --teal-900:  #0e3d52;
  --orange:    #EE7723;
  --orange-dk: #d5641a;

  /* Neutros afinados al teal */
  --ink:    #143a49;
  --body:   #4a656f;
  --muted:  #7c949c;
  --line:   #e6eef2;
  --line-2: #d7e4ea;
  --bg:     #ffffff;
  --bg-soft:#f4fafc;
  --bg-tint:#e8f6fb;

  /* Sistema */
  --radius:    20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(22,87,115,.08);
  --shadow:    0 14px 38px rgba(22,87,115,.12);
  --shadow-lg: 0 30px 70px rgba(22,87,115,.20);
  --ring:      0 0 0 4px rgba(1,166,204,.18);

  --display: "Causten", "Segoe UI", system-ui, sans-serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--sans); color: var(--body); background: var(--bg);
  line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  overscroll-behavior-y: none;
}
body.nav-open { overflow: hidden; }
h1,h2,h3,h4 { font-family: var(--display); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--teal-mid); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(1,166,204,.22); color: var(--teal-900); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* Enlace de accesibilidad "saltar al contenido" */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 100;
  background: var(--teal-deep); color: #fff; font-family: var(--display);
  padding: 12px 20px; border-radius: 0 0 12px 12px; transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 0; color: #fff; box-shadow: var(--shadow); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(60px, 9vw, 116px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); }
.section--deep { background: radial-gradient(120% 120% at 80% 0%, var(--teal-deep), var(--teal-900)); color: #cfeaf3; }
.section--deep h2, .section--deep h3, .section--deep h4 { color: #fff; }

/* Rendimiento: no renderizar lo que está lejos del viewport */
.cv { content-visibility: auto; contain-intrinsic-size: auto 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); color: var(--teal-mid); font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.section--deep .eyebrow { color: #63d0ec; }
.lead { font-size: 1.18rem; color: var(--body); max-width: 60ch; }
.section--deep .lead { color: #bfe4ef; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-inline: auto; }
.head { max-width: 720px; margin: 0 auto clamp(40px,6vw,64px); }

/* ---------- Barra de progreso de lectura ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

/* ---------- Botones ---------- */
.btn {
  --bg: var(--orange); --fg:#fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-size: 1rem; line-height: 1;
  padding: 15px 28px; border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .22s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--primary { box-shadow: 0 12px 26px rgba(238,119,35,.34); }
.btn--primary:hover { background: var(--orange-dk); color:#fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(238,119,35,.4); }
.btn--teal { --bg: var(--teal); box-shadow: 0 12px 26px rgba(1,166,204,.3); }
.btn--teal:hover { --bg: var(--teal-mid); color:#fff; transform: translateY(-2px); }
.btn--ghost { --bg: transparent; --fg: var(--teal-deep); --bd: var(--line-2); }
.btn--ghost:hover { --bd: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }
.btn--white { --bg:#fff; --fg: var(--teal-deep); }
.btn--white:hover { --bg:#fff; color: var(--orange); transform: translateY(-2px); }
.section--deep .btn--ghost { --fg:#fff; --bd: rgba(255,255,255,.34); }
.section--deep .btn--ghost:hover { --bd:#fff; color:#fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--display); color: var(--ink); font-size: .98rem; padding: 8px 0; position: relative;
}
.nav-links a::after {
  content:""; position: absolute; left:0; bottom: 0; height: 2px; width: 100%; background: var(--orange);
  border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .22s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal-deep); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display:none; background:none; border:0; cursor:pointer; padding:8px; color: var(--teal-deep); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(170deg,#fff 0%, var(--bg-tint) 100%); }
/* Blobs sin filter:blur (coste GPU/RAM) — el degradado radial ya da el difuminado */
.hero__blob { position: absolute; border-radius: 50%; opacity: .55; pointer-events: none; }
.hero__blob--1 { width: 460px; height: 460px; right: -130px; top: -130px;
  background: radial-gradient(circle at 35% 35%, rgba(1,166,204,.26), rgba(1,166,204,.10) 45%, transparent 68%); }
.hero__blob--2 { width: 400px; height: 400px; left: -150px; bottom: -170px;
  background: radial-gradient(circle at 50% 50%, rgba(238,119,35,.16), rgba(238,119,35,.06) 50%, transparent 70%); }
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: clamp(50px, 7vw, 90px) 0 clamp(60px,8vw,100px);
}
.hero h1 { color: var(--teal-deep); }
.hero h1 .accent { color: var(--orange); position: relative; white-space: nowrap; }
.hero__lead { font-size: 1.22rem; max-width: 46ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero__trust { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--muted); font-size: .93rem; }
.hero__trust .dot { width: 8px; height: 8px; border-radius: 50%; background: #35c07a; box-shadow: 0 0 0 4px rgba(53,192,122,.18); flex: none; }
.hero__art { display: flex; justify-content: center; position: relative; }

/* Entrada escalonada del hero (solo transform/opacity → compositor) */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: rise .65s var(--ease) backwards; }
.hero__copy > *:nth-child(1) { animation-delay: .05s; }
.hero__copy > *:nth-child(2) { animation-delay: .14s; }
.hero__copy > *:nth-child(3) { animation-delay: .23s; }
.hero__copy > *:nth-child(4) { animation-delay: .32s; }
.hero__copy > *:nth-child(5) { animation-delay: .41s; }
.hero__art { animation: rise .8s var(--ease) .25s backwards; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; background:#fff; border: 1px solid var(--line);
  color: var(--teal-deep); font-family: var(--display); font-size: .82rem; padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); position: relative; }
.chip .pulse::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:2px solid var(--orange); opacity:.5; animation: pulse 2s infinite; }
@keyframes pulse { 0%{transform:scale(.6);opacity:.7} 100%{transform:scale(1.6);opacity:0} }

/* ---------- Phone mockup ---------- */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.phone {
  width: min(320px, 82%); aspect-ratio: 320/650; position: relative;
  background: #0e2c39; border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
  animation: floaty 7s ease-in-out 1.2s infinite;
}
.phone::before { /* notch */
  content:""; position:absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background:#0e2c39; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #eaf4f7;
  display: flex; flex-direction: column;
}
.phone__map { position: relative; flex: 1; background:
  radial-gradient(120% 90% at 70% 10%, #d7eef6 0%, #cfe9f2 40%, #bfe1ee 100%); overflow: hidden; }
.phone__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone__sheet {
  background:#fff; border-radius: 22px 22px 0 0; margin-top: -22px; position: relative; z-index: 2;
  padding: 18px 18px 22px; box-shadow: 0 -8px 24px rgba(22,87,115,.12);
}
.phone__grabber { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 14px; }
.phone__status { font-family: var(--display); font-size: .82rem; color: var(--teal-mid); display:flex; align-items:center; gap:6px; margin-bottom: 6px; }
.phone__status .live { width:7px;height:7px;border-radius:50%;background:#35c07a;box-shadow:0 0 0 3px rgba(53,192,122,.2); }
.phone__eta { font-family: var(--display); color: var(--ink); font-size: 1.2rem; margin-bottom: 14px; }
.phone__eta b { color: var(--orange); }
.phone__prov { display:flex; align-items:center; gap:12px; padding-top: 14px; border-top: 1px solid var(--line); }
.phone__avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,var(--teal),var(--teal-mid));
  color:#fff; font-family: var(--display); display:grid; place-items:center; font-size: 1rem; flex:none; }
.phone__prov .n { font-family: var(--display); color: var(--ink); font-size:.95rem; line-height:1.2; }
.phone__prov .s { font-size:.8rem; color: var(--muted); }
.phone__prov .star { color: var(--orange); }
@keyframes dash { to { stroke-dashoffset: -30; } }
.route { stroke: var(--orange); stroke-width: 4; fill:none; stroke-linecap: round; stroke-dasharray: 2 10; animation: dash 1.2s linear infinite; }
.road { stroke:#fff; fill:none; stroke-linecap:round; opacity:.9; }

/* App-badge floating */
@keyframes floaty-soft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.float-badge {
  position:absolute; z-index: 4; background:#fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px;
  display:flex; align-items:center; gap:10px; font-family: var(--display); color: var(--ink); font-size:.85rem; white-space: nowrap;
  animation: floaty-soft 6s ease-in-out infinite;
}
.float-badge--tl { top: 6%; left: -2%; }
.float-badge--br { bottom: 12%; right: -2%; animation-delay: 1.6s; }
.float-badge .fi { width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none; }
@media (max-width: 520px){ .float-badge{ display:none; } }

/* ---------- Store badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color:#fff;
  border-radius: 15px; padding: 11px 20px; position: relative; cursor: not-allowed;
  transition: transform .18s var(--ease); border: 1px solid rgba(255,255,255,.06);
}
.store-badge:hover { transform: translateY(-2px); color:#fff; }
.store-badge svg { width: 26px; height: 26px; flex: none; fill:#fff; }
.store-badge small { display:block; font-size:.68rem; opacity:.82; line-height:1; margin-bottom:3px; }
.store-badge strong { font-family: var(--display); font-size: 1.06rem; line-height: 1.1; }
.store-badge .soon {
  position:absolute; top:-9px; right:-8px; background: var(--orange); color:#fff; font-family: var(--display);
  font-size:.6rem; letter-spacing:.06em; text-transform:uppercase; padding:3px 8px; border-radius:999px;
  box-shadow: 0 4px 10px rgba(238,119,35,.4);
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align:center; padding: 8px; }
.stat .num { font-family: var(--display); font-size: clamp(1.8rem,3vw,2.4rem); color: var(--teal-deep); line-height:1;
  font-variant-numeric: tabular-nums; }
.stat .num span { color: var(--orange); }
.stat .lbl { color: var(--muted); font-size:.92rem; margin-top: 8px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.card {
  background:#fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .2s;
  position: relative; overflow: hidden;
}
.card::before { /* filo superior naranja que se revela al hover */
  content:""; position:absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.ico {
  width: 58px; height: 58px; border-radius: 16px; display:grid; place-items:center; margin-bottom: 20px;
  background: var(--bg-tint); color: var(--teal); transition: background .22s var(--ease), color .22s, transform .3s var(--ease-spring);
}
.ico svg { width: 30px; height: 30px; stroke: currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.card:hover .ico { background: var(--orange); color:#fff; transform: scale(1.06) rotate(-3deg); }
.card h3 { color: var(--teal-deep); margin-bottom: .4em; }
.card p { margin:0; font-size:.98rem; }

/* Steps */
.steps { display:grid; grid-template-columns: repeat(3,1fr); gap: 30px; position: relative; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step__n {
  width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%;
  background: linear-gradient(140deg, var(--orange), #f39445); color:#fff; font-family: var(--display);
  font-size: 1.6rem; display:grid; place-items:center; box-shadow: 0 12px 24px rgba(238,119,35,.32);
  position: relative; z-index: 2; transition: transform .3s var(--ease-spring);
}
.step:hover .step__n { transform: scale(1.1); }
.steps::before {
  content:""; position:absolute; top: 33px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); z-index: 1;
}
.step h3 { color: var(--teal-deep); }

/* Feature check list */
.check-list { display: grid; gap: 16px; }
.check-list li { position: relative; padding-left: 40px; }
.check-list li::before {
  content:""; position:absolute; left:0; top:1px; width:26px; height:26px; border-radius:50%;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/68% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/68% no-repeat;
}
.section--deep .check-list li::before { background: #63d0ec; }

/* Split feature block */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items:center; }
.media-card {
  border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4/3.4;
  background: radial-gradient(120% 120% at 70% 10%, var(--teal), var(--teal-deep));
  box-shadow: var(--shadow); display:grid; place-items:center; padding: 30px;
}
.media-card::after { content:""; position:absolute; inset:0;
  background: url("../assets/img/pattern.png") repeat; background-size: 180px; opacity:.10; }
.media-card img { position: relative; width: 62%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.25)); }

/* ---------- Coverage ---------- */
.coverage { position:relative; overflow:hidden; border-radius: var(--radius-lg);
  background: radial-gradient(130% 130% at 15% 10%, var(--teal), var(--teal-deep) 70%); color:#fff;
  padding: clamp(40px,6vw,76px); }
.coverage::after { content:""; position:absolute; inset:0; background: url("../assets/img/pattern.png") repeat; background-size: 200px; opacity:.12; }
.coverage__grid { position:relative; display:grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items:center; }
.coverage h2 { color:#fff; }
.coverage .big { font-family: var(--display); font-size: clamp(2rem,5vw,3.2rem); display:block; margin: 4px 0 12px; }
.coverage__lead { color:#dff2f8; }
.map-wrap { display:grid; place-items:center; }
.map-wrap svg { width: 100%; max-width: 360px; height:auto; }
.ping { transform-origin:center; animation: ping 2.4s ease-out infinite; }
.ping.b { animation-delay: .8s; } .ping.c { animation-delay: 1.6s; }
@keyframes ping { 0%{r:3; opacity:.9} 70%{r:26; opacity:0} 100%{opacity:0} }

/* Pausar animaciones cuando el bloque no está en pantalla (CPU/RAM) */
.anim-paused .route, .anim-paused .ping, .anim-paused .pulse::after,
.anim-paused.phone, .anim-paused .float-badge { animation-play-state: paused !important; }

/* ---------- Download band ---------- */
.download { position:relative; overflow:hidden; }
.download__card {
  background: linear-gradient(120deg, var(--teal-deep), var(--teal-900)); color:#fff; border-radius: var(--radius-lg);
  padding: clamp(36px,5vw,64px); display:grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items:center;
  position: relative; overflow: hidden;
}
.download__card::after { content:""; position:absolute; inset:0; background: url("../assets/img/pattern.png") repeat; background-size: 190px; opacity:.10; }
.download__card > * { position: relative; }
.download h2 { color:#fff; }
.download__icon { display:flex; justify-content:center; }
.download__icon img { width: min(180px, 60%); border-radius: 28px; box-shadow: var(--shadow-lg); }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items:start; }
.info-list { display:grid; gap: 22px; }
.info-list li { display:flex; gap:16px; align-items:flex-start; }
.info-list .ico { width:48px;height:48px;margin:0;border-radius:14px; }
.info-list .ico svg{ width:22px;height:22px; }
.info-list strong { display:block; font-family: var(--display); color: var(--ink); }
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display:block; font-family: var(--display); color: var(--ink); font-size:.92rem; margin-bottom: 7px; }
.field input, .field textarea {
  width:100%; padding: 14px 16px; border:1px solid var(--line-2); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--bg-soft);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.field input:focus, .field textarea:focus { outline:none; border-color: var(--teal); box-shadow: var(--ring); background:#fff; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color:#d94848; }
.form-note { font-size:.85rem; color: var(--muted); margin-top: 8px; }
/* Honeypot anti-bots: invisible para humanos, los bots lo rellenan */
.hp-field { position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #a9cfdc; padding: 68px 0 30px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer img.flogo { height: 42px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color:#fff; font-family: var(--display); font-size:1rem; margin-bottom: 16px; letter-spacing:.03em; }
.site-footer a { color:#a9cfdc; }
.site-footer a:hover { color:#fff; }
.footer-links { display:grid; gap: 11px; }
.powered { display:inline-flex; align-items:center; gap:8px; background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12); padding: 9px 15px; border-radius: 999px; font-size:.85rem; margin-top: 16px; }
.powered strong { color:#fff; font-family: var(--display); }
.footer-store { display:flex; gap:10px; flex-wrap:wrap; }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top:1px solid rgba(255,255,255,.12);
  display:flex; justify-content: space-between; flex-wrap:wrap; gap: 12px; font-size:.85rem; }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--teal-deep); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--orange); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 540px) { .to-top { right: 14px; bottom: 14px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay:.08s } .reveal.d2 { transition-delay:.16s } .reveal.d3 { transition-delay:.24s }
/* En el hero la entrada la hacen los keyframes; evitar doble fade */
.hero .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align:center; gap: 40px; }
  .hero__art { order:-1; }
  .hero__cta, .hero .store-badges, .hero__trust { justify-content:center; }
  .hero__lead { margin-inline:auto; }
  .split, .coverage__grid, .download__card { grid-template-columns: 1fr; }
  .download__icon { order:-1; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before { display:none; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; background:#fff;
    border-bottom:1px solid var(--line); padding: 6px 24px 18px; transform: translateY(-140%);
    transition: transform .3s var(--ease); box-shadow: var(--shadow); align-items: stretch;
    visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links li { border-bottom:1px solid var(--line); }
  .nav-links a { display:block; padding: 15px 0; }
  .nav-toggle { display:inline-flex; }
  .nav-cta .btn:not(.nav-toggle) { display:none; }
  .contact-grid { grid-template-columns: 1fr; }
  .phone { animation: none; } /* menos trabajo en móviles */
}
@media (max-width: 540px) {
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal, .hero__copy > *, .hero__art { opacity:1; transform:none; }
  .scroll-progress { display:none; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .to-top, .scroll-progress, .nav-toggle { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
