/* ===========================================================
   Doctrai — Estilos globales
   Paleta: Midnight Executive (navy + accent eléctrico)
=========================================================== */

:root {
  --navy-deep: #0B1B33;
  --navy: #152A4D;
  --navy-soft: #1C3A66;
  --accent: #2F6FED;
  --accent-light: #5FA8FF;
  --ice: #DCE7F7;
  --paper: #F4F7FC;
  --white: #FFFFFF;
  --slate: #5B6B82;
  --ink: #1A2740;

  --font-display: "Source Serif 4", Cambria, Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 27, 51, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-logo img { height: 28px; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--ice);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--white); }

.nav-links-cta { display: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 rgba(47,111,237,0.5);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(47,111,237,0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  box-shadow: 0 8px 28px rgba(47,111,237,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(47,111,237,0.5); }
.btn-primary svg { width: 20px; height: 20px; }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

/* ---------- Hero with animated mesh gradient ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  padding-top: 6rem;
}

.mesh-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.mesh-gradient .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -10%; left: -5%;
  animation: float1 18s ease-in-out infinite;
}
.blob-2 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, var(--accent-light), transparent 70%);
  top: 30%; right: -10%;
  animation: float2 22s ease-in-out infinite;
}
.blob-3 {
  width: 35vw; height: 35vw;
  background: radial-gradient(circle, #7C5CFC, transparent 70%);
  bottom: -15%; left: 20%;
  opacity: 0.35;
  animation: float3 26s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(8%, 10%) scale(1.15); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-10%, -6%) scale(1.1); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(6%, -8%) scale(1.2); }
}

.grain-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 4px rgba(95,168,255,0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.08;
  color: var(--white);
  margin: 0 0 1.5rem;
  max-width: 14ch;
  font-weight: 600;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), #B7CFFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ice);
  max-width: 42ch;
  line-height: 1.55;
  margin: 0 0 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-trustline {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--slate);
  font-size: 0.85rem;
}
.hero-trustline span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #9FBBE6;
}
.hero-trustline svg { width: 16px; height: 16px; color: var(--accent-light); }

/* ---------- Section scaffolding ---------- */
section { position: relative; }

.section-pad { padding: 6rem 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 3.5rem;
}
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 1rem;
  font-weight: 600;
}
.section-head p {
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.section-dark {
  background: var(--navy);
}
.section-dark .section-head h2 { color: var(--white); }
.section-dark .section-head p { color: var(--ice); }

/* ---------- How it works steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.step-card {
  background: var(--navy-soft);
  border-radius: 16px;
  padding: 1.75rem 1.4rem;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 1rem;
  display: block;
}
.step-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.step-icon svg { width: 22px; height: 22px; color: var(--accent-light); }
.step-card h3 {
  color: var(--white);
  font-size: 1.02rem;
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.step-card p {
  color: #B9C8E2;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Benefits grid ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.benefit-card {
  background: var(--white);
  border: 1px solid #E6ECF7;
  border-radius: 18px;
  padding: 2rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(21,42,77,0.1);
  border-color: transparent;
}
.benefit-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--ice);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
}
.benefit-icon svg { width: 24px; height: 24px; color: var(--accent); }
.benefit-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.benefit-card p {
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid #E6ECF7;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
}
.faq-question .plus {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
  margin-left: 1rem;
}
.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.faq-question .plus::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-question .plus::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item.open .plus::after { transform: translateX(-50%) scaleY(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.4rem;
  max-width: 60ch;
}

/* ---------- Final CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(47,111,237,0.35), transparent 70%);
  top: -20%; left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin: 0 0 1rem;
  font-weight: 600;
}
.cta-band p {
  color: var(--ice);
  font-size: 1.05rem;
  margin: 0 0 2.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  padding: 3rem 0 2rem;
  color: #8298BC;
  font-size: 0.85rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.footer-logo img { height: 24px; }
.footer-links { display: flex; gap: 1.75rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #B9C8E2; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; color: white; }

/* ---------- Privacy page ---------- */
.privacy-page {
  background: var(--white);
  padding: 9rem 0 5rem;
}
.privacy-page .container { max-width: 760px; }
.privacy-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--navy);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.privacy-meta {
  color: var(--slate);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}
.privacy-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2.6rem 0 1rem;
  font-weight: 600;
}
.privacy-page h3 {
  font-size: 1rem;
  color: var(--ink);
  margin: 1.6rem 0 0.6rem;
}
.privacy-page p, .privacy-page li {
  color: #3B4A63;
  font-size: 0.97rem;
  line-height: 1.7;
}
.privacy-page ul { padding-left: 1.3rem; }
.privacy-page hr {
  border: none;
  border-top: 1px solid #E6ECF7;
  margin: 2.5rem 0;
}
.privacy-page a { color: var(--accent); text-decoration: underline; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links-cta { display: block; margin-top: 0.25rem; }
  .nav-links-cta .nav-cta { display: flex; justify-content: center; width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .blob-1, .blob-2, .blob-3 { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
