/* Kommuna — sitio informativo (2026-10). Blanco y negro, sin stock:
   el producto es la imagen. Hoja autocontenida; styles.css queda sólo
   para páginas heredadas. */

:root {
  --ink: #0a0a0a;
  --ink-2: #3d3d3d;
  --muted: #6e6e6e;
  --line: #e6e6e6;
  --soft: #f5f5f4;
  --bg: #ffffff;
  --radius: 14px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }

/* ── Navegación ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 24px; height: 22px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { margin-left: 8px; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ── Botones ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 inherit; font-family: inherit; text-decoration: none;
  border: 1px solid var(--ink); cursor: pointer; transition: transform .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262626; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }

/* ── Tipografía ───────────────────────────────────────────── */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.05; font-weight: 700; }
h1 { font-size: clamp(44px, 7.4vw, 88px); }
h2 { font-size: clamp(32px, 4.6vw, 54px); }
h3 { font-size: 19px; letter-spacing: -.015em; line-height: 1.25; font-weight: 650; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 620px; margin: 22px 0 0; }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head p { color: var(--ink-2); font-size: 18px; margin: 16px 0 0; }

section { padding: clamp(72px, 10vw, 128px) 0; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: 0; overflow: hidden; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.hero .facts li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); margin: 0 9px 2px 0; vertical-align: middle; }

.stage { position: relative; margin-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(56px, 8vw, 96px); }
.browser {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 30px 80px -30px rgba(0,0,0,.28);
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fafafa; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcdcdc; }
.browser-bar span { margin-left: 14px; font-size: 12.5px; color: var(--muted); }
.phone {
  width: 100%; border-radius: 34px; overflow: hidden; background: #000; padding: 7px;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,.45);
}
.phone img { border-radius: 28px; }
.stage .phone { position: absolute; right: clamp(-8px, -1vw, 0px); bottom: clamp(28px, 5vw, 64px); width: clamp(120px, 19%, 230px); }
@media (max-width: 640px) { .stage .phone { width: 34%; right: 0; bottom: 18px; } }

/* ── Franja ───────────────────────────────────────────────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.strip strong { display: block; font-size: 26px; letter-spacing: -.03em; }
.strip span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .strip ul { grid-template-columns: repeat(2, 1fr); gap: 22px; } }

/* ── Beneficios ───────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 32px 30px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.cell .ico svg { width: 20px; height: 20px; }
.cell p { color: var(--ink-2); margin: 10px 0 0; font-size: 15.5px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* ── Administración (pestañas) ────────────────────────────── */
.dark { background: var(--ink); color: #fff; }
.dark .eyebrow { color: #9b9b9b; }
.dark .sec-head p { color: #c4c4c4; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid #333; background: transparent;
  color: #c4c4c4; font: 500 14px/1 inherit; font-family: inherit; cursor: pointer;
}
.tab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.tab-caption { color: #c4c4c4; font-size: 15.5px; margin: 0 0 22px; min-height: 1.6em; }
.dark .browser { border-color: #2a2a2a; box-shadow: 0 30px 90px -30px rgba(0,0,0,.9); }
.dark .browser-bar { background: #161616; border-color: #2a2a2a; }
.dark .browser-bar i { background: #3a3a3a; }
.dark .browser-bar span { color: #8a8a8a; }

/* ── Residentes ───────────────────────────────────────────── */
.phones { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 2vw, 22px); align-items: start; }
.phones figure { margin: 0; }
.phones figure:nth-child(even) { margin-top: 40px; }
.phones figcaption { font-size: 14px; color: var(--ink-2); margin-top: 14px; text-align: center; }
@media (max-width: 860px) {
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .phones figure { flex: 0 0 56%; scroll-snap-align: center; }
  .phones figure:nth-child(even) { margin-top: 0; }
}

/* ── Precio ───────────────────────────────────────────────── */
.price { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.price-card { border: 1px solid var(--ink); border-radius: 20px; padding: clamp(28px, 4vw, 44px); }
.amount { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.amount strong { font-size: clamp(64px, 9vw, 104px); letter-spacing: -.05em; line-height: 1; }
.amount span { color: var(--ink-2); font-size: 18px; }
.calc { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.calc label { font-size: 14px; color: var(--ink-2); display: block; margin-bottom: 10px; }
.calc-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.calc input[type=range] { flex: 1 1 200px; accent-color: var(--ink); }
.calc output { font-size: 15px; }
.calc output b { font-size: 22px; letter-spacing: -.02em; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; font-size: 16px; }
.checks li:first-child { padding-top: 0; }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }

/* ── Demo ─────────────────────────────────────────────────── */
.soft { background: var(--soft); }
.demos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.demo { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.demo .tag { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.demo h3 { margin-top: 8px; font-size: 22px; }
.demo > p { color: var(--ink-2); margin: 8px 0 20px; font-size: 15.5px; }
.cred { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.cred dt { color: var(--muted); font-size: 13.5px; min-width: 84px; }
.cred dd { margin: 0; font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14.5px; overflow-wrap: anywhere; }
.copy { border: 0; background: none; padding: 6px; cursor: pointer; color: var(--muted); border-radius: 8px; }
.copy:hover { color: var(--ink); background: var(--soft); }
.copy svg { width: 17px; height: 17px; display: block; }
.demo .btn { margin-top: auto; align-self: flex-start; }
.demo .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.note { font-size: 14px; color: var(--muted); margin: 22px 0 0; }
@media (max-width: 760px) { .demos { grid-template-columns: 1fr; } }

/* ── Contacto ─────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact aside p { color: var(--ink-2); font-size: 17px; margin: 18px 0 0; }
.contact aside a { font-weight: 600; }
form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form .full { grid-column: 1 / -1; }
form label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
form input, form select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px;
  font: 400 16px/1 inherit; font-family: inherit; color: var(--ink); background: #fff; appearance: none;
}
form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a0a0a' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
form input:focus, form select:focus { outline: none; border-color: var(--ink); }
form .btn { margin-top: 20px; width: 100%; }
.form-msg { margin: 14px 0 0; font-size: 15px; }
.form-msg.ok { padding: 16px; border: 1px solid var(--ink); border-radius: 12px; }
.form-msg.err { color: #b42318; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { form .fields { grid-template-columns: 1fr; } }

/* ── Pie ──────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ── Páginas legales (privacidad, términos, eliminar cuenta) ─ */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); }
.legal .updated { color: var(--muted); font-size: 14px; margin: 12px 0 40px; }
.legal h2 { font-size: 22px; letter-spacing: -.02em; margin: 44px 0 12px; }
.legal h3 { font-size: 16px; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--soft); font-weight: 600; }
.legal .callout { background: var(--soft); border-radius: 12px; padding: 18px 20px; margin: 26px 0; font-size: 15px; }

/* ── Movimiento ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
