/* El Paletero — sitio web. Sin librerías ni fuentes externas: no se contacta a ningún tercero. */
:root {
  --green: #05805c;
  --green-dark: #0b3d2e;
  --ink: #14231c;
  --muted: #4a5d54;
  --bg: #f6f8f7;
  --card: #ffffff;
  --line: #dde7e2;
  --mint: #d8f0e5;
  --accent: #f4b63d;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 61, 46, .12);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --green: #3fcf9f;
    --ink: #e8f1ec;
    --muted: #a9bdb3;
    --bg: #0d1713;
    --card: #14221c;
    --line: #243a31;
    --mint: #17382c;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { height: 36px; width: auto; }
@media (prefers-color-scheme: dark) { .brand img { background: #fff; border-radius: 10px; padding: 2px 8px; } }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--green); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--green); color: #fff !important; font-weight: 700; text-decoration: none !important; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(5, 128, 92, .35); }
.btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .55); }
.btn.small { padding: 8px 16px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .btn { color: #07261c !important; } .btn.ghost { color: #fff !important; } }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Portada */
.hero { background: linear-gradient(135deg, #05805c 0%, #0b3d2e 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.badge { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; }
.hero p.lead { font-size: 20px; opacity: .92; margin: 0 0 28px; max-width: 34ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 18px; font-size: 14px; opacity: .8; }
.hero .btn { background: #fff; color: #0b3d2e !important; }
.hero .btn.ghost { background: transparent; color: #fff !important; }
.hero .shot { justify-self: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; } .hero .shot { order: -1; } }

/* Teléfono con captura */
.phone { width: min(260px, 70vw); border-radius: 34px; padding: 9px; background: #101916; box-shadow: var(--shadow); }
.phone img { border-radius: 26px; width: 100%; }
.phone.tilt { transform: rotate(3deg); }

/* Secciones */
section { padding: 72px 0; }
section.alt { background: color-mix(in srgb, var(--card) 70%, var(--bg)); border-block: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 14px; }
.kicker { color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0 0 10px; }
.sub { color: var(--muted); max-width: 62ch; margin: 0 0 36px; font-size: 18px; }
.grid { display: grid; gap: 18px; }
.grid.f { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.f { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.f { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.ico { width: 46px; height: 46px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; font-size: 24px; }

/* Pasos */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .step::before { color: #07261c; } }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* Capturas */
.gallery { display: flex; justify-content: safe center; gap: 22px; overflow-x: auto; padding: 8px 20px 28px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; width: 240px; }
.gallery figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.gallery .phone { width: 240px; }

/* Dos columnas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split .shot { justify-self: center; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 900; font-size: 13px; display: grid; place-items: center; margin-top: 3px; }
.pill { display: inline-block; background: var(--mint); color: var(--green); font-weight: 800; border-radius: 999px; padding: 4px 12px; font-size: 13px; margin-bottom: 12px; }

/* Preguntas */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; color: var(--green); line-height: 1; }
details[open] summary::after { content: "–"; }
details p, details ul, details ol { color: var(--muted); margin: 0 0 16px; }

/* CTA final */
.final { background: linear-gradient(135deg, #05805c, #0b3d2e); color: #fff; text-align: center; border-radius: 28px; padding: 56px 24px; }
.final h2 { color: #fff; }
.final p { opacity: .9; max-width: 48ch; margin: 0 auto 26px; }
.final .btn { background: #fff; color: #0b3d2e !important; }
.final .btn.ghost { background: transparent; color: #fff !important; }

/* Pie */
footer { padding: 44px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer a { color: var(--ink); }
footer .legal { margin-top: 22px; font-size: 13px; max-width: 80ch; }

/* Páginas de texto (soporte, privacidad) */
.doc { padding: 48px 0 24px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.callout { background: var(--mint); border-radius: 14px; padding: 18px 20px; margin: 20px 0; }
.callout p { margin: 0; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 22px 0 8px; }
.contact strong { display: block; font-size: 18px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; margin: 0 0 8px; }
.toc ol { margin: 6px 0 0; columns: 2; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
