/* EverydayAppLab — hoja de estilos de la nueva web (2026-11)
   Tipografía de sistema, modo claro/oscuro automático y diseño adaptable.
   Breakpoints: ≤734 px (móvil), 735–1068 px (tableta), ≥1069 px (escritorio). */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --soft: #5f5f64;
  --line: #d2d2d7;
  --brand: #176c4e;
  --brand-soft: #e8f4ee;
  --link: #0f6a4b;
  --bezel: #1d1d1f;
  --screen: #f2f2f4;
  --nav: rgba(255, 255, 255, 0.82);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  --radius: 22px;
  --max: 1100px;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #111113;
    --card: #1c1c1e;
    --ink: #f5f5f7;
    --soft: #a1a1a6;
    --line: #38383a;
    --brand: #5fd3a3;
    --brand-soft: #12271f;
    --link: #6fdcab;
    --bezel: #3a3a3c;
    --screen: #1c1c1e;
    --nav: rgba(22, 22, 23, 0.82);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 8px; }

.wrap { width: min(var(--max), 100% - 44px); margin-inline: auto; }
.eyebrow { margin: 0; font-size: 17px; font-weight: 600; color: var(--brand); }
.soft { color: var(--soft); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.015em; }
.h-hero { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.05; font-weight: 700; }
.h-1 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.07; font-weight: 700; }
.h-2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; font-weight: 700; }
.h-3 { font-size: 21px; line-height: 1.24; font-weight: 600; letter-spacing: 0; }
.lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; color: var(--soft); margin: 0; }
p { margin: 0; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px 28px; min-height: 52px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 16px; }
.brand:hover { text-decoration: none; }
.brand-symbol { width: 28px; height: 28px; border-radius: 9px; background: #101613; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 6px; }
.brand-symbol i { border-radius: 3px; display: block; }
.brand-symbol i:nth-child(1) { background: #62cda5; }
.brand-symbol i:nth-child(2) { background: #7dd7b6; }
.brand-symbol i:nth-child(3) { background: #6ca5f5; }
.brand-symbol i:nth-child(4) { background: #7974e8; }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 14px; flex: 1 1 auto; }
.nav a { color: var(--ink); padding: 15px 0; }
.lang { position: relative; font-size: 14px; }
.lang summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 170px; }
.lang li a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); }
.lang li a[aria-current] { font-weight: 600; background: var(--bg-alt); }
@media (max-width: 734px) {
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 0 18px; }
  .nav a { padding: 8px 0 12px; white-space: nowrap; }
  .site-header .wrap { justify-content: space-between; }
}

/* ---------- Botones y badge ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.badge-link { display: inline-block; line-height: 0; border-radius: 10px; }
.badge-link img { height: 48px; width: auto; }
.more { font-size: 17px; }
.store-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 17px; font-weight: 600; }
.store-btn:hover { text-decoration: none; opacity: 0.85; }
.price { font-size: 15px; color: var(--soft); }

/* ---------- Marcos de dispositivo (tamaño fijo por proporción) ---------- */
.frame { margin: 0; position: relative; }
.frame__screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--screen); }
.frame__screen img { width: 100%; height: 100%; object-fit: contain; }
.frame--iphone { aspect-ratio: 660 / 1434; padding: 3.2%; background: var(--bezel); border-radius: 15% / 7%; box-shadow: var(--shadow); }
.frame--iphone .frame__screen { border-radius: 12% / 5.6%; }
.frame--iphone-land { aspect-ratio: 1434 / 660; padding: 1.5%; background: var(--bezel); border-radius: 7% / 15%; box-shadow: var(--shadow); }
.frame--iphone-land .frame__screen { border-radius: 5.6% / 12%; }
.frame--ipad { aspect-ratio: 4 / 3; padding: 2.4%; background: var(--bezel); border-radius: 5% / 6.6%; box-shadow: var(--shadow); }
.frame--ipad .frame__screen { border-radius: 2.2% / 3%; }
.frame--ipad-port { aspect-ratio: 3 / 4; padding: 3%; background: var(--bezel); border-radius: 6.6% / 5%; box-shadow: var(--shadow); }
.frame--ipad-port .frame__screen { border-radius: 3% / 2.2%; }
.frame--mac { aspect-ratio: 16 / 10; padding: 1.8% 1.8% 2.6%; background: var(--bezel); border-radius: 3% / 4.8%; box-shadow: var(--shadow); }
.frame--mac .frame__screen { border-radius: 0.8% / 1.3%; }
.frame--mac::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -3.4%; height: 3.4%; background: linear-gradient(#c7c7cc, #a1a1a6); border-radius: 0 0 40% 40% / 0 0 100% 100%; }
.frame--duo-inner { aspect-ratio: 1400 / 985; padding: 2%; background: var(--bezel); border-radius: 6% / 8.5%; box-shadow: var(--shadow); }
.frame--duo-inner .frame__screen { border-radius: 4% / 5.7%; }
.frame--duo-outer { aspect-ratio: 900 / 1309; padding: 3%; background: var(--bezel); border-radius: 12% / 8.2%; box-shadow: var(--shadow); }
.frame--duo-outer .frame__screen { border-radius: 9% / 6.2%; }
.frame--video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.frame--video .frame__screen { background: transparent; }
.frame--video video { width: 100%; height: 100%; object-fit: contain; }

/* Hueco vacío: etiqueta visible con el nombre de la captura que falta */
.frame.is-empty .frame__screen { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8%; background: repeating-linear-gradient(135deg, var(--bg-alt) 0 12px, var(--screen) 12px 24px); }
.frame__missing { font-size: 13px; line-height: 1.4; color: var(--soft); max-width: 260px; }
.frame__missing strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.frame__missing code { display: inline-block; margin-top: 6px; font-size: 11px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; word-break: break-all; }
.frame--video .frame__missing svg { width: 40px; height: 40px; margin: 0 auto 8px; display: block; }

/* ---------- Portada: MyTaskFlow (cabecera) ---------- */
.hero { padding: 72px 0 88px; text-align: center; }
.hero .app-id { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.app-icon { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.app-icon--sm { width: 48px; height: 48px; }
.app-icon--xs { width: 40px; height: 40px; }
.hero .lead { max-width: 720px; margin: 18px auto 26px; }
.hero .actions { justify-content: center; }
.hero .price { margin-top: 14px; }
.hero-stage { display: grid; grid-template-columns: minmax(0, 1fr) 19%; gap: 28px; align-items: end; margin-top: 56px; }
.hero-stage .frame--mac { margin-bottom: 4%; }
.hero-video { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: center; text-align: left; }
@media (max-width: 734px) {
  .hero { padding: 48px 0 64px; }
  .hero-stage { grid-template-columns: minmax(0, 1fr) 24%; gap: 12px; margin-top: 36px; }
  .hero-video { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Franjas de MindMapFlow y MyPDFFlow ---------- */
.band { padding: 88px 0; border-top: 1px solid var(--line); }
.band--alt { background: var(--bg-alt); }
.band__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.band--reverse .band__grid > :first-child { order: 2; }
.band__text { display: flex; flex-direction: column; gap: 16px; }
.band__text .app-id { display: flex; align-items: center; gap: 12px; }
.band__visual { display: grid; gap: 24px; }
.pdf-stage { display: grid; grid-template-columns: minmax(0, 1fr) 30%; gap: 20px; align-items: end; }
@media (max-width: 1068px) { .band__grid { grid-template-columns: 1fr; gap: 36px; } .band--reverse .band__grid > :first-child { order: 0; } }
@media (max-width: 734px) { .band { padding: 64px 0; } }

/* ---------- ¿Qué necesitas hacer con tus documentos? ---------- */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.choice { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.choice:hover { text-decoration: none; }
.choice .q { font-size: 21px; font-weight: 600; line-height: 1.25; }
.choice .app-line { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--soft); margin-top: auto; padding-top: 12px; }
.choice .go { color: var(--link); font-size: 15px; }
@media (max-width: 1068px) { .choices { grid-template-columns: 1fr; } }

/* ---------- Más apps ---------- */
.more-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.mini h3 { font-size: 17px; font-weight: 600; }
.mini p { font-size: 14px; color: var(--soft); line-height: 1.4; }
.mini .links { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
@media (max-width: 1068px) { .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 734px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Valores ---------- */
.values { padding: 64px 0; background: var(--bg-alt); border-top: 1px solid var(--line); }
.values ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.values li { display: flex; flex-direction: column; gap: 6px; }
.values svg { width: 28px; height: 28px; color: var(--brand); }
.values strong { font-size: 19px; }
.values span { font-size: 15px; color: var(--soft); }
@media (max-width: 1068px) { .values ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .values ul { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 13px; color: var(--soft); }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.site-footer .motto { color: var(--ink); font-size: 15px; margin-top: 6px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink); }
.site-footer .langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.site-footer .langs a[aria-current] { font-weight: 600; text-decoration: underline; }
.site-footer .legal { font-size: 12px; line-height: 1.5; }

/* ---------- Página de app principal ---------- */
.app-hero { padding: 64px 0 80px; text-align: center; }
.app-hero .lead { max-width: 700px; margin: 18px auto 24px; }
.app-hero .actions { justify-content: center; }
.benefit { padding: 80px 0; border-top: 1px solid var(--line); }
.benefit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.benefit:nth-of-type(even) .benefit__grid > :first-child { order: 2; }
.benefit__text { display: flex; flex-direction: column; gap: 14px; }
.benefit__text ul { margin: 6px 0 0; padding-left: 20px; color: var(--soft); display: grid; gap: 6px; }
.benefit__visual { display: flex; justify-content: center; }
.benefit__visual .frame--iphone { width: min(300px, 70%); }
.benefit__visual .frame--ipad-port { width: min(420px, 80%); }
.benefit__visual .frame--ipad, .benefit__visual .frame--mac { width: 100%; }
@media (max-width: 1068px) { .benefit__grid { grid-template-columns: 1fr; gap: 36px; } .benefit:nth-of-type(even) .benefit__grid > :first-child { order: 0; } }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.plan--premium { border: 2px solid var(--brand); }
.plan ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.plan .amount { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.plan .note { font-size: 13px; color: var(--soft); }
.trial { background: var(--brand-soft); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
@media (max-width: 734px) { .plans { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.fact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.fact li span { color: var(--soft); }
@media (max-width: 1068px) { .facts { grid-template-columns: 1fr; } }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--soft); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--soft); }

.duo { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 734px) { .duo { grid-template-columns: 1fr; } .duo .frame--duo-outer { width: 60%; margin: 0 auto; } }

.cta-end { padding: 88px 0; text-align: center; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* ---------- Página sencilla ---------- */
.simple-stage { display: grid; grid-template-columns: minmax(0, 1fr) 19%; gap: 24px; align-items: end; max-width: 900px; margin: 48px auto 0; }
@media (max-width: 734px) { .simple-stage { grid-template-columns: minmax(0, 1fr) 24%; gap: 12px; } }
.breadcrumb { font-size: 14px; color: var(--soft); margin-bottom: 14px; }

/* Idiomas CJK: cortes de línea naturales y sin interletraje negativo */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .lead { word-break: auto-phrase; }
:lang(ko) { word-break: keep-all; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { letter-spacing: 0; }
