:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-soft: #eef5fb;
  --surface-2: #eaf2fb;
  --text: #17304a;
  --text-soft: #5e7287;
  --heading: #0c2540;
  --line: rgba(12, 37, 64, 0.12);
  --accent: #0ea5e9;
  --accent-2: #2563eb;
  --dark: #0d2138;
  --dark-2: #142d49;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 20px 50px rgba(16, 38, 65, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 2rem, var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 251, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0;
}
.brand-logo {
  width: 220px;
  max-width: min(48vw, 220px);
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.brand-text { display: grid; }
.brand-text strong { color: var(--heading); font-size: 1rem; letter-spacing: .08em; }
.brand-text small { color: var(--text-soft); font-size: .73rem; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.site-nav a { color: var(--text); font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--heading); font-size: 1.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; }
.btn-secondary { background: #fff; color: var(--heading); border: 1px solid var(--line); }
.btn-outline { border: 1px solid var(--line); }
.btn-sm { padding: .7rem 1rem; }

.hero {
  padding: 4.8rem 0 3.6rem;
  background:
    radial-gradient(circle at 92% 12%, rgba(14,165,233,.12), transparent 22%),
    linear-gradient(180deg, #f7fbff 0%, #edf5fb 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent-2);
  font-size: .75rem;
  font-weight: 700;
  margin: 0 0 1rem;
}
.hero h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.02;
  max-width: 12ch;
}
.hero-text { max-width: 58ch; color: var(--text); font-size: 1.06rem; margin: 1.4rem 0 0; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-badges {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: flex; gap: .75rem; flex-wrap: wrap;
}
.hero-badges li {
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: .88rem;
  background: rgba(255,255,255,.7);
}
.hero-media { display: grid; gap: 1rem; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-top: 1.5rem;
}
.hero-metrics div {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: .95rem 1rem;
}
.hero-metrics strong {
  display: block;
  color: var(--heading);
  margin-bottom: .25rem;
}
.hero-metrics span {
  color: var(--text-soft);
  font-size: .9rem;
}

.differentials-grid {
  grid-template-columns: repeat(5, 1fr);
}

.about-strip {
  margin-top: 1rem;
}
.about-strip-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  padding: 0;
  overflow: hidden;
}
.about-strip-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.about-strip-copy {
  padding: 2rem;
  display: grid;
  align-content: center;
}
.about-strip-copy h3 {
  margin: 0 0 .8rem;
  color: var(--heading);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.08;
}

.experience-groups {
  display: grid;
  gap: 1.25rem;
}
.group-head {
  margin-bottom: .9rem;
}
.group-kicker {
  display: inline-block;
  margin-bottom: .5rem;
  color: #7fbef5;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 700;
}
.group-head h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 2vw, 2rem);
}
.experience-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.experience-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.experience-grid-1 {
  grid-template-columns: 1fr;
}
.experience-photo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.experience-photo-band img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}

.card-surface {
  background: #fff;
  border: 1px solid rgba(12, 37, 64, 0.08);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo-main img { aspect-ratio: 16/10; object-fit: contain; object-position: center center; width: 100%; background: #eef5fb; }
.hero-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.small-photo img { aspect-ratio: 1 / 1; object-fit: contain; object-position: center center; width: 100%; background: #eef5fb; }

.trusted { padding: 1rem 0 4rem; }
.trusted-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.trusted-grid article,
.service-card,
.sector-card,
.experience-card,
.gallery-card,
.feature-box,
.bullet-panel {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.45rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 37, 64, 0.08);
}
.trusted-grid h3,
.service-card h3,
.sector-card h3,
.experience-card h3,
.feature-box h3,
.gallery-card figcaption {
  margin-top: 0;
}

.section { padding: 5rem 0; background: var(--surface); color: var(--text); }
.section-soft { background: var(--surface-soft); }
.section-dark {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #d9e6f5;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 780px; margin-bottom: 2rem; }
.section-head h2, .trusted-intro h2 { font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.08; margin: 0; color: var(--heading); }
.section-dark .section-head h2 { color: white; }
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.5rem; align-items: center; }
.align-start { align-items: start; }
.feature-stack { display: grid; gap: 1rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 1.5rem;
  align-items: start;
}
.about-visual {
  display: grid;
  gap: 1rem;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.experience-grid-6 {
  grid-template-columns: repeat(3, 1fr);
}
.gallery-grid-6 {
  grid-template-columns: 1.15fr 1fr 1fr;
}
.footer-logo {
  width: 170px;
  height: auto;
  margin-bottom: 1rem;
}
.feature-box p { margin-bottom: 0; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(14,165,233,.15));
  color: var(--accent-2); font-weight: 800; margin-bottom: 1rem;
}
.sector-grid, .experience-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.sectors-five, .experience-grid-5 { grid-template-columns: repeat(5, 1fr); }
.experience-card span { color: #7fbef5; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.section-dark .experience-card {
  background: rgba(255,255,255,.06);
  color: #d9e6f5;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: none;
}
.section-dark .experience-card h3 { color: white; }

.section-gallery { background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}
.gallery-wide { grid-row: span 2; }
.gallery-card { padding: 0; overflow: hidden; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.gallery-card figcaption {
  padding: 1rem 1.1rem 1.15rem;
  color: var(--text);
  font-weight: 500;
}

.bullet-panel {
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
}
.bullet-item {
  display: grid;
  gap: .2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(12, 37, 64, 0.08);
}
.bullet-item:last-child { border-bottom: 0; padding-bottom: 0; }
.bullet-item strong { color: var(--heading); }
.bullet-item span { color: var(--text-soft); }

.cta-section { background: var(--surface); padding-top: 0; }
.cta-box {
  background: linear-gradient(135deg, #eaf4ff, #f9fcff);
  color: var(--heading);
  border-radius: 28px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 37, 64, 0.08);
}
.cta-box h2 { margin: 0; }
.site-footer {
  background: linear-gradient(180deg, #0d2138 0%, #132b46 100%);
  padding: 4rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr .8fr; gap: 1rem; }
.footer-grid h3, .footer-grid h4 { color: white; margin-top: 0; }
.footer-contact p, .footer-brand p, .footer-links a, .footer-bottom p, .footer-bottom a { color: #bfd0e2; }
.footer-links { display: grid; gap: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem; padding-top: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

@media (max-width: 1100px) {
  .sectors-five, .experience-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-wide { grid-row: auto; }
  .differentials-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .hero-grid, .two-col, .cards-grid, .sector-grid, .experience-grid, .trusted-grid, .footer-grid, .about-grid, .experience-photo-band {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid, .two-col, .about-grid, .about-strip-card { grid-template-columns: 1fr; }
  .hero-metrics, .differentials-grid { grid-template-columns: 1fr 1fr; }
  .experience-grid-3, .experience-grid-2 { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 1rem; right: 1rem; top: 82px;
    background: rgba(247, 251, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 20px; padding: 1rem;
    display: none; flex-direction: column; align-items: stretch;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .trusted-grid, .cards-grid, .sector-grid, .experience-grid, .footer-grid, .hero-media-grid, .gallery-grid, .about-grid, .experience-grid-6, .gallery-grid-6, .experience-photo-band, .hero-metrics, .differentials-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 3.8rem; }
  .hero h1 { max-width: 100%; }
  .brand-text small { display: none; }
}

@media (max-width: 760px) {
  .brand-logo { width: 122px; }
  .footer-logo { width: 150px; }
}


.about-bottom {
  margin-top: 28px;
}

.about-bottom-photo {
  overflow: hidden;
  border-radius: 28px;
}

.about-bottom-photo img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: center top;
}

.sectors-six { grid-template-columns: repeat(3, 1fr); }
.seo-section { background: #fff; }
.seo-links-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:1rem; }
.seo-link-card { background:#fff; border:1px solid rgba(12,37,64,.08); box-shadow: var(--shadow); border-radius:22px; padding:1.2rem 1.3rem; font-weight:600; color:var(--heading); transition: transform .2s ease, border-color .2s ease; }
.seo-link-card:hover { transform: translateY(-2px); border-color: rgba(37,99,235,.25); }
@media (max-width: 980px) { .sectors-six, .seo-links-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 720px) { .sectors-six, .seo-links-grid { grid-template-columns: 1fr; } }

.methodology-section { background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%); }
.method-grid { display:grid; grid-template-columns: repeat(5, 1fr); gap:1rem; }
.method-card {
  background:#fff;
  border:1px solid rgba(12,37,64,.08);
  border-radius:24px;
  padding:1.4rem;
  box-shadow: var(--shadow);
}
.method-card span {
  display:inline-grid;
  place-items:center;
  width:44px; height:44px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(14,165,233,.15));
  color: var(--accent-2);
  font-weight: 800;
  margin-bottom: .9rem;
}
.method-card h3 { margin:.1rem 0 .5rem; color: var(--heading); }
.certification-grid article { background:#fff; border-radius:var(--radius); box-shadow: var(--shadow); border:1px solid rgba(12,37,64,.08); padding:1.45rem; }
.contact-lead { font-size:1.1rem; font-weight:700; color:#fff; }
.contact-lead a { color:#fff; }
@media (max-width: 1100px) { .method-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .method-grid { grid-template-columns: 1fr; } }


.credentials-section {
  background: linear-gradient(180deg, rgba(37,99,235,.03), rgba(14,165,233,.02));
}
.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.credential-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(12, 37, 64, 0.08);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.credential-label {
  display: inline-block;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: .85rem;
}
.credential-card h3 {
  margin: 0 0 .75rem;
  color: var(--heading);
  font-size: 1.2rem;
  line-height: 1.2;
}
.cta-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}
@media (max-width: 1080px) {
  .credential-grid,
  .differentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .credential-grid,
  .differentials-grid,
  .hero-metrics,
  .trusted-grid {
    grid-template-columns: 1fr;
  }
  .cta-actions {
    width: 100%;
  }
}


.about-photo img, .about-bottom-photo img, .about-strip-card img { width: 100%; object-fit: contain; object-position: center center; background: #eef5fb; }
.about-photo img { aspect-ratio: 4/5; }
.about-bottom-photo img { aspect-ratio: 16/10; }
.about-strip-card img { min-height: 320px; aspect-ratio: 4/3; }
.field-gallery-section { padding-top: 1.5rem; }
.field-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-card { padding: 0; overflow: hidden; }
.gallery-card img { width: 100%; aspect-ratio: 4/3; object-fit: contain; object-position: center center; background: #eef5fb; }
.gallery-card figcaption { padding: 1rem 1.1rem 1.15rem; color: var(--text-soft); font-size: .95rem; }
.gallery-span-2 { grid-column: span 2; }
.gallery-span-2 img { aspect-ratio: 16/10; }
@media (max-width: 980px) { .field-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .field-gallery-grid { grid-template-columns: 1fr; } .gallery-span-2 { grid-column: span 1; } }

.gallery-cluster { display:grid; gap:1.35rem; }
.gallery-cluster-intro { max-width: 760px; }
.cluster-kicker { display:inline-block; margin-bottom:.45rem; text-transform:uppercase; letter-spacing:.16em; font-size:.72rem; color:var(--accent); font-weight:700; }
.gallery-cluster-intro h3 { margin:0 0 .55rem; font-size:clamp(1.2rem, 2vw, 1.7rem); color:var(--heading); }
.gallery-cluster-intro p { margin:0; color:var(--text-soft); }
.people-grid .gallery-card img, .infra-grid .gallery-card img { aspect-ratio: 4/3; object-fit: contain; object-position:center; background:#eef5fb; }
.people-grid .gallery-span-2 img, .infra-grid .gallery-span-2 img { aspect-ratio: 16/10; }


/* Final visual polish */
.section-head p + h2 { max-width: 14ch; }
#equipo-tecnico .section-head h2, #infraestructura-tecnologica .section-head h2, #experiencia .section-head h2, #soluciones .section-head h2, #sectores .section-head h2, #postventa .section-head h2 { max-width: 20ch; }
.gallery-card { border: 1px solid rgba(13, 33, 57, 0.08); box-shadow: 0 12px 30px rgba(13, 33, 57, 0.06); }
.gallery-card figcaption { line-height: 1.5; }
.people-grid .gallery-card img, .infra-grid .gallery-card img, .field-gallery-grid .gallery-card img { background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%); }
.people-grid .gallery-card img, .infra-grid .gallery-card img { aspect-ratio: 5/4; }
.people-grid .gallery-span-2 img, .infra-grid .gallery-span-2 img { aspect-ratio: 16/9; }
#equipo-tecnico, #infraestructura-tecnologica { scroll-margin-top: 96px; }
.cta-box h2 { max-width: 22ch; }
.footer-contact .contact-lead a { font-weight: 800; }
