:root {
  --green-50: #ecf7ef;
  --green-100: #cdebd6;
  --green-500: #2e8b57;
  --green-600: #247247;
  --green-700: #1e5c3a;
  --green-900: #0d2f1d;
  --red-500: #d13b3b;
  --gray-50: #f9fafb;
  --gray-100: #f1f3f5;
  --gray-200: #e4e7eb;
  --gray-500: #69707d;
  --gray-700: #3a3f46;
  --gray-900: #1f2329;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 32px 80px rgba(12, 31, 21, 0.18);
  --shadow-md: 0 18px 48px rgba(12, 31, 21, 0.12);
  --shadow-sm: 0 12px 28px rgba(12, 31, 21, 0.1);
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-900);
  background: white;
  line-height: 1.6;
  font-size: 17px;
}

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

a:hover {
  text-decoration: underline;
}

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

.wrap {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.section {
  padding: clamp(64px, 12vw, 104px) 0;
}

.section-eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--green-600);
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.35rem, 4vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-solid {
  background: var(--green-600);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-solid:hover {
  background: var(--green-700);
  text-decoration: none;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(205, 235, 214, 0.5);
  transition: var(--transition);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--gray-900);
}

.brand-logo {
  display: block;
  height: 132px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 500;
}

.nav a {
  color: var(--gray-700);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--green-600);
  text-decoration: none;
}

.nav a.nav-highlight {
  color: white;
  background: var(--green-600);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(46, 139, 87, 0.12);
  border: 1px solid rgba(46, 139, 87, 0.32);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: var(--green-700);
  display: block;
  margin: 3px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(14, 40, 28, 0.92), rgba(14, 40, 28, 0.6)), url("/img/servicios-transformacion-digital-imagen.jpg") center/cover no-repeat;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 23, 15, 0.85), rgba(7, 23, 15, 0.55));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  padding: clamp(96px, 18vh, 140px) 0 clamp(72px, 10vh, 120px);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.hero-lead {
  margin: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 16px 0 0;
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.hero-stats dt {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
}

.hero-stats dd {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.intro-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.intro-text p {
  margin-top: 0;
}

.enfoque {
  background: var(--gray-50);
}

.enfoque-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.enf-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.enf-card img {
  height: 180px;
  object-fit: cover;
}

.enf-card-body {
  padding: 22px;
}

.enf-card-body p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.97rem;
}

.enf-card-body .enf-quote {
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 0.9rem;
  font-style: italic;
}

.servicios {
  background: white;
}

.svc-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  align-content: center;
  justify-items: center;
  gap: 18px;
  max-width: 658px;
  margin-left: auto;
  margin-right: auto;
}

.svc-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gray-900);
  width: 100%;
  max-width: 252px;
  height: 252px;
  color: white;
  display: grid;
  box-shadow: var(--shadow-md);
}

.svc-card-media,
.svc-card-body {
  grid-area: 1/1;
  width: 100%;
  height: 100%;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.svc-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-card-body {
  padding: 16px;
  display: grid;
  gap: 6px;
  align-content: start;
  background: linear-gradient(180deg, rgba(13, 31, 21, 0.92), rgba(13, 31, 21, 0.92));
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
}

.svc-card-body h3 {
  margin: 0;
  font-size: 0.76rem;
}

.svc-card:hover .svc-card-media,
.svc-card:focus-within .svc-card-media {
  opacity: 0;
  transform: scale(1.05);
}

.svc-card:hover .svc-card-body,
.svc-card:focus-within .svc-card-body {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.svc-card-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.74rem;
}

.svc-card-body ul {
  margin: 0;
  padding-left: 8px;
  display: grid;
  gap: 4px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.78);
}

.clientes {
  background: var(--gray-50);
}

.logo-row {
  margin-top: 36px;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: center;
  justify-items: center;
}

.logo-row img {
  max-height: 60px;
  filter: grayscale(30%);
  opacity: 0.85;
  transform-origin: center;
}

.has-js .logo-row img {
  opacity: 0;
  transform: scale(0.6);
  animation: logo-zoom-in 0.8s ease-out both;
  animation-play-state: paused;
}

.has-js .logo-row.is-visible img {
  animation-play-state: running;
}

.has-js .logo-row img:nth-child(2) {
  animation-delay: 0.1s;
}

.has-js .logo-row img:nth-child(3) {
  animation-delay: 0.2s;
}

.has-js .logo-row img:nth-child(4) {
  animation-delay: 0.3s;
}

.has-js .logo-row img:nth-child(5) {
  animation-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .has-js .logo-row img {
    animation: none;
    animation-play-state: running;
    opacity: 0.85;
    transform: none;
  }
}

@keyframes logo-zoom-in {
  from {
    transform: scale(0.6);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 0.85;
  }
}

.cta {
  background: linear-gradient(120deg, var(--green-600), var(--green-700));
  color: white;
}

.cta-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.cta p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.85);
}

.contacto {
  background: white;
}

.contacto-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.contact-data {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-data a {
  color: var(--green-600);
  text-decoration: underline;
}

.contact-socials {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.contact-socials img {
  width: 55px;
  max-width: 55px;
  height: auto;
  max-height: 63px;
}

.contact-form {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 18px;
}

.contact-form .btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form .field {
  display: grid;
  gap: 8px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.15);
}

.form-response {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-response.is-success {
  color: var(--green-600);
}

.form-response.is-error {
  color: var(--red-500);
}

.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 64px;
}

.site-footer .wrap {
  display: grid;
  gap: 18px;
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
}

.footer-logo {
  display: block;
  height: 75px;
  width: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(15, 32, 23, 0.08);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .enfoque-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cta-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-box .btn {
    justify-self: center;
  }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    inset: 82px 20px auto;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: grid;
    gap: 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .site-header.is-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a.nav-highlight {
    justify-self: start;
  }

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

  .site-header.is-open .nav-toggle-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .intro-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .enfoque-grid {
    grid-template-columns: 1fr;
  }

  .logo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
