/* klug.cl — estilos compartidos */

:root {
  --bg: #050505;
  --bg-raised: #111113;
  --bg-card: #16161a;
  --border: #262629;
  --text: #f4f4f5;
  --text-secondary: #9a9aa2;
  --text-tertiary: #6b6b72;
  --accent: #f7941d;
  --accent-dim: #c97710;
  --max-width: 1080px;
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

.nav {
  padding: 28px 0;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #0a0a0a;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 64px 0 88px;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.lede {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto;
}

/* Product card (home) */

.products {
  padding: 0 0 96px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.product-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  flex-shrink: 0;
}

.product-info h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.product-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.product-arrow {
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--text-tertiary);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer a:hover {
  color: var(--text-secondary);
}

/* ---- UF Calc product page ---- */

.product-hero {
  padding: 56px 0 0;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.app-badge img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
}

.app-badge-name {
  font-size: 1.4rem;
  font-weight: 800;
}

.app-badge-tag {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.product-hero h1 {
  text-align: left;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
}

.product-hero .lede {
  text-align: left;
  margin: 0;
}

.hero-shot {
  justify-self: center;
  text-align: center;
}

/* Mini simulador interactivo de la calculadora */

.phone-mock {
  width: 280px;
  background: #000;
  border-radius: 42px;
  padding: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.phone-screen {
  background: #050505;
  border-radius: 30px;
  padding: 18px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-topbar {
  text-align: center;
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  padding: 4px 0 8px;
}

.app-gear {
  position: absolute;
  right: 0;
  top: 2px;
  color: var(--text-secondary);
}

.app-display {
  text-align: right;
  padding: 4px 4px 12px;
}

.app-op {
  font-size: 0.85rem;
  color: var(--text-secondary);
  height: 16px;
}

.app-value {
  font-size: 2.1rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.app-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.app-key {
  border: none;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.app-key:hover:not(:disabled) {
  filter: brightness(1.15);
}

.app-key:active:not(:disabled) {
  transform: scale(0.94);
}

.app-key:disabled {
  cursor: default;
  opacity: 0.5;
}

.app-key-blue { background: #0a84ff; }
.app-key-blue.is-active { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) inset; }
.app-key-dark { background: #3a3a3c; }
.app-key-mid { background: #2c2c2e; }
.app-key-orange { background: var(--accent); }

.hero-shot-hint {
  margin: 16px 0 0;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.hero-shot-hint strong {
  color: var(--accent);
}

/* Indicadores al instante */

.live-indicators {
  padding: 40px 0 0;
}

.live-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
}

.live-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.live-date {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.live-grid {
  display: flex;
  flex-wrap: nowrap;
}

.live-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-right: 1px solid var(--border);
}

.live-item:last-child {
  border-right: none;
}

.live-label {
  font-size: clamp(0.62rem, 2.4vw, 0.76rem);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.live-value {
  font-size: clamp(0.8rem, 3.6vw, 1.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* App Store CTA — se activa cuando la app esté publicada */

.store-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #3a3a3c;
  transition: opacity 0.15s ease;
}

.store-badge:hover {
  opacity: 0.85;
}

.store-badge-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 600;
  font-size: 1.15rem;
}

.store-badge-text small {
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.coming-soon {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.coming-soon .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Features */

.features {
  padding: 96px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 26px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(247, 148, 29, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* Showcase (segunda captura) */

.showcase {
  padding: 0 0 96px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
}

.showcase-grid img {
  width: 260px;
  border-radius: 28px;
  border: 1px solid var(--border);
  justify-self: center;
}

.showcase-text h2 {
  font-size: 1.7rem;
  margin: 0 0 14px;
}

.showcase-text p {
  color: var(--text-secondary);
  margin: 0;
}

/* Pricing */

.pricing {
  padding: 0 0 96px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--bg-card);
}

.plan.pro {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(247, 148, 29, 0.08), transparent 60%);
}

.plan-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.plan-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.plan li {
  padding: 7px 0;
  display: flex;
  gap: 10px;
}

.plan li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

/* Páginas legales (política de privacidad, etc.) */

.legal {
  padding: 48px 0 96px;
}

.legal-wrap {
  max-width: 680px;
}

.legal h1 {
  text-align: left;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 1.1rem;
  margin: 36px 0 12px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal p {
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
}

@media (max-width: 760px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .product-hero h1,
  .product-hero .lede {
    text-align: center;
  }
  .app-badge {
    justify-content: center;
  }
  .hero-shot {
    order: -1;
  }
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    text-align: center;
  }
  .showcase-text {
    order: 2;
  }
  .product-card {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }
  .product-arrow {
    display: none;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
}
