/* ==========================================================
   Kilion Tech — Section-specific styles (hero, services, process,
   about, contact, legal page layout)
   ========================================================== */

/* ----- Section scaffold ----- */
section.block { padding: clamp(80px, 11vh, 140px) 0; position: relative; }
.section-head {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 32px; margin-bottom: clamp(48px, 7vh, 80px);
  align-items: start;
}
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }
.section-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--fg-mute); text-transform: uppercase;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02; letter-spacing: -0.025em;
  margin: 0; max-width: 20ch; text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--accent); }

/* ----- Audience toggle (Para individuos / Para empresas) ----- */
.audience-sticky {
  position: sticky;
  top: 64px;
  z-index: 30;
  padding: 18px 0 16px;
  background: linear-gradient(180deg,
    color-mix(in oklch, var(--bg) 92%, transparent) 0%,
    color-mix(in oklch, var(--bg) 92%, transparent) 70%,
    transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.audience-bar {
  display: flex; justify-content: center;
}
.audience-toggle {
  display: inline-flex;
  padding: 5px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
  gap: 2px;
}
.audience-toggle button {
  position: relative; z-index: 2;
  padding: 10px 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  border-radius: 999px;
  transition: color .25s ease;
  white-space: nowrap;
}
.audience-toggle button[aria-pressed="true"] { color: #0a0a0a; }
.audience-toggle .pill {
  position: absolute; top: 5px; bottom: 5px;
  background: var(--accent);
  border-radius: 999px;
  z-index: 1;
  transition: left .35s cubic-bezier(.5,.1,.2,1), width .35s cubic-bezier(.5,.1,.2,1);
  box-shadow: 0 0 20px color-mix(in oklch, var(--accent) 40%, transparent);
}
@media (max-width: 480px) {
  .audience-toggle button { padding: 10px 16px; font-size: 10.5px; letter-spacing: 0.1em; }
}

/* Audience-scoped visibility */
[data-audience-only] { display: none !important; }
body[data-audience="individuals"] [data-audience-only="individuals"] { display: revert !important; }
body[data-audience="companies"]   [data-audience-only="companies"]   { display: revert !important; }

/* Companies CTA panel */
.companies-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: clamp(56px, 9vh, 110px) 0 clamp(48px, 7vh, 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (max-width: 900px) {
  .companies-panel { grid-template-columns: 1fr; gap: 40px; }
}
.companies-panel::before {
  content: ""; position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 50%, color-mix(in oklch, var(--accent) 6%, transparent), transparent 60%);
  pointer-events: none; z-index: -1;
}
.companies-panel .kicker {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.companies-panel h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1; letter-spacing: -0.025em;
  margin: 0 0 24px; text-wrap: balance;
}
.companies-panel h3 em { font-style: italic; color: var(--accent); }
.companies-panel p {
  color: var(--fg-dim); font-size: 17px; line-height: 1.6;
  max-width: 48ch; margin: 0 0 20px; text-wrap: pretty;
}
.companies-panel .cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 32px;
}
.companies-panel .bullets {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}
.companies-panel .bullets h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-mute); margin: 0 0 20px; font-weight: 500;
}
.companies-panel .bullets ul {
  list-style: none; padding: 0; margin: 0;
}
.companies-panel .bullets li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 28px 1fr;
  gap: 12px; align-items: baseline;
  font-size: 15px; line-height: 1.5; color: var(--fg-dim);
}
.companies-panel .bullets li:first-child { border-top: none; padding-top: 0; }
.companies-panel .bullets li::before {
  content: ""; display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  transform: translateY(6px);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 15%, transparent);
}
.companies-panel .bullets li b { color: var(--fg); font-weight: 500; font-family: var(--serif); }

/* ----- Hero ----- */
.hero { position: relative; padding: clamp(60px, 10vh, 110px) 0 clamp(70px, 11vh, 130px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-logo { order: -1; width: 100%; max-width: 320px; margin: 0 auto; }
}
.hero-logo {
  position: relative; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  max-width: 460px; margin-left: auto;
}
.hero-logo svg {
  width: 86%; height: 86%; position: relative; z-index: 2;
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 0 24px color-mix(in oklch, var(--accent) 40%, transparent));
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-logo::before {
  content: ""; position: absolute; inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 32%, transparent) 0%, transparent 65%);
  filter: blur(30px); z-index: 0;
  animation: pulse-glow 5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.hero-logo-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed color-mix(in oklch, var(--accent) 25%, transparent);
  animation: spin 40s linear infinite; z-index: 1;
}
.hero-logo-ring.inner {
  inset: 8%; border-style: solid;
  border-color: color-mix(in oklch, var(--accent) 12%, transparent);
  animation-direction: reverse; animation-duration: 28s;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--fg-mute);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 40px;
}
.hero-meta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 20%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in oklch, var(--accent) 8%, transparent); }
}
h1.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: 0.98; letter-spacing: -0.035em;
  margin: 0 0 32px; max-width: 14ch; text-wrap: balance;
}
h1.hero-title .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.hero-sub {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55; color: var(--fg-dim);
  max-width: 52ch; margin: 0 0 48px; text-wrap: pretty;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-footer {
  display: flex; gap: 48px; margin-top: 80px;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--fg-mute); flex-wrap: wrap;
}
.hero-footer strong {
  color: var(--fg); font-weight: 500;
  font-family: var(--serif); font-size: 16px;
  display: block; margin-bottom: 2px;
}
.hero::before {
  content: ""; position: absolute;
  width: 700px; height: 700px; right: -300px; top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 10%, transparent) 0%, transparent 60%);
  filter: blur(50px); pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

/* ----- Services ----- */
.services { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 60px 1fr 1.1fr 180px;
  gap: 40px; padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: start; position: relative;
  transition: padding .3s ease;
}
.service:hover { padding-inline: 12px; }
.service:hover .service-arrow { transform: translateX(6px) translateY(-6px); color: var(--accent); }
@media (max-width: 900px) {
  .service { grid-template-columns: 40px 1fr; gap: 20px 16px; }
  .service-desc, .service-price { grid-column: 2; }
  .service-price { justify-self: start; text-align: left; }
}
.service-idx { font-family: var(--mono); color: var(--fg-mute); font-size: 13px; padding-top: 10px; }
.service-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1; letter-spacing: -0.02em; margin: 0;
}
.service-tag {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
}
.service-desc { color: var(--fg-dim); font-size: 15.5px; line-height: 1.6; max-width: 48ch; }
.service-desc ul { margin: 14px 0 0; padding: 0; list-style: none; }
.service-desc ul li {
  font-size: 13.5px; color: var(--fg-mute); padding: 4px 0;
  border-top: 1px dashed var(--line);
}
.service-desc ul li:first-child { border-top: none; }
.service-price { justify-self: end; text-align: right; font-family: var(--serif); }
.service-price .from {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--fg-mute);
  display: block; margin-bottom: 6px;
}
.service-price .amt {
  font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: -0.02em;
}
.service-price .amt .eur { color: var(--fg-mute); margin-left: 2px; }
.service-arrow { color: var(--fg-mute); transition: all .3s; display: inline-block; margin-top: 10px; }

/* ----- Process ----- */
.process {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.step { background: var(--bg); padding: 44px 36px 48px; position: relative; transition: background .3s; }
.step:hover { background: var(--bg-elev); }
.step-num {
  font-family: var(--serif); font-style: italic;
  font-size: 72px; font-weight: 300;
  line-height: 1; color: var(--accent);
  margin-bottom: 28px; letter-spacing: -0.04em;
}
.step-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 26px; line-height: 1.15;
  letter-spacing: -0.015em; margin: 0 0 12px;
}
.step-body { color: var(--fg-dim); font-size: 15px; line-height: 1.6; margin: 0; }
.step-time {
  margin-top: 28px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--fg-mute);
  display: flex; justify-content: space-between;
}
.step-time b { color: var(--fg); font-weight: 500; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } }

/* ----- Founders intro + Why-us grid ----- */
.founders-intro {
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: end;
  padding: 0 0 48px; margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .founders-intro { grid-template-columns: 1fr; gap: 24px; } }
.founders-intro p {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3; letter-spacing: -0.015em;
  color: var(--fg-dim); max-width: 32ch;
  margin: 0; text-wrap: balance;
}
.founders-intro p em { color: var(--accent); font-style: italic; }
.founders-intro .badge {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-mute);
  padding: 10px 16px; border: 1px solid var(--line-strong);
  border-radius: 999px; white-space: nowrap;
}
.founders-intro .badge b { color: var(--accent); font-weight: 500; }

.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.why {
  background: var(--bg); padding: 36px 28px 40px;
  min-height: 260px; display: flex; flex-direction: column;
  transition: background .3s;
}
.why:hover { background: var(--bg-elev); }
.why-icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: 28px; }
.why-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.015em; margin: 0 0 10px;
}
.why-body { color: var(--fg-dim); font-size: 14.5px; line-height: 1.55; margin: 0; flex: 1; }
.why-kbd {
  margin-top: 20px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute);
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }

/* ----- Contact ----- */
.contact-wrap {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 72px; align-items: center;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; gap: 48px; } }
.contact-big {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 400; line-height: 1;
  letter-spacing: -0.03em; margin: 0 0 24px;
}
.contact-big em { font-style: italic; color: var(--accent); }
.contact-lead { color: var(--fg-dim); font-size: 17px; line-height: 1.55; max-width: 42ch; margin: 0 0 36px; }
.contact-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 18px; padding: 32px;
}
.submit-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-top: 28px; flex-wrap: wrap;
}
.submit-row small { color: var(--fg-mute); font-size: 12.5px; }
.send-success {
  display: none; padding: 16px; margin-top: 16px;
  border: 1px solid var(--accent); border-radius: 12px;
  color: var(--accent); font-size: 14px;
  background: color-mix(in oklch, var(--accent) 8%, transparent);
}
.send-success.show { display: block; }
.send-error {
  display: none; padding: 16px; margin-top: 16px;
  border: 1px solid #e55; border-radius: 12px;
  color: #f88; font-size: 14px;
  background: rgba(200, 50, 50, 0.08);
}
.send-error a { color: var(--accent); text-decoration: underline; }
.send-error.show { display: block; }
.btn-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin-btn .6s linear infinite;
  vertical-align: middle;
}
@keyframes spin-btn { to { transform: rotate(360deg); } }

/* ==========================================================
   Legal pages — shared layout
   ========================================================== */
.legal-hero {
  padding: clamp(72px, 10vh, 120px) 0 clamp(32px, 5vh, 56px);
  border-bottom: 1px solid var(--line);
}
.legal-hero .kicker {
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--fg-mute); margin-bottom: 20px;
}
.legal-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1; letter-spacing: -0.03em;
  margin: 0 0 20px; max-width: 22ch; text-wrap: balance;
}
.legal-hero h1 em { font-style: italic; color: var(--accent); }
.legal-hero .lede {
  font-size: 17px; line-height: 1.55;
  color: var(--fg-dim); max-width: 60ch; margin: 0;
}
.legal-hero .meta {
  margin-top: 28px; font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-mute);
  display: flex; gap: 24px; flex-wrap: wrap;
}
.legal-hero .meta b { color: var(--fg); font-weight: 500; }

.legal-body {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 64px; padding: clamp(48px, 8vh, 96px) 0 clamp(80px, 10vh, 120px);
  align-items: start;
}
@media (max-width: 900px) {
  .legal-body { grid-template-columns: 1fr; gap: 32px; }
}
.legal-toc {
  position: sticky; top: 88px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em;
}
.legal-toc h5 {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--fg-mute);
  margin: 0 0 14px; font-weight: 500;
}
.legal-toc ol {
  list-style: none; padding: 0; margin: 0;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc; padding: 6px 0;
  border-top: 1px solid var(--line);
}
.legal-toc li:first-child { border-top: none; }
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero) "  ";
  color: var(--fg-mute); margin-right: 6px;
}
.legal-toc a { color: var(--fg-dim); transition: color .2s; }
.legal-toc a:hover { color: var(--accent); }

.legal-content { max-width: 70ch; }
.legal-content section { margin-bottom: 48px; scroll-margin-top: 88px; }
.legal-content h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 16px;
  display: flex; align-items: baseline; gap: 14px;
}
.legal-content h2 .n {
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-mute); letter-spacing: 0.14em;
  font-weight: 500; flex: 0 0 auto;
}
.legal-content h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 18px; letter-spacing: -0.01em;
  margin: 24px 0 8px; color: var(--fg);
}
.legal-content p, .legal-content li {
  color: var(--fg-dim); font-size: 15.5px; line-height: 1.65;
  margin: 0 0 14px; text-wrap: pretty;
}
.legal-content ul, .legal-content ol { padding-left: 20px; margin: 0 0 16px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--fg); font-weight: 500; }
.legal-content a { color: var(--accent); border-bottom: 1px solid color-mix(in oklch, var(--accent) 35%, transparent); }
.legal-content a:hover { border-bottom-color: var(--accent); }

.legal-content .card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 24px;
  margin: 20px 0;
}
.legal-content .card h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); margin: 0 0 10px;
}
.legal-content .card p:last-child { margin-bottom: 0; }

.legal-content table.cookie-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; margin: 16px 0 24px;
}
.legal-content table.cookie-table th,
.legal-content table.cookie-table td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-content table.cookie-table th {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--fg-mute); font-weight: 500;
}
.legal-content table.cookie-table td { color: var(--fg-dim); }

.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fg-mute); margin-bottom: 32px;
  transition: color .2s;
}
.legal-back:hover { color: var(--accent); }
