/* PoluxSoft — rediseño v2: navy del logo + acento ámbar, Space Grotesk + Inter */
:root {
  --navy-950: #141b2b;
  --navy-900: #1a2336;
  --navy-800: #232e45;
  --navy-700: #2e3a55;
  --navy-600: #3c4c6b;
  --accent: #e9a13b;
  --accent-soft: #f0bd74;
  --text: #1b2434;
  --text-muted: #5b6577;
  --text-inverse: #eef1f6;
  --text-inverse-muted: #aab6c8;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --border: #e3e7ee;
  --radius: 10px;
  --container: 1160px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

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

h1, h2, h3, .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: 52px; }
h2 { font-size: 38px; margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 10px; }

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-intro {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 40px; width: auto; border-radius: 8px; }
.brand-name { font-size: 20px; color: var(--navy-800); }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.site-nav a:hover { color: var(--navy-700); text-decoration: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy-700); color: #ffffff; }
.btn-primary:hover { background: var(--navy-800); color: #ffffff; }
.btn-accent { background: var(--accent); color: var(--navy-950); }
.btn-accent:hover { background: var(--accent-soft); color: var(--navy-950); }
.btn-ghost {
  background: transparent;
  color: var(--text-inverse);
  border-color: var(--navy-600);
}
.btn-ghost:hover { border-color: var(--text-inverse); color: var(--text-inverse); }
.site-nav .btn-nav {
  background: var(--navy-700);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
}
.site-nav .btn-nav:hover { background: var(--navy-800); color: #ffffff; }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-alt {
  background:
    radial-gradient(rgba(46, 58, 85, .05) 1px, transparent 1px),
    linear-gradient(180deg, #f2f5f9 0%, #eef2f7 100%);
  background-size: 22px 22px, 100% 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-dark {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--text-inverse);
}
.section-dark h1, .section-dark h2 { color: #ffffff; }
.section-dark p { color: var(--text-inverse-muted); }
.section-dark a { color: var(--text-inverse); }
.contact-line { font-size: 18px; font-weight: 600; margin-top: 8px; }
.section-dark .contact-line a { color: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-950) 85%);
  color: var(--text-inverse);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(233, 161, 59, .14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 0%, transparent 70%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}
.hero h1 { color: #ffffff; margin-bottom: 20px; }
.hero-sub {
  font-size: 19px;
  color: var(--text-inverse-muted);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-badges li {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-inverse-muted);
  padding-left: 22px;
  position: relative;
}
.hero-badges li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 12L2 7.6l1.4-1.4 3.1 3L12.6 3 14 4.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 12L2 7.6l1.4-1.4 3.1 3L12.6 3 14 4.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero-media svg { width: 100%; height: auto; }

/* ---------- Tarjetas ---------- */
.cards { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  opacity: 0;
  transition: opacity .18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 27, 43, .10);
  border-color: #d3dae4;
}
.card:hover::before { opacity: 1; }
.card-featured {
  border: 2px solid var(--accent);
  position: relative;
}
.card-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 12px;
  border-radius: 999px;
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-featured .card-icon { background: rgba(233, 161, 59, .14); color: var(--accent); }
.card-icon svg { width: 24px; height: 24px; }
.card p { color: var(--text-muted); }

/* ---------- Cómo trabajamos ---------- */
.feature h3 { display: flex; align-items: baseline; gap: 12px; }
.feature-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.feature p { color: var(--text-muted); max-width: 460px; }
.cards-2 .feature { padding: 8px 0; }

/* ---------- Athena ---------- */
.section-athena {
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(233, 161, 59, .10), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-950) 90%);
  color: var(--text-inverse);
}
.section-athena h2 { color: #ffffff; }
.accent-dot { color: var(--accent); }
.athena-lead { color: var(--text-inverse-muted); margin-bottom: 24px; }
.check-list { list-style: none; margin: 0 0 32px; }
.check-list li {
  color: var(--text-inverse-muted);
  padding: 6px 0 6px 30px;
  position: relative;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 12L2 7.6l1.4-1.4 3.1 3L12.6 3 14 4.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 12L2 7.6l1.4-1.4 3.1 3L12.6 3 14 4.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.split-center { align-items: center; }

.terminal {
  background: #10151f;
  border: 1px solid var(--navy-600);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  overflow: hidden;
  font-size: 14px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #1a2130;
  border-bottom: 1px solid #29334a;
}
.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3c4c6b;
}
.terminal-bar span:first-child { background: #e0655a; }
.terminal-bar span:nth-child(2) { background: #e9a13b; }
.terminal-bar span:nth-child(3) { background: #4fb06d; }
.terminal-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: #5b6a85;
}
.terminal-body {
  margin: 0;
  padding: 20px 22px;
  font-family: 'Cascadia Code', Consolas, 'SF Mono', Menlo, monospace;
  line-height: 1.75;
  color: #d5dce8;
  overflow-x: auto;
}
.t-dim { color: #5f6f8d; }
.t-ok { color: #58c07c; }
.t-accent { color: var(--accent-soft); font-weight: 600; }
.t-cursor { color: #d5dce8; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.check-list strong { color: var(--text-inverse); font-weight: 700; }

/* ---------- Casos de éxito ---------- */
.case-grid { margin-bottom: 40px; }
.case-card { display: flex; flex-direction: column; }
.case-card > a { margin-top: auto; font-weight: 600; color: var(--navy-700); }
.case-card p { margin-bottom: 14px; }
.case-card-featured {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border-color: var(--navy-700);
}
.case-card-featured h3 { color: #ffffff; }
.case-card-featured p { color: var(--text-inverse-muted); }
.case-card-featured > a { color: var(--accent-soft); }
.case-client {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 12px;
}
.case-card-featured .case-client { color: var(--accent-soft); }
.quotes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.quotes-row .quote {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
}
.quotes-row .quote p {
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
}

/* ---------- Blog ---------- */
.blog-card a { color: var(--text); }
.blog-card a:hover { color: var(--navy-700); text-decoration: none; }
.blog-card h3 { font-size: 20px; }
.blog-meta { color: var(--text-muted); font-size: 14px; margin-top: 14px; }

/* ---------- Artículos ---------- */
.article { max-width: 740px; }
.article h1 { font-size: 38px; margin-bottom: 10px; }
.article-lead { font-size: 19px; color: var(--text-muted); margin: 20px 0 16px; }
.article p { margin-bottom: 16px; }

/* ---------- Layout dividido ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.split-text h2, .split-text h1 { margin-bottom: 16px; }
.split-text > p { margin-bottom: 8px; }
.page-hero .split-text h1 { font-size: 42px; }

/* ---------- Formulario ---------- */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: 15px; }
.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid #b8c0cc;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.section-dark .form-field label { color: var(--text-inverse); }
.section-dark .form-field input,
.section-dark .form-field textarea {
  background: rgba(255, 255, 255, .06);
  border-color: var(--navy-600);
  color: var(--text-inverse);
}
.contact-form .btn { align-self: flex-start; border: 0; }
.section-dark .contact-form .btn-primary {
  background: var(--accent);
  color: var(--navy-950);
}
.section-dark .contact-form .btn-primary:hover { background: var(--accent-soft); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-notice {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
}
.form-success { background: #e5f5e9; color: #1d6b34; }
.form-error { background: #fdeaea; color: #a12b2b; }
.section-dark .form-success,
.section-dark .form-error { background: rgba(255, 255, 255, .95); }

/* ---------- Oficina / mapa ---------- */
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: stretch;
}
.office-info { display: flex; flex-direction: column; gap: 24px; }
.office-info .card { flex: 1; }
.btn-map { margin-top: 12px; padding: 10px 20px; font-size: 15px; }
.map-embed {
  width: 100%;
  min-height: 380px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--text-inverse);
  padding: 64px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
}
.footer-brand .brand-name { color: #ffffff; }
.site-footer h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff;
}
.site-footer p { margin-bottom: 8px; color: var(--text-inverse-muted); }
.site-footer a { color: var(--text-inverse-muted); }
.site-footer a:hover { color: #ffffff; }
.footer-tagline { margin-top: 16px; max-width: 340px; }
.site-footer .brand-logo { background: #ffffff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 24px;
}
.footer-bottom p { font-size: 14px; color: #7d8798; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: 1fr; }
  .quotes-row { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  h1 { font-size: 36px; }
  h2 { font-size: 29px; }
  .page-hero .split-text h1 { font-size: 32px; }
  .section { padding: 60px 0; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .hero-media { max-width: 420px; }
  .split, .cards-2, .footer-inner, .office-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 18px; }
  .site-nav a:not(.btn-nav) { display: none; }
}
