@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Paleta DII / Ancora */
  --petroleo: #0a1b2e;
  --petroleo-mid: #14304f;
  --petroleo-light: #2f5a82;
  --gold: #b8933f;
  --gold-light: #d4b76a;
  --celeste: #0284c7;
  --celeste-light: #7dd3fc;
  --navy: var(--petroleo);
  --navy-mid: var(--petroleo-mid);
  --sky: var(--celeste);
  --sky-light: var(--celeste-light);
  --bg-deep: #ffffff;
  --bg: #ffffff;
  --bg-elevated: #f4f7fb;
  --metal-light: #0f172a;
  --metal: #334155;
  --metal-dark: #64748b;
  --accent: #0284c7;
  --accent-soft: rgba(2, 132, 199, 0.12);
  --line: rgba(10, 27, 46, 0.1);
  --text: #0f172a;
  --muted: #64748b;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[lang='en'] .lang-es { display: none !important; }
html[lang='es'] .lang-en { display: none !important; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #ffffff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: 'Barlow Semi Condensed', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin-top: 0;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { color: var(--muted); margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  background: var(--navy);
  backdrop-filter: blur(16px);
}
.site-header--light {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}
.site-header--light .brand-text { color: var(--metal-light); }
.site-header--light .brand-text small { color: var(--metal); }
.site-header--light .nav-link {
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  line-height: 1.25;
  box-sizing: border-box;
}
.site-header--light .nav-link:hover,
.site-header--light .nav-link.active {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
  font-weight: 500;
}
.site-header--light .menu-toggle {
  border-color: var(--line);
  color: var(--text);
}
.site-header--light .header-cta {
  background: linear-gradient(145deg, #d4dae2 0%, #8b939e 50%, #c5ccd4 100%);
  color: #0a0b0e;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
}
.site-ancora {
  background: #ffffff;
  color: var(--petroleo);
}
.site-ancora .prose-lead,
.page-home .hero-lead.prose-lead {
  color: #5f6d81;
  font-size: 17px;
  line-height: 1.62;
  max-width: 34rem;
  margin-top: 0;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
.site-ancora .prose-lead strong,
.page-home .hero-lead strong {
  color: var(--petroleo-mid);
  font-weight: 600;
}
.page-hero .prose-lead {
  max-width: 38rem;
}
@media (max-width: 520px) {
  .site-ancora .prose-lead,
  .page-home .hero-lead {
    text-align: left;
    text-align-last: left;
    max-width: none;
  }
}
.site-ancora .site-header--light,
.page-home .site-header--light {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(10, 27, 46, 0.08);
}
.site-ancora .site-header--light .brand-text,
.page-home .site-header--light .brand-text { color: var(--petroleo); }
.site-ancora .site-header--light .brand-text small,
.page-home .site-header--light .brand-text small { color: var(--gold); letter-spacing: 0.16em; }
.site-ancora .site-header--light .nav-link.active,
.page-home .site-header--light .nav-link.active {
  color: var(--petroleo-mid);
  background: rgba(2, 132, 199, 0.08);
}
.site-ancora .site-header--light .header-cta,
.page-home .site-header--light .header-cta {
  background: linear-gradient(145deg, #d4dae2 0%, #8b939e 50%, #c5ccd4 100%);
  color: var(--petroleo);
  box-shadow: 0 4px 20px rgba(10, 27, 46, 0.1);
}
.site-ancora .btn-primary,
.page-home .btn-primary {
  background: linear-gradient(135deg, var(--petroleo-mid) 0%, var(--petroleo) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(10, 27, 46, 0.18);
}
.site-ancora .btn-primary:hover,
.page-home .btn-primary:hover {
  background: linear-gradient(135deg, var(--celeste) 0%, var(--petroleo-mid) 100%);
}
.site-ancora .btn-outline,
.page-home .btn-outline {
  color: var(--petroleo-mid);
  border: 1px solid rgba(20, 48, 79, 0.25);
}
.site-ancora .btn-outline:hover,
.page-home .btn-outline:hover {
  border-color: var(--celeste);
  color: var(--celeste);
}
.page-home .hero-title {
  color: var(--petroleo);
  letter-spacing: -0.02em;
  hyphens: none;
  line-height: 1.08;
  max-width: 13.5em;
}
.page-home .hero-title-ink { color: var(--petroleo); }
.page-home .hero-title-accent {
  color: var(--petroleo-light);
  white-space: nowrap;
}
.page-home .hero-lead {
  margin: 20px 0 28px;
}
.page-home .hero > div:first-child { max-width: 34rem; }
@media (max-width: 520px) {
  .page-home .hero-title-accent { white-space: normal; }
}
.site-ancora .eyebrow,
.page-home .eyebrow { color: var(--gold); }
.site-ancora .page-hero h1,
.page-home h2,
.site-ancora h2,
.site-ancora h3,
.page-home h3 { color: var(--petroleo); }
.site-ancora .card-link,
.site-ancora a.card-link,
.page-home .card-link,
.page-home a.card-link { color: var(--celeste); }
.site-ancora .card-icon,
.page-home .card-icon {
  color: var(--petroleo-mid);
  background: rgba(2, 132, 199, 0.1);
}
.site-ancora .tag,
.page-home .tag {
  background: rgba(184, 147, 63, 0.12);
  color: var(--gold);
}
.site-ancora .metric {
  background: #fff;
  border: 1px solid rgba(10, 27, 46, 0.08);
  border-top: 3px solid var(--gold);
}
.site-ancora .metric strong {
  font-family: 'Barlow Semi Condensed', sans-serif;
  color: var(--petroleo-mid);
}
.site-ancora .lines-table th {
  background: rgba(10, 27, 46, 0.04);
  color: var(--petroleo-mid);
}
.site-ancora .lines-table td:first-child { color: var(--petroleo); }
.page-home .hero-visual {
  border-color: rgba(10, 27, 46, 0.1);
  background: linear-gradient(145deg, #f8fafc, #eef2f7);
}
.page-home .hero-badge {
  color: var(--celeste);
  border-color: rgba(2, 132, 199, 0.25);
}
.site-ancora .strip,
.page-home .strip {
  background: linear-gradient(125deg, var(--petroleo) 0%, var(--petroleo-mid) 55%, #1a3a5c 100%);
  border-color: rgba(184, 147, 63, 0.35);
  border-bottom: 3px solid var(--gold);
}
.site-ancora .strip .eyebrow,
.page-home .strip .eyebrow { color: var(--gold-light); }
.site-ancora .strip h2,
.page-home .strip h2 { color: #fff; }
.site-ancora .strip p,
.page-home .strip p { color: rgba(226, 232, 240, 0.85); }
.site-ancora .strip .btn-primary,
.page-home .strip .btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--petroleo);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  height: 44px;
  width: auto;
}
.brand-text {
  display: none;
}
@media (min-width: 520px) {
  .brand-text {
    display: block;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    color: #f8fafc;
  }
  .brand-text small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--sky-light);
    margin-top: 2px;
  }
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.72);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.header-actions {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}
.lang-toggle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: transparent;
  color: var(--sky-light);
  cursor: pointer;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.06); }
.header-cta {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky) 0%, #0369a1 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition: transform 0.2s var(--ease);
}
.header-cta:hover { transform: translateY(-2px); }
.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #f8fafc;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--sky) 0%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.28);
}
.btn-outline {
  background: transparent;
  color: var(--metal);
  border: 1px solid var(--line);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--metal);
  margin-bottom: 16px;
  display: block;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--navy-mid), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-home .hero h1 span {
  background: none;
  -webkit-text-fill-color: unset;
}
.hero-lead {
  font-size: 18px;
  max-width: 520px;
  margin: 20px 0 28px;
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent),
    var(--bg-elevated);
  padding: 32px;
  box-shadow: var(--shadow);
}
.hero-logo-large {
  max-width: 320px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.6));
}
.hero-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 12px;
  border: 1px solid var(--accent-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
}

.metrics {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  text-align: center;
}
.metric strong {
  display: block;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 2rem;
  color: var(--metal-light);
}
.metric span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 24px;
}
.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-head h2 { margin-bottom: 12px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.card:hover {
  border-color: rgba(126, 184, 255, 0.35);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 18px;
}
.card p { font-size: 14px; margin-bottom: 16px; }
.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.strip {
  max-width: 1100px;
  margin: 0 auto 56px;
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(125deg, #f0f4f8 0%, #ffffff 50%, #eef2f7 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.strip h2 { margin-bottom: 8px; max-width: 520px; }
.strip p { margin: 0; max-width: 480px; }

.product-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}
.product-spotlight h3 { font-size: 1.5rem; color: var(--metal-light); }
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 12px;
}

.page-hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 17px; max-width: 640px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--metal-light);
  margin-bottom: 16px;
}
input, select, textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 120px; resize: vertical; }

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: #f8f9fb;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-inner img { height: 36px; opacity: 0.9; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--metal-dark);
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s var(--ease);
  pointer-events: none;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateY(0); }

.tagline-band {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #f8fafc;
  text-align: center;
  padding: 28px 24px;
}
.tagline-band .tagline-main {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  color: #fff;
}
.tagline-band .tagline-sub {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-light);
}
.hero-enterprise {
  grid-template-columns: 1fr;
  text-align: center;
  padding-top: 64px;
}
.hero-enterprise .hero-lead { margin-left: auto; margin-right: auto; }
.hero-enterprise .actions { justify-content: center; }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar {
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  border-top: 3px solid var(--sky);
}
.pillar h3 { color: var(--navy); margin-bottom: 10px; }
.pillar p { font-size: 14px; margin: 0; }
.lines-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.lines-table th,
.lines-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.lines-table th {
  font-family: 'Barlow Semi Condensed', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--navy-mid);
  background: var(--bg-elevated);
}
.lines-table td:first-child { font-weight: 600; color: var(--navy); width: 22%; }

@media (max-width: 900px) {
  .hero, .product-spotlight, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .metrics, .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: var(--navy);
    border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  }
  .site-header--light .main-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .header-actions { display: none; }
  .site-header { position: relative; }
}
.case-block {
  margin-bottom: 28px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}
.case-block h3 {
  font-size: 1.35rem;
  color: var(--metal-light);
  margin-bottom: 8px;
}
.case-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--metal);
  margin-bottom: 14px;
}
.case-block p { font-size: 15px; line-height: 1.65; margin-bottom: 14px; }
.case-block ul {
  margin: 0 0 8px;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 14px;
}
.case-block li { margin-bottom: 6px; }
.case-note {
  font-size: 12px;
  color: var(--metal-dark);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 520px) {
  .metrics, .grid-3 { grid-template-columns: 1fr; }
}
