/* Misma estética que pandasoftware.com.ar: oscuro, Inter, tarjetas con borde fino y azul de acento. */
:root {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #141416;
  --card-border: #27272a;
  --primary: #ededed;
  --primary-foreground: #09090b;
  --secondary: #27272a;
  --accent: #3b82f6;
  --muted: #a1a1aa;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: #60a5fa; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p, ul { margin: 0; }

/* Encabezado fijo, igual al del sitio principal */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 11, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 4rem;
  display: flex; align-items: center; gap: .5rem;
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--foreground); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--foreground); }
.brand img { border-radius: 8px; }
.crumb { color: var(--muted); font-weight: 500; }
.crumb a { color: var(--foreground); }
.crumb a:hover { color: var(--accent); }
.crumb::before { content: "/"; margin-right: .5rem; color: var(--card-border); }
nav { margin-left: auto; display: flex; gap: 1.25rem; font-size: .9rem; }
nav a { color: var(--muted); font-weight: 500; }
nav a:hover { color: var(--foreground); }

main { max-width: 760px; margin: 0 auto; padding: 0 1.5rem 4rem; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 3.5rem 0 1rem; }
h2 { font-size: 1.4rem; margin: 2.75rem 0 .75rem; }
h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
li { color: var(--muted); margin: .5rem 0 .5rem 1.25rem; }
li strong, p strong { color: var(--foreground); }
main p { color: var(--muted); margin-top: .75rem; }
main p.lead { margin-top: 0; }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem; border: 1px solid var(--card-border); border-radius: 9999px;
  background: var(--card); color: var(--foreground); font-size: .85rem; font-weight: 500;
}
.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.75rem 0; }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 1rem; padding: 1.5rem;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .2); }
.card p { margin: 0; font-size: .95rem; }

.note {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 1rem;
  padding: 1rem 1.25rem; font-size: .92rem;
}

/* Calculadora de alquiler */
.calc { display: grid; gap: .4rem; margin: 2rem 0; }
.calc label { font-weight: 500; font-size: .92rem; margin-top: .9rem; color: var(--foreground); }
.calc input, .calc select {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--card-border); border-radius: .75rem;
  background: var(--card); color: var(--foreground); font: inherit; color-scheme: dark;
}
.calc input:focus, .calc select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.money { display: flex; align-items: center; background: var(--card); border: 1px solid var(--card-border); border-radius: .75rem; padding-left: 1rem; }
.money:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.money span { color: var(--muted); font-weight: 600; }
.money input { border: 0; background: transparent; outline: 0 !important; }
.two { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.calc button {
  margin-top: 1.5rem; padding: .85rem 1.5rem; border: 1px solid transparent; border-radius: 9999px; cursor: pointer;
  background: var(--primary); color: var(--primary-foreground); font: inherit; font-weight: 600; font-size: .95rem;
  transition: opacity .2s ease, transform .2s ease;
}
.calc button:hover { opacity: .9; transform: translateY(-1px); }
.result {
  background: rgba(59, 130, 246, .08); border: 1px solid rgba(59, 130, 246, .35);
  border-radius: 1rem; padding: 1.5rem; margin: .5rem 0 1.5rem;
}
.result p { margin: .4rem 0; color: var(--muted); }
.result .big { font-size: 2.4rem; font-weight: 700; line-height: 1.2; color: var(--foreground); letter-spacing: -0.02em; }
.result .warn { color: #fbbf24; font-weight: 500; }
.result table { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .92rem; }
.result td { padding: .45rem 0; border-top: 1px solid var(--card-border); color: var(--muted); }
.result td:last-child { text-align: right; color: var(--foreground); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

footer { border-top: 1px solid var(--card-border); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
}
.footer-inner .brand-name { font-size: 1.1rem; font-weight: 600; }
.footer-inner p { color: var(--muted); font-size: .9rem; margin-top: .35rem; }
.footer-links { display: flex; gap: 1.25rem; font-size: .9rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--foreground); }

@media (max-width: 560px) {
  nav { gap: .9rem; font-size: .85rem; }
  .crumb { display: none; }
  nav a:first-child { display: none; }
  .header-inner { padding: 0 1rem; }
}
