:root {
  --bg: #061018;
  --panel: #0d1b25;
  --panel-strong: #102838;
  --text: #f3f8fb;
  --muted: #a9bdc9;
  --line: rgba(137, 215, 255, 0.22);
  --cyan: #31c8ff;
  --cyan-strong: #009ee8;
  --green: #41d78d;
  --white-soft: rgba(255, 255, 255, 0.9);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(0, 5, 10, 0.78), rgba(0, 5, 10, 0));
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: rgba(49, 200, 255, 0.14);
  color: var(--cyan);
  font-weight: 800;
}

.nav-links {
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.94rem;
  color: var(--white-soft);
}

.nav-links a {
  transition: color 160ms ease;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 110px clamp(18px, 6vw, 84px) 64px;
  overflow: hidden;
  background-image: url("imagenes/Olmos.jpeg");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 8, 15, 0.98) 0%, rgba(2, 8, 15, 0.76) 43%, rgba(2, 8, 15, 0.32) 100%),
    linear-gradient(180deg, rgba(2, 8, 15, 0.08), rgba(2, 8, 15, 0.96));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 13vw, 10rem);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(49, 200, 255, 0.34);
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--white-soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #031017;
  box-shadow: 0 18px 42px rgba(49, 200, 255, 0.24);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.hero-status {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 5vw, 70px);
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 520px;
}

.hero-status span {
  border: 1px solid var(--line);
  background: rgba(3, 16, 23, 0.72);
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 84px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  background: #07131c;
  border-top: 1px solid var(--line);
}

.intro h2,
.section-heading h2,
.split-panel h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro p:last-child,
.split-panel p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.services {
  background: linear-gradient(180deg, #07131c, #091923);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 40, 56, 0.84), rgba(9, 25, 35, 0.96));
  box-shadow: var(--shadow);
}

.service-icon {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--green);
  font-weight: 800;
}

.service-card h3,
.audience-item h3 {
  margin: 0 0 12px;
  line-height: 1.18;
  font-size: 1.22rem;
}

.service-card p,
.audience-item p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
  background: #061018;
}

.split-panel p {
  margin-top: 18px;
}

.brand-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.brand-list span {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-left: 3px solid var(--cyan);
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
}

.project-showcase {
  background: linear-gradient(180deg, #061018, #07131c);
}

.carousel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.carousel-viewport {
  position: relative;
  min-height: 620px;
}

.project-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.project-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.project-slide img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  display: block;
}

.project-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 54px);
  background:
    linear-gradient(180deg, rgba(16, 40, 56, 0.96), rgba(7, 19, 28, 0.98));
}

.project-caption span {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-caption h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.project-caption p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(3, 16, 23, 0.86);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.carousel-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.carousel-dots button {
  width: 32px;
  height: 8px;
  border: 0;
  background: rgba(169, 189, 201, 0.34);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dots button.is-active {
  width: 52px;
  background: var(--cyan);
}

.audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: #07131c;
}

.audience-item {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.contact {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 6vw, 84px);
  background:
    linear-gradient(90deg, rgba(2, 8, 15, 0.94), rgba(2, 8, 15, 0.72)),
    url("imagenes/Olmos.jpeg") center 42% / cover;
  border-top: 1px solid var(--line);
}

.contact-content {
  max-width: 760px;
}

.contact p {
  margin-top: 18px;
}

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

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

  .carousel-viewport {
    min-height: 760px;
  }

  .project-slide {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(360px, 1fr) auto;
  }

  .project-slide img {
    min-height: 360px;
    max-height: 460px;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 28px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 96vh;
    padding-top: 152px;
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(2, 8, 15, 0.98), rgba(2, 8, 15, 0.74)),
      linear-gradient(180deg, rgba(2, 8, 15, 0.15), rgba(2, 8, 15, 0.98));
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.6rem);
    max-width: 100%;
  }

  .hero-status {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: flex-start;
    margin-top: 34px;
  }

  .service-grid,
  .audience,
  .brand-list {
    grid-template-columns: 1fr;
  }

  .carousel-viewport {
    min-height: 670px;
  }

  .project-slide {
    grid-template-rows: 320px auto;
  }

  .project-slide img {
    min-height: 320px;
    max-height: 320px;
  }

  .carousel-controls {
    gap: 10px;
    padding: 12px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-dots {
    gap: 6px;
  }

  .carousel-dots button {
    width: 18px;
  }

  .carousel-dots button.is-active {
    width: 34px;
  }

  .service-card {
    min-height: auto;
  }

  .btn {
    width: 100%;
  }
}
