/* ========================================
   Soluciones Digitales del Valle — styles
   ======================================== */

:root {
  --background: #f7f8fa;
  --surface: #ffffff;
  --text: #17202a;
  --text-secondary: #667085;
  --primary: #315b72;
  --primary-soft: #e8eef2;
  --accent: #6c9a8b;
  --accent-soft: #e8f1ee;
  --border: #e5e7eb;
  --border-strong: #d0d5dd;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-soft: 0 1px 2px rgba(23, 32, 42, 0.04),
    0 8px 24px rgba(23, 32, 42, 0.04);

  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;

  --container: 1120px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-duration: 0.85s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(108, 154, 139, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at -10% 20%, rgba(49, 91, 114, 0.07), transparent 50%),
    var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

body.is-ready {
  opacity: 1;
}

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

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

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--surface);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(247, 248, 250, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(247, 248, 250, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}

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

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text) !important;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-cta:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.nav-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  gap: 6px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(247, 248, 250, 0.98);
  border-bottom: 1px solid var(--border);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  padding: 0.85rem 0.5rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
}

.nav-mobile a:hover {
  background: var(--primary-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(49, 91, 114, 0.2);
}

.btn-primary:hover {
  background: #274a5d;
  box-shadow: 0 8px 20px rgba(49, 91, 114, 0.18);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: #fff;
}

.btn-lg {
  min-height: 56px;
  padding-inline: 1.75rem;
  font-size: 1.05rem;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--reveal-duration) var(--ease),
    transform var(--reveal-duration) var(--ease);
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.32s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    opacity: 1;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-orb,
  .capability-card,
  .process-dot {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 0 0;
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 91, 114, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 91, 114, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, black 20%, transparent 75%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}

.hero-orb--one {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: 8%;
  right: 4%;
  background: radial-gradient(circle, rgba(108, 154, 139, 0.35), transparent 70%);
}

.hero-orb--two {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  bottom: 18%;
  left: 6%;
  background: radial-gradient(circle, rgba(49, 91, 114, 0.22), transparent 70%);
  animation-delay: -5s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, -18px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-bottom: 3.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.35rem, 6.2vw, 4.25rem);
  font-weight: 500;
  margin-bottom: 1.35rem;
  color: var(--text);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 36rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-disciplines {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.35rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(to top, rgba(247, 248, 250, 0.9), transparent);
}

.hero-disciplines p {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-intro h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
}

.section-intro p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* ---------- Philosophy / Process ---------- */

.philosophy {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7) 20%, rgba(255, 255, 255, 0.7) 80%, transparent),
    var(--background);
}

.process {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 0.35rem;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-width: 5.5rem;
  text-align: center;
}

.process-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.process-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.process-step.is-visible .process-dot,
.process-step--final .process-dot {
  background: var(--primary);
}

.process-step.is-visible .process-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px var(--primary-soft);
}

.process-step--final.is-visible .process-dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.process-arrow {
  color: var(--border-strong);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.process-arrow svg {
  width: 22px;
  height: 22px;
}

/* ---------- Capabilities ---------- */

.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.capability-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.capability-card:hover {
  border-color: #c8d4db;
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.capability-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.capability-icon svg {
  width: 24px;
  height: 24px;
}

.capability-card:hover .capability-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.04);
}

.capability-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.capability-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ---------- Team ---------- */

.team {
  background: linear-gradient(180deg, transparent, rgba(232, 238, 242, 0.45), transparent);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.team-card:hover {
  border-color: #c8d4db;
  box-shadow: var(--shadow-soft);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.team-avatar--alt {
  background: #eef2f6;
  color: #3d5a6c;
}

.team-avatar--sage {
  background: var(--accent-soft);
  color: #4d7a6c;
}

.team-card h3 {
  font-size: 1.45rem;
}

.team-name-link {
  color: inherit;
  transition: color 0.2s var(--ease);
}

.team-name-link:hover {
  color: var(--primary);
}

.team-social {
  display: inline-flex;
  align-self: flex-start;
  margin-top: -0.35rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.01em;
  transition: opacity 0.2s var(--ease);
}

.team-social:hover {
  opacity: 0.75;
}

.team-tags {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.team-bio {
  color: var(--text-secondary);
  font-size: 1rem;
}

.team-contribution {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--text);
}

.team-contribution span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

/* ---------- Method ---------- */

.method-list {
  display: grid;
  gap: 0;
}

.method-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  align-items: baseline;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.method-item:last-child {
  border-bottom: 1px solid var(--border);
}

.method-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--primary);
  opacity: 0.35;
}

.method-item h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.4rem;
}

.method-item p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 28rem;
}

/* ---------- Projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.project-card:hover {
  border-color: #c8d4db;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.project-body {
  padding: 1.6rem 1.5rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-cats {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
  line-height: 1.45;
  margin-bottom: 0.7rem;
}

.project-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.project-body p:last-child {
  color: var(--text-secondary);
  margin-top: auto;
}

/* ---------- Value ---------- */

.value {
  padding-block: clamp(5rem, 12vw, 8rem);
}

.value-inner {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(145deg, rgba(49, 91, 114, 0.94), rgba(49, 91, 114, 0.82) 55%, rgba(76, 122, 108, 0.88));
  color: #f5f8fa;
  text-align: center;
}

.value-inner h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1.15rem;
  color: #fff;
}

.value-lead {
  max-width: 36rem;
  margin: 0 auto 2.25rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(245, 248, 250, 0.86);
}

.value-points {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}

.value-points li {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
}

/* ---------- CTA ---------- */

.cta {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

.cta-inner {
  max-width: 40rem;
  text-align: center;
  margin-inline: auto;
}

.cta-inner h2 {
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  margin-bottom: 1.15rem;
}

.cta-inner p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-note,
.footer-copy {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-copy {
  margin-top: 0.75rem;
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-points {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
  }

  .value-points li:not(:last-child)::after {
    content: "";
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .process {
    gap: 0.5rem;
    padding: 3rem 2rem;
    flex-wrap: nowrap;
  }

  .process-step {
    min-width: 0;
    flex: 1;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .method-item {
    grid-template-columns: 7rem 1fr;
    padding: 2.5rem 0;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1.25rem;
  }

  .footer-copy {
    margin-top: 0;
    margin-left: auto;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding-bottom: 4.5rem;
  }

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

  .capability-card {
    padding: 1.85rem 1.4rem;
  }

  .team-card {
    padding: 2rem 1.4rem;
  }

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

@media (max-width: 767px) {
  .process-arrow {
    display: none;
  }

  .process {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    justify-items: start;
    padding: 1.75rem 1.35rem;
  }

  .process-step {
    flex-direction: row;
    gap: 0.85rem;
    text-align: left;
  }

  .process-dot {
    order: -1;
  }
}
