/* ==========================================================================
   COTIZADOR PRO — styles.css
   Identidad propia, independiente de Círculo+.
   Paleta: esmeralda profundo + dorado UF sobre fondo menta pálido.
   ========================================================================== */

:root {
  --bg: #f3f6f5;
  --ink: #122421;
  --ink-soft: #4b5f5a;
  --teal: #0b5d50;
  --teal-dark: #08453b;
  --gold: #e7a23c;
  --gold-soft: #fdf3e2;
  --line: #d8e2de;
  --card: #ffffff;
  --error: #b3362c;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: 0.95rem; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---- Navbar ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 246, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.brand-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--gold); transform: rotate(45deg); }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  padding: 12px 22px; transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(11, 93, 80, 0.25); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(231, 162, 60, 0.35); }
.btn-gold:hover { filter: brightness(0.96); }
.btn-ghost { background: transparent; color: var(--teal); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-block { width: 100%; }

/* ---- Chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
}
.chip-trial { background: var(--gold-soft); color: #8a5a12; border: 1px solid #f0d9ae; }
.chip-ok { background: #e3f2ec; color: var(--teal-dark); border: 1px solid #bcded1; }
.chip-off { background: #fbe9e7; color: var(--error); border: 1px solid #f2c8c3; }

/* ---- Tarjetas ---- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}

/* ---- Formularios ---- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 93, 80, 0.12); }
.form-error { color: var(--error); font-size: 0.85rem; font-weight: 600; min-height: 1.2em; margin-top: 8px; }

/* ---- Precio en UF (elemento firma) ---- */
.precio-uf {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 2rem; letter-spacing: -0.03em; color: var(--teal-dark);
  font-variant-numeric: tabular-nums;
}
.precio-uf small { font-size: 0.9rem; font-weight: 700; color: var(--gold); margin-left: 4px; }
.precio-clp { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }

/* ---- Tabs auth ---- */
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.tabs button { border: none; background: transparent; padding: 10px; border-radius: 8px; font-weight: 700; color: var(--ink-soft); }
.tabs button.active { background: #fff; color: var(--teal-dark); box-shadow: 0 2px 8px rgba(18, 36, 33, 0.08); }

/* ---- Paywall ---- */
.paywall-overlay {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(18, 36, 33, 0.55); backdrop-filter: blur(6px); padding: 20px;
}
.paywall {
  background: #fff; border-radius: 18px; max-width: 620px; width: 100%; padding: 36px;
  max-height: 92vh; overflow-y: auto;
}
.plan-pago {
  border: 2px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 12px; transition: border-color 0.15s ease;
}
.plan-pago:hover { border-color: var(--gold); }
.plan-pago.destacado { border-color: var(--gold); background: var(--gold-soft); position: relative; }
.plan-pago .etiqueta {
  position: absolute; top: -11px; right: 16px; background: var(--gold); color: var(--ink);
  font-size: 0.7rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---- Cotizador: layout ---- */
.cotizador-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .cotizador-grid { grid-template-columns: 1fr; } }

.filtros { position: sticky; top: 84px; }
@media (max-width: 900px) { .filtros { position: static; } }

.carga-badge {
  display: inline-flex; align-items: center; gap: 6px; background: #e3f2ec; color: var(--teal-dark);
  border: 1px solid #bcded1; border-radius: 999px; padding: 4px 10px; font-size: 0.8rem; font-weight: 700;
}
.carga-badge button { border: none; background: transparent; color: var(--teal-dark); font-weight: 800; font-size: 0.9rem; line-height: 1; padding: 0 2px; }

/* ---- Tarjeta de plan ---- */
.plan-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px;
}
@media (max-width: 640px) { .plan-card { grid-template-columns: 1fr; } }
.plan-card .isapre-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--teal); background: #e3f2ec; border-radius: 6px; padding: 3px 8px; margin-bottom: 8px;
}
.plan-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.plan-card .codigo { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.cobertura { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.cobertura div { font-size: 0.82rem; color: var(--ink-soft); }
.cobertura strong { display: block; color: var(--ink); font-size: 0.92rem; }

/* ---- Paginación ---- */
.paginacion { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; }
.paginacion button {
  min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; color: var(--ink-soft);
}
.paginacion button.activa { background: var(--teal); color: #fff; border-color: var(--teal); }
.paginacion button:hover:not(.activa) { border-color: var(--teal); color: var(--teal); }

/* ---- Landing ---- */
.hero { padding: 72px 0 56px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 48px; } }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 1.08rem; color: var(--ink-soft); margin: 18px 0 28px; max-width: 46ch; }
.hero-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 24px 0 72px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.features .card h3 { font-size: 1rem; margin-bottom: 6px; }
.features .card p { font-size: 0.88rem; color: var(--ink-soft); }
.features .ico {
  width: 40px; height: 40px; border-radius: 10px; background: var(--gold-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 14px;
}

.demo-card { box-shadow: 0 24px 60px rgba(11, 93, 80, 0.14); }
.demo-card .mini-bar { height: 8px; border-radius: 4px; background: var(--bg); margin: 6px 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.82rem; color: var(--ink-soft); }
