:root {
  --accent: #ff425c;
  --base: #161d2b;
  --text-soft: #8b9cb0;
  --teal: #1aa6b7;
  --soft-bg: #e6f5f6;
  --white: #ffffff;
  --border: #d8e5ea;
  --bg: #f7fafb;
  --radius: 28px;
  --shadow: 0 18px 40px rgba(22, 29, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--base);
}

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

img {
  max-width: 100%;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: linear-gradient(180deg, var(--white), var(--bg));
}

.section-bordered,
.category-section.section-bordered {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(22, 29, 43, .05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 210px;
}

.brand img {
  max-height: 52px;
}

.brand-fallback {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.brand-sub {
  font-size: .88rem;
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  font-size: .98rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 10px 14px;
  border-radius: 14px;
  font: inherit;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 18px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .25s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 66, 92, .22);
}

.btn-primary:hover {
  background: #e73852;
}

.btn-secondary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(26, 166, 183, .18);
}

.btn-secondary:hover {
  background: #1594a3;
}

.btn-small {
  padding: 12px 16px;
  font-size: .95rem;
}

/* TYPOGRAPHY */
.eyebrow-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(26, 166, 183, .08);
  border: 1px solid rgba(26, 166, 183, .24);
}

.eyebrow {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.eyebrow-light {
  color: rgba(255, 255, 255, .86);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -.03em;
}

h1 {
  font-size: clamp(3.7rem, 5.3vw, 5.9rem);
  line-height: 1.02;
  margin-top: 18px;
  max-width: 860px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.02;
  margin-top: 14px;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

p {
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 1.06rem;
  margin: 0;
}

.lead {
  margin-top: 26px;
  max-width: 760px;
  font-size: 1.16rem;
  line-height: 1.78;
}

/* HERO GENERAL CORREGIDO SEGÚN REFERENCIA SQUARESPACE */
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 0;
}

.hero-actions .btn {
  padding: 15px 24px;
  border-radius: 16px;
  font-size: 15px;
}

.hero-grid > div:first-child {
  min-width: 0;
}

/* HOME */
.hero:not(.hero-software) .hero-grid > div:first-child h1 {
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--base);
  max-width: 760px;
  text-wrap: unset;
}

.hero:not(.hero-software) .hero-grid > div:first-child .lead {
  font-size: 19px;
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0;
  max-width: 760px;
}

/* SOFTWARE */
.hero-software .hero-grid--software {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-software .hero-grid--software > div:first-child {
  min-width: 0;
}

.hero-software .hero-grid--software > div:first-child h1 {
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--base);
  max-width: 760px;
  text-wrap: unset;
}

.hero-software .hero-grid--software > div:first-child .lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0;
  max-width: 760px;
}

/* MINI CARDS */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.mini-card,
.pillar-card,
.service-card,
.value-card,
.sector-card,
.portfolio-card,
.portfolio-chip,
.info-card,
.software-card,
.stat-card,
.feature-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(22, 29, 43, .04);
}

.mini-card {
  padding: 18px;
  min-height: auto;
}

.mini-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.mini-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* HOME HERO VISUAL */
.hero-visuals {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  align-items: stretch;
}

.media-card,
.hero-main-photo {
  min-height: 190px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
}

.hero-main-photo {
  min-height: 560px;
  background:
    linear-gradient(135deg, rgba(26, 166, 183, .10), rgba(255, 66, 92, .05)),
    url('../assets/hero-main.jpg') center/cover no-repeat,
    linear-gradient(135deg, #dceff2, #f6fbfc);
}

.hero-side-stack {
  display: grid;
  gap: 16px;
  grid-template-rows: repeat(3, 1fr);
}

.media-card {
  min-height: 176px;
}

.media-card--1 {
  background:
    linear-gradient(135deg, rgba(26, 166, 183, .12), rgba(255, 255, 255, .15)),
    url('../assets/hero-side-1.jpg') center/cover no-repeat,
    linear-gradient(135deg, #dceff2, #f9fcfc);
}

.media-card--2 {
  background:
    linear-gradient(135deg, rgba(26, 166, 183, .08), rgba(255, 66, 92, .05)),
    url('../assets/hero-side-2.jpg') center/cover no-repeat,
    linear-gradient(135deg, #ebf7f7, #fdfefe);
}

.media-card--3 {
  background:
    linear-gradient(135deg, rgba(26, 166, 183, .12), rgba(255, 66, 92, .08)),
    url('../assets/hero-side-3.jpg') center/cover no-repeat,
    linear-gradient(135deg, #eaf7f8, #fcfeff);
}

.media-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 29, 43, .10) 0%, rgba(22, 29, 43, .82) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.media-overlay span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}

.media-overlay strong {
  display: block;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: #ffffff;
  max-width: 360px;
}

/* SOFTWARE HERO VISUAL */
.portfolio-board {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  padding: 18px;
  border-radius: 34px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 560px;
  margin-left: auto;
}

.portfolio-card {
  padding: 22px;
}

.portfolio-card-large {
  background: var(--soft-bg);
  grid-row: span 2;
}

.portfolio-card-large h3 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.portfolio-card-large p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 10px;
}

.portfolio-card-dark {
  background: linear-gradient(135deg, var(--base), #0d1323);
  color: var(--white);
}

.portfolio-card-dark h3 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}

.portfolio-chip {
  padding: 12px 14px;
  font-size: 13px;
  text-align: center;
}

/* RESPONSIVE HERO */
@media (max-width: 991px) {
  .hero-grid,
  .hero-software .hero-grid--software {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero:not(.hero-software) .hero-grid > div:first-child h1 {
    font-size: 48px;
    max-width: none;
  }

  .hero:not(.hero-software) .hero-grid > div:first-child .lead,
  .hero-software .hero-grid--software > div:first-child .lead {
    max-width: none;
  }

  .hero-software .hero-grid--software > div:first-child h1 {
    font-size: 44px;
    max-width: none;
  }

  .hero-visuals,
  .portfolio-board {
    grid-template-columns: 1fr;
  }

  .hero-side-stack {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }

  .mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-board {
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .hero:not(.hero-software) .hero-grid > div:first-child h1 {
    font-size: 36px !important;
    line-height: 1.08;
  }

  .hero:not(.hero-software) .hero-grid > div:first-child .lead,
  .hero-software .hero-grid--software > div:first-child .lead {
    font-size: 16px !important;
    line-height: 1.7;
  }

  .hero-software .hero-grid--software > div:first-child h1 {
    font-size: 32px !important;
    line-height: 1.08;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .mini-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-main-photo {
    min-height: 280px;
    border-radius: 22px;
  }

  .hero-side-stack {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .media-card {
    min-height: 180px;
    border-radius: 20px;
  }

  .media-overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .media-overlay strong {
    font-size: 16px;
    max-width: none;
  }

  .portfolio-card-large h3,
  .portfolio-card-dark h3 {
    font-size: 20px;
  }
}

/* ABOUT / VALUE / CTA / INTRO */
.about-grid,
.value-grid,
.cta-shell,
.intro-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.about-grid {
  grid-template-columns: 1fr 1.1fr;
}

.pillars-grid,
.value-cards,
.sectors-grid,
.solutions-grid,
.three-cards,
.feature-blocks,
.stats-grid {
  display: grid;
  gap: 18px;
}

.pillars-grid {
  grid-template-columns: repeat(2, 1fr);
}

.pillar-card {
  padding: 22px;
  background: var(--soft-bg);
}

.split-head {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 24px;
  align-items: end;
}

.solutions-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
}

.service-card {
  padding: 30px;
  background: #fbfdfe;
}

.service-icon,
.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  margin-bottom: 18px;
}

.value-grid {
  grid-template-columns: .95fr 1.05fr;
}

.value-panel,
.cta-shell {
  border-radius: 32px;
  background: linear-gradient(135deg, var(--base), #0f1320);
  color: var(--white);
  box-shadow: var(--shadow);
}

.value-panel {
  padding: 42px;
}

.value-panel p {
  color: rgba(255, 255, 255, .82);
  margin-top: 18px;
}

.value-cards {
  grid-template-columns: repeat(3, 1fr);
}

.value-card {
  padding: 22px;
}

.sectors-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
}

.sector-card {
  text-align: center;
  padding: 22px;
  font-weight: 600;
}

.cta-shell {
  padding: 42px;
  grid-template-columns: 1fr .92fr;
}

.cta-shell p,
.cta-shell li {
  color: rgba(255, 255, 255, .82);
}

.contact-list {
  margin: 22px 0 0;
  padding-left: 18px;
}

.contact-form {
  background: var(--white);
  color: var(--base);
  border-radius: 26px;
  padding: 24px;
  display: grid;
  gap: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: .95rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #f6fbfb;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 66, 92, .12);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 28px;
  padding: 40px 0;
}

.footer-title {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.footer-heading {
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

/* SOFTWARE HERO */
.hero-software .hero-grid--software {
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}

.hero-grid--software > div:first-child {
  max-width: 760px;
}

.hero-grid--software h1 {
  font-size: clamp(4rem, 5.2vw, 6rem);
  line-height: 1.02;
  max-width: 920px;
  text-wrap: balance;
}

.hero-grid--software .lead {
  max-width: 760px;
  font-size: 1.14rem;
}

.portfolio-board {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  padding: 18px;
  border-radius: 34px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 560px;
  margin-left: auto;
}

.portfolio-card {
  padding: 26px;
}

.portfolio-card-large {
  background: var(--soft-bg);
  grid-row: span 2;
}

.portfolio-card-large h3 {
  font-size: 2rem;
  line-height: 1.05;
}

.portfolio-card-large p {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.72;
}

.portfolio-card-dark {
  background: linear-gradient(135deg, var(--base), #0d1323);
  color: var(--white);
}

.portfolio-card-dark h3 {
  font-size: 2.1rem;
  line-height: 1.04;
}

.portfolio-chip {
  padding: 14px 18px;
  text-align: center;
  font-weight: 500;
}

/* SOFTWARE LIST */
.software-grid {
  display: grid;
  gap: 20px;
}

.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.one-col {
  grid-template-columns: 1fr;
}

.category-section {
  padding: 72px 0;
  background: var(--white);
}

.software-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.software-card h3,
.software-card p,
.software-card .btn {
  margin-inline: 24px;
}

.software-card h3 {
  margin-top: 18px;
}

.software-card p {
  margin-top: 10px;
  margin-bottom: 18px;
}

.software-thumb {
  height: 220px;
  background: linear-gradient(135deg, rgba(26, 166, 183, .12), rgba(255, 66, 92, .08));
  border-bottom: 1px solid var(--border);
}

.software-thumb--eclipse,
.software-thumb--nt,
.software-thumb--web,
.software-thumb--his,
.software-thumb--siga,
.software-thumb--databank,
.software-thumb--banda,
.software-thumb--skl50,
.software-thumb--skl180,
.software-thumb--skl724,
.software-thumb--app,
.software-thumb--homebound {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.software-thumb--his {
  background-image: url('../assets/enterprise-his.png');
}

.software-thumb--siga {
  background-image: url('../assets/siga.png');
}

.software-thumb--eclipse {
  background-image: url('../assets/eclipse.png');
}

.software-thumb--nt {
  background-image: url('../assets/enterprise-nt.png');
}

.software-thumb--web {
  background-image: url('../assets/enterprise-web.png');
}

.software-thumb--databank {
  background-image: url('../assets/databank.png');
}

.software-thumb--banda {
  background-image: url('../assets/skl-banda.png');
}

.software-thumb--skl50 {
  background-image: url('../assets/skl50.png');
}

.software-thumb--skl180 {
  background-image: url('../assets/skl180.png');
}

.software-thumb--skl724 {
  background-image: url('../assets/skl724.png');
}

.software-thumb--app {
  background-image: url('../assets/app-mobile.png');
}

.software-thumb--homebound {
  background-image: url('../assets/homebound.png');
}

.software-card-wide {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
}

.software-card-wide .software-thumb {
  height: 100%;
  min-height: 220px;
  border-bottom: none;
  border-right: 1px solid var(--border);
}

.featured-software {
  border-color: rgba(255, 66, 92, .35);
  box-shadow: 0 18px 40px rgba(255, 66, 92, .10);
}

.nt-highlight {
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.stats-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
}

.stat-card {
  padding: 24px;
}

.stat-card strong {
  display: block;
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.feature-blocks {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

.feature-panel {
  padding: 28px;
}

.feature-panel ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-grid,
  .hero-software .hero-grid--software,
  .about-grid,
  .value-grid,
  .cta-shell,
  .intro-grid,
  .split-head {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-grid,
  .hero-software .hero-grid--software {
    align-items: start;
  }

  .hero-visuals,
  .portfolio-board {
    grid-template-columns: 1fr;
  }

  .hero-side-stack {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }

  .portfolio-board {
    max-width: 100%;
    margin-left: 0;
  }

  .hero-grid--software > div:first-child,
  .hero-grid > div:first-child {
    max-width: 100%;
  }

  .hero:not(.hero-software) .hero-grid > div:first-child h1,
  .hero-software .hero-grid--software > div:first-child h1 {
    max-width: 100%;
    font-size: clamp(3.2rem, 6vw, 4.8rem);
  }

  .mini-grid,
  .solutions-grid,
  .three-cards,
  .stats-grid,
  .feature-blocks,
  .footer-grid,
  .two-col,
  .three-col,
  .four-col,
  .sectors-grid,
  .value-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .software-card-wide {
    grid-template-columns: 1fr;
  }

  .software-card-wide .software-thumb {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 88px;
    display: none;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .desktop-cta {
    display: none;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .container {
    width: min(100% - 28px, 1200px);
  }

  .hero:not(.hero-software) .hero-grid > div:first-child h1,
  .hero-software .hero-grid--software > div:first-child h1 {
    font-size: 2.95rem;
    line-height: 1.05;
    letter-spacing: -.045em;
  }

  .hero:not(.hero-software) .hero-grid > div:first-child .lead,
  .hero-software .hero-grid--software > div:first-child .lead {
    font-size: 1rem;
    line-height: 1.72;
    margin-top: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin: 24px 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-side-stack,
  .mini-grid,
  .pillars-grid,
  .solutions-grid,
  .three-cards,
  .stats-grid,
  .feature-blocks,
  .footer-grid,
  .two-col,
  .three-col,
  .four-col,
  .sectors-grid,
  .value-cards {
    grid-template-columns: 1fr;
  }

  .hero-main-photo {
    min-height: 360px;
    border-radius: 22px;
  }

  .media-card {
    min-height: 180px;
    border-radius: 20px;
  }

  .media-overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .media-overlay strong {
    font-size: 1.4rem;
    max-width: none;
  }

  .brand-main {
    font-size: 1.5rem;
  }

  .portfolio-card-large h3,
  .portfolio-card-dark h3 {
    font-size: 1.7rem;
  }
}