/* ========================================
   OMGO — Diseño y Animación
   Paleta: blanco + negro #141414 + azul #0057FF + magenta #FF0071
   Tipografía: Montserrat (body) + Instrument Serif (display)
   Estilo: light, minimalista, sin degradados decorativos
======================================== */

:root {
  /* Colores de marca */
  --logo-blue: #0057FF;
  --logo-magenta: #FF0071;
  --brand-black: #141414;

  /* Sistema light */
  --bg: #ffffff;
  --bg-2: #f7f7f7;
  --bg-3: #efefef;
  --fg: #141414;
  --fg-2: #4a4a4a;
  --fg-3: #8a8a8a;

  /* Accents (del logo) */
  --accent: var(--logo-magenta);
  --accent-2: var(--logo-blue);

  /* Líneas y bordes */
  --line: rgba(20, 20, 20, 0.08);
  --line-2: rgba(20, 20, 20, 0.16);

  /* Tipografía */
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Material Symbols defaults */
  --mat-fill: 0;
  --mat-weight: 400;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.material-symbols-rounded {
  font-variation-settings:
    'FILL' var(--mat-fill),
    'wght' var(--mat-weight),
    'GRAD' 0,
    'opsz' 24;
  vertical-align: middle;
}

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

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

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.btn--lg {
  padding: 1.1rem 1.75rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--logo-magenta);
  color: #ffffff;
}
.btn--primary:hover {
  background: var(--logo-blue);
  transform: translateY(-2px);
  /* Iluminación azul al hacer hover (esto SÍ es un detalle de botón) */
  box-shadow: 0 12px 32px rgba(0, 87, 255, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  background: var(--bg-2);
  border-color: var(--fg);
}

.btn--outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
}
.btn--outline:hover {
  background: var(--fg);
  color: var(--bg);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-svg {
  height: 42px;
  width: auto;
  transition: transform 200ms;
}
.nav__logo:hover .nav__logo-svg {
  transform: scale(1.05);
}

.nav__links {
  display: flex;
  gap: var(--sp-8);
  font-size: 0.88rem;
  font-weight: 500;
}
.nav__links a {
  color: var(--fg-2);
  transition: color 200ms;
  position: relative;
}
.nav__links a:hover {
  color: var(--fg);
}
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--logo-magenta);
  transition: width 200ms;
}
.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--brand-black);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 200ms;
}
.nav__cta:hover {
  background: var(--logo-magenta);
}
.nav__cta .material-symbols-rounded {
  font-size: 18px;
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 0.5rem;
}

/* ============ HERO ============ */
.hero {
  padding: 9rem 2rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-2);
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  width: fit-content;
  background: var(--bg);
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--logo-blue);
  border-radius: 50%;
  /* Iluminación sutil — un detalle, no decorativo */
  box-shadow: 0 0 12px rgba(0, 87, 255, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-top: 2rem;
  color: var(--fg);
}
.hero__title .line {
  display: block;
}
.hero__title em {
  font-style: italic;
  color: var(--logo-magenta);
}
.hero__title .line--accent {
  color: var(--fg-3);
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-12);
  align-items: end;
  padding: 4rem 0 2rem;
}

.hero__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 540px;
  font-weight: 400;
}
.hero__lead strong {
  color: var(--fg);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Marquee */
.marquee {
  margin: 0 -2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: var(--bg);
}
.marquee__track {
  display: flex;
  gap: 2rem;
  align-items: center;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.marquee__track span {
  flex-shrink: 0;
}
.bullet {
  color: var(--logo-magenta);
  font-size: 0.8rem;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTION HEAD ============ */
.section__head {
  margin-bottom: 4rem;
}
.section__head--center {
  text-align: center;
}
.section__head--center .section__tag {
  margin: 0 auto var(--sp-6);
}

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-2);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  width: fit-content;
  margin-bottom: var(--sp-6);
  background: var(--bg);
}
.section__tag .material-symbols-rounded {
  font-size: 16px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: var(--sp-4);
  color: var(--fg);
}
.section__title em {
  font-style: italic;
  color: var(--logo-magenta);
}

.section__desc {
  font-size: 1rem;
  color: var(--fg-2);
  max-width: 600px;
  font-weight: 400;
}

/* ============ WORKS ============ */
.works {
  padding: 8rem 2rem;
  background: var(--bg);
}

.works__filters {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.filter {
  padding: 0.55rem 1.1rem;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms;
}
.filter:hover {
  border-color: var(--fg);
  color: var(--fg);
}
.filter.is-active {
  background: var(--brand-black);
  color: #ffffff;
  border-color: var(--brand-black);
}

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

.work {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 400ms;
  border: 1px solid var(--line);
}
.work:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(20, 20, 20, 0.12);
}

.work__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.work:hover .work__img {
  transform: scale(1.05);
}

.work__overlay {
  position: absolute;
  inset: 0;
  /* Overlay oscuro al hover para legibilidad del texto, NO un gradiente decorativo */
  background: rgba(20, 20, 20, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 300ms;
}
.work:hover .work__overlay {
  opacity: 1;
}

.work__cat {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--logo-blue);
  margin-bottom: var(--sp-2);
}
.work__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: var(--sp-3);
  font-weight: 400;
}
.work__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  width: fit-content;
}
.work__link .material-symbols-rounded {
  font-size: 16px;
}

.works__cta {
  margin-top: 4rem;
  text-align: center;
}

/* ============ SERVICES ============ */
.services {
  padding: 8rem 2rem;
  background: var(--brand-black);
  color: #ffffff;
}

.services .section__title {
  color: #ffffff;
}
.services .section__tag {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.16);
  background: transparent;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.service {
  background: var(--brand-black);
  padding: 2.5rem;
  position: relative;
  transition: background 300ms;
}
.service:hover {
  background: #1c1c1c;
}

.service__num {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 2rem;
}

.service__icon {
  font-size: 48px !important;
  color: var(--logo-magenta);
  margin-bottom: var(--sp-6);
  display: block;
  transition: color 300ms;
}

.service:nth-child(even) .service__icon {
  color: var(--logo-blue);
}

.service h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
  color: #ffffff;
}

.service p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 400;
}

/* ============ ABOUT / OMGO? ============ */
.about {
  padding: 10rem 2rem;
  position: relative;
  background: var(--bg);
}

.about__inner {
  max-width: 900px;
  margin: 0 auto;
}

.about__tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--logo-magenta);
  display: block;
  margin-bottom: var(--sp-6);
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 3rem;
  color: var(--fg);
}
.about__title em {
  font-style: italic;
  color: var(--logo-blue);
}

.about__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.about__cols p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-2);
  font-weight: 400;
}
.about__cols strong {
  color: var(--fg);
  font-weight: 600;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--fg);
}
.stat__num span {
  color: var(--logo-magenta);
  font-style: italic;
}
.stat:nth-child(even) .stat__num span {
  color: var(--logo-blue);
}

.stat__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-2);
}

/* ============ CONTACT ============ */
.contact {
  padding: 10rem 2rem;
  text-align: center;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: var(--sp-6);
  color: var(--fg);
}

.contact__desc {
  font-size: 1.1rem;
  color: var(--fg-2);
  margin-bottom: 3rem;
  font-weight: 400;
}

.contact__actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.contact__socials {
  display: flex;
  gap: var(--sp-6);
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.contact__socials a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--fg-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 200ms;
}
.contact__socials a:hover {
  color: var(--logo-magenta);
}
.contact__socials .material-symbols-rounded {
  font-size: 20px;
}

/* ============ FOOTER ============ */
.footer {
  padding: 3rem 2rem;
  background: var(--brand-black);
  color: #ffffff;
}
.footer__bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__logo-svg {
  height: 56px;
  width: auto;
}
.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .works__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__bottom {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .hero__actions {
    justify-content: flex-start;
  }
  .about__cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 720px) {
  .nav {
    padding: 1rem 1.25rem;
  }
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__burger {
    display: block;
  }
  .nav__logo-svg {
    height: 36px;
  }
  .hero,
  .works,
  .services,
  .about,
  .contact {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .marquee {
    margin: 0 -1.25rem;
  }
  .works__grid,
  .services__grid {
    grid-template-columns: 1fr;
  }
  .about__stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    align-items: flex-start;
  }
  .footer__legal {
    align-items: flex-start;
    text-align: left;
  }
  .marquee__track {
    font-size: 1.4rem;
    gap: 1.2rem;
  }
}
