/* ============================================
   kny · landing
   Motivo: la "celda seleccionada" de una planilla
   (borde cobalto + cuadradito de arrastre abajo a la derecha)
   ============================================ */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque.woff2') format('woff2-variations'),
       url('../fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --paper: #F4F6FA;
  --white: #FFFFFF;
  --ink: #12141C;
  --ink-2: #2A2E3B;
  --soft: #3B4152;
  --muted: #5A6172;
  --line: #D7DCE6;
  --line-2: #E6EAF2;
  --head: #F0F2F7;
  --cobalt: #2747F5;
  --cobalt-hover: #1A33C4;
  --cell: #E3E8FF;
  --hi: #FFE15A;
  --hi-soft: #FFF4BF;
  --hi-row: #FFFBE6;

  --font-head: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a { color: var(--cobalt); }
a:hover { color: var(--cobalt-hover); }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-head);
  margin: 0;
  text-wrap: balance;
}
h1 { font-weight: 800; font-size: clamp(46px, 6.2vw, 76px); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-weight: 800; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-weight: 700; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  border-radius: 10px; border: 1.5px solid transparent;
  font: 600 17px/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: 0 20px; border-radius: 8px; font-size: 16px; }
.btn-lg { min-height: 54px; padding: 0 28px; }
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-hover); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--hi); color: var(--ink); }

/* ── Marca: la celda seleccionada ── */
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  position: relative; width: 30px; height: 30px;
  border: 2px solid var(--cobalt); background: var(--white);
}
.brand-mark::after {
  content: ''; position: absolute; right: -5px; bottom: -5px;
  width: 8px; height: 8px; background: var(--cobalt); border: 2px solid var(--paper);
}
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
footer .brand-name { font-size: inherit; color: var(--ink); }

/* ── Nav ── */
.nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 16px; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--cobalt); }

/* ── Hero ── */
.grid-bg {
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 120px 32px;
}
.hero { padding: 80px 0 96px; }
.hero-inner { display: flex; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.h1-cell {
  position: relative; display: inline-block; padding: 0 .12em;
  background: var(--hi-soft); outline: 3px solid var(--cobalt); outline-offset: -3px;
}
.h1-cell::after {
  content: ''; position: absolute; right: -6px; bottom: -6px;
  width: 10px; height: 10px; background: var(--cobalt); border: 3px solid var(--paper);
}
.lead { margin: 28px 0 0; max-width: 500px; font-size: 20px; color: var(--soft); }
.actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { flex: 1 1 560px; min-width: 0; position: relative; padding-bottom: 128px; }

.sheet {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(18, 20, 28, .25);
  font-size: 14px;
}
.sheet-fx { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.fx { font-weight: 600; font-style: italic; }
.fx-value { flex: 1; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }

.sheet-grid { display: grid; grid-template-columns: 36px 1.5fr .8fr 1.3fr .9fr; }
.sheet-grid > span { padding: 9px 10px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-grid > span:nth-child(5n) { border-right: 0; }
.sheet-grid .h { padding: 6px 10px; background: var(--head); color: var(--muted); text-align: center; border-color: var(--line); }
.sheet-grid .r { padding: 9px 0; background: var(--head); color: var(--muted); text-align: center; border-right-color: var(--line); border-bottom-color: var(--line); }
.sheet-grid .is-active { background: var(--cell); color: var(--cobalt); font-weight: 600; }
.sheet-grid .b { font-weight: 600; }
.sheet-grid .is-selected {
  position: relative; overflow: visible;
  background: var(--hi-soft); outline: 2px solid var(--cobalt); outline-offset: -2px; font-weight: 600;
}
.sheet-grid .is-selected::after {
  content: ''; position: absolute; right: -4px; bottom: -4px;
  width: 8px; height: 8px; background: var(--cobalt); border: 2px solid var(--white);
}
.sheet-tabs { display: flex; gap: 2px; padding-left: 36px; background: var(--head); font-size: 13px; color: var(--muted); }
.sheet-tabs span { padding: 8px 16px; }
.sheet-tabs .is-active { background: var(--white); color: var(--cobalt); font-weight: 600; border-bottom: 2px solid var(--cobalt); }

.hero-note {
  position: absolute; right: 240px; bottom: 44px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--cobalt);
}
.arrow-down { display: none; }

/* Celular con el resultado (con los colores de CordobaHoppers) */
.phone {
  margin: 0; padding: 10px; border-radius: 28px; background: var(--ink);
  box-shadow: 0 24px 48px -16px rgba(18, 20, 28, .45);
}
.hero-visual .phone { position: absolute; right: -8px; bottom: 0; width: 230px; }
.phone-screen {
  border-radius: 20px; overflow: hidden; background: #2a221f; color: #e4deca;
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  text-transform: uppercase; font-size: 10px; letter-spacing: .06em;
}
.mini-event { display: flex; border-radius: 10px; overflow: hidden; background: #352b27; }
.mini-date {
  flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 0; background: #83a783; color: #2a221f; letter-spacing: .1em;
}
.mini-date strong { font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: 0; }
.mini-info { padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-info strong { font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.mini-info span { color: #c4b9a9; }
.mini-info .mini-price { color: #83a783; font-size: 12px; font-weight: 600; }
.mini-btn {
  height: 30px; border-radius: 999px; background: #83a783; color: #2a221f;
  display: flex; align-items: center; justify-content: center; letter-spacing: .1em; font-weight: 600;
}

/* El precio "se escribe" en la celda y aparece en la web */
[data-live-price].is-updating { animation: flash .9s ease-out; }
@keyframes flash {
  0% { background-color: var(--hi); color: var(--ink); }
  100% { background-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  [data-live-price].is-updating { animation: none; }
}

/* ── Ejemplo real ── */
.case { padding: 96px 0; background: var(--ink); color: var(--white); }
.case-inner { display: flex; gap: 64px; align-items: center; }
.case-copy { flex: 1 1 420px; min-width: 0; }
.case-copy p { margin: 20px 0 0; max-width: 460px; font-size: 19px; color: #C9CEDA; }
.ticks { margin: 28px 0 32px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ''; flex: 0 0 10px; height: 10px; background: var(--hi); transform: translateY(-1px); }

.case-shots { flex: 1 1 560px; min-width: 0; position: relative; padding: 0 0 48px; }
.browser { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid #2E3242; background: #1B1E29; }
.browser-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.browser-bar > span:not(.browser-url) { width: 10px; height: 10px; border-radius: 999px; background: #3A3F52; }
.browser-url { margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: var(--ink); color: #9AA1B4; font-size: 13px; }
.phone-shot { position: absolute; right: -16px; bottom: 0; width: 180px; padding: 7px; border-radius: 26px; }
.phone-shot img { border-radius: 20px; }

/* ── Secciones ── */
.section { padding: 104px 0; }
.section-tight { padding-top: 0; }
.section-lead { margin: 16px 0 40px; max-width: 560px; font-size: 19px; color: var(--soft); }

/* Pasos como filas numeradas de planilla */
.rows { margin: 0; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rows li { display: grid; grid-template-columns: 72px 280px 1fr; border-bottom: 1px solid var(--line-2); }
.rows li:last-child { border-bottom: 0; }
.rows li.is-active { background: var(--hi-row); }
.row-n {
  display: flex; align-items: center; justify-content: center;
  background: var(--head); border-right: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--muted);
}
.rows li.is-active .row-n { background: var(--cell); color: var(--cobalt); }
.rows h3 { padding: 28px; font-size: 24px; }
.rows p { margin: 0; padding: 28px; color: var(--soft); }

/* Tabla de pestañas */
.table-wrap { border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; }
.tabs-table { width: 100%; border-collapse: collapse; }
.tabs-table thead tr { background: var(--head); text-align: left; }
.tabs-table thead th { padding: 14px 24px; font-weight: 600; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line); }
.tabs-table thead th:first-child { width: 22%; }
.tabs-table thead th:nth-child(2) { width: 36%; }
.tabs-table tbody th { padding: 22px 24px; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 21px; vertical-align: top; }
.tabs-table td { padding: 22px 24px; color: var(--soft); vertical-align: top; }
.tabs-table tbody tr + tr > * { border-top: 1px solid var(--line-2); }

/* Precios */
.pricing { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 20px; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.plan h3 { font-size: 26px; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-price { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--soft); }
.plan ul li { padding-left: 22px; position: relative; }
.plan ul li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border: 2px solid var(--cobalt); }
.plan .btn { margin-top: auto; width: 100%; }
.plan-featured { position: relative; border: 3px solid var(--cobalt); border-radius: 4px; background: var(--white); }
.plan-featured::after {
  content: ''; position: absolute; right: -8px; bottom: -8px;
  width: 14px; height: 14px; background: var(--cobalt); border: 3px solid var(--white);
}
.badge { padding: 4px 10px; background: var(--hi); font-size: 14px; font-weight: 600; }

/* Preguntas */
.faq { margin-top: 32px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--cobalt); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq summary:hover { color: var(--cobalt); }
.faq p { margin: 12px 0 0; color: var(--soft); max-width: 680px; }

/* Contacto */
.section-contact { padding: 0 0 120px; }
.contact {
  position: relative; padding: 64px; background: var(--hi); border: 3px solid var(--cobalt);
  display: flex; gap: 56px; align-items: center;
}
.contact::after {
  content: ''; position: absolute; right: -9px; bottom: -9px;
  width: 16px; height: 16px; background: var(--cobalt); border: 3px solid var(--paper);
}
.contact-copy { flex: 1 1 380px; min-width: 0; }
.contact-copy h2 { font-size: clamp(38px, 4.8vw, 56px); line-height: 1; }
.contact-copy p { margin: 18px 0 0; max-width: 420px; font-size: 19px; color: var(--ink-2); }
.contact-wa { margin-top: 24px; display: inline-flex; font-weight: 600; color: var(--ink); }
.contact-wa:hover { color: var(--cobalt); }
.contact-form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--ink-2); }
.field input {
  min-height: 50px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: 8px; background: var(--white);
  font: 17px var(--font-body); color: var(--ink);
}
.field input::placeholder { color: var(--muted); }
.field input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 0; border-color: var(--cobalt); }
.field input[aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 1px #B3261E; }
.contact-form .btn { width: 100%; min-height: 56px; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.is-error { color: #8C1D18; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.footer a { color: var(--muted); }

/* ============================================
   Tablet
   ============================================ */
@media (max-width: 1080px) {
  .hero-inner, .case-inner { flex-direction: column; align-items: stretch; }
  .hero-copy, .hero-visual, .case-copy, .case-shots { flex: none; }
  .hero-visual { max-width: 640px; }
  .case-shots { max-width: 680px; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .contact { flex-direction: column; align-items: stretch; padding: 48px; }
  .contact-copy, .contact-form { flex: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .rows li { grid-template-columns: 56px 1fr; }
  .rows h3 { padding: 22px 20px 0; }
  .rows p { grid-column: 2; padding: 6px 20px 22px; }
  .row-n { grid-row: span 2; font-size: 24px; }
}

/* ============================================
   Celular
   ============================================ */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav-inner { min-height: 64px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-mark::after { width: 7px; height: 7px; }
  .nav .brand-name { font-size: 24px; }

  .hero { padding: 40px 0 48px; background-size: 78px 28px; }
  .hero-inner { gap: 28px; }
  .lead { margin-top: 18px; font-size: 17px; }
  .actions { margin-top: 28px; }
  .actions .btn { flex: 1 1 100%; }

  .hero-visual { padding: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .sheet { width: 100%; font-size: 13px; }
  .sheet-fx, .sheet-tabs, .sheet-grid .h, .c-lugar { display: none; }
  .sheet-grid { grid-template-columns: 28px 1.6fr .8fr .9fr; }
  .sheet-grid > span { padding: 8px; }
  .sheet-grid > span:nth-child(5n) { border-right: 1px solid var(--line-2); }
  .sheet-grid .cell:nth-child(5n + 1), .sheet-grid .is-selected { border-right: 0; }
  .sheet-grid .r { padding: 8px 0; }
  .sheet-grid .cell.b { background: var(--head); padding: 5px 8px; }
  .hero-note { position: static; }
  .arrow-right { display: none; }
  .arrow-down { display: block; order: -1; }
  .hero-visual .phone { position: static; width: 250px; }

  .case { padding: 64px 0; }
  .case-inner { gap: 40px; }
  .case-copy p { font-size: 17px; }
  .case-copy .btn { width: 100%; }
  .case-shots { padding-bottom: 36px; }
  .phone-shot { width: 120px; right: -4px; padding: 5px; border-radius: 18px; }
  .phone-shot img { border-radius: 14px; }

  .section { padding: 64px 0; }
  .section-tight { padding-top: 0; }
  .section-lead { font-size: 17px; margin-bottom: 28px; }

  /* La tabla pasa a tarjetas */
  .tabs-table thead { display: none; }
  .tabs-table, .tabs-table tbody, .tabs-table tr, .tabs-table th, .tabs-table td { display: block; width: auto; }
  .tabs-table tbody tr { padding: 18px 20px; }
  .tabs-table tbody tr + tr > * { border-top: 0; }
  .tabs-table tbody tr + tr { border-top: 1px solid var(--line-2); }
  .tabs-table tbody th { padding: 0 0 8px; font-size: 20px; }
  .tabs-table td { padding: 4px 0; }
  .tabs-table td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }

  .plan { padding: 24px; }
  .plan-price { font-size: 34px; }

  .faq summary { font-size: 19px; }

  .section-contact { padding-bottom: 72px; }
  .contact { padding: 32px 20px; gap: 28px; }
  .contact::after { right: -8px; bottom: -8px; width: 14px; height: 14px; }
  .contact-copy p { font-size: 17px; }
}
