/* IDKattend — editorial design system */
:root {
  --cream: #F4EFE5;
  --cream-deep: #EAE3D2;
  --paper: #FBF8F1;
  --ink: #0F0F10;
  --ink-60: rgba(15, 15, 16, 0.6);
  --ink-40: rgba(15, 15, 16, 0.4);
  --moss: #0E4D3E;
  --moss-deep: #08362B;
  --terracota: #C6462A;
  --terracota-deep: #A33A22;
  --amber: #D89A3F;
  --rule: rgba(15, 15, 16, 0.12);
  --rule-strong: rgba(15, 15, 16, 0.25);
}

html.dark {
  --cream: #0a0a0a;
  --cream-deep: #111111;
  --paper: #161616;
  --ink: #ededed;
  --ink-60: rgba(237, 237, 237, 0.65);
  --ink-40: rgba(237, 237, 237, 0.4);
  --moss: #2BB58A;
  --moss-deep: #1F8868;
  --terracota: #E76A4D;
  --terracota-deep: #C4513B;
  --amber: #E0AF5A;
  --rule: rgba(237, 237, 237, 0.14);
  --rule-strong: rgba(237, 237, 237, 0.28);
}

/* Overrides para componentes con colores hardcodeados */
html.dark .nav {
  background: rgba(20, 20, 20, 0.85);
  border-bottom-color: rgba(237, 237, 237, 0.12);
}
html.dark .footer {
  background: #050505;
  color: #ededed;
}
html.dark .footer-brand p,
html.dark .footer-col a,
html.dark .footer-bottom { color: rgba(237, 237, 237, 0.7); }
html.dark .footer-col h4 { color: rgba(237, 237, 237, 0.55); }
html.dark .footer-col a:hover { color: #ededed; }
html.dark .footer-bottom { border-top-color: rgba(237, 237, 237, 0.1); }
html.dark .footer-brand .brand { color: #ededed; }
html.dark .footer-brand .brand-mark { background: #ededed; color: #0a0a0a; }
/* Calc card que usa cream-deep */
html.dark .calc-results,
html.dark .calc-fallback { color: #ededed; }
/* Hero-bg en cream */
html.dark body { background: var(--cream); color: var(--ink); }

/* Theme toggle minimal */
.theme-toggle { display: inline-flex; gap: 2px; border: 1px solid var(--rule); border-radius: 999px; padding: 2px; margin-left: 12px; }
.theme-toggle button {
  background: none; border: 0; padding: 4px 8px; cursor: pointer; border-radius: 999px;
  font-size: 12px; color: var(--ink-60); line-height: 1;
}
.theme-toggle button:hover { background: var(--paper); color: var(--ink); }
.theme-toggle button.active { background: var(--ink); color: var(--cream); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga', 'calt';
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; }
img, svg { display: block; max-width: 100%; }

.serif { font-family: 'Fraunces', Georgia, serif; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.italic { font-style: italic; }

/* Layout helpers */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .container, .container-narrow { padding: 0 20px; }
}

/* Header / nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 229, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
}
.brand-svg { width: 28px; height: 28px; color: var(--terracota); flex-shrink: 0; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1; gap: 2px;
  font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-60); font-weight: 400;
}
.footer-brand .brand-svg { color: var(--paper); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-links a:not(.btn) { color: var(--ink-60); transition: color 0.15s; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav-links .btn-ink { color: var(--paper) !important; }
.nav-links .btn-primary { color: var(--paper) !important; }
.nav-links .btn-outline { color: var(--ink) !important; }
.nav-links .btn-outline:hover { color: var(--paper) !important; }

@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-inner { gap: 8px; padding: 12px 16px; }
  .brand { font-size: 18px; }
  .brand-svg { width: 24px; height: 24px; }
  .brand-text { font-size: 18px; }
  .brand-sub { display: none; }
  .btn-sm { padding: 8px 12px; font-size: 12px; }
  .theme-toggle { margin-left: 4px; padding: 1px; }
  .theme-toggle button { padding: 3px 5px; font-size: 11px; }
}
@media (max-width: 400px) {
  .theme-toggle button[data-theme-btn="system"] { display: none; }  /* en pantallas chicas: solo claro/oscuro */
}
@media (max-width: 400px) {
  .brand-text { font-size: 16px; }
  .nav-inner { padding: 10px 14px; gap: 6px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--terracota);
  color: var(--paper);
}
.btn-primary:hover { background: var(--terracota-deep); }
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover { background: #2a2a2c; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--cream-deep); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 15px; }

/* Hero */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em { font-style: italic; color: var(--moss); }
.hero h1 .accent { color: var(--terracota); font-style: italic; }
.hero p.lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-60);
  max-width: 64ch;
  margin: 0 auto 40px;
}
.hero p.lead strong { color: var(--ink); font-weight: 500; }

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.compliance-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
}
.badge .check { color: var(--moss); font-weight: 600; }

@media (max-width: 768px) {
  .compliance-badges { flex-direction: column; align-items: stretch; padding: 0 24px; }
  .badge { justify-content: center; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: clamp(36px, 11vw, 72px); margin-bottom: 20px; word-break: keep-all; hyphens: none; padding: 0 8px; }
  .hero p.lead { font-size: 15px; padding: 0 16px; margin-bottom: 28px; }
  .hero-ctas { flex-direction: column; gap: 10px; padding: 0 24px; }
  .hero-ctas .btn { width: 100%; }
  .btn-lg { padding: 14px 20px; font-size: 14px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: clamp(32px, 10vw, 48px); }
  .calc { padding: 24px 18px; }
  .calc-input-row label { font-size: 12px; padding-right: 8px; }
  .calc-input-row .val { font-size: 16px; }
}

/* Why Puntual cards */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1080px; margin: 0 auto;
}
.why-card {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 36px 32px; border-radius: 8px;
}
.why-num {
  font-family: 'Fraunces', serif; font-size: 56px; line-height: 1;
  color: var(--terracota); font-weight: 400; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.why-card h3 {
  font-family: 'IBM Plex Sans', sans-serif; font-size: 18px;
  font-weight: 600; margin-bottom: 10px;
}
.why-card p { color: var(--ink-60); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 1024px) { .why-grid { grid-template-columns: 1fr; max-width: 480px; padding: 0 16px; } }
@media (max-width: 768px) { .why-card { padding: 28px 22px; } .why-num { font-size: 44px; } }

/* Section headings */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 6vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 14px;
  padding: 0 16px;
}
.section-title p { padding: 0 16px; }
.section-title p {
  color: var(--ink-60);
  font-size: 17px;
  max-width: 60ch;
  margin: 0 auto;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.feature {
  background: var(--cream);
  padding: 36px 32px;
}
.feature h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature h3 .ico {
  font-size: 18px;
}
.feature p {
  color: var(--ink-60);
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 1280px) { .features { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .features { grid-template-columns: 1fr; } }

/* Calculator */
.calc {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 64px;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 768px) { .calc { padding: 32px 24px; } }

.calc-input { margin-bottom: 28px; }
.calc-input:last-of-type { margin-bottom: 36px; }
.calc-input-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-input-row label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.calc-input-row .val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  min-width: 80px;
  text-align: right;
}
.calc input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--rule-strong);
  border-radius: 2px;
  outline: none;
}
.calc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--moss);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--cream-deep);
  box-shadow: 0 0 0 1px var(--moss);
}
.calc input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--moss);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--cream-deep);
  box-shadow: 0 0 0 1px var(--moss);
}
.calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.calc-result .num {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--moss);
}
.calc-result .num.negative { color: var(--terracota); }
.calc-result .label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-60);
  margin-top: 6px;
}
.calc-fallback {
  font-family: 'IBM Plex Sans', sans-serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-60);
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  text-align: center;
  line-height: 1.6;
}
@media (max-width: 640px) { .calc-results { grid-template-columns: 1fr; gap: 20px; } }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-5col { grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1280px) { .pricing-5col { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .pricing-5col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .pricing-5col { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.price-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.price-card.popular {
  border-color: var(--moss);
  border-width: 2px;
  position: relative;
}
.price-card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--moss);
  color: var(--paper);
  padding: 4px 10px;
  border-radius: 4px;
  position: absolute;
  top: -12px;
  left: 32px;
}
.price-card .name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 26px;
  margin-bottom: 4px;
}
.price-card .price {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  letter-spacing: -0.02em;
  margin: 16px 0 4px;
}
.price-card .price .period {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-60);
}
.price-card .iva-note {
  font-size: 12px;
  color: var(--ink-60);
  margin-top: -6px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.price-card .limit {
  font-size: 13px;
  color: var(--ink-60);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.price-card ul {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.price-card ul li {
  font-size: 14px;
  padding: 8px 0;
  display: flex;
  gap: 10px;
}
.price-card ul li::before {
  content: '✓';
  color: var(--moss);
  font-weight: 600;
}
@media (max-width: 1024px) { .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; padding: 0 16px; } }
@media (max-width: 768px) { .price-card { padding: 28px 22px; } .price-card .price { font-size: 36px; } }

/* Footer */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand-mark { background: var(--paper); color: var(--ink); }
.footer-brand p {
  margin-top: 16px;
  color: rgba(251, 248, 241, 0.6);
  font-size: 14px;
  max-width: 32ch;
}
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(251, 248, 241, 0.5);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(251, 248, 241, 0.85); font-size: 14px; }
.footer-col a:hover { color: var(--paper); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(251, 248, 241, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(251, 248, 241, 0.5);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.in { opacity: 1; transform: translateY(0); }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 span {
  display: inline-block;
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero h1 span:nth-child(1) { animation-delay: 0.05s; }
.hero h1 span:nth-child(2) { animation-delay: 0.18s; }
.hero h1 span:nth-child(3) { animation-delay: 0.31s; }

/* Accessibility */
*:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 2px; }

/* LOSEP page extras */
.losep-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.losep-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 36px 28px;
  border-radius: 8px;
}
.losep-card .ico {
  width: 40px;
  height: 40px;
  color: var(--moss);
  margin-bottom: 20px;
}
.losep-card h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.losep-card p { color: var(--ink-60); font-size: 15px; line-height: 1.6; }
@media (max-width: 1024px) { .losep-cards { grid-template-columns: 1fr; } }

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
  max-width: 920px;
  margin: 0 auto;
}
.checklist li {
  list-style: none;
  font-size: 15px;
  display: flex;
  gap: 12px;
  line-height: 1.5;
}
.checklist li::before {
  content: '✓';
  color: var(--moss);
  font-weight: 600;
  flex-shrink: 0;
}
@media (max-width: 768px) { .checklist { grid-template-columns: 1fr; } }

.siith-preview {
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 28px;
  overflow-x: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) { .siith-preview { padding: 16px 12px; font-size: 11px; } }
.siith-preview table { width: 100%; border-collapse: collapse; min-width: 760px; }
.siith-preview th {
  text-align: left;
  font-weight: 500;
  color: var(--amber);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(251, 248, 241, 0.15);
  white-space: nowrap;
}
.siith-preview td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(251, 248, 241, 0.06);
  white-space: nowrap;
}
.siith-preview tr:last-child td { border-bottom: 0; }
.siith-preview td.bad { color: var(--terracota); }

.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.faq-q .icon {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: var(--moss);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[aria-expanded="true"] .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s;
  color: var(--ink-60);
  font-size: 15px;
  line-height: 1.7;
  padding: 0;
}
.faq-item[aria-expanded="true"] .faq-a {
  max-height: 200px;
  padding-bottom: 24px;
}

.cta-banner {
  background: var(--moss);
  color: var(--paper);
  padding: 80px 0;
  text-align: center;
}
.cta-banner { padding: 64px 16px; }
.cta-banner h2 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(28px, 6vw, 48px);
  margin-bottom: 14px;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding: 0 8px;
}
.cta-banner p {
  color: rgba(251, 248, 241, 0.85);
  margin-bottom: 32px;
  font-size: 17px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
