/* ============================================================
   CAPTIA tech — captiatech.com
   Paleta heredada de CAPTIA: #1a3360 (navy) · #fc9631 (naranja) · #313131
   ============================================================ */

:root {
  --navy: #1a3360;
  --navy-dark: #122347;
  --navy-deep: #0c1830;
  --orange: #fc9631;
  --orange-dark: #e07f15;
  --ink: #313131;
  --gray: #5c6470;
  --gray-light: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(18, 35, 71, 0.08);
  --shadow-lg: 0 16px 48px rgba(18, 35, 71, 0.16);
  --maxw: 1160px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; }

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

/* ---------- Tipografía ---------- */
h1, h2, h3 { color: var(--navy); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 700; }

.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange-dark);
  margin-bottom: 0.9rem;
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--gray); font-size: 1.1rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: 0;
}
.btn-primary {
  background: var(--orange);
  color: var(--navy-deep);
  box-shadow: 0 8px 24px rgba(252, 150, 49, 0.35);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(252, 150, 49, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 35, 71, 0.07);
  transition: box-shadow 0.2s ease;
}
.header.scrolled { box-shadow: var(--shadow); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.4rem; font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: 0.02em; }
.logo-img { height: 26px; width: auto; display: block; }
.logo .tech { color: var(--orange); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--ink); transition: color 0.15s; }
.nav-links a:hover { color: var(--orange-dark); }
.nav-cta { display: flex; align-items: center; gap: 0.9rem; }
.lang-switch { font-size: 0.85rem; font-weight: 700; color: var(--gray); border: 1.5px solid var(--gray-light); border-radius: 999px; padding: 0.35rem 0.8rem; transition: all 0.15s; }
.lang-switch:hover { border-color: var(--navy); color: var(--navy); }
.nav .btn { padding: 0.6rem 1.3rem; font-size: 0.92rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 75% 15%, rgba(252, 150, 49, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 70% at 15% 90%, rgba(252, 150, 49, 0.08), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-dark) 100%);
  color: var(--white);
  padding: calc(72px + clamp(4rem, 9vw, 7rem)) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { color: var(--white); max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub { max-width: 640px; margin: 1.5rem 0 2.4rem; font-size: clamp(1.1rem, 2vw, 1.3rem); color: rgba(255, 255, 255, 0.85); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.6rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 760px;
}
.stat strong { display: block; font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--orange); line-height: 1.1; }
.stat span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Cards de servicios ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid rgba(18, 35, 71, 0.08);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(252, 150, 49, 0.45); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(252, 150, 49, 0.16), rgba(26, 51, 96, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--navy); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--gray); font-size: 0.98rem; }

/* ---------- Beneficios ---------- */
.benefit-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.benefit-list { list-style: none; display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.benefit-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.benefit-list .check {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(252, 150, 49, 0.15);
  color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  margin-top: 2px;
}
.benefit-list strong { color: var(--navy); }
.benefit-list p { color: var(--gray); font-size: 0.96rem; }

.metric-panel {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  display: grid;
  gap: 1.8rem;
  box-shadow: var(--shadow-lg);
}
.metric strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--orange); line-height: 1.05; }
.metric span { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.metric-note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem 1.75rem; border: 1px solid rgba(18, 35, 71, 0.08); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--gray); font-size: 0.93rem; }

/* ---------- Sectores ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.chip {
  background: var(--white);
  border: 1.5px solid rgba(18, 35, 71, 0.12);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

/* ---------- Franja de confianza ---------- */
.trust-band { background: var(--navy-deep); color: rgba(255,255,255,0.85); padding: 2.2rem 0; }
.trust-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; text-align: center; }
.trust-band strong { color: var(--orange); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid rgba(18, 35, 71, 0.09);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--orange); transition: transform 0.2s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.5rem 1.3rem; color: var(--gray); }

/* ---------- CTA final / contacto ---------- */
.cta-final {
  background:
    radial-gradient(ellipse 70% 90% at 80% 10%, rgba(252, 150, 49, 0.2), transparent 60%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  text-align: center;
}
.cta-final h2 { color: var(--white); max-width: 700px; margin: 0 auto 1rem; }
.cta-final p { color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0 auto 2.2rem; font-size: 1.12rem; }

.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 860px; margin: 3rem auto 0; }
.contact-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.6rem 1.25rem;
  color: var(--white);
  transition: background 0.2s, transform 0.2s;
}
.contact-card:hover { background: rgba(255, 255, 255, 0.13); transform: translateY(-4px); }
.contact-card .label { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); font-weight: 700; margin-bottom: 0.4rem; }
.contact-card .value { font-weight: 700; font-size: 1.05rem; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.65); padding: 3rem 0 2rem; font-size: 0.92rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 2rem; }
.footer .logo { color: var(--white); }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer a { color: rgba(255, 255, 255, 0.75); }
.footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Páginas legales ---------- */
.legal-page { padding: calc(72px + 3rem) 0 4rem; max-width: 800px; margin: 0 auto; }
.legal-page h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.legal-page p, .legal-page li { color: var(--gray); margin-bottom: 0.75rem; }
.legal-page ul { padding-left: 1.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .benefit-row { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .stat span { font-size: 0.78rem; }
}
