/* ==========================================================================
   EOS Sistemas — Site CSS
   ========================================================================== */

:root {
  /* Brand palette — extracted from the EOS logo (red → violet network, orange wordmark) */
  --color-red: #8a1538;
  --color-red-light: #b2244f;
  --color-violet: #4a2a72;
  --color-violet-light: #6b3f9e;
  --color-orange: #f2703c;
  --color-orange-light: #ff9459;

  --gradient-brand: linear-gradient(120deg, var(--color-red) 0%, var(--color-violet) 100%);
  --gradient-brand-soft: linear-gradient(120deg, rgba(138, 21, 56, 0.08) 0%, rgba(74, 42, 114, 0.08) 100%);

  --ink-900: #1b1621;
  --ink-700: #423a4c;
  --ink-500: #6d6377;
  --ink-300: #a89fb2;
  --ink-100: #e9e5ee;

  --surface-0: #ffffff;
  --surface-50: #faf8fc;
  --surface-100: #f3effa;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(27, 22, 33, 0.06);
  --shadow-md: 0 12px 32px rgba(27, 22, 33, 0.10);
  --shadow-lg: 0 24px 60px rgba(27, 22, 33, 0.16);

  --container: 1180px;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
p { line-height: 1.65; color: var(--ink-500); margin: 0; }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); color: var(--ink-900); }
.section-head p { margin-top: 14px; font-size: 17px; }

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: var(--surface-0);
  color: var(--ink-900);
  border-color: var(--ink-100);
}
.btn-ghost:hover { border-color: var(--color-violet-light); color: var(--color-violet); }

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.24); }

.btn-sm { padding: 10px 20px; font-size: 14px; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-700);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--color-red); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--ink-100);
  background: var(--surface-0);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-900);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 168px 0 110px;
  background: var(--surface-50);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  z-index: 0;
}
.hero::before {
  width: 480px; height: 480px;
  background: var(--color-red);
  top: -180px; right: -120px;
}
.hero::after {
  width: 420px; height: 420px;
  background: var(--color-violet);
  bottom: -200px; left: -140px;
  opacity: 0.25;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 54px);
  color: var(--ink-900);
}
.hero-copy p.lead {
  margin-top: 22px;
  font-size: 18px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-trust { display: flex; align-items: center; gap: 22px; margin-top: 46px; flex-wrap: wrap; }
.hero-trust-item { display: flex; flex-direction: column; }
.hero-trust-item strong { font-size: 22px; color: var(--ink-900); }
.hero-trust-item span { font-size: 13px; color: var(--ink-500); }
.hero-trust-divider { width: 1px; height: 34px; background: var(--ink-100); }

.hero-visual { position: relative; }
.hero-card {
  background: var(--surface-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  border: 1px solid var(--ink-100);
  transform: rotate(1.2deg);
}
.hero-card img { border-radius: var(--radius-md); }
.hero-badge {
  position: absolute;
  background: var(--surface-0);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ink-100);
}
.hero-badge.badge-top { top: -22px; left: -28px; transform: rotate(-3deg); }
.hero-badge.badge-bottom { bottom: -24px; right: -20px; transform: rotate(2deg); }
.hero-badge .dot {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.hero-badge strong { display: block; font-size: 15px; color: var(--ink-900); }
.hero-badge span { font-size: 12px; color: var(--ink-500); }

/* Stats bar ------------------------------------------------------------ */
.stats-bar {
  background: var(--ink-900);
  padding: 46px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .counter {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
}
.stat-item .counter-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  display: block;
}

/* Pillars / features ----------------------------------------------------- */
.pillars { padding: 110px 0; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar-card {
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  background: var(--surface-0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient-brand-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--color-red);
}
.pillar-card h3 { font-size: 19px; color: var(--ink-900); margin-bottom: 10px; }
.pillar-card p { font-size: 15px; }

/* Services ---------------------------------------------------------------- */
.services { padding: 0 0 110px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface-50);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.service-card:hover::after { opacity: 1; }
.service-card .pillar-icon { background: #fff; box-shadow: var(--shadow-sm); }
.service-card h3 { font-size: 20px; color: var(--ink-900); margin-bottom: 12px; }
.service-card p { font-size: 15px; }

/* Systems showcase ------------------------------------------------------- */
.systems { padding: 110px 0; background: var(--surface-50); }
.system-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}
.system-row:last-child { margin-bottom: 0; }
.system-row.reverse .system-media { order: 2; }
.system-row.reverse .system-copy { order: 1; }

.system-media {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--ink-100);
}

.system-copy .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gradient-brand-soft);
  color: var(--color-red);
  margin-bottom: 18px;
}
.system-copy h3 { font-size: 28px; color: var(--ink-900); margin-bottom: 14px; }
.system-copy > p { font-size: 16px; margin-bottom: 22px; }

.feature-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-700);
  font-weight: 600;
}
.feature-list li .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* CTA banner --------------------------------------------------------------- */
.cta-banner {
  max-width: var(--container);
  margin: 0 auto;
  margin-left: max(24px, calc((100% - var(--container)) / 2));
  margin-right: max(24px, calc((100% - var(--container)) / 2));
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  padding: 64px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.18), transparent 55%);
}
.cta-banner h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); max-width: 480px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.82); margin-top: 12px; max-width: 480px; position: relative; }
.cta-banner .cta-actions { display: flex; gap: 14px; position: relative; flex-wrap: wrap; }

/* Contact ---------------------------------------------------------------- */
.contact { padding: 110px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(26px, 3vw, 34px); color: var(--ink-900); margin-bottom: 16px; }
.contact-info p.lead { font-size: 16px; margin-bottom: 30px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-list li:hover { border-color: var(--color-violet-light); transform: translateX(4px); }
.contact-list .ci-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gradient-brand-soft);
  color: var(--color-red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-card {
  background: var(--surface-50);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--ink-100);
}
.contact-card h3 { font-size: 20px; color: var(--ink-900); margin-bottom: 8px; }
.contact-card p { font-size: 15px; margin-bottom: 24px; }

.contact-hours { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.contact-hours li { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-700); }
.contact-hours li strong { color: var(--ink-900); font-weight: 700; }
.contact-card .btn { width: 100%; }

/* Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,0.7); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 38px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom small { font-size: 13px; color: rgba(255,255,255,0.5); }
.social-icons { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social-icons a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.social-icons a:hover { background: var(--gradient-brand); }

/* Back to top -------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

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

/* Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .system-row, .system-row.reverse { grid-template-columns: 1fr; }
  .system-row.reverse .system-media,
  .system-row.reverse .system-copy { order: initial; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 860px) {
  .main-nav, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .pillars-grid, .services-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 44px 32px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
  .hero-badge { display: none; }
}

/* Mobile nav drawer ---------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--surface-0);
  z-index: 99;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { font-size: 22px; font-weight: 700; color: var(--ink-900); }
.mobile-nav .btn { margin-top: 12px; align-self: flex-start; }

body.nav-open { overflow: hidden; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg) translate(5px, 5px); }
body.nav-open .nav-toggle span::after { transform: rotate(-45deg) translate(5px, -5px); }
