/* Magno Sites — landing styles (builds on shared/css/base.css) */

/* token: darker accent for button fills only (WCAG AA on white text).
   #FF4D2E vermilion stays the bright accent for callouts/accent words. */
:root { --accent-strong: #D6360F; }
/* white-on-#D6360F clears 4.5:1; keep the bright accent for non-button accents */
.btn-primary { background: var(--accent-strong); }

.logo b { color: var(--accent); }

/* ---- floating pill navbar (home only; overrides base [data-nav]) ---- */
[data-nav] { padding: 16px 0; }
[data-nav].is-scrolled { background: transparent; box-shadow: none; backdrop-filter: none; padding: 10px 0; }
.nav-pill { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: 0 10px 34px -18px rgba(16,18,22,.28); transition: box-shadow .3s ease; }
[data-nav].is-scrolled .nav-pill { box-shadow: 0 16px 44px -18px rgba(16,18,22,.38); }
.nav-pill .nav-links { flex: 1; justify-content: center; gap: 30px; }
.nav-pill .nav-links a { padding: 6px 2px; }
.nav-pill .nav-cta { font-size: 14px; padding: 11px 20px; border-radius: 999px; }
/* the pill is opaque white, so keep ink text even over the dark showcase */
[data-nav].on-dark:not(.is-scrolled) { background: transparent; }
[data-nav].on-dark .logo, [data-nav].on-dark .nav-links a:not(.btn-primary) { color: var(--ink); text-shadow: none; }
[data-nav].on-dark { color: var(--ink); }
@media (max-width: 820px) {
  .nav-pill { padding: 8px 16px; min-height: 52px; justify-content: space-between; }
  .nav-pill .nav-cta { display: none; }
}

/* type scale */
.display { font-family: var(--font-display); font-weight: 700; line-height: .98; letter-spacing: -.02em; font-size: clamp(44px, 8vw, 116px); }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px,5vw,68px); line-height: 1.0; letter-spacing: -.02em; }
.lead { font-size: clamp(17px,2vw,21px); color: var(--muted); max-width: 56ch; }
.accent { color: var(--accent); }

/* hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(60% 50% at 75% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
  radial-gradient(50% 50% at 10% 90%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px){ .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero p.kick { font-weight: 600; letter-spacing: .04em; color: var(--accent); margin-bottom: 18px; }
.hero .display em { font-style: normal; color: var(--accent); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* the risk-reversal hook: the killer line of the offer, styled to be seen */
.hero-hook { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 13px 18px 13px 15px; box-shadow: 0 14px 34px -22px rgba(16,18,22,.35); max-width: 100%; }
/* El color de marca (--accent-strong, #d6360f) sobre este fondo rosado da
   4,13:1, y a 11px en negrita la norma AA pide 4,5:1. Se oscurece SOLO en esta
   píldora, que es el único sitio donde el texto es tan pequeño. #b32d0c = 5,51:1. */
.hero-hook .hook-flag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b32d0c; background: color-mix(in srgb, var(--accent) 12%, #fff); border-radius: 999px; padding: 5px 11px; }
.hero-hook p { font-size: 15px; color: var(--ink); line-height: 1.45; }
.hero-hook strong { font-weight: 700; }

/* word-by-word H1 reveal (spans injected by motion.js; static text without JS) */
[data-words] .w { display: inline-block; }
@media (prefers-reduced-motion: reduce) { [data-words] .w { opacity: 1 !important; transform: none !important; } }

/* scroll cue at the bottom of the hero */
.hero-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-cue i { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); display: block; animation: cue-drop 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue-drop { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-cue i { animation: none; } }
@media (max-width: 820px) { .hero-cue { display: none; } }

/* device mock in hero */
.device { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(0,0,0,.45); background: #fff; aspect-ratio: 4/3; }
.device img, .device video { width: 100%; height: 100%; object-fit: cover; }
/* minimal browser chrome so the hero screenshot reads as an intentional window */
.hero-browser { display: flex; flex-direction: column; aspect-ratio: auto; }
.hero-browser .browser-bar { flex: none; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: linear-gradient(#f4f2ee, #e9e6df); border-bottom: 1px solid var(--line); }
.hero-browser .browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cfcabf; }
.hero-browser .browser-bar span:nth-child(1) { background: #ff5f57; }
.hero-browser .browser-bar span:nth-child(2) { background: #febc2e; }
.hero-browser .browser-bar span:nth-child(3) { background: #28c840; }
.hero-browser img { aspect-ratio: 16/10; height: auto; object-position: top; }

/* hero device cluster: browser + phone peeking for depth */
.hero-devices { position: relative; }
.hero-phone { position: absolute; right: -14px; bottom: -44px; width: 27%; min-width: 118px; aspect-ratio: auto; border: none; border-radius: 26px; background: none; box-shadow: none; animation: phone-float 7s ease-in-out infinite; }
.hero-phone .device-screen { display: block; overflow: hidden; border: 6px solid #20232b; border-radius: 26px; background: #000; box-shadow: 0 34px 70px -28px rgba(0,0,0,.55); }
.hero-phone img { aspect-ratio: 9/19; width: 100%; height: auto; object-fit: cover; object-position: top; }
@keyframes phone-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (prefers-reduced-motion: reduce) { .hero-phone { animation: none; } }
/* .hero-devices prefix beats the later showcase ".device { display:block }" tie */
@media (max-width: 979px) { .hero-devices .hero-phone { display: none; } }

/* dark spotlight scrub */
.spotlight .scrim { background: linear-gradient(180deg, rgba(16,18,22,.4), rgba(16,18,22,.2) 45%, rgba(16,18,22,.75)); }
.spotlight .scrub-overlay { color: #fff; }
.spotlight .stage-h { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px,6vw,92px); line-height: 1; letter-spacing: -.02em; }
.spotlight .stage-h em { color: var(--accent); font-style: normal; }

/* work / portfolio */
.work-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); display: block; }
.work-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--ink-deep); }
.work-card .thumb img, .work-card .thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .thumb img { transform: scale(1.05); }
.work-card .wc-body { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.work-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.work-card .wc-body span { color: var(--muted); font-size: 14px; }
.work-card .arrow { color: var(--accent); font-weight: 700; }

/* value points */
.value { display: grid; gap: 18px; }
.value .vrow { display: grid; gap: 8px; padding: 26px 0; border-top: 1px solid var(--line); }
@media (min-width:780px){ .value .vrow { grid-template-columns: .4fr 1.6fr; gap: 30px; align-items: baseline; } }
.value h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px,3vw,30px); }
.value p { color: var(--muted); max-width: 60ch; }

/* pricing */
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; }
.plan.feat { border-color: var(--accent); border-width: 2px; box-shadow: 0 30px 70px -34px color-mix(in srgb, var(--accent) 68%, transparent); position: relative; }
@media (min-width: 800px) { .plan.feat { transform: scale(1.04); z-index: 1; } .plan.feat .price { font-size: 58px; } }
.plan .tag { position: absolute; top: -12px; left: 34px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.plan .price { font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: 1; margin: 12px 0 4px; }
.plan .price small { font-family: var(--font-body); font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.plan li { padding-left: 24px; position: relative; font-size: 15px; }
.plan li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.plan .btn { margin-top: auto; justify-content: center; }
.plan-risk { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* process steps */
.steps { counter-reset: s; display: grid; gap: 18px; }
@media (min-width:820px){ .steps { grid-template-columns: repeat(3,1fr); } }
.step { border-top: 2px solid var(--accent); padding-top: 18px; }
.step .n { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--accent); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 6px 0; }
.step p { color: var(--muted); font-size: 15px; }

/* final */
.final { background: var(--ink-deep); color: #fff; border-radius: var(--radius); text-align: center; padding: clamp(52px,9vw,120px) 24px; }
.final .h2 em { color: var(--accent); font-style: normal; }

.illus { font-size: 12px; color: var(--muted); }

/* mobile sticky CTA bar (shown <=820px only) */
.mbar { display: none; }
@media (max-width: 820px) {
  .mbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 48; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg, #fff) 86%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
  .mbar .btn { width: 100%; justify-content: center; }
  body { padding-bottom: 76px; }
}

/* trust / FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.faq summary { font-family: var(--font-display); font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 60ch; }

/* inline capture form (on the dark final card) */
.capture { max-width: 560px; margin: 0 auto; text-align: left; }
.capture-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .capture-grid { grid-template-columns: 1fr 1fr; } .capture .capture-wide { grid-column: 1 / -1; } }
.capture label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: rgba(255,255,255,.78); }
.capture input, .capture select { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: #fff; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.30); border-radius: 10px; padding: 13px 14px; transition: border-color .2s ease, background .2s ease; }
.capture input::placeholder { color: rgba(255,255,255,.4); }
.capture select option { color: var(--ink); }
.capture input:focus, .capture select:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.1); }
.capture .btn { margin-top: 20px; width: 100%; justify-content: center; }
.capture [data-thanks] { color: rgba(255,255,255,.85); font-size: 14px; margin-top: 14px; text-align: center; }

/* ---- device showcase ---- */
.showcase { position: relative; background: var(--ink-deep); color: #fff; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 70px 0; }
.showcase-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; z-index: 0; }
.showcase-scrim { position: absolute; inset: 0; z-index: 1; background: radial-gradient(75% 65% at 50% 45%, transparent, rgba(16,18,22,.72)); }
.showcase-head { position: relative; z-index: 2; text-align: center; margin-bottom: 8px; padding: 0 20px; }
.showcase-head .h2 { color: #fff; } .showcase-head .h2 em { color: var(--accent); font-style: normal; }
.showcase-stage { position: relative; z-index: 2; height: 64vh; width: 92vw; max-width: 1180px; margin: 0 auto; perspective: 1600px; }

/* CTA that greets you as the showcase finishes (revealed from device-showcase.js) */
.showcase-cta { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding: 0 20px; opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.showcase-cta.in { opacity: 1; transform: none; }
.showcase-cta span { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px,2.2vw,24px); color: #fff; }
@media (prefers-reduced-motion: reduce) { .showcase-cta { opacity: 1; transform: none; } }
.dev-wrap { position: absolute; transform-style: preserve-3d; }
.device { transform-style: preserve-3d; will-change: transform; display: block; }
/* the generic .device card chrome (4/3 crop, white bg, hairline) is for the hero
   browser; showcase devices carry their own bezels and full-height screens */
.showcase .device { position: relative; aspect-ratio: auto; border: none; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
/* "Demo" tag on the fictional showcase devices (FORGE/LUMÉ/Marin) */
.demo-pill { position: absolute; top: 8px; left: 8px; z-index: 7; font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: color-mix(in srgb, var(--ink-deep) 78%, transparent); border: 1px solid rgba(255,255,255,.28); padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(4px); pointer-events: none; }
/* "Selected build" tag on the REAL client builds (B2H, Livix), accent-tinted to read as real work */
.real-pill { position: absolute; top: 8px; left: 8px; z-index: 7; font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: color-mix(in srgb, var(--accent) 88%, transparent); border: 1px solid color-mix(in srgb, #fff 30%, transparent); padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(4px); pointer-events: none; }
/* honesty legend under the showcase heading */
.showcase-legend { color: rgba(255,255,255,.66); font-size: 13px; max-width: 52ch; margin: 12px auto 0; }
.device-screen { display: block; overflow: hidden; background: #000; box-shadow: 0 44px 90px -30px rgba(0,0,0,.75); }
.device.laptop .device-screen { border: 9px solid #20232b; border-bottom: none; border-radius: 14px 14px 0 0; }
.device.laptop .device-screen img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.device.laptop::after { content: ""; display: block; height: 15px; margin: 0 -4%; background: linear-gradient(#262932, #15171c); border-radius: 0 0 16px 16px; box-shadow: 0 22px 40px -20px rgba(0,0,0,.8); }
.device.phone .device-screen { border: 7px solid #20232b; border-radius: 30px; }
.device.phone .device-screen img { width: 100%; display: block; aspect-ratio: 9/19; object-fit: cover; object-position: top; }
/* cascade arrangement (resting positions; JS flies them in).
   Reasoned at 1440px (stage ~1180px wide x ~630px tall):
   two laptops in the top corners, two phones in the bottom corners,
   FORGE laptop centered lower-middle in the gap. No footprints touch;
   FORGE (x 35-65%) clears LUMÉ (x ~1-15%) and Marin (x ~85-99%). */
.dev-b2h   { left: 0;    top: 0%;  width: 27%; z-index: 1; }  /* top-left  laptop */
.dev-livix { right: 0;   top: 2%;  width: 29%; z-index: 2; }  /* top-right laptop */
.dev-forge { left: 36%;  top: 50%; width: 28%; z-index: 4; }  /* centered front laptop */
.dev-lume  { left: 3%;   top: 42%; width: 13.5%; z-index: 5; }  /* bottom-left  phone */
.dev-marin { right: 3%;  top: 44%; width: 13.5%; z-index: 3; }  /* bottom-right phone */
/* bigger, readable callouts. Each is placed beside its own device with the ARROW
   nearest the device so the tip touches it (label sits on the outer side).
   - device on the LEFT  (callout at left:100%):  flex row,         arrow flipped to point left.
   - device on the RIGHT (callout at right:100%): flex row-reverse, arrow points right. */
.showcase .callout-label { font-size: 14px; padding: 8px 16px; }
.showcase .callout-arrow { width: 36px; }
.dev-b2h   .callout { top: 18%; left: 100%; flex-direction: row; }          /* right of laptop */
.dev-b2h   .callout .callout-arrow { transform: scaleX(-1); }              /* points left onto it */
.dev-livix .callout { top: 58%; right: 100%; flex-direction: row-reverse; } /* left of laptop */
.dev-livix .callout .callout-arrow { transform: none; }                    /* points right onto it */
.dev-forge .callout { bottom: 86%; left: 50%; }                            /* just above center */
.dev-forge .callout-arrow { width: 22px; }                                 /* short arrow reads as pointing at it */
.dev-lume  .callout { top: 30%; left: 100%; flex-direction: row; }          /* right of phone */
.dev-lume  .callout .callout-arrow { transform: scaleX(-1); }              /* points left onto it */
.dev-marin .callout { top: 44%; right: 100%; flex-direction: row-reverse; } /* left of phone */
.dev-marin .callout .callout-arrow { transform: none; }                    /* points right onto it */
@media (max-width: 880px) {
  .showcase { overflow-x: hidden; }
  .showcase-stage { height: 86vh; }
  .device.laptop .device-screen img { object-position: top left; }
  /* show 3 devices in a clean vertical stagger; hide the two phones so nothing piles up */
  .dev-lume, .dev-marin { display: none; }
  .dev-b2h   { width: 60%; left: 0;  top: 2%; }
  .dev-livix { width: 62%; right: 0; top: 35%; }
  .dev-forge { width: 60%; left: 8%; top: 68%; }
  /* callouts hug their own device, stay legible, never push past the edges */
  .showcase .callout-label { font-size: 11px; padding: 5px 10px; }
  .showcase .callout-arrow { width: 20px; }
  /* keep labels clear of the Demo/Client pills that sit top-left of each device */
  .dev-b2h   .callout { top: 34%; left: auto; right: 2%; }   /* over the right side of the laptop */
  .dev-livix .callout { top: 34%; right: auto; left: 2%; }   /* over the left side of the laptop */
  .dev-forge .callout { bottom: 90%; left: 4%; }
}

/* Founder block */
.founder { display: flex; align-items: center; gap: clamp(22px, 4vw, 44px); flex-wrap: wrap; }
.founder-body { flex: 1 1 320px; min-width: 0; }
.founder-role { font-weight: 700; color: var(--accent); margin: 6px 0 0; }
.founder-avatar {
  flex: 0 0 auto; width: 92px; height: 92px; border-radius: 50%;
  background: var(--accent); color: var(--ink); /* dark ink on vermilion = AA contrast */
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: .02em;
}
/* When the avatar is the real photo: the vermilion above stays as the circle
   that shows while it loads, so there is never an empty hole in the layout. */
img.founder-avatar {
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(20, 18, 16, .08), 0 6px 20px rgba(20, 18, 16, .10);
}
@media (max-width: 600px) {
  .founder { align-items: flex-start; }
  .founder-avatar { width: 78px; height: 78px; font-size: 27px; }
}

/* pago directo opcional bajo el microcopy de pricing */
.plan-risk .plan-pay{color:var(--accent, #C93511);text-decoration:underline;text-underline-offset:2px;font-weight:600;white-space:nowrap}
.plan-risk .plan-pay:hover{opacity:.8}
