:root {
  --bg: #061b21;
  --bg-dark: #031116;
  --bg-soft: #0a2630;
  --blue: #28a8e8;
  --blue-dark: #1479ad;
  --cyan: #6ee8ff;
  --white: #ffffff;
  --muted: #b8c7cc;
  --gray: #7e8b91;
  --border: rgba(40, 168, 232, 0.35);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --max-width: 1200px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
}

body.menu-open {
  overflow: hidden;
}

/* HEADER */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(3, 17, 22, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(3, 17, 22, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.navbar {
  width: 100%;
  height: var(--header-height);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-right {
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.language-btn {
  min-width: 46px;
  height: 34px;
  border: 1px solid var(--border);
  background: rgba(40, 168, 232, 0.08);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.25s ease;
}

.language-btn:hover {
  background: var(--blue);
  color: var(--bg-dark);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 36px;
  background: transparent;
  border: 0;
  cursor: pointer;
  justify-self: end;
}

.mobile-menu-btn span {
  width: 28px;
  height: 2px;
  background: var(--white);
  display: block;
  margin: 6px auto;
  transition: 0.25s ease;
}

.mobile-menu {
  display: none;
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-background,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.82) saturate(0.95);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 65% 35%, rgba(40, 168, 232, 0.24), transparent 32%),
    linear-gradient(90deg, rgba(3, 17, 22, 0.9), rgba(3, 17, 22, 0.5), rgba(3, 17, 22, 0.86)),
    linear-gradient(0deg, var(--bg), transparent 24%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -5%;
  width: 110%;
  height: 140px;
  background: var(--bg);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 160px);
  padding: 80px 0 150px;
}

.hero-logo {
  width: 190px;
  margin-bottom: 30px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}

.eyebrow,
.section-kicker {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  line-height: 1;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 7vw, 7.6rem);
  max-width: 900px;
  text-transform: uppercase;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.hero-text {
  max-width: 620px;
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  color: #e7f3f6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

/* GENERAL */

.section {
  position: relative;
  padding: 120px 0;
  background: var(--bg);
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.two-columns {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.section-text h2,
.services-copy h2,
.centered h2,
.contact-info h2 {
  font-size: clamp(2.7rem, 5.4vw, 5.5rem);
  text-transform: uppercase;
  margin-bottom: 28px;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.28);
}

.section-text p,
.services-copy p,
.section-intro,
.contact-data {
  color: #e6f0f3;
  font-size: 1.02rem;
  max-width: 610px;
  margin-bottom: 18px;
}

.centered {
  text-align: center;
}

.centered .section-intro,
.centered .section-kicker {
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(40, 168, 232, 0.25);
}

.btn-primary:hover {
  background: var(--cyan);
  color: var(--bg-dark);
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(110, 232, 255, 0.12);
}

.diagonal-top {
  padding-top: 170px;
}

.diagonal-top::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -5%;
  width: 110%;
  height: 120px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 100%);
  z-index: 1;
}

.diagonal-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;
  height: 18px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), #e43f5a);
  clip-path: polygon(0 0, 100% 0, 97% 100%, 0 100%);
}

/* ABOUT */

.about-section {
  background:
    radial-gradient(circle at 85% 45%, rgba(40, 168, 232, 0.12), transparent 28%),
    var(--bg);
}

.about-media,
.products-media {
  position: relative;
}

.floating-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* SERVICES */

.services-section {
  background: var(--bg);
}

.services-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.services-list {
  list-style: none;
  margin-top: 34px;
}

.services-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 13px;
  color: var(--white);
  font-weight: 700;
}

.services-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  background: var(--blue);
  transform: rotate(45deg);
}

/* SOLO AFECTA A LAS 2 IMÁGENES GRANDES DE SERVICIOS */

.services-showcase {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  overflow: visible;
  border-radius: 0;
  isolation: isolate;
}

.services-showcase-main,
.services-showcase-secondary {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: rgba(3, 17, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.services-showcase-main {
  width: min(100%, 720px);
  max-width: 100%;
}

.services-showcase-secondary {
  width: min(68%, 480px);
  max-width: 100%;
  margin-top: -90px;
  margin-right: 0;
  z-index: 2;
}

/* CATEGORY CARDS */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 70px;
}

.category-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-dark);
  cursor: default;
}

.category-card * {
  cursor: default;
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent);
}

.category-card h3 {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  z-index: 2;
  max-width: calc(100% - 40px);
  font-size: clamp(1.55rem, 1.75vw, 2.05rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-transform: uppercase;
}

.category-card:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

/* PORTFOLIO */

.portfolio-section {
  padding-bottom: 0;
  background: #061a20;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 60px;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-dark);
  cursor: pointer;
  border: 1px solid rgba(40, 168, 232, 0.22);
}

.portfolio-item img,
.portfolio-item video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: brightness(0.78);
}

.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 48%),
    linear-gradient(90deg, rgba(40, 168, 232, 0.16), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.portfolio-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  transform: translateY(14px);
  opacity: 0;
  transition: 0.35s ease;
}

.portfolio-info h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.portfolio-info p {
  color: var(--muted);
  font-weight: 700;
}

.portfolio-item:hover img,
.portfolio-item:hover video {
  transform: scale(1.08);
  filter: brightness(1);
}

.portfolio-item:hover::after,
.portfolio-item:hover .portfolio-info {
  opacity: 1;
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}

/* CLIENTS / COLLABORATIONS */

.clients-section {
  background:
    radial-gradient(circle at 50% 20%, rgba(40, 168, 232, 0.08), transparent 30%),
    var(--bg);
}

.clients-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.client-card {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(40, 168, 232, 0.12), transparent),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  cursor: default;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.client-card-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.client-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) saturate(0.9);
  transform: scale(1);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.client-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      0deg,
      rgba(3, 17, 22, 0.96) 0%,
      rgba(3, 17, 22, 0.78) 32%,
      rgba(3, 17, 22, 0.34) 62%,
      rgba(3, 17, 22, 0.58) 100%
    ),
    linear-gradient(135deg, rgba(40, 168, 232, 0.2), transparent 48%);
  pointer-events: none;
}

.client-card-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 3;
}

.client-card span {
  display: block;
  color: var(--cyan);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  margin-bottom: 12px;
}

.client-card h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.55rem);
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 100%;
  word-break: normal;
}

.client-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  background:
    linear-gradient(135deg, rgba(40, 168, 232, 0.22), transparent),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.35);
  cursor: default;
}

.client-card:hover .client-card-image img {
  transform: scale(1.08);
  filter: brightness(0.68) saturate(1.08);
}

/* STORES */

.stores-section {
  background: var(--bg-soft);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn-store {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: var(--border);
  min-height: 42px;
  padding: 0 18px;
}

.btn-store:hover {
  background: var(--blue);
  color: var(--white);
}

/* CONTACT */

.contact-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: url("contact-bg.jpg") center / cover no-repeat;
  opacity: 0.4;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 17, 22, 0.96), rgba(3, 17, 22, 0.75)),
    radial-gradient(circle at 80% 30%, rgba(40, 168, 232, 0.18), transparent 32%);
}

.contact-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
  align-items: start;
}

.contact-data {
  margin-top: 30px;
}

.contact-data p {
  margin-bottom: 22px;
}

.contact-data strong {
  display: block;
  font-size: 1.1rem;
  color: var(--white);
}

.contact-data a,
.contact-data span {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.social-links a {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.social-links a:hover {
  color: var(--cyan);
}

.contact-form {
  display: grid;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  color: #101010;
  padding: 16px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(40, 168, 232, 0.2);
}

.form-btn {
  width: min(100%, 420px);
  border: 0;
  font-size: 1.1rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* FOOTER */

.site-footer {
  background: var(--bg-dark);
  padding: 50px 0;
  border-top: 1px solid var(--border);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo {
  width: 130px;
  margin-bottom: 12px;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--blue);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox.active {
  display: flex;
}

.lightbox img,
.lightbox video {
  max-width: min(1200px, 92vw);
  max-height: 78vh;
  object-fit: contain;
  box-shadow: var(--shadow);
  background: #000;
}

.lightbox video {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-caption {
  position: absolute;
  bottom: 26px;
  left: 20px;
  right: 20px;
  text-align: center;
  color: var(--white);
  font-weight: 800;
}

/* REVEAL ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .navbar {
    padding: 0 22px;
  }

  .nav-left,
  .nav-right {
    gap: 16px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card h3 {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-layout,
  .two-columns,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .services-showcase {
    align-items: center;
  }

  .services-showcase-main {
    width: min(100%, 760px);
  }

  .services-showcase-secondary {
    width: min(72%, 520px);
    margin-top: -70px;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 76px;
  }

  .navbar {
    grid-template-columns: auto 1fr auto;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .logo-link {
    justify-self: start;
  }

  .site-logo {
    height: 52px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu {
    display: flex;
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: rgba(3, 17, 22, 0.98);
    border-left: 1px solid var(--border);
    flex-direction: column;
    gap: 6px;
    padding: 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .mobile-menu a {
    padding: 14px 0;
    color: var(--white);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-content {
    margin-left: 20px;
  }

  .hero-logo {
    width: 150px;
  }

  .section {
    padding: 90px 0;
  }

  .diagonal-top {
    padding-top: 130px;
  }

  .services-showcase {
    display: grid;
    gap: 22px;
    align-items: stretch;
  }

  .services-showcase-main,
  .services-showcase-secondary {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .category-grid,
  .portfolio-grid,
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .category-card img {
    min-height: 300px;
  }

  .category-card h3 {
    font-size: clamp(2rem, 9vw, 3rem);
    left: 22px;
    right: 22px;
    max-width: calc(100% - 44px);
  }

  .client-card {
    min-height: 300px;
  }

  .client-card-content {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .client-card h3 {
    font-size: clamp(1.7rem, 8vw, 2.6rem);
  }

  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }
}