/* ---------- Variables ---------- */
:root {
  --c-abismo: #0D1F4E;
  --c-indigo: #2E1760;
  --c-violeta: #7B4FD4;
  --c-turquesa: #00C9B8;
  --c-rosa: #FF7ECB;
  --c-ambar: #FFB347;
  --c-cielo: #B8E8FF;
  --c-nacar: #F2E6FF;

  --font-display: 'Montserrat', -apple-system, sans-serif;
  --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-h: 72px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--c-nacar);
  color: var(--c-abismo);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; border: none; background: none; cursor: pointer; }
ul { list-style: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85em 1.5em;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-turquesa);
  color: var(--c-abismo);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 201, 184, 0.35);
}

.btn--sm {
  padding: 0.6em 1.1em;
  font-size: 0.85rem;
}

/* ---------- Fade-up utility (scroll / load animations) ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: calc(var(--delay, 0) * 0.12s);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { transition: none; opacity: 1; transform: none; }
}

/* ======================================================
   NAV
   ====================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nav.is-scrolled {
  background: rgba(13, 31, 78, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(13, 31, 78, 0.2);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__links {
  display: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav__actions .btn--primary {
  display: none;
}

/* hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 6px;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-nacar);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--c-abismo);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 90;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--c-nacar);
}

.mobile-menu__handle {
  color: var(--c-cielo);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
    gap: 2.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-nacar);
  }

  .nav__links a {
    position: relative;
    padding-bottom: 4px;
  }

  .nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: var(--c-turquesa);
    transition: width 0.3s ease;
  }

  .nav__links a:hover::after { width: 100%; }

  .nav__actions .btn--primary { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) 1.25rem 5rem;
  background: linear-gradient(
    165deg,
    var(--c-abismo) 0%,
    var(--c-indigo) 45%,
    var(--c-violeta) 78%,
    var(--c-nacar) 100%
  );
}

/* ambient bioluminescent blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite;
}

.hero__blob--1 {
  width: 280px;
  height: 280px;
  top: 8%;
  left: -10%;
  background: var(--c-turquesa);
}

.hero__blob--2 {
  width: 220px;
  height: 220px;
  top: 55%;
  right: -8%;
  background: var(--c-rosa);
  animation-delay: -5s;
}

.hero__blob--3 {
  width: 200px;
  height: 200px;
  bottom: 4%;
  left: 20%;
  background: var(--c-ambar);
  opacity: 0.2;
  animation-delay: -9s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -25px) scale(1.08); }
}

.hero__layout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero__content {
  max-width: 620px;
}

.hero__media {
  width: 100%;
}

.hero__media-video {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(13, 31, 78, 0.45);
}

@media (min-width: 900px) {
  .hero__layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .hero__content {
    flex: 1;
  }

  .hero__media {
    flex: 0 0 38%;
  }

  .hero__media-video {
    max-width: none;
  }
}

.hero__title {
  margin-bottom: 0.75rem;
}

.hero__title-logo {
  display: block;
  width: clamp(230px, 42vw, 380px);
  filter: brightness(0) invert(1);
}

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: var(--c-cielo);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--c-cielo);
  opacity: 0.85;
  max-width: 460px;
  margin-bottom: 2.25rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-abismo);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  animation: bounce 2.4s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

@media (min-width: 600px) {
  .hero { padding-left: 2.5rem; padding-right: 2.5rem; }
}

@media (min-width: 900px) {
  .hero { padding-left: 5rem; }
}

/* ======================================================
   SERVICIOS
   ====================================================== */
.services {
  background: var(--c-abismo);
  padding: 5rem 1.25rem;
}

.services__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.services__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-turquesa);
  font-weight: 700;
  margin-bottom: 1rem;
}

.services__heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 6vw, 2.75rem);
  color: var(--c-nacar);
  max-width: 560px;
  margin-bottom: 1.75rem;
}

.services__statement {
  color: var(--c-cielo);
  opacity: 0.85;
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.services__subheading {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-nacar);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.services__grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--c-turquesa);
  border-radius: 12px;
  padding: 1.75rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--c-nacar);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--c-cielo);
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.55;
}

.service-card__link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--c-turquesa);
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--c-turquesa);
  padding-bottom: 2px;
}

.services__note {
  margin-top: 2.5rem;
  color: var(--c-cielo);
  opacity: 0.6;
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .services__grid {
    flex-direction: row;
    gap: 2rem;
  }

  .service-card {
    flex: 1;
  }
}

/* ======================================================
   PROCESO
   ====================================================== */
.process {
  background: var(--c-nacar);
  padding: 5rem 1.25rem;
}

.process__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.process__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-violeta);
  font-weight: 700;
  margin-bottom: 1rem;
}

.process__heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.8rem, 6vw, 2.75rem);
  color: var(--c-abismo);
  margin-bottom: 3rem;
}

.process__steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.process__step {
  position: relative;
}

.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--c-turquesa);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-abismo);
  margin-bottom: 1.25rem;
}

.process__step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--c-abismo);
  margin-bottom: 0.5rem;
}

.process__step p {
  font-size: 0.9rem;
  color: var(--c-abismo);
  opacity: 0.7;
  max-width: 280px;
}

@media (min-width: 900px) {
  .process__steps {
    flex-direction: row;
    gap: 2rem;
  }

  .process__step {
    flex: 1;
  }

  .process__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 60px;
    right: -1rem;
    height: 2px;
    background: rgba(123, 79, 212, 0.2);
  }
}

/* ======================================================
   PORTFOLIO
   ====================================================== */
.portfolio {
  background: var(--c-abismo);
  padding: 5rem 1.25rem;
}

.portfolio__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.portfolio__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-turquesa);
  font-weight: 700;
  margin-bottom: 1rem;
}

.portfolio__heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.8rem, 6vw, 2.75rem);
  color: var(--c-nacar);
  max-width: 560px;
  margin-bottom: 2.75rem;
}

.portfolio__row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portfolio__item {
  flex: 1;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
}

.portfolio__item img,
.portfolio__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio__behance {
  position: relative;
  display: block;
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.portfolio__behance:hover {
  opacity: 0.85;
}

.portfolio__behance-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.portfolio__behance-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(13, 31, 78, 0.9), transparent);
  color: var(--c-nacar);
  font-weight: 700;
  font-size: 0.95rem;
}

@media (min-width: 600px) {
  .portfolio__row {
    flex-direction: row;
  }
}

/* ======================================================
   FORMULARIO DE CONTACTO
   ====================================================== */
.contact-cta {
  background: var(--c-nacar);
  padding: 5rem 1.25rem;
}

.contact-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-cta__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-violeta);
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-cta__heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.8rem, 6vw, 2.75rem);
  color: var(--c-abismo);
  margin-bottom: 0.75rem;
}

.contact-cta__subtitle {
  color: var(--c-abismo);
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form__hidden {
  display: none;
}

.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form__row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-abismo);
}

.contact-form__row input,
.contact-form__row textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1.5px solid rgba(13, 31, 78, 0.15);
  border-radius: 8px;
  background: #ffffff;
  color: var(--c-abismo);
  resize: vertical;
}

.contact-form__row input:focus,
.contact-form__row textarea:focus {
  outline: none;
  border-color: var(--c-turquesa);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.contact-form__note {
  font-size: 0.8rem;
  color: var(--c-abismo);
  opacity: 0.55;
  margin-top: -0.5rem;
}

/* ======================================================
   FOOTER
   ====================================================== */
.btn--outline-light {
  background: transparent;
  border: 1.5px solid var(--c-nacar);
  color: var(--c-nacar);
}

.btn--outline-light:hover {
  background: var(--c-nacar);
  color: var(--c-abismo);
}

.footer {
  background: var(--c-abismo);
  padding: 4rem 1.25rem 2rem;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.footer__logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--c-nacar);
  max-width: 320px;
  margin-bottom: 1.75rem;
}

.footer__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 280px;
}

.footer__cta .btn {
  width: 100%;
  justify-content: center;
}

.footer__columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-turquesa);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer__col a {
  color: var(--c-cielo);
  opacity: 0.8;
  font-size: 0.9rem;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer__col a:hover {
  opacity: 1;
  color: var(--c-nacar);
}

.footer__bottom {
  border-top: 1px solid rgba(242, 230, 255, 0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
}

.footer__bottom p {
  color: var(--c-cielo);
  opacity: 0.45;
  font-size: 0.8rem;
}

@media (min-width: 700px) {
  .footer__columns {
    flex-direction: row;
    gap: 3rem;
  }
}

@media (min-width: 900px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
  }

  .footer__brand {
    flex: 0 0 280px;
  }

  .footer__columns {
    flex: 1;
    justify-content: flex-end;
    gap: 4rem;
  }

  .footer__cta {
    flex-direction: row;
  }
}
