/* ── Reset & Variables ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Paleta principal */
  --navy:      #0d2240;   /* azul marino profundo */
  --navy2:     #163460;   /* azul medio */
  --teal:      #0e7c6e;   /* verde-azul acento */
  --teal2:     #12a090;   /* teal más brillante */
  --teal-lt:   #e6f5f3;   /* teal muy claro para fondos */
  --sky:       #2d8bba;   /* azul cielo complemento */

  /* Neutros */
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-400:  #94a3b8;
  --gray-600:  #475569;
  --gray-800:  #1e293b;
  --ink:       #0d1821;

  /* Tipografía */
  --font: 'DM Sans', 'Segoe UI', sans-serif;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(13,34,64,.08), 0 1px 2px rgba(13,34,64,.04);
  --shadow-md:  0 4px 16px rgba(13,34,64,.10), 0 2px 6px rgba(13,34,64,.06);
  --shadow-lg:  0 16px 48px rgba(13,34,64,.14), 0 4px 16px rgba(13,34,64,.08);
  --shadow-xl:  0 32px 80px rgba(13,34,64,.18);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ── Labels ──────────────────────────────────────────────────────────────── */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
}
.label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  letter-spacing: .01em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar-right { color: rgba(255,255,255,.9); }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 0 var(--gray-200);
}
.navbar .wrap {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 0; padding-bottom: 0;
  height: 68px;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.18rem; font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.brand-logo {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-logo svg { width: 20px; height: 20px; }

.navlinks {
  display: flex; align-items: center; gap: 2px;
  font-size: .88rem; font-weight: 500;
}
.navlinks a {
  padding: 8px 14px;
  border-radius: 7px;
  color: var(--gray-600);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.navlinks a:hover { color: var(--navy); background: var(--gray-50); }
.navlinks .btn-nav {
  background: var(--teal);
  color: var(--white) !important;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 7px;
  margin-left: 4px;
  transition: background .15s, transform .12s !important;
}
.navlinks .btn-nav:hover { background: var(--teal2) !important; transform: translateY(-1px); }

/* Lang switcher */
.lang-switcher {
  display: flex; align-items: center; gap: 2px;
  background: var(--gray-100);
  border-radius: 7px;
  padding: 3px;
  margin-left: 8px; flex-shrink: 0;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font);
  font-size: .73rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--gray-400);
  padding: 4px 9px; border-radius: 5px;
  transition: background .13s, color .13s;
}
.lang-btn:hover { background: var(--gray-200); color: var(--navy); }
.lang-btn.active { background: var(--navy); color: var(--white); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 600;
  font-size: .92rem; letter-spacing: -.01em;
  padding: 14px 28px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: background .15s, transform .12s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(14,124,110,.3);
}
.btn-primary:hover { background: var(--teal2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,124,110,.4); }
.btn-secondary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13,34,64,.25);
}
.btn-secondary:hover { background: var(--navy2); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--gray-50); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 0;
}
/* Fondo: degradado sutil + líneas geométricas */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 85% 40%, rgba(14,124,110,.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 15% 90%, rgba(45,139,186,.12) 0%, transparent 50%);
}
.hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal2);
  margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--teal2); border-radius: 2px; }
.hero h1 {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 24px;
}
.hero h1 strong { color: var(--teal2); font-weight: 700; }
.hero-desc {
  font-size: 1.08rem; color: rgba(255,255,255,.7);
  max-width: 520px; line-height: 1.75;
  margin-bottom: 40px; font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero .btn-ghost { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.85); }
.hero .btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.07); color: var(--white); }

/* Stats bar */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 0; width: fit-content;
}
.hero-stat {
  padding-right: 32px; margin-right: 32px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.hero-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hero-stat strong {
  display: block;
  font-size: 2rem; font-weight: 700;
  color: var(--white); letter-spacing: -.03em; line-height: 1;
}
.hero-stat strong em {
  font-style: normal; color: var(--teal2); font-size: 1.3rem;
}
.hero-stat span {
  font-size: .78rem; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 500; margin-top: 4px; display: block;
}

/* Hero right: card panel */
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
}
.hero-card-title {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 20px;
}
.hero-div-list { display: flex; flex-direction: column; gap: 6px; }
.hero-div-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  cursor: default;
  transition: background .15s, border-color .15s;
}
.hero-div-item:hover { background: rgba(255,255,255,.09); border-color: rgba(14,124,110,.3); }
.hero-div-icon {
  width: 34px; height: 34px;
  background: rgba(14,124,110,.2);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: .9rem; color: var(--teal2);
  flex-shrink: 0;
}
.hero-div-name { font-size: .88rem; font-weight: 600; color: var(--white); }
.hero-div-sub { font-size: .72rem; color: rgba(255,255,255,.45); }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-gray { background: var(--gray-50); }
.section-navy { background: var(--navy); color: var(--white); }
.section-teal-lt { background: var(--teal-lt); }

.section-head { margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.15;
  color: var(--navy); margin: 10px 0 16px;
}
.section-navy .section-head h2 { color: var(--white); }
.section-head p { font-size: 1rem; color: var(--gray-600); max-width: 560px; line-height: 1.7; }
.section-navy .section-head p { color: rgba(255,255,255,.65); }
.section-head.centered { text-align: center; }
.section-head.centered p { margin: 0 auto; }

/* ── División cards ──────────────────────────────────────────────────────── */
.div-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.div-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 28px 22px;
  transition: border-color .18s, box-shadow .18s, transform .15s;
  cursor: default;
}
.div-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.div-card .d-icon {
  width: 48px; height: 48px;
  background: var(--teal-lt);
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.35rem; color: var(--teal);
  margin-bottom: 18px;
}
.div-card h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
  letter-spacing: -.01em; line-height: 1.25;
}
.div-card p { font-size: .82rem; color: var(--gray-600); line-height: 1.65; }

/* ── Feature split ───────────────────────────────────────────────────────── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.feature-img {
  background: var(--navy2);
  position: relative; overflow: hidden;
  min-height: 480px;
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.feature-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,34,64,.7) 0%, rgba(14,124,110,.15) 100%);
}
.feature-content {
  background: var(--navy);
  padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.feature-content h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.2;
  color: var(--white); margin: 12px 0 20px;
}
.feature-content p { font-size: .95rem; color: rgba(255,255,255,.7); line-height: 1.75; margin-bottom: 32px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: rgba(14,124,110,.2);
  border: 1px solid rgba(14,160,144,.25);
  color: var(--teal2);
  font-size: .75rem; font-weight: 600;
  padding: 6px 13px; border-radius: 100px;
}

/* ── Software grid ───────────────────────────────────────────────────────── */
.sw-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}
.sw-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 32px 26px;
  display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .15s;
}
.sw-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.sw-badge {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
  background: var(--teal-lt); color: var(--teal);
  margin-bottom: 20px; align-self: flex-start;
}
.sw-card h3 {
  font-size: 1.18rem; font-weight: 700;
  color: var(--navy); letter-spacing: -.02em;
  margin-bottom: 10px;
}
.sw-card p { font-size: .85rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 20px; flex: 1; }
.sw-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.sw-card li { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; color: var(--gray-600); }
.sw-card li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0; margin-top: 6px;
}

/* ── Admin grid ──────────────────────────────────────────────────────────── */
.adm-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}
.adm-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 30px 26px;
  transition: border-color .18s, box-shadow .18s;
}
.adm-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.adm-icon { font-size: 1.5rem; color: var(--teal); margin-bottom: 16px; display: block; }
.adm-card h3 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; letter-spacing: -.01em; }
.adm-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.adm-card li { font-size: .82rem; color: var(--gray-600); display: flex; align-items: flex-start; gap: 8px; }
.adm-card li::before { content: ''; width: 5px; height: 5px; background: var(--teal); border-radius: 50%; flex-shrink: 0; margin-top: 7px; }

/* ── Trust bar ───────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
}
.trust-bar .wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .83rem; font-weight: 600; color: var(--gray-600);
}
.trust-item i { font-size: 1.1rem; color: var(--teal); }

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,124,110,.2) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  color: var(--white);
}
.cta-inner p { font-size: .97rem; color: rgba(255,255,255,.65); max-width: 480px; line-height: 1.7; margin-top: 10px; }
.cta-right { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; flex-shrink: 0; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--gray-800); color: var(--white); }
.footer-inner { padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { font-size: 1.05rem; font-weight: 700; color: var(--white); letter-spacing: -.01em; margin-bottom: 14px; }
.footer-brand-logo { background: var(--teal); border-radius: 7px; }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer h4 {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer li { font-size: .85rem; color: rgba(255,255,255,.6); transition: color .13s; cursor: default; }
.footer li:hover { color: var(--white); }
.footer-copy {
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: rgba(255,255,255,.3);
}
.footer-loc { letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }

/* ── Geo toggle ──────────────────────────────────────────────────────────── */
.geo-toggle-btn {
  display: flex; align-items: center; gap: 8px;
  margin: 0 auto 48px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  font-family: var(--font);
  font-size: .82rem; font-weight: 600;
  padding: 11px 22px; border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.geo-toggle-btn:hover { border-color: var(--teal); color: var(--teal); }

/* ── Page hero (subpages) ────────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 80% 50%, rgba(14,124,110,.15) 0%, transparent 60%);
}
.page-hero .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; }
.page-hero .label { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  color: var(--white); margin-bottom: 18px;
}
.page-hero p { font-size: .97rem; color: rgba(255,255,255,.65); max-width: 600px; line-height: 1.7; }

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left > * { animation: fadeUp .6s both; }
.hero-left > .hero-eyebrow  { animation-delay: .05s; }
.hero-left > h1             { animation-delay: .13s; }
.hero-left > .hero-desc     { animation-delay: .22s; }
.hero-left > .hero-actions  { animation-delay: .30s; }
.hero-left > .hero-stats    { animation-delay: .38s; }
.hero-card { animation: fadeUp .7s .25s both; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .div-grid { grid-template-columns: repeat(3,1fr); }
  .sw-grid, .adm-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 880px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-img { min-height: 240px; }
  .cta-inner { flex-direction: column; }
  .cta-right { width: 100%; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .div-grid, .sw-grid, .adm-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .hero-stat { border-right: none; padding-right: 0; margin-right: 0; }
  .navlinks a:not(.btn-nav) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .trust-bar .wrap { gap: 24px; }
}
