/* ============ Pablo Tech — estilos ============ */
:root {
  --bg: #0b0f14;
  --bg-2: #11171f;
  --card: #151c26;
  --line: #233041;
  --text: #e8edf3;
  --muted: #9aa8b8;
  --accent: #ff7a1a;      /* atardecer patagónico */
  --accent-2: #ffb347;
  --cool: #38bdf8;        /* río / cordillera */
  --ok: #34d399;
  --radius: 16px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 92vw); margin-inline: auto; }
section { padding: 88px 0; }
.eyebrow {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600; margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-size: 1rem; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a0d02; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-wa { background: #25d366; color: #062b14; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,20,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.logo span { color: var(--accent); }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav ul a:hover { color: var(--text); }
.nav .btn { padding: 9px 16px; font-size: .9rem; }
@media (max-width: 860px) { .nav ul { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(255,122,26,.22), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(56,189,248,.12), transparent 62%);
  pointer-events: none;
}
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.chip {
  font-size: .82rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--bg-2);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--accent-2); }
.stat small { color: var(--muted); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g3, .g4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #33475f; transform: translateY(-2px); }
.card .ico { font-size: 1.6rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .from { font-size: .85rem; color: var(--accent-2); font-weight: 600; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { margin-bottom: 36px; }

/* ---------- portfolio ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filters button {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .88rem;
}
.filters button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.proj { display: flex; flex-direction: column; }
.proj .tag { font-size: .75rem; color: var(--cool); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.proj ul { margin: 8px 0 14px; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.proj .stack { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.proj .stack span { font-size: .72rem; padding: 3px 8px; border-radius: 6px; background: #0e141c; border: 1px solid var(--line); color: var(--muted); }
.proj a.ver { font-size: .88rem; color: var(--accent-2); margin-top: 12px; text-decoration: none; }

/* ---------- proceso ---------- */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 54px; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: 18px; left: 24px; font-family: var(--display);
  font-weight: 700; color: var(--accent); font-size: 1.1rem;
}

/* ---------- cotizador ---------- */
.quote { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 960px) { .quote { grid-template-columns: 1fr; } }
.q-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.q-step { margin-bottom: 26px; }
.q-step > label, .q-step > .q-title { display: block; font-weight: 600; margin-bottom: 10px; }
.q-step .hint { color: var(--muted); font-size: .85rem; font-weight: 400; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
  display: block; height: 100%; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: #0f151d; transition: border-color .15s, background .15s;
}
.opt label b { display: block; font-size: .95rem; }
.opt label small { color: var(--muted); font-size: .8rem; }
.opt input:checked + label { border-color: var(--accent); background: rgba(255,122,26,.08); }
.opt input:focus-visible + label { outline: 2px solid var(--cool); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); }
.range-row output { min-width: 34px; text-align: right; font-weight: 700; color: var(--accent-2); }
.q-result { position: sticky; top: 86px; }
.q-result .price { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.1; }
.q-result .price-ars { color: var(--muted); margin-top: 4px; }
.q-result .monthly { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #0f151d; border: 1px dashed var(--line); font-size: .92rem; }
.q-result .breakdown { list-style: none; padding: 0; margin: 18px 0; font-size: .9rem; color: var(--muted); }
.q-result .breakdown li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.q-result .breakdown li span:last-child { color: var(--text); white-space: nowrap; }
.q-result .time { font-size: .92rem; margin-bottom: 18px; }
.q-result .disclaimer { font-size: .78rem; color: var(--muted); margin-top: 14px; }
.q-result .btn { width: 100%; justify-content: center; }
.q-field { display: grid; gap: 8px; margin-bottom: 12px; }
.q-field input, .q-field select {
  background: #0f151d; border: 1px solid var(--line); color: var(--text);
  padding: 11px 12px; border-radius: 10px; font: inherit;
}

/* ---------- zonas ---------- */
.zones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.zones span { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; }

/* ---------- faq ---------- */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- contacto / footer ---------- */
.contact { text-align: center; }
.contact .cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  text-decoration: none; font-size: 1.6rem;
}

/* ---------- asistente IA ---------- */
.ai-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center;
  background: linear-gradient(135deg, rgba(255,122,26,.14), rgba(56,189,248,.08)); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px; }
.ai-cta .chat-demo { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: .9rem; }
.ai-cta .chat-demo p { margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; max-width: 92%; }
.ai-cta .chat-demo .u { background: #1d2a3a; margin-left: auto; }
.ai-cta .chat-demo .b { background: var(--card); border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 860px) { .ai-cta { grid-template-columns: 1fr; padding: 24px; } }

.ai-fab { position: fixed; right: 86px; bottom: 22px; z-index: 61; height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255,179,71,.5); background: #1a1f27; color: var(--text); font: 600 .95rem var(--font);
  cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.4); display: inline-flex; align-items: center; gap: 8px; }
.ai-fab:hover, .ai-fab.open { border-color: var(--accent); }
@media (max-width: 560px) { .ai-fab span { display: none; } .ai-fab { width: 48px; padding: 0; justify-content: center; font-size: 1.2rem; } }

.ai-panel { position: fixed; right: 18px; bottom: 84px; z-index: 70; width: min(400px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.55); overflow: hidden; padding: 0; }
.ai-panel[hidden] { display: none; }
@media (max-width: 560px) { .ai-panel { right: 12px; bottom: 80px; height: calc(100vh - 100px); } }
.ai-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,122,26,.16), transparent); }
.ai-head small { display: block; color: var(--muted); font-size: .78rem; }
.ai-head-btns button { background: none; border: 0; color: var(--muted); font-size: 1.05rem; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.ai-head-btns button:hover { color: var(--text); background: var(--card); }
.ai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; }
.ai-msg p { margin: 0 0 6px; } .ai-msg p:last-child { margin: 0; }
.ai-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.ai-bot { background: var(--card); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-user { background: #234063; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-typing { color: var(--muted); font-style: italic; animation: ai-pulse 1.2s infinite; }
.ai-error { border-color: #6b3a1a; }
.ai-error .btn { margin-top: 8px; padding: 8px 14px; font-size: .85rem; }
@keyframes ai-pulse { 50% { opacity: .45; } }
.ai-sug { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.ai-sug button { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: .8rem; cursor: pointer; }
.ai-sug button:hover { border-color: var(--accent); color: var(--text); }
.ai-wa { padding: 0 16px 10px; } .ai-wa .btn { width: 100%; justify-content: center; font-size: .9rem; }
.ai-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ai-form textarea { flex: 1; resize: none; background: #0f151d; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: .92rem; max-height: 120px; }
.ai-form textarea:focus { outline: none; border-color: var(--accent); }
.ai-form .btn { padding: 0 16px; border-radius: 12px; }
.ai-form .btn:disabled { opacity: .5; cursor: wait; transform: none; }
.ai-legal { margin: 0; padding: 0 14px 10px; font-size: .7rem; color: var(--muted); text-align: center; }
.ai-ok { margin: 0 16px 10px; padding: 10px 12px; border-radius: 12px; font-size: .86rem; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.4); }
.ai-ok[hidden] { display: none; }
.ai-legal a { color: var(--accent-2); cursor: pointer; }
