/* Tinto Labs — hoja de estilos única, sin fuentes ni recursos de terceros. */

:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-2: #f4ede4;
  --text: #1f1712;
  --muted: #6e6259;
  --line: #e8ddd1;
  --accent: #8a3b17;
  --accent-hover: #6f2e11;
  --accent-ink: #ffffff;
  --accent-soft: #f5e6da;
  --shadow: 0 1px 2px rgb(31 23 18 / 6%), 0 8px 24px rgb(31 23 18 / 6%);
  --radius: 18px;
  --maxw: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120d0a;
    --surface: #1c1510;
    --surface-2: #241b15;
    --text: #f5eee8;
    --muted: #b3a69b;
    --line: #33271f;
    --accent: #e0915e;
    --accent-hover: #eba77a;
    --accent-ink: #1a0f09;
    --accent-soft: #2e2018;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Cabecera */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; }

/* Tipografía */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 44em; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Secciones */
section { padding: 72px 0; }
.hero { padding: 88px 0 56px; }
.hero .lead { margin-bottom: 30px; }
.section-head { max-width: 720px; margin-bottom: 36px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 16px; border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Tarjetas de apps */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 1020px) { .app-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .app-grid { grid-template-columns: 1fr; } }
.app-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); color: var(--text); transition: transform 0.15s ease, border-color 0.15s ease; }
.app-card:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
.app-card img { width: 72px; height: 72px; }
.app-card h3 { margin: 4px 0 0; font-size: 1.3rem; }
.app-card p { color: var(--muted); margin: 0; flex: 1; }
.app-card .price { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .app-card { transition: none; } .app-card:hover { transform: none; } }

/* Paquete */
.bundle { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-top: 28px; }
.bundle h3 { font-size: 1.5rem; margin-bottom: 6px; }
.bundle p { margin: 0; color: var(--muted); }
.bundle .icons { display: flex; margin-bottom: 14px; }
.bundle .icons img { width: 40px; height: 40px; margin-right: -6px; }
.price-tag { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.price-tag s { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 8px; }
@media (max-width: 720px) { .bundle { grid-template-columns: 1fr; } }

/* Principios */
.principles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 32px; }
.principle svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; }
.principle h3 { margin-bottom: 6px; }
.principle p { color: var(--muted); margin: 0; font-size: 16px; }

.about { border-top: 1px solid var(--line); }
.about .container { max-width: 760px; }

/* Página de app */
.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 72px 0 40px; }
.app-hero img { width: 148px; height: 148px; }
.app-hero h1 { margin-bottom: 8px; }
.app-hero .tagline { font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 600; margin-bottom: 14px; }
.app-hero .lead { margin-bottom: 24px; }
@media (max-width: 720px) { .app-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 48px; } .app-hero img { width: 112px; height: 112px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.chips li { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surface); }
.buy-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }

.panel { background: var(--surface-2); border-radius: var(--radius); padding: 28px 32px; }
.panel h2 { font-size: 1.4rem; }
.panel p:last-child { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* Preguntas frecuentes */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3em; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Textos legales */
.legal { max-width: 760px; padding: 64px 20px 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h3 { margin-top: 1.5em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 0.4em; }
.legal .updated { color: var(--muted); font-size: 15px; }
.legal .summary { background: var(--accent-soft); border-radius: 14px; padding: 18px 22px; margin: 24px 0; }
.legal .summary p { margin: 0; }
.legal code { font-size: 0.92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card .email { font-size: 1.35rem; font-weight: 700; }

/* Utilidades */
.mt-12 { margin-top: 12px; }
.pt-0 { padding-top: 0; }
.pt-24 { padding-top: 24px; }
.pt-32 { padding-top: 32px; }
.pb-24 { padding-bottom: 24px; }
.h-sm { font-size: 1.3rem; }
kbd { font: 600 0.85em -apple-system, BlinkMacSystemFont, sans-serif; background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .brand { color: var(--text); }
@media (max-width: 720px) { .site-footer .container { grid-template-columns: 1fr 1fr; } .site-footer .about-col { grid-column: 1 / -1; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav .hide-sm { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 40px; }
  .panel { padding: 22px; }
}
