/* ===== Significado Lógico — site styles ===== */

:root {
  /* light theme (default) */
  --bg: #f6f7fb;
  --surface: #ffffff;
  --card: #ffffff;
  --border: rgba(15,23,42,0.10);
  --border-strong: rgba(15,23,42,0.22);
  --ink: #10162a;
  --ink-dim: #4c5372;
  --ink-dimmer: #6f7594;
  --header-bg: rgba(246,247,251,0.75);
  --nav-mobile-bg: #ffffff;
  --shadow: 0 20px 50px rgba(15,23,42,0.10);
  --logo-shadow: 0 4px 14px rgba(15,23,42,0.15);
  --input-bg: rgba(15,23,42,0.035);
  --input-bg-focus: rgba(15,23,42,0.055);
  --hover-surface: rgba(15,23,42,0.045);
  --alt-tint: rgba(15,23,42,0.03);
  --glow-opacity: 0.16;
  --mesh-c1: rgba(230,57,74,0.10);
  --mesh-c2: rgba(47,111,224,0.09);
  --mesh-c3: rgba(26,163,119,0.08);

  --red: #e6394a;
  --red-dark: #c22638;
  --blue: #2f6fe0;
  --green: #189a72;
  --purple: #7c3aed;
  --amber: #b8860b;

  --tag-red-bg: rgba(230,57,74,0.10);

  --radius: 18px;
  --container: 1160px;
  --ff-head: 'Poppins', 'Segoe UI', sans-serif;
  --ff-body: 'Inter', 'Segoe UI', sans-serif;
}

/* dark theme via system preference, unless user picked light explicitly */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f1a;
    --surface: rgba(255,255,255,0.045);
    --card: rgba(255,255,255,0.035);
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.2);
    --ink: #eef1fb;
    --ink-dim: #aab2cf;
    --ink-dimmer: #7c85ac;
    --header-bg: rgba(11,15,26,0.7);
    --nav-mobile-bg: #0b0f1a;
    --shadow: 0 20px 50px rgba(0,0,0,0.35);
    --logo-shadow: 0 4px 14px rgba(0,0,0,0.35);
    --input-bg: rgba(255,255,255,0.04);
    --input-bg-focus: rgba(255,255,255,0.06);
    --hover-surface: rgba(255,255,255,0.045);
    --alt-tint: rgba(255,255,255,0.025);
    --glow-opacity: 0.35;
    --mesh-c1: rgba(230,57,74,0.16);
    --mesh-c2: rgba(61,139,253,0.14);
    --mesh-c3: rgba(35,196,143,0.08);

    --blue: #3d8bfd;
    --green: #23c48f;
    --purple: #a78bfa;
    --amber: #f5a623;

    --tag-red-bg: rgba(230,57,74,0.18);
  }
}

/* dark theme via explicit toggle */
:root[data-theme="dark"] {
  --bg: #0b0f1a;
  --surface: rgba(255,255,255,0.045);
  --card: rgba(255,255,255,0.035);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.2);
  --ink: #eef1fb;
  --ink-dim: #aab2cf;
  --ink-dimmer: #7c85ac;
  --header-bg: rgba(11,15,26,0.7);
  --nav-mobile-bg: #0b0f1a;
  --shadow: 0 20px 50px rgba(0,0,0,0.35);
  --logo-shadow: 0 4px 14px rgba(0,0,0,0.35);
  --input-bg: rgba(255,255,255,0.04);
  --input-bg-focus: rgba(255,255,255,0.06);
  --hover-surface: rgba(255,255,255,0.045);
  --alt-tint: rgba(255,255,255,0.025);
  --glow-opacity: 0.35;
  --mesh-c1: rgba(230,57,74,0.16);
  --mesh-c2: rgba(61,139,253,0.14);
  --mesh-c3: rgba(35,196,143,0.08);

  --blue: #3d8bfd;
  --green: #23c48f;
  --purple: #a78bfa;
  --amber: #f5a623;

  --tag-red-bg: rgba(230,57,74,0.18);
}

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

body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
}

p { color: var(--ink-dim); margin: 0 0 16px; }

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

svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* background mesh */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 10%, var(--mesh-c1), transparent 60%),
    radial-gradient(700px circle at 85% 0%, var(--mesh-c2), transparent 60%),
    radial-gradient(900px circle at 50% 100%, var(--mesh-c3), transparent 60%),
    var(--bg);
  transition: background .3s ease;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 10px 25px rgba(230,57,74,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(230,57,74,0.45); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--hover-surface); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease, border-color .3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand-logo {
  height: 38px;
  width: auto;
  background: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  box-shadow: var(--logo-shadow);
  border: 1px solid rgba(15,23,42,0.06);
}
.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-dim);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; }

.theme-toggle {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 20px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle.is-dark .icon-sun { display: none; }
.theme-toggle.is-dark .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .25s ease, opacity .25s ease, background .3s ease; }

/* ===== Hero ===== */
.hero { padding: 90px 0 60px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--tag-red-bg);
  border: 1px solid rgba(230,57,74,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 20px; }
.text-gradient {
  background: linear-gradient(135deg, var(--red), #ff8a65);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--ff-head); font-size: 28px; color: var(--ink); }
.hero-stats span { font-size: 13px; color: var(--ink-dimmer); }

.hero-visual { position: relative; height: 420px; }
.orbit-glow {
  position: absolute; inset: 10%;
  background: radial-gradient(circle, rgba(230,57,74,0.25), transparent 70%);
  filter: blur(30px);
}
.orbit-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 16px 20px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 6s ease-in-out infinite;
}
.orbit-card em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink-dimmer); display: block; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-red { background: var(--red); box-shadow: 0 0 12px var(--red); }
.dot-blue { background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.dot-green { background: var(--green); box-shadow: 0 0 12px var(--green); }
.card-a { top: 6%; left: 4%; animation-delay: 0s; }
.card-b { top: 42%; right: 0%; animation-delay: 1.5s; }
.card-c { bottom: 6%; left: 14%; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--alt-tint) 10%, var(--alt-tint) 90%, transparent); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { font-size: 17px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section:not(.section-head-left) .section-head { margin-left: auto; margin-right: auto; }

/* values */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s ease, border-color .25s ease, background .3s ease;
}
.value-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.value-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(230,57,74,0.2), rgba(230,57,74,0.05));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--red);
}
.value-card h3 { font-size: 19px; margin-bottom: 10px; }
.value-card p { font-size: 15px; margin: 0; }

/* services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: transform .25s ease, border-color .25s ease, background .3s ease;
}
.service-item:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.service-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--tag-red-bg);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 20px; height: 20px; }
.service-item span { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.35; }

/* service detail pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim);
  margin-bottom: 32px;
  transition: color .2s ease, gap .2s ease;
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--red); gap: 10px; }

.service-hero { padding: 48px 0 20px; }
.service-hero-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  background: var(--tag-red-bg);
  color: var(--red);
}
.service-hero-icon svg { width: 30px; height: 30px; }
.service-hero .section-head p { font-size: 18px; }

.cta-block { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-block .btn { margin-top: 8px; }

/* products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.product-card:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.product-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: var(--glow-opacity);
  z-index: 0;
}
.glow-red { background: var(--red); }
.glow-blue { background: var(--blue); }
.glow-green { background: var(--green); }
.glow-purple { background: var(--purple); }
.product-icon {
  position: relative; z-index: 1;
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.icon-red { background: rgba(230,57,74,0.15); color: var(--red); }
.icon-blue { background: rgba(61,139,253,0.15); color: var(--blue); }
.icon-green { background: rgba(35,196,143,0.15); color: var(--green); }
.icon-purple { background: rgba(139,92,246,0.15); color: var(--purple); }
.product-tag {
  position: relative; z-index: 1;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-dimmer);
  margin-bottom: 8px;
}
.product-card h3 { position: relative; z-index: 1; font-size: 24px; margin-bottom: 14px; }
.product-card p { position: relative; z-index: 1; font-size: 15px; margin-bottom: 20px; }
.product-features { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.product-features li {
  font-size: 14px;
  color: var(--ink-dim);
  padding-left: 22px;
  position: relative;
}
.product-features li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}
.product-link {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border-strong);
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}
.product-link svg { width: 15px; height: 15px; }
.product-link:hover { color: var(--red); border-color: var(--red); gap: 12px; }

.product-status {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--amber);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #f5a623;
  flex-shrink: 0;
  animation: status-pulse 2s infinite;
}
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,166,35,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(245,166,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); }
}

/* contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.contact-list strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.contact-list a { color: var(--ink-dim); font-size: 15px; transition: color .2s ease; }
.contact-list a:hover { color: var(--red); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 18px;
  transition: background .3s ease, border-color .3s ease;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { font-size: 13px; font-weight: 600; color: var(--ink-dim); display: grid; gap: 8px; }
.contact-form input, .contact-form textarea {
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--input-bg-focus);
}
.form-note { font-size: 13px; color: var(--green); min-height: 18px; margin: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding-top: 60px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-logo {
  height: 32px;
  margin-bottom: 14px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  display: inline-block;
  border: 1px solid rgba(15,23,42,0.06);
}
.footer-brand p { max-width: 320px; font-size: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 14px; color: var(--ink); margin-bottom: 14px; }
.footer-cols a { display: block; font-size: 14px; color: var(--ink-dim); margin-bottom: 10px; transition: color .2s ease; }
.footer-cols a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  font-size: 13px;
  color: var(--ink-dimmer);
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--ink-dimmer); transition: color .2s ease; }
.footer-bottom a:hover { color: var(--red); }

/* legal content pages */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 { font-size: 22px; margin-top: 40px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; }
.legal-content ul { margin: 0 0 16px; padding-left: 22px; }
.legal-content li { font-size: 15px; color: var(--ink-dim); margin-bottom: 8px; }
.legal-content strong { color: var(--ink); }
.legal-content .updated-note { font-size: 13px; color: var(--ink-dimmer); margin-bottom: 40px; }

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

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; order: -1; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--nav-mobile-bg); flex-direction: column; padding: 32px 24px; gap: 8px; transform: translateX(100%); transition: transform .3s ease, background .3s ease; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .theme-toggle { margin-left: 12px; }
  .values-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .section { padding: 70px 0; }
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
