/* =============================================
   Método Linseo — Global Styles v2
   Core Web Vitals · Mobile-First · Safe Areas · Touch Targets
   ============================================= */

/* ---- Reset & Foundation ---- */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: #FFFFFF;
  color: #1E293B;
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FFFFFF; }
::-webkit-scrollbar-thumb { background: #0891B2; border-radius: 4px; }

/* ---- Typography ---- */
.letter { font-family: 'Source Serif 4', Georgia, serif; }
.chrome { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; }
.display { font-family: Arial, Helvetica, sans-serif; }
.glow-word { color: #0369A1; }
.rule { border-top: 1px solid #E2E8F0; }

/* ---- Cards ---- */
.glass-card {
  background: linear-gradient(155deg, rgba(8,145,178,0.05), rgba(8,145,178,0.01));
  border: 1px solid rgba(8,145,178,0.22);
  box-shadow: 0 12px 30px -18px rgba(8,145,178,0.35);
}

/* ---- Buttons · Touch targets ≥ 44px ---- */
.btn-cta {
  background: linear-gradient(135deg, #06B6D4, #0369A1);
  color: #FFFFFF;
  box-shadow: 0 0 0 rgba(2,132,199,0);
  transition: box-shadow .3s ease, transform .3s ease;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-cta:hover { box-shadow: 0 10px 30px -10px rgba(8,145,178,0.55); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid #E2E8F0;
  transition: border-color .25s ease, background .25s ease;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-ghost:hover { border-color: #0891B2; background: rgba(8,145,178,0.04); }

/* ---- Links with underline animation ---- */
.teaser-link { position: relative; }
.teaser-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: #0891B2; transform-origin: left; transform: scaleX(0); transition: transform .3s ease;
}
.teaser-link:hover::after { transform: scaleX(1); }

/* ---- Nav links touch target ---- */
nav a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---- Serif body ---- */
.letter p, .letter li { line-height: 1.85; }
.letter strong { color: #0F172A; }
.check-row { display: flex; align-items: flex-start; gap: 0.65rem; }

.pillar-num {
  width: 2.1rem; height: 2.1rem; border-radius: 999px;
  background: rgba(8,145,178,0.1); color: #0369A1;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 600;
  flex-shrink: 0;
}

/* ---- Inputs ---- */
input::placeholder { color: #94A3B8; }
input {
  border-bottom: 1px solid #CBD5E1;
  background: transparent;
  transition: border-color .25s ease;
  min-height: 44px;
}
input:focus { outline: none; border-color: #0891B2; }
input[type=range] {
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, #0891B2 0%, #0891B2 var(--val,50%), rgba(15,23,42,0.12) var(--val,50%));
  width: 100%;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 999px;
  background: #fff; border: 4px solid #0891B2;
  cursor: pointer; box-shadow: 0 2px 8px rgba(8,145,178,0.4);
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 999px;
  background: #fff; border: 4px solid #0891B2; cursor: pointer;
}

.roi-plan-btn {
  border: 1px solid #E2E8F0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.roi-plan-btn.active { border-color: #0891B2; color: #0891B2; background: rgba(8,145,178,0.06); }

/* ---- Legal body ---- */
.legal-body h2 { font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 1.3rem; margin-top: 2.5rem; margin-bottom: 1rem; color: #0F172A; }
.legal-body p, .legal-body li { color: #475569; line-height: 1.85; margin-bottom: 1rem; font-family: 'Source Serif 4', serif; }
.legal-body ul { list-style: disc; padding-left: 1.4rem; }
.legal-body strong { color: #0F172A; }
.legal-body a { color: #0369A1; text-decoration: underline; text-underline-offset: 3px; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.legal-body th { text-align: left; color: #0F172A; font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; padding: 0.7rem; border-bottom: 1px solid #E2E8F0; }
.legal-body td { padding: 0.7rem; border-bottom: 1px solid #F1F5F9; color: #475569; vertical-align: top; font-family: 'Plus Jakarta Sans', sans-serif; }
.placeholder { background: rgba(8,145,178,0.08); border: 1px dashed rgba(8,145,178,0.4); border-radius: 6px; padding: 0 6px; color: #0369A1; font-family: 'JetBrains Mono', monospace; font-size: 0.85em; }

/* ---- FAQ accordion ---- */
.faq-item summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform .3s ease; }

/* ---- Cookie banner ---- */
.cookie-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(3,7,18,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.cookie-banner {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 50px -12px rgba(8,145,178,0.25);
  text-align: center;
}
.cookie-banner p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 1.5rem;
}
.cookie-banner a { color: #0369A1; text-decoration: underline; text-underline-offset: 3px; }
.cookie-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.cookie-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  min-height: 44px;
  min-width: 44px;
}
.cookie-btn-accept { background: linear-gradient(135deg, #06B6D4, #0369A1); color: #FFFFFF; border: none; }
.cookie-btn-accept:hover { box-shadow: 0 8px 24px -8px rgba(8,145,178,0.45); transform: translateY(-1px); }
.cookie-btn-reject { background: transparent; border: 1px solid #E2E8F0; color: #64748B; }
.cookie-btn-reject:hover { border-color: #0891B2; color: #0369A1; background: rgba(8,145,178,0.04); }

/* ---- Footer touch targets ---- */
footer a { min-height: 44px; display: inline-flex; align-items: center; }
