/* Additions to the landing: TikTok, phone power-on, gym agreement, partner programs, vision art, scroll reveal. */

/* TikTok button (same look as Instagram) */
.button-tiktok .tiktok-icon { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.hero-actions { flex-wrap: wrap; row-gap: 14px; }

/* ---------- Phone: launch animation + real app screens (js/app-intro.js, js/app-preview.js) ---------- */
.app-preview { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0c1214; overflow: hidden; }
.pv-status { position: relative; z-index: 3; flex: none; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px 0 24px; background: #0c1214; }
.pv-status .phone-status-time { position: static; font-size: 11px; font-weight: 800; color: #f5fbf8; }
.pv-status .phone-status-icons { position: static; width: 46px; }
.pv-status .phone-status-icons svg { width: 100%; height: auto; display: block; }
.pv-screens { position: relative; flex: 1; min-height: 0; }
.pv-screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior: auto; touch-action: pan-y; padding-bottom: 64px; }
.pv-screen::-webkit-scrollbar { display: none; }
.pv-screen[hidden] { display: none; }
.phone-screen .pv-screen img { display: block; width: 100% !important; max-width: 100% !important; margin: 0 !important; height: auto !important; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.pv-screen.is-entering { animation: pvEnter .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes pvEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pv-nav { position: absolute; z-index: 4; left: 7px; right: 7px; bottom: 9px; height: 46px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border: 1px solid #ffffff1c; border-radius: 17px; background: #1c2325ee; backdrop-filter: blur(10px); box-shadow: 0 -8px 26px #0009; }
.pv-tab { position: relative; height: 100%; display: grid; place-items: center; border: 0; background: none; color: #8e9a97; cursor: pointer; padding: 0; }
.pv-tab svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.pv-tab:hover svg { transform: scale(1.08); }
.pv-tab.is-current { color: #f5fbf8; }
.pv-tab:not(.pv-tab-home).is-current::after { content: ""; position: absolute; bottom: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--accent); }
.pv-tab-home span, .pv-tab-home svg { position: relative; z-index: 1; }
.pv-tab-home::before { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 11px; background: #f5fbf8; }
.pv-tab-home { color: #0b1214 !important; }
.pv-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 12px; }
.pv-hint { position: absolute; z-index: 4; left: 50%; bottom: 62px; transform: translateX(-50%); margin: 0; padding: 5px 10px; border-radius: 99px; background: #0b1214cc; color: #cfe0d8; font-size: 9px; font-weight: 700; white-space: nowrap; pointer-events: none; animation: pvHint 2.4s ease-in-out 3.2s 3 both; opacity: 0; }
.pv-hint.is-gone { display: none; }
@keyframes pvHint { 0%, 100% { opacity: 0; transform: translate(-50%, 4px); } 30%, 70% { opacity: 1; transform: translate(-50%, 0); } }
.pv-intro { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; display: block; background: #0D1315; }
.phone-mockup:not(.is-booting) .pv-intro { display: none; }
.phone-mockup.is-booting:not(.is-on) .app-preview { visibility: hidden; }

/* ---------- Gym agreement ---------- */
.gym-benefits { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gym-benefits li { display: grid; gap: 5px; padding: 16px 16px 16px 44px; position: relative; border: 1px solid #3d4f47; border-radius: 16px; background: #ffffff06; }
.gym-benefits li::before { content: "✓"; position: absolute; left: 15px; top: 15px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #72eac322; color: var(--accent); font-size: 11px; font-weight: 900; }
.gym-benefits b { font-size: 14px; color: var(--text); }
.gym-benefits span { font-size: 13px; line-height: 1.5; color: #b7c6bf; }
.gym-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.gym-actions .button { margin: 0; }
.gym-actions small { color: var(--muted); font-size: 12px; }

/* ---------- Partner programs ---------- */
.partners-section { padding: 92px 6% 30px; }
.partners-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.partner-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border: 1px solid #3a4b44; border-radius: 22px; background: linear-gradient(160deg, #1d2826, #141b1a); transition: transform .25s ease, border-color .25s ease; }
.partner-card:hover { transform: translateY(-3px); border-color: #5c7d6e; }
.partner-code { font-size: 11px; font-weight: 850; letter-spacing: .17em; color: #a6bdb0; }
.partner-status { align-self: flex-start; padding: 5px 10px; border-radius: 99px; background: #eacb7922; color: #eacb79; font-size: 11px; font-weight: 800; }
.partner-card h3 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.04em; }
.partner-card p { margin: 0; color: #b7c6bf; font-size: 14px; line-height: 1.6; flex: 1; }
.partner-request { align-self: flex-start; margin-top: 8px; padding: 11px 16px; border: 1px solid var(--accent); border-radius: 11px; color: var(--accent); font-weight: 800; font-size: 13px; text-decoration: none; transition: background .2s ease, color .2s ease; }
.partner-request:hover, .partner-request:focus-visible { background: var(--accent); color: #071711; }
.partners-note { margin: 22px 0 0; color: var(--muted); font-size: 12px; }

/* ---------- Vision illustration ---------- */
.vision-side { display: grid; align-content: start; gap: 28px; }
.vision-art { width: 100%; max-width: 330px; height: auto; overflow: visible; }
.vision-links path { fill: none; stroke: #72eac366; stroke-width: 2; stroke-dasharray: 5 7; animation: visionFlow 1.6s linear infinite; }
.vision-node circle { fill: #1f2d29; stroke: #5d7d6e; stroke-width: 1.5; }
.vision-node path, .vision-node circle + circle { fill: none; stroke: #d7e8dc; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vision-core-bg { fill: #10201b; stroke: #2f4a3f; stroke-width: 1.5; }
.vision-core-ring { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 72 100; transform: rotate(-90deg); }
.vision-core text { fill: #f4f6f2; font-size: 17px; font-weight: 900; text-anchor: middle; }
.vision-core .vision-core-label { fill: #a6bdb0; font-size: 8px; letter-spacing: .2em; font-weight: 800; }
.vision-section.is-visible .vision-core-ring { animation: visionRing 1.4s .3s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes visionFlow { to { stroke-dashoffset: -24; } }
@keyframes visionRing { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 72 100; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-child { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.is-visible .reveal-child { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .gym-benefits, .partners-grid { grid-template-columns: 1fr; }
  .partners-section { padding: 60px 22px 20px; }
  .vision-art { max-width: 260px; margin: 0 auto 30px; }
  .vision-side { gap: 20px; }
  .hero-actions .button-social { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-child { opacity: 1; transform: none; transition: none; }
  .pv-intro { display: none; }
  .pv-screen.is-entering, .pv-hint { animation: none; }
  .vision-links path, .vision-section.is-visible .vision-core-ring { animation: none; }
}

/* ---------- "Ciudad y estado" search (js/place-search.js) ---------- */
.place-search { position: relative; }
.place-search-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border: 1px solid #3f544b; border-radius: 14px; background: #162120; box-shadow: 0 18px 40px #000a; }
.place-search-list[hidden] { display: none; }
.place-search-list li { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: #dcebe0; font-size: 14px; }
.place-search-list li span { color: #93a9a0; font-size: 13px; }
.place-search-list li:hover, .place-search-list li[aria-selected="true"] { background: #72eac31f; }
.place-search-list li strong { font-weight: 700; }
