/* MarketApps — estilos de la tienda (diseño Appiafree + MarketApps).
   Colores: fondo #F8F9F5, texto #17251E, verde #175C3D, lima #DCF58B. Fuentes: Manrope (títulos) y DM Sans (texto). */
:root {
  --ink: #17251e;
  --green: #175c3d;
  --green-dark: #0d432b;
  --lime: #dcf58b;
  --paper: #f8f9f5;
  --line: #e2e6dd;
  --muted: #5f695e;
  --focus: #709d27;
  --head: 'Manrope', 'Segoe UI', sans-serif;
  --body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }

/* ---- Cabecera ---- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav { height: 86px; display: flex; align-items: center; gap: 50px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 25px; letter-spacing: -1.3px; }
.brand-dot { color: #68934e; }
.mark { display: grid; grid-template-columns: repeat(2, 9px); gap: 3px; padding: 10px; background: var(--green); border-radius: 11px; transform: rotate(-8deg); }
.mark i { height: 9px; border-radius: 2px; background: var(--lime); }
.navlinks { display: flex; gap: 30px; font-size: 14px; }
.navlinks a:hover, .navright .plain:hover { color: var(--green); }
.navright { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; }

/* ---- Botones ---- */
.btn { border: 0; border-radius: 8px; background: var(--green); color: #fff; padding: 13px 21px; font-weight: 600; font-size: 14px; display: inline-flex; justify-content: center; align-items: center; gap: 14px; }
.btn:hover { background: var(--green-dark); text-decoration: none; }
.btn.light, .btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.light:hover, .btn-ghost:hover { background: #f1f4ea; }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.lime:hover { background: #cfeb70; }
.btn-primary { width: 100%; }

/* ---- Portada ---- */
.hero { padding: 65px 0 52px; display: grid; grid-template-columns: 1.08fr 1fr; gap: 55px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 8px; text-transform: uppercase; font-size: 11px; letter-spacing: 1.6px; font-weight: 700; }
.dot { width: 7px; height: 7px; background: #6ca347; border-radius: 50%; flex-shrink: 0; }
h1 { font-family: var(--head); font-size: clamp(40px, 4.4vw, 62px); line-height: 1.07; font-weight: 800; letter-spacing: -3.4px; margin: 22px 0; isolation: isolate; }
h1 em { font-style: normal; color: var(--green); position: relative; }
h1 em::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 5px; background: var(--lime); z-index: -1; }
.intro { font-size: 16px; line-height: 1.75; max-width: 460px; color: var(--muted); margin: 0; }
.actions { display: flex; gap: 11px; flex-wrap: wrap; margin: 27px 0 20px; }
.smallnote { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.smallnote span::before { content: '✓'; color: var(--green); margin-right: 6px; }

.showcase { height: 405px; background: #e8eddf; border-radius: 22px; position: relative; overflow: hidden; display: grid; place-items: center; }
.showcase::before { content: ''; position: absolute; width: 370px; height: 370px; border: 1px solid #ccd7bc; border-radius: 50%; left: 70px; top: 20px; box-shadow: 0 0 0 38px #e3e9d9, 0 0 0 39px #d6dfc9, 0 0 0 77px #e5ebdb, 0 0 0 78px #d6dfc9; }
.screen { position: relative; width: 330px; background: #fff; border: 5px solid #fff; border-radius: 13px; box-shadow: 0 20px 55px #39512a25; transform: rotate(-5deg); z-index: 1; }
.screenhead { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee; padding: 13px 11px; font-size: 10px; font-weight: 700; }
.screenhead small { color: #7f8c75; }
.screenbody { padding: 15px; }
.screenbody .greeting { font-size: 9px; color: #5f6a59; }
.screenbody h3 { font-size: 16px; margin: 6px 0 15px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.metric { padding: 12px; border-radius: 7px; background: #f3f6ed; font-size: 8px; color: #5f6a59; }
.metric strong { display: block; color: var(--ink); font-size: 20px; margin: 7px 0; }
.metric small { color: #3f7d3c; font-size: 7px; }
.chart { padding: 13px 10px 4px; }
.chartlabel { font-size: 9px; display: flex; justify-content: space-between; }
.bars { height: 91px; display: flex; align-items: end; gap: 10px; margin-top: 12px; border-bottom: 1px solid #eee; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: #dce9ca; }
.bars i:nth-child(4), .bars i:nth-child(7) { background: #2c6b43; }
.days { font-size: 7px; color: #7f8777; display: flex; justify-content: space-around; margin-top: 7px; }
.float { position: absolute; z-index: 2; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px #39512a16; padding: 13px; display: flex; align-items: center; gap: 10px; font-size: 10px; }
.float b { display: block; font-size: 11px; margin-bottom: 4px; }
.float small { color: var(--muted); font-size: 9px; }
.float.one { top: 43px; right: 20px; transform: rotate(5deg); }
.float.two { bottom: 40px; left: 17px; transform: rotate(3deg); }
.floatinglabel { position: absolute; bottom: 16px; right: 17px; font-size: 8px; color: #5f6a59; letter-spacing: .5px; }

/* ---- Iconos de app y colores ---- */
.appicon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; font-weight: 700; font-family: var(--head); flex-shrink: 0; }
.mint { background: #e5f0dd; color: #24583d; }
.purple { background: #eee8fc; color: #6a469e; }
.peach { background: #ffeadc; color: #a9602f; }
.pink { background: #f8e2e9; color: #a63f66; }
.blue { background: #e2edf9; color: #3a64a0; }
.yellow { background: #f7efd6; color: #7f6417; }

/* ---- Beneficios ---- */
.benefits { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px 0; gap: 15px; }
.benefits > div { display: flex; align-items: center; gap: 12px; }
.benefits > div > span { font-size: 17px; color: var(--green); }
.benefits b { display: block; font-size: 12px; }
.benefits small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }

/* ---- Secciones ---- */
.section { padding: 53px 0; }
.sectiontop { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
h2 { font-family: var(--head); font-size: 29px; letter-spacing: -1.2px; margin: 8px 0; line-height: 1.2; }
.subtitle { color: var(--muted); font-size: 14px; margin: 9px 0 0; }
.textlink { font-size: 13px; color: var(--green); font-weight: 700; }
.textlink:hover { text-decoration: underline; }

.categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.category { border: 1px solid var(--line); background: transparent; text-align: left; padding: 20px 16px; border-radius: 10px; transition: .2s; color: inherit; }
.category:hover, .category.active { background: #eaf0de; border-color: #9eb782; transform: translateY(-2px); }
.category b { display: block; font-size: 14px; }
.category small { font-size: 11px; color: var(--muted); display: block; margin-top: 6px; }

.catalog { padding-top: 0; scroll-margin-top: 20px; }
.tools { display: flex; align-items: center; gap: 10px; margin: 23px 0; }
.search { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; flex: 1; max-width: 350px; }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 13px; }
.chips { display: flex; gap: 7px; }
.chip { border: 1px solid var(--line); background: transparent; padding: 11px 15px; font-size: 12px; border-radius: 7px; color: inherit; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
select { margin-left: auto; border: 1px solid var(--line); background: transparent; font-size: 12px; padding: 11px; border-radius: 7px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #223c1910; }
.art { height: 152px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.art.mint { background: #eaf0e2; } .art.purple { background: #ede9f6; } .art.peach { background: #f9ece0; }
.art.pink { background: #f5e7ed; } .art.blue { background: #e9eff7; } .art.yellow { background: #f6f0df; }
.art::before { content: ''; width: 220px; height: 220px; border: 1px solid #ffffff88; position: absolute; border-radius: 50%; box-shadow: 0 0 0 24px #ffffff33; }
.art .bigicon { position: relative; width: 76px; height: 76px; border-radius: 20px; font-size: 38px; background: #fff; transform: rotate(-6deg); box-shadow: 0 10px 25px #00000013; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: 13px; top: 12px; border-radius: 4px; background: #ffffffd9; color: var(--ink); padding: 5px 8px; font-size: 10px; z-index: 1; }
.cardbody { padding: 21px; flex: 1; display: flex; flex-direction: column; }
.cardtitle { display: flex; align-items: center; gap: 11px; }
.cardtitle .appicon { width: 39px; height: 39px; font-size: 20px; border-radius: 10px; }
.cardtitle h3 { margin: 0; font-size: 17px; letter-spacing: -.4px; font-family: var(--head); }
.cardtitle h3 a:hover { color: var(--green); }
.cardtitle small { font-size: 11px; color: var(--muted); }
.card p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 16px 0; flex: 1; }
.cardfooter { border-top: 1px solid #eef0e9; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 15px; font-weight: 700; }
.price small { font-size: 11px; color: var(--muted); font-weight: 400; }
.cardfooter a { color: var(--green); font-size: 12px; font-weight: 700; padding: 6px 0; }
.cardfooter a:hover { text-decoration: underline; }
.empty { grid-column: 1 / -1; padding: 50px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.catalogfoot { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; color: var(--muted); font-size: 12px; }

/* ---- Cómo funciona ---- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; background: #edf1e6; border-radius: 18px; padding: 40px; align-items: center; }
.story h2 { font-size: 32px; line-height: 1.25; }
.story p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.steps { display: grid; gap: 21px; }
.step { display: flex; gap: 15px; align-items: start; }
.number { background: #fff; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.step b { font-size: 14px; }
.step p { font-size: 12px; line-height: 1.6; margin: 5px 0 0; }

/* ---- Preguntas ---- */
.faq { max-width: 800px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 21px 0; }
summary { font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--green); }
details[open] summary::after { content: '−'; }
details p { font-size: 14px; line-height: 1.8; color: var(--muted); max-width: 680px; margin: 12px 0 0; }

/* ---- Llamado final ---- */
.cta { margin: 30px 0 50px; padding: 38px 42px; background: var(--lime); border-radius: 15px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { font-size: 27px; }
.cta p { font-size: 13px; color: #44532a; margin: 0; }

/* ---- Pie ---- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 22px; }
.footerrow { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footlinks { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; }
.footlinks a:hover { color: var(--green); }
.by { font-size: 10px; letter-spacing: 1.2px; color: var(--muted); margin-top: 7px; }
.footerbottom { border-top: 1px solid var(--line); margin-top: 27px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); }

/* ---- Páginas de estado (pago, entrega, 404) ---- */
.status-page { max-width: 560px; margin: 70px auto; padding: 44px 36px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.status-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--lime); color: var(--green); display: grid; place-items: center; font-size: 28px; font-weight: 800; font-family: var(--head); margin: 0 auto 20px; transform: rotate(-6deg); }
.status-page h1 { font-size: 30px; letter-spacing: -1.4px; margin: 0 0 12px; }
.status-page p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 10px 0; }
.status-page .btn { margin-top: 14px; }

/* ---- Ficha de app ---- */
.back { display: inline-block; margin: 28px 0 0; font-size: 13px; font-weight: 700; color: var(--green); }
.back:hover { text-decoration: underline; }
.app-detail { display: grid; grid-template-columns: 1fr 380px; gap: 56px; padding: 28px 0 70px; align-items: start; }
.app-detail__head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.app-detail__head .appicon { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }
.app-detail__name { font-size: clamp(34px, 4vw, 48px); letter-spacing: -2.4px; margin: 0; }
.app-detail__tagline { font-size: 18px; color: var(--muted); margin: 8px 0 22px; line-height: 1.5; }
.app-detail__description { font-size: 15px; line-height: 1.85; color: #34423a; white-space: pre-line; }
.app-detail__links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.how { margin-top: 34px; padding: 26px; background: #edf1e6; border-radius: 14px; }
.how h2 { font-size: 20px; margin: 0 0 16px; }
.how .steps { gap: 16px; }
.buy-box { position: sticky; top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 12px 30px #223c1910; }
.buy-box__price { font-family: var(--head); font-size: 38px; font-weight: 800; letter-spacing: -1.6px; margin: 0; }
.buy-box__billing { color: var(--muted); font-size: 13px; margin: 2px 0 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; border: 1px solid #cfd6c6; background: var(--paper); border-radius: 8px; padding: 13px 14px; font-size: 15px; }
.field input:focus { outline: 3px solid var(--focus); outline-offset: 1px; background: #fff; }
.field-error { color: #a1301a; font-size: 13px; margin: -6px 0 12px; }
.note { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 14px 0 0; }

/* ---- Adaptación ---- */
@media (min-width: 1500px) { .hero { gap: 85px; } }
@media (max-width: 1000px) {
  .nav { gap: 25px; }
  .navlinks { gap: 16px; }
  .navright .plain { display: none; }
  .hero { gap: 25px; }
  h1 { font-size: 48px; }
  .showcase { height: 370px; }
  .screen { width: 280px; }
  .float.one { right: 10px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .story { gap: 30px; }
  .tools { flex-wrap: wrap; }
  .search { max-width: none; }
  .chips { order: 3; width: 100%; }
  .app-detail { grid-template-columns: 1fr; gap: 32px; }
  .buy-box { position: static; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 36px); }
  .nav { height: 72px; }
  .brand { font-size: 22px; }
  .navlinks { display: none; }
  .navright { gap: 0; }
  .navright .btn { font-size: 12px; padding: 11px 13px; }
  .hero { grid-template-columns: 1fr; padding: 39px 0 28px; gap: 30px; }
  h1 { font-size: 46px; letter-spacing: -2.8px; }
  .intro { font-size: 15px; }
  .showcase { height: 325px; }
  .screen { width: 265px; }
  .float.one { top: 27px; right: 9px; }
  .float.two { bottom: 20px; left: 7px; }
  .benefits { padding: 20px 0; gap: 20px 12px; }
  .benefits > div { gap: 8px; }
  .section { padding: 35px 0; }
  .sectiontop { align-items: start; flex-direction: column; gap: 4px; }
  h2 { font-size: 25px; }
  .categories { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .category { padding: 17px; }
  .search { width: 100%; flex: auto; }
  .chips { order: 0; width: auto; flex: 1; gap: 5px; }
  .chip { padding: 10px; font-size: 11px; }
  select { max-width: 150px; font-size: 11px; padding: 10px; }
  .cards { grid-template-columns: 1fr; }
  .art { height: 165px; }
  .story { grid-template-columns: 1fr; padding: 26px; gap: 25px; }
  .story h2 { font-size: 28px; }
  .cta { padding: 26px; display: block; margin-bottom: 30px; }
  .cta .btn { margin-top: 14px; }
  .footerrow { align-items: start; flex-direction: column; }
  .footerbottom, .catalogfoot { flex-direction: column; line-height: 1.6; gap: 8px; }
  .status-page { margin: 36px auto; padding: 32px 22px; }
  .buy-box { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
