/* Databit — landing + guías. Marca: blanco minimalista, rojo #F5271D, grises iOS. */
:root {
  --red: #f5271d;
  --red-dark: #d61c13;
  --ink: #1c1c1e;
  --gray: #6e6e73;
  --gray-light: #f5f5f7;
  --line: #e5e5ea;
  --radius: 18px;
  --max: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--red); text-decoration: none; }
.nav .btn { color: #fff; }
.lang { display: flex; align-items: center; gap: 4px; font-size: .85rem; margin: 0 6px; white-space: nowrap; }
.lang svg { flex: 0 0 15px; opacity: .55; margin-right: 2px; }
.lang a { color: var(--gray); font-weight: 600; padding: 2px 3px; }
.lang a.active { color: var(--ink); border-bottom: 2px solid var(--red); }
.lang a:hover { color: var(--red); text-decoration: none; }
.lang .sep { color: var(--line); }
@media (max-width: 720px) {
  .nav > a:not(.btn) { display: none; }
  .nav { gap: 10px; }
  .lang { margin: 0 4px 0 0; }
  .lang svg { display: none; }
  .btn.small { padding: 8px 14px; }
}
@media (max-width: 480px) {
  .brand { font-size: 0; gap: 0; }
}
html[lang="ja"] body { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
html[lang="ja"] h1, html[lang="ja"] h2 { letter-spacing: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff; font-weight: 600;
  padding: 12px 24px; border-radius: 999px; font-size: 1rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 14px rgba(245,39,29,.3);
  white-space: nowrap;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); text-decoration: none; }
.btn.small { padding: 8px 18px; font-size: .9rem; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--gray-light); }
.appstore-badge { display: inline-block; transition: transform .15s ease, opacity .15s ease; }
.appstore-badge:hover { transform: translateY(-1px); opacity: .9; }
.appstore-badge svg { display: block; height: 54px; width: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-dots {
  position: absolute; right: -180px; top: -180px; width: 560px; height: 560px;
  border-radius: 50%; opacity: .55; pointer-events: none;
  background-image: radial-gradient(var(--line) 2.5px, transparent 2.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at center, transparent 46%, #000 47%, #000 52%, transparent 53%);
  mask-image: radial-gradient(circle at center, transparent 46%, #000 47%, #000 52%, transparent 53%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h1 .accent { color: var(--red); }
.hero p.lead { font-size: 1.2rem; color: var(--gray); margin: 20px 0 28px; max-width: 34em; }
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rating { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; color: var(--gray); }
.stars { color: var(--red); font-size: 1.05rem; letter-spacing: 2px; }
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(300px, 80%); border-radius: 42px; border: 10px solid var(--ink);
  box-shadow: 0 30px 60px rgba(0,0,0,.18); overflow: hidden; background: #fff;
}
.phone img { width: 100%; }
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--gray-light); }
.trustbar .wrap {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 18px; text-align: center;
}
.trustbar div { flex: 1 1 120px; }
.trustbar strong { display: block; font-size: 1.25rem; letter-spacing: -.01em; }
.trustbar span { font-size: .82rem; color: var(--gray); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--gray-light); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; }
.section-head p { color: var(--gray); font-size: 1.05rem; }

/* Screenshots */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 12px 4px 24px; scroll-snap-type: x mandatory; }
.shots figure { flex: 0 0 236px; scroll-snap-align: center; }
.shots img {
  border-radius: 28px; border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}
.shots figcaption { font-size: .85rem; color: var(--gray); text-align: center; margin-top: 12px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
section.alt .step { box-shadow: 0 6px 18px rgba(0,0,0,.05); border: none; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: .95rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; }
.feature svg { flex: 0 0 22px; margin-top: 4px; }
.feature h3 { font-size: 1rem; }
.feature p { color: var(--gray); font-size: .9rem; }

/* Guides grid */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.guide-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease;
}
.guide-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.guide-card .tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
.guide-card h3 { font-size: 1.08rem; margin: 8px 0 6px; line-height: 1.35; }
.guide-card p { font-size: .9rem; color: var(--gray); }
.guide-card .more { display: inline-block; margin-top: 12px; font-size: .9rem; font-weight: 600; color: var(--red); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--red); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 22px; color: var(--gray); }
.faq .answer a.learn { font-weight: 600; white-space: nowrap; }

/* CTA */
.cta { text-align: center; background: var(--ink); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.7); max-width: 36em; margin: 0 auto 30px; }
.cta .price { font-size: .95rem; color: rgba(255,255,255,.6); margin-top: 18px; }
.cta-icon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* Footer */
footer { background: #0d0d0f; color: #9a9aa1; font-size: .9rem; padding: 56px 0 32px; }
footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
footer a { color: #9a9aa1; }
footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #2a2a2e; padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Guías (artículos) ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; }
.breadcrumbs { font-size: .85rem; color: var(--gray); margin-bottom: 20px; }
.breadcrumbs a { color: var(--gray); }
.article h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 18px; }
.article .meta { color: var(--gray); font-size: .9rem; margin-bottom: 28px; }
.answer-box {
  background: var(--gray-light); border-left: 4px solid var(--red); border-radius: 0 14px 14px 0;
  padding: 20px 24px; margin: 0 0 32px; font-size: 1.05rem;
}
.article h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.article h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article p, .article li { color: #3a3a3c; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px 24px; }
.article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: .95rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.article th { background: var(--gray-light); font-weight: 600; }
.article .shot-inline { margin: 26px auto; max-width: 300px; }
.article .shot-inline img { border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.article .shot-inline figcaption { text-align: center; font-size: .85rem; color: var(--gray); margin-top: 10px; }
.inline-cta {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 30px; margin: 40px 0; text-align: center;
}
.inline-cta h3 { color: #fff; font-size: 1.3rem; margin: 0 0 8px; }
.inline-cta p { color: rgba(255,255,255,.7); margin-bottom: 18px; }
.related { background: var(--gray-light); border-radius: var(--radius); padding: 26px; margin-top: 44px; }
.related h2 { font-size: 1.2rem; margin: 0 0 14px; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 10px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
