/* =====================================================================
   Sentinel de 6C IA — hereda los tokens de 6cias.com
   ===================================================================== */
@font-face {
  font-family: "6CIAS Aparajita";
  src: url("../fonts/6CIAS-Aparajita.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "6CIAS Montserrat";
  src: url("../fonts/6CIAS-Montserrat.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #061014;
  --bg-2: #0a171c;
  --surface: #0d1d22;
  --surface-2: #10262b;
  --surface-3: #143037;
  --ink: #f4fbfb;
  --muted: #a7bec1;
  --brand: #008389;
  --brand-2: #83d8d5;
  --brand-dark: #555569;
  --line: rgba(176, 234, 232, .14);
  --line-strong: rgba(176, 234, 232, .28);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --font: "6CIAS Montserrat", Montserrat, "Segoe UI", Arial, sans-serif;
  --serif: "6CIAS Aparajita", Georgia, serif;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 170px }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; letter-spacing: -.01em }
a { color: inherit; text-decoration: none }
button, input, textarea { font: inherit }
img { display: block; max-width: 100% }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--brand-2); color: #052025; font-weight: 800; transform: translateY(-160%) }
.skip-link:focus { transform: translateY(0) }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 4px }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto }
.section { padding: 104px 0; position: relative }
.section--tight { padding: 72px 0 }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 750; color: var(--brand-2) }
.eyebrow:before { content: ""; width: 22px; height: 1px; background: var(--brand-2) }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400 }
h1, h2, h3, p { margin-top: 0 }
h1 { font-size: clamp(46px, 5.4vw, 76px); line-height: .98; letter-spacing: -.05em; margin-bottom: 24px; max-width: 760px }
h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 18px }
h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 10px }
.muted { color: var(--muted) }

/* Buttons (idénticos al sitio principal) */
.btn { min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 760; transition: .2s ease; cursor: pointer }
.btn:hover { transform: translateY(-2px) }
.btn--primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #031b1d; box-shadow: 0 10px 34px rgba(0, 131, 137, .24) }
.btn--ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .02); color: #e9f6f6 }
.btn--small { min-height: 42px; padding-inline: 17px; font-size: 14px }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-2); font-weight: 720; font-size: 14px; margin-top: 12px; border-bottom: 1px solid transparent }
.text-link:hover { border-bottom-color: currentColor }

/* Topbar + header */
.topbar { border-bottom: 1px solid rgba(255, 255, 255, .055); background: #071216; color: #93aaad; font-size: 12px }
.topbar .container { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px }
.topbar-links { display: flex; gap: 18px; white-space: nowrap; margin-left: auto }
.topbar-domain { color: var(--brand-2); font-weight: 760; letter-spacing: .04em }

.header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(6, 16, 20, .84); border-bottom: 1px solid rgba(255, 255, 255, .065) }
.nav { height: 160px; display: flex; align-items: center; justify-content: space-between; gap: 30px }
.brand { display: flex; align-items: center; gap: 16px; min-width: 170px }
.brand-mark { width: 150px; height: 150px; object-fit: contain }
.menu { display: flex; align-items: center; gap: 24px; font-size: 14px; color: #c8d8da }
.menu a { padding: 10px 0; position: relative }
.menu a:after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 1px; background: var(--brand-2); transition: .2s }
.menu a:hover:after { right: 0 }
.menu a:hover { color: #fff }
.nav-actions { display: flex; align-items: center; gap: 10px }
.menu-toggle { display: none; border: 1px solid var(--line-strong); background: none; color: #fff; border-radius: 10px; padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; cursor: pointer }

/* =====================================================================
   HERO
   ===================================================================== */
.s-hero { position: relative; overflow: hidden; padding: 32px 0 80px; background: radial-gradient(ellipse 60% 70% at 72% 45%, rgba(0, 131, 137, .16), transparent 70%), var(--bg) }
.s-hero:before { content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%); mask-image: linear-gradient(to bottom, black, transparent 80%) }
.s-hero__particles { position: absolute; inset: 0; z-index: 0 }
.s-hero__particles canvas { display: block }
.s-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center }
.s-hero__copy .eyebrow { margin-bottom: 20px }
.hero-sub { font-size: 19px; line-height: 1.62; color: #c3d3d5; max-width: 560px; margin-bottom: 32px }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px }
.trust-pill { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #a9c1c3; font-size: 12px; background: rgba(255, 255, 255, .02) }

/* Escenario de la esfera */
.s-stage { display: flex; flex-direction: column; align-items: center }
.s-sphere { position: relative; width: min(460px, 100%); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; display: block; -webkit-tap-highlight-color: transparent }
.s-sphere canvas { width: 100%; height: 100%; display: block; pointer-events: none }
.s-sphere:focus-visible { outline-offset: -12px }
.s-status { min-height: 24px; margin: -34px 0 12px; position: relative; font-size: 14px; color: var(--brand-2); text-align: center; transition: color .2s }
.s-stage[data-state="listening"] .s-status { color: #fff }
.s-stage[data-state="error"] .s-status { color: #f0cf84 }

/* Chat */
.s-chat { width: min(560px, 100%); border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(10, 23, 28, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 70px rgba(0, 0, 0, .34); padding: 14px }
.s-log { max-height: 210px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 6px 12px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent }
.s-msg { font-size: 15px; line-height: 1.55; max-width: 92%; white-space: pre-wrap; overflow-wrap: anywhere }
.s-msg--model { color: #dcebec; align-self: flex-start; padding-left: 12px; border-left: 2px solid var(--brand) }
.s-msg--user { align-self: flex-end; background: var(--surface-3); color: var(--ink); padding: 8px 14px; border-radius: 16px 16px 4px 16px }
.s-msg--error { color: #f0cf84; border-left-color: #f0cf84 }
.s-msg--pending { color: var(--muted) }
.s-msg--pending:after { content: "…"; animation: s-dots 1.2s steps(4, end) infinite; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom }
@keyframes s-dots { 0% { width: 0 } 100% { width: 1.2em } }

.s-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 12px }
.s-chips[hidden] { display: none }
.s-chip { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: #c8d8da; border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; transition: border-color .2s, color .2s }
.s-chip:hover { border-color: var(--brand-2); color: #fff }

.s-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 5px }
.s-input input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); padding: 10px 8px; font-size: 15px }
.s-input input::placeholder { color: #6e9296 }
.s-input input:focus { outline: none }
.s-input:focus-within { border-color: var(--brand-2) }
.s-icon-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--brand-2); display: grid; place-items: center; cursor: pointer; transition: .2s }
.s-icon-btn svg { width: 20px; height: 20px }
.s-icon-btn:hover { border-color: var(--brand-2); color: #fff }
.s-icon-btn--send { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #031b1d; border-color: transparent }
.s-icon-btn--send:hover { color: #031b1d; filter: brightness(1.08) }
.s-icon-btn:disabled { opacity: .45; cursor: not-allowed }
.s-icon-btn[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 0 0 6px rgba(0, 131, 137, .22) }

.s-chat__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 6px 2px; font-size: 12px; color: var(--muted) }
.s-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer }
.s-switch input { position: absolute; opacity: 0; width: 1px; height: 1px }
.s-switch__track { width: 30px; height: 18px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-strong); position: relative; transition: .2s }
.s-switch__track:after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: .2s }
.s-switch input:checked + .s-switch__track { background: var(--brand) }
.s-switch input:checked + .s-switch__track:after { left: 14px; background: #fff }
.s-switch input:focus-visible + .s-switch__track { outline: 3px solid var(--brand-2); outline-offset: 3px }

/* =====================================================================
   SECCIONES
   ===================================================================== */
.section-head { display: grid; grid-template-columns: 1fr .78fr; gap: 60px; align-items: end; margin-bottom: 48px }
.section-head h2 { margin-bottom: 0; max-width: 620px }
.section-head p { margin-bottom: 7px; color: var(--muted); font-size: 17px; line-height: 1.65 }

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line) }
.cap { padding: 34px 30px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.cap .iconbox { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(0, 131, 137, .12); border: 1px solid rgba(144, 240, 230, .17); color: var(--brand-2); margin-bottom: 36px }
.cap p { color: #9fb6b9; font-size: 15px; line-height: 1.67; margin-bottom: 0 }

/* Proceso (sección clara, igual que Metodología del sitio principal) */
.process { background: #f1f7f6; color: #102226 }
.process .section-head p { color: #61767a }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #ccdcda }
.step { padding: 32px 26px 22px 0; border-right: 1px solid #ccdcda; min-height: 240px }
.step:not(:first-child) { padding-left: 26px }
.step:last-child { border-right: 0 }
.step-index { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #dcebea; color: #315c61; font-weight: 820; font-size: 13px; margin-bottom: 28px }
.step p { color: #62777b; font-size: 14px; line-height: 1.65 }

/* Precios */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.plan { position: relative; display: flex; flex-direction: column; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #0b1b20, #0b171b); overflow: hidden }
.plan--business { background: linear-gradient(145deg, #10262b, #0b1b20); border-color: var(--line-strong) }
.plan h3 { font-size: 28px }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 10px 0 28px; padding-bottom: 26px; border-bottom: 1px solid var(--line) }
.plan__amount { font-family: var(--serif); font-size: clamp(64px, 7vw, 92px); line-height: .9; letter-spacing: -.05em; color: #fff }
.plan__amount--text { font-size: clamp(44px, 5vw, 64px); color: var(--brand-2) }
.plan__unit { color: var(--muted); font-size: 14px }
.plan__list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; flex: 1 }
.plan__list li { position: relative; padding-left: 26px; color: #c3d3d5; font-size: 15px }
.plan__list li:before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--brand-2); border-bottom: 2px solid var(--brand-2); transform: rotate(-45deg) }
.plan__cta { align-self: flex-start }

/* Uso responsable */
.responsible { background: var(--bg-2); border-block: 1px solid var(--line) }
.responsible__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start }
.responsible h2 { font-size: clamp(32px, 3.6vw, 46px) }
.responsible__list { list-style: none; margin: 0; padding: 0 }
.responsible__list li { padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.65 }
.responsible__list li:first-child { padding-top: 4px }
.responsible__list strong { color: var(--ink); font-weight: 760 }

/* FAQ */
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; align-items: start }
.faq__list { border-top: 1px solid var(--line) }
.faq details { border-bottom: 1px solid var(--line) }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 18px; font-weight: 700 }
.faq summary::-webkit-details-marker { display: none }
.faq summary:after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--brand-2); border-bottom: 2px solid var(--brand-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s }
.faq details[open] summary:after { transform: translateY(-30%) rotate(-135deg) }
.faq details p { color: var(--muted); margin: -6px 0 22px; max-width: 640px; line-height: 1.7 }

/* CTA final (degradado de marca) */
.cta-shell { padding: 54px; border-radius: 30px; background: linear-gradient(135deg, #555569 0%, #008389 48%, #83d8d5 100%); color: #072024; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; box-shadow: 0 28px 80px rgba(0, 83, 89, .28) }
.cta-shell h2 { max-width: 780px; margin-bottom: 12px }
.cta-shell p { max-width: 700px; margin-bottom: 0; color: #163f43 }
.cta-shell .btn--ghost { border-color: rgba(5, 40, 43, .28); color: #08262a; background: rgba(255, 255, 255, .22) }

/* Footer (igual al sitio principal) */
.site-footer { padding: 70px 0 32px; background: #f4fbfb; color: #008387 }
.site-footer .brand-mark { width: 120px; height: 120px }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 40px; margin-bottom: 46px }
.footer-brand p { color: #008387; max-width: 390px; font-size: 13px; margin-top: 16px }
.footer-col h4 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .13em; color: #008387; margin: 0 0 16px; font-weight: 750 }
.footer-col a { display: block; color: #008387; font-size: 13px; margin: 9px 0 }
.footer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 24px 0; border-top: 1px solid #d6e5e4 }
.social-link { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #008387; border: 1px solid rgba(0, 131, 135, .28); font-family: Arial, sans-serif; font-weight: 800; line-height: 1; transition: .2s ease }
.social-link:hover, .social-link:focus-visible { color: #f4fbfb; background: #008387 }
.privacy-link { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 7px 13px; border: 1px solid rgba(0, 131, 135, .28); border-radius: 999px; color: #008387; font-size: 12px; font-weight: 700 }
.privacy-link:hover, .privacy-link:focus-visible { color: #f4fbfb; background: #008387 }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 20px; border-top: 1px solid #d6e5e4; font-size: 12px; color: #008387 }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .s-hero__grid { grid-template-columns: 1fr; gap: 24px }
  .s-hero__copy { text-align: left }
  .s-sphere { width: min(440px, 100%) }
}

@media (max-width: 1000px) {
  .menu { display: none; position: absolute; top: 145px; left: 14px; right: 14px; flex-direction: column; gap: 18px; padding: 24px; max-height: calc(100vh - 110px); overflow-y: auto; background: #0b1c21; border: 1px solid rgba(176, 234, 232, .18); border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35) }
  .menu.active { display: flex }
  .menu-toggle { display: inline-flex }
  .nav-actions .btn--ghost { display: none }
  .section-head, .responsible__grid, .faq { grid-template-columns: 1fr; gap: 20px }
  .cap-grid { grid-template-columns: 1fr 1fr }
  .steps { grid-template-columns: 1fr 1fr }
  .step { border-bottom: 1px solid #ccdcda; min-height: 0 }
  .step:nth-child(2) { border-right: 0 }
  .step:nth-child(3) { padding-left: 0 }
  .plans { grid-template-columns: 1fr }
  .cta-shell { grid-template-columns: 1fr; padding: 40px }
  .footer-grid { grid-template-columns: 1fr 1fr }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)) }
  .section { padding: 76px 0 }
  .topbar { display: none }
  .nav { height: 160px }
  .brand-mark { width: 150px; height: 150px }
  .nav-actions .btn--primary { display: none }
  h1 { font-size: 42px }
  .s-hero { padding: 40px 0 64px }
  .s-chat { padding: 10px }
  .s-chat__foot { flex-direction: column; align-items: flex-start }
  .cap-grid { grid-template-columns: 1fr }
  .steps { grid-template-columns: 1fr }
  .step, .step:not(:first-child), .step:nth-child(3) { padding: 26px 0; border-right: 0 }
  .plan { padding: 28px }
  .cta-shell { padding: 30px }
  .footer-grid { grid-template-columns: 1fr }
  .footer-bottom { flex-direction: column; align-items: flex-start }
  .privacy-link { margin-left: 0 }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .btn:hover { transform: none }
  .s-msg--pending:after { animation: none; width: 1.2em }
}
