@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;700;800&display=swap");

:root {
  --hero-lime: #d2f583;
  --hero-white: #f5f6ef;
  --hero-dark: #121212;
  --hero-side-pad: clamp(16px, 8.3vw, 160px);
  --desktop-reference-width: 1920px;
  --desktop-reference-side-pad: 163.2px;
  --desktop-reference-hero-inner: calc(var(--desktop-reference-width) - (var(--desktop-reference-side-pad) * 2));
  --header-height: 80px;
  --menu-offset-y: 0px;
  --showcase-section-height: 800px;
  --portfolio-header-offset: 0px;
  --portfolio-screen-height: calc(100vh - var(--portfolio-header-offset));
  --stacked-portfolio-height: 100vh;
  --portfolio-scroll-buffer: clamp(120px, 18vh, 220px);
  --portfolio-cta-bottom: clamp(104px, 14vh, 160px);
  --portfolio-cta-bottom-mobile: clamp(140px, 20vh, 220px);
  --mobile-menu-pill-bg: #1f1f1f;
  --mobile-menu-pill-border: #1f1f1f;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {

  html,
  body {
    overflow-x: hidden;
  }
}

body {
  font-family: "Outfit", Arial, sans-serif;
  background: #111;
  color: var(--hero-white);
}

body.has-autohide-topbar {
  --portfolio-header-offset: 0px;
}

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

.hero {
  position: relative;
  width: 100%;
  height: min(800px, 100vh);
  min-height: 680px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url("../img/imagen_index.png") center center / cover no-repeat,
  #3d3d3d;
  overflow: hidden;
}

.page-index .hero {
  background: #000;
}

.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.hero__video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.1) 46%, rgba(0, 0, 0, 0.18) 100%);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #000;
  opacity: 0;
  transform: none;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__video.is-active {
  opacity: 1;
}

.hero__topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--hero-side-pad);
  background: rgba(31, 31, 31, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(0);
}

.hero__topbar--revealed {
  transform: translateY(0);
}

.hero__topbar--hidden {
  transform: translateY(-100%);
}


.hero__menu {
  width: min(1200px, 100%);
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  isolation: isolate;
  position: relative;
  /* Base para el logo absoluto */
}

.hero__nav,
.hero__actions {
  display: flex;
  align-items: center;
}

.hero__nav {
  gap: clamp(28px, 4vw, 80px);
  min-width: 0;
}

.hero__nav--right {
  margin-right: 0 !important;
}

.hero__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(96px, 8vw, 121px);
  /* Ancho real del logo */
  height: auto;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.hero__actions {
  gap: clamp(28px, 4vw, 80px);
  justify-content: flex-end;
  min-width: 0;
}

.hero__nav,
.hero__actions {
  display: flex;
  align-items: center;
}

/* Consolidados los estilos de nav y actions arriba */

@media (max-width: 768px) {

  .hero__nav,
  .hero__actions {
    display: none !important;
  }
}

.hero__nav a,
.hero__nav a:visited,
.hero__lang,
.hero__contact,
.hero__contact:visited {
  font-family: "Outfit", Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0;
  color: #f5f6ef;
  transition: all 0.3s ease;

  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* El span es lo que realmente se moverá para no romper el layout */
.hero__nav a span,
.hero__lang span {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-en],
[data-en-html],
.hero__lang span,
.hero__mobile-lang span {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease,
    filter 0.18s ease;
}

html.lang-switching [data-en],
html.lang-switching [data-en-html],
html.lang-switching .hero__lang span,
html.lang-switching .hero__mobile-lang span {
  opacity: 0.58;
  filter: blur(0.45px);
}

.hero__nav a:hover,
.hero__lang:hover {
  color: var(--hero-lime) !important;
}

.hero__nav a:hover span {
  transform: translateX(0);
}

.hero__lang:hover span {
  transform: translateX(0);
}

/* Eliminado el color fijo para la página activa para que todo el menú sea uniforme hasta el hover */
.hero__nav a.nav-active {
  color: var(--hero-lime) !important;
}

.hero__nav a.nav-active span {
  color: inherit;
  transform: translateX(0);
}

.hero__lang.is-active {
  color: var(--hero-lime) !important;
}

.hero__lang.is-active span {
  transform: translateX(0);
}

/* Icono con posición absoluta: No empuja nada, es independiente */
.hero__nav a::before,
.hero__lang::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  background: url("../icon/image.png") center center / contain no-repeat;
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%) translateX(-12px);
  /* Empieza a la izquierda */
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero__nav a:hover::before,
.hero__nav a.nav-active:hover::before,
.hero__lang.is-active::before,
.hero__lang:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  /* Desliza hasta su sitio */
}

.hero__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(96px, 8vw, 121px);
  height: auto;
  display: block;
  overflow: hidden;
  z-index: 1;
}

.hero__brand-top {
  display: block;
  width: 100%;
  height: auto;
}

.hero__lang {
  width: auto;
  min-width: 0;
  height: auto;
  justify-content: flex-start;
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    color 0.3s ease,
    background-color 0.24s ease,
    border-color 0.24s ease;
}

.hero__lang span {
  transform-origin: center center;
}

.hero__lang::before {
  width: 30px;
  height: 30px;
  transform: translateY(-50%) translateX(-20px);
}

.hero__lang.is-switching,
.hero__mobile-lang.is-switching {
  transform: scale(0.96);
}

.hero__contact {
  width: auto;
  min-width: 132px;
  height: 48px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hero-white);
  border-radius: 999px;
  text-transform: uppercase;
  background-color: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero__contact:hover {
  background-color: var(--hero-lime);
  border-color: var(--hero-lime);
  color: #1A1A1A !important;
}

.hero__contact.nav-active {
  background-color: var(--hero-lime);
  border-color: var(--hero-lime);
  color: #1A1A1A !important;
}

.hero__content {
  position: absolute;
  inset: calc(80px + var(--menu-offset-y)) 0 0 0;
  width: 100%;
  padding: 0 var(--hero-side-pad);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 3;
}

.hero__frame {
  width: min(1200px, 100%);
  height: min(392px, calc(100% - 80px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  margin: 0;
  position: relative;
}

.hero__meta {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  min-height: 83px;
}

.hero__eyebrow {
  width: clamp(220px, 24vw, 278px);
  min-height: 83px;
  height: auto;
  margin: 0;
  color: var(--hero-lime);
  font-family: "Outfit", Arial, sans-serif;
  font-style: normal;
  font-size: 20px;
  font-weight: 500;
  line-height: 27px;
  text-transform: uppercase;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.page-index .hero__eyebrow {
  opacity: 0;
  transform: translateY(-18px);
  animation: hero-eyebrow-enter 1.25s cubic-bezier(0.2, 0.85, 0.2, 1) 0.2s both;
}

.hero__arrow {
  position: absolute;
  top: 20px;
  right: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 22px;
  gap: 10px;
  isolation: isolate;

  width: 62px;
  height: 43px;

  border: 1.5px solid var(--hero-white);
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--hero-white);
  backdrop-filter: blur(18.55px);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
  background-color: var(--hero-lime);
  border-color: var(--hero-lime);
  color: #1A1A1A;
}

.hero__arrow svg {
  width: 18px;
  height: 18px;
  flex: none;
  order: 1;
  flex-grow: 0;
}

.hero__wordmark {
  display: block;
  width: min(1200px, 100%);
  max-height: 311px;
  object-fit: contain;
  object-position: left bottom;
  margin: 0;
  align-self: flex-start;
}

.page-index .hero__wordmark {
  opacity: 0;
  transform: translateY(58px) scale(0.985);
  clip-path: inset(100% 0 0 0);
  transform-origin: left bottom;
  animation: hero-wordmark-enter 1.85s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

@keyframes hero-eyebrow-enter {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-wordmark-enter {
  from {
    opacity: 0;
    transform: translateY(58px) scale(0.985);
    clip-path: inset(100% 0 0 0);
  }

  55% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0);
  }
}

.intro {
  width: 100%;
  min-height: var(--showcase-section-height);
  height: var(--showcase-section-height);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(64px, 8vw, 80px) var(--hero-side-pad) 0;
  gap: 10px;
  background: #f5f6ef;
  color: #292929;
}

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  filter: blur(10px);
}

.intro::before {
  width: clamp(180px, 18vw, 280px);
  height: clamp(180px, 18vw, 280px);
  left: 12%;
  top: 22%;
  background: radial-gradient(circle, rgba(210, 245, 131, 0.26) 0%, rgba(210, 245, 131, 0.1) 42%, rgba(210, 245, 131, 0) 72%);
  animation: intro-float-a 14s ease-in-out infinite;
}

.intro::after {
  width: clamp(220px, 22vw, 340px);
  height: clamp(220px, 22vw, 340px);
  right: 10%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(31, 31, 31, 0.07) 0%, rgba(31, 31, 31, 0.03) 45%, rgba(31, 31, 31, 0) 74%);
  animation: intro-float-b 16s ease-in-out infinite;
}

.intro__container {
  width: min(1200px, 100%);
  height: auto;
  min-height: min(271.48px, 100%);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 10px;
  gap: 10px;
  flex: none;
  order: 0;
  align-self: center;
  flex-grow: 0;
  z-index: 1;
}

.intro__content {
  width: min(840px, 100%);
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  gap: 32px;
  margin: 0 auto;
  flex: none;
  order: 0;
  flex-grow: 0;
  position: relative;
}

.intro__title {
  width: 100%;
  height: auto;
  margin: 0;
  color: #292929;
  font-family: "Outfit", Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.08;
  text-align: center;
  letter-spacing: -0.02em;
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
  opacity: 1;
  transform: none;
  transform-origin: center top;
  clip-path: none;
  filter: none;
  text-wrap: balance;
}

.intro__title-line {
  display: block;
  opacity: 0;
  transform: translateY(44px);
  clip-path: inset(0 0 100% 0);
  will-change: opacity, transform, clip-path;
}

.intro__title-group {
  display: contents;
}

.intro__title-group--mobile {
  display: none;
}

.line-reveal-title,
.conversion__title.title-pill.line-reveal-title,
.conversion__title.title-pill.animate-on-scroll.line-reveal-title,
.conversion__title.title-pill.animate-on-scroll.line-reveal-title.is-visible,
.line-reveal-title.animate-on-scroll.is-visible {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  filter: none !important;
  animation: none !important;
}

.conversion__title.title-pill.line-reveal-title {
  display: block !important;
}

.conversion__title.title-pill.line-reveal-title::after {
  content: none !important;
  animation: none !important;
}

.intro__text {
  width: min(420px, 100%);
  height: auto;
  margin: 0;
  color: #292929;
  font-family: "Outfit", Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 16px);
  line-height: 1.35;
  text-align: center;
  flex: none;
  order: 1;
  flex-grow: 0;
  /* Animación removida según solicitud */
}

.intro__brand {
  margin-bottom: 8px;
  width: clamp(60px, 8vw, 84px);
  height: auto;
  opacity: 0.85;
}

.intro__icon {
  width: 100%;
  height: auto;
  display: block;
}

.intro__actions {
  margin-top: 16px;
}

.intro__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  padding: 12px 32px;
  border: 1px solid #1f1f1f;
  border-radius: 100px;
  background: transparent;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1f1f1f;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro__cta:hover {
  background: #1f1f1f;
  color: #f5f6ef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


.intro__title.animate-on-scroll.is-visible {
  animation: none;
}

.intro__title.animate-on-scroll.is-visible .intro__title-line,
.line-reveal-title.animate-on-scroll.is-visible .intro__title-line {
  /* Unificamos velocidad a 1.18s exactamente para ambos */
  animation: intro-title-line-in 1.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro__title.animate-on-scroll.is-visible .intro__title-line:nth-child(2),
.line-reveal-title.animate-on-scroll.is-visible .intro__title-line:nth-child(2) {
  animation-delay: 0.24s;
}

.intro__title.animate-on-scroll.is-visible .intro__title-line:nth-child(3),
.line-reveal-title.animate-on-scroll.is-visible .intro__title-line:nth-child(3) {
  animation-delay: 0.48s;
}

.intro__title.animate-on-scroll.is-visible .intro__title-line:nth-child(4),
.line-reveal-title.animate-on-scroll.is-visible .intro__title-line:nth-child(4) {
  animation-delay: 0.72s;
}

.line-reveal-title.animate-on-scroll.is-visible .intro__title-line:nth-child(5) {
  animation-delay: 0.96s;
}

/* Animación para el título rodeado (pill) usando los mismos estilos existentes */
.title-pill.animate-on-scroll.is-visible {
  animation: intro-title-unfold 1.75s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}


@keyframes intro-title-unfold {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    clip-path: none;
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: none;
  }
}

@keyframes intro-title-line-in {
  from {
    opacity: 0;
    transform: translateY(44px);
    clip-path: inset(0 -0.5em 100% -0.5em); /* Margen de seguridad lateral */
  }

  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(-0.5em -0.5em -0.5em -0.5em); /* Margen de seguridad total */
  }
}

@keyframes intro-text-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-float-a {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(24px, -18px, 0) scale(1.06);
  }
}

@keyframes intro-float-b {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-18px, 22px, 0) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {

  .intro::before,
  .intro::after,
  .page-index .hero__eyebrow,
  .page-index .hero__wordmark,
  .intro__title.animate-on-scroll.is-visible,
  .intro__title.animate-on-scroll.is-visible .intro__title-line,
  .intro__text.animate-on-scroll.is-visible {
    animation: none;
  }

  .intro__title,
  .intro__title-line,
  .page-index .hero__eyebrow,
  .page-index .hero__wordmark,
  .intro__text {
    opacity: 1;
    transform: none;
    clip-path: none;
    filter: none;
  }
}

.portfolio {
  width: 100%;
  min-height: clamp(620px, 90vh, 810px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 52px var(--hero-side-pad);
  gap: 10px;
  isolation: isolate;
  background: #f5f6ef;
  color: #1f1f1f;
}

.portfolio-stack {
  width: 100%;
  position: relative;
  background: #f5f6ef;
}

.portfolio-stack>.portfolio:first-child {
  padding: 0;
  background: #111;
}

.portfolio--open {
  min-height: var(--stacked-portfolio-height);
  height: var(--stacked-portfolio-height);
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  background: #111;
}

.portfolio--static {
  min-height: 100vh;
  height: 100vh;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  background: #111;
}

.portfolio--stacked {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #111;
  z-index: 1;
}

.portfolio--stacked .portfolio__frame {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  height: 100vh;
}

.portfolio--stacked.portfolio--static {
  z-index: 0 !important;
}

.portfolio--stacked.portfolio--open {
  z-index: 2 !important;
}

.portfolio-stack .portfolio--stacked:nth-child(1) {
  z-index: 1;
}

.portfolio-stack .portfolio--stacked:nth-child(2) {
  z-index: 2;
}

.portfolio-stack .portfolio--stacked:nth-child(3) {
  z-index: 3;
}

.portfolio-stack .portfolio--stacked:nth-child(4) {
  z-index: 4;
}

.portfolio-stack .portfolio--stacked:nth-child(5) {
  z-index: 5;
}

.portfolio-stack .portfolio--stacked:nth-child(6) {
  z-index: 6;
}

.portfolio-stack .portfolio--stacked:nth-child(7) {
  z-index: 7;
}

.portfolio-stack .portfolio--stacked:nth-child(8) {
  z-index: 8;
}

.portfolio-stack .portfolio--stacked:nth-child(9) {
  z-index: 9;
}

.portfolio__frame {
  width: min(1200px, 100%);
  min-height: clamp(520px, 74vh, 658px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 23px 0;
  gap: clamp(120px, 22vh, 230px);
  margin: 0 auto;
  flex: none;
  order: 0;
  flex-grow: 1;
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: #f5f6ef;
  transition:
    background-color 0.7s ease,
    color 0.7s ease;
}

.portfolio__header {
  width: min(1200px, 100%);
  min-height: 104px;
  height: auto;
  display: block;
  align-items: center;
  padding: 0;
  gap: clamp(18px, 2vw, 32px);
  flex: none;
  order: 0;
  flex-grow: 0;
  position: relative;
  z-index: 2;
  transition: color 0.7s ease;
}

.portfolio__filter {
  width: auto;
  min-width: 172px;
  max-width: 100%;
  height: 48px;
  padding: 12px 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 107px;
  margin: 0;
  font-family: "Roboto Mono", monospace;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 36px;
  text-align: center;
  text-transform: uppercase;
  color: #1f1f1f;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  justify-self: auto;
  text-align: left;
  z-index: 40;
  pointer-events: auto;
}

.portfolio__filter:hover {
  background-color: transparent;
  color: var(--hero-lime);
}

.title-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  border: none;
  border-radius: 999px;
  width: auto !important;
  max-width: max-content;
  white-space: normal;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}


.portfolio__title {
  width: min(520px, calc(100% - 420px));
  min-height: 104px;
  height: auto;
  margin: 0 auto;
  font-family: "Outfit", Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.02em;
  color: #1f1f1f;
  flex: none;
  order: 1;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: color 0.7s ease;
}

.portfolio__title-line {
  display: block;
  white-space: normal;
  text-wrap: balance;
}

.portfolio__title-line {
  color: inherit;
  transition: color 0.7s ease;
}

.portfolio__title-line--accent {
  color: #d2f583;
}

.portfolio__link {
  width: auto;
  min-width: 172px;
  max-width: 100%;
  height: 48px;
  padding: 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: "Roboto Mono", monospace;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  text-wrap: balance;
  color: #1f1f1f;
  flex: none;
  order: 2;
  flex-grow: 0;
  position: relative;
  z-index: 2;
  transition: color 0.12s ease, opacity 0.7s ease;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  justify-self: auto;
  text-align: right;
  z-index: 40;
  pointer-events: auto;
}

.portfolio__link:hover,
.portfolio__link:focus-visible {
  color: var(--hero-lime);
}

.portfolio__filter:hover,
.portfolio__filter:focus-visible,
.portfolio__link:hover,
.portfolio__link:focus-visible {
  color: var(--hero-lime) !important;
}

.portfolio__cta {
  box-sizing: border-box;
  width: auto;
  min-width: clamp(240px, 24vw, 292px);
  max-width: 100%;
  height: 48px;
  padding: 12px 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  border: 2px solid rgba(245, 246, 239, 0.95);
  border-radius: 100px;
  background: transparent;
  backdrop-filter: none;
  font-family: "Outfit", Arial, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
  text-transform: uppercase;
  color: #1f1f1f;
  flex: none;
  order: 1;
  flex-grow: 0;
  z-index: 1;
  position: relative;
  transition:
    color 0.7s ease,
    border-color 0.7s ease,
    background-color 0.7s ease,
    opacity 0.7s ease;
  opacity: 0;
}

.portfolio__media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  z-index: 0;
  background: #111;
  opacity: 1;
  pointer-events: none;
}

.portfolio__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.portfolio__image,
.portfolio__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: scale(1.08);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio__video {
  pointer-events: none;
  user-select: none;
}

.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__frame {
  width: 100%;
  min-height: var(--stacked-portfolio-height);
  height: var(--stacked-portfolio-height);
  padding: 0;
  background: #111;
  color: var(--hero-white);
}

.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__header {
  position: absolute;
  top: 33%;
  left: 50%;
  width: min(1200px, calc(100% - 96px));
  transform: translate(-50%, -50%);
}

.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__cta {
  position: absolute;
  left: 50%;
  bottom: var(--portfolio-cta-bottom);
  transform: translateX(-50%);
  z-index: 5;
}

.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__filter,
.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__link {
  color: #d9d9d9;
}

.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__filter:hover,
.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__filter:focus-visible,
.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__link:hover,
.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__link:focus-visible {
  color: var(--hero-lime) !important;
}

.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__title,
.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__title-line {
  color: var(--hero-white);
}

.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__title-line--accent {
  color: #d2f583;
}

.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__cta {
  color: var(--hero-white);
  border: 2px solid var(--hero-white);
  background: transparent;
  opacity: 1 !important;
  visibility: visible !important;
}

.portfolio--open {
  z-index: 10 !important;
}

.portfolio--open .portfolio__frame {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  padding: 0;
  background: #111;
  color: var(--hero-white);
}

.portfolio--static .portfolio__frame {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  padding: 0;
  background: #111;
  color: var(--hero-white);
}

.portfolio--open .portfolio__header {
  position: absolute;
  top: 33%;
  left: 50%;
  width: min(1200px, calc(100% - 96px));
  transform: translate(-50%, -50%);
}

.portfolio--static .portfolio__header {
  position: absolute;
  top: 33%;
  left: 50%;
  width: min(1200px, calc(100% - 96px));
  transform: translate(-50%, -50%);
}

.portfolio--open .portfolio__filter,
.portfolio--open .portfolio__link {
  color: #d9d9d9;
}

.portfolio--static .portfolio__filter,
.portfolio--static .portfolio__link {
  color: #d9d9d9;
}

.portfolio--open .portfolio__title {
  color: var(--hero-white);
}

.portfolio--static .portfolio__title {
  color: var(--hero-white);
}

.portfolio--open .portfolio__title-line {
  color: var(--hero-white);
}

.portfolio--static .portfolio__title-line {
  color: var(--hero-white);
}

.portfolio--open .portfolio__title-line--accent {
  color: #d2f583;
}

.portfolio--static .portfolio__title-line--accent {
  color: #d2f583;
}

.portfolio--open .portfolio__filter:hover,
.portfolio--open .portfolio__filter:focus-visible,
.portfolio--open .portfolio__link:hover,
.portfolio--open .portfolio__link:focus-visible,
.portfolio--static .portfolio__filter:hover,
.portfolio--static .portfolio__filter:focus-visible,
.portfolio--static .portfolio__link:hover,
.portfolio--static .portfolio__link:focus-visible {
  color: #d2f583 !important;
}

.portfolio--open .portfolio__cta {
  color: var(--hero-white);
  border: 2px solid var(--hero-white);
  background: transparent;
  position: absolute;
  left: 50%;
  bottom: var(--portfolio-cta-bottom);
  transform: translateX(-50%);
  z-index: 500 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.portfolio--andrew .portfolio__cta {
  bottom: var(--portfolio-cta-bottom) !important;
}

.portfolio--static .portfolio__cta {
  color: var(--hero-white);
  border: 2px solid var(--hero-white);
  background: transparent;
  position: absolute;
  left: 50%;
  bottom: var(--portfolio-cta-bottom);
  transform: translateX(-50%);
  z-index: 500 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.portfolio__cta:hover,
.portfolio__cta:focus-visible {
  background-color: #d2f583 !important;
  border-color: #d2f583 !important;
  color: #1f1f1f !important;
  opacity: 1 !important;
}

.portfolio--open .portfolio__media {
  width: 100%;
  height: 100%;
  opacity: 1;
}

.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__media,
.portfolio--static .portfolio__media {
  width: 100%;
  height: 100%;
}

.portfolio--stacked .portfolio__image,
.portfolio--stacked .portfolio__video {
  object-fit: cover;
  transform: scale(1);
}

.portfolio--ucam {
  --portfolio-reveal-inset: 50%;
  --portfolio-reveal-opacity: 0;
  --portfolio-image-shift: 0px;
  --portfolio-image-scale: 1.08;
}

.portfolio--ucam .portfolio__frame {
  background-color: #f5f6ef;
  position: relative;
}

/* Smooth scale reveal for the first section specifically */
.portfolio--ucam .portfolio__media {
  top: 50% !important;
  left: 50% !important;
  bottom: auto !important;
  right: auto !important;
  width: 100% !important;
  height: 100% !important;
  transform: translate(-50%, -50%) !important;
  clip-path: inset(var(--portfolio-reveal-inset) var(--portfolio-reveal-inset) var(--portfolio-reveal-inset) var(--portfolio-reveal-inset));
  opacity: var(--portfolio-reveal-opacity) !important;
  transition:
    clip-path 1.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1.25s ease !important;
  will-change: clip-path, opacity;
  overflow: hidden;
}

/* Text: black on white, then white on image */
.portfolio--ucam:not(.portfolio--revealed) .portfolio__title,
.portfolio--ucam:not(.portfolio--revealed) .portfolio__title-line,
.portfolio--ucam:not(.portfolio--revealed) .portfolio__link,
.portfolio--ucam:not(.portfolio--revealed) .portfolio__filter {
  color: #1f1f1f !important;
  transition: color 0.12s ease;
}

.portfolio--ucam.portfolio--revealed .portfolio__title,
.portfolio--ucam.portfolio--revealed .portfolio__title-line,
.portfolio--ucam.portfolio--revealed .portfolio__link,
.portfolio--ucam.portfolio--revealed .portfolio__filter {
  color: var(--hero-white) !important;
  transition: color 0.12s ease;
}

.portfolio--ucam .portfolio__title-line--accent,
.portfolio--ucam.portfolio--revealed .portfolio__title-line--accent,
.portfolio--ucam:not(.portfolio--revealed) .portfolio__title-line--accent {
  color: #d2f583 !important;
}

.portfolio--ucam .portfolio__filter:hover,
.portfolio--ucam .portfolio__filter:focus-visible,
.portfolio--ucam .portfolio__link:hover,
.portfolio--ucam .portfolio__link:focus-visible {
  color: var(--hero-lime) !important;
}

/* Ensure other sections don't have the slide-up/reveal animations */
.portfolio--stacked:not(.portfolio--ucam) .portfolio__media {
  transition: none !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) !important;
}

.portfolio--ucam .portfolio__header {
  z-index: 20;
}

/* Keep text dark only while the white intro state is still visible */
.portfolio--ucam:not(.portfolio--revealed) .portfolio__title,
.portfolio--ucam:not(.portfolio--revealed) .portfolio__title-line,
.portfolio--ucam:not(.portfolio--revealed) .portfolio__link,
.portfolio--ucam:not(.portfolio--revealed) .portfolio__filter {
  color: #1f1f1f !important;
}

/* Remove the general mask if we are using the slide-up media */
.portfolio--ucam .portfolio__frame::after {
  display: none;
}

.portfolio--ucam .portfolio__image,
.portfolio--ucam .portfolio__video {
  object-position: center 54%;
  transform: translate3d(0, var(--portfolio-image-shift), 0) scale(var(--portfolio-image-scale));
  transition: transform 1.95s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.portfolio--ucam.portfolio--revealed {
  --portfolio-reveal-inset: 0%;
  --portfolio-reveal-opacity: 1;
  --portfolio-image-scale: 1;
}

.portfolio--caballito .portfolio__image,
.portfolio--caballito .portfolio__video {
  object-position: center 62% !important;
}

@media (min-width: 1025px) {
  .portfolio--stacked .portfolio__video {
    object-fit: cover !important;
    transform: scale(1.18) !important;
    transform-origin: center center;
  }

  .portfolio--ucam .portfolio__video {
    transform: translate3d(0, var(--portfolio-image-shift), 0) scale(1.18) !important;
  }
}

.portfolio--torre .portfolio__image,
.portfolio--torre .portfolio__video {
  object-position: center 36% !important;
}

.portfolio--andrew .portfolio__image {
  object-position: center 42% !important;
}

.portfolio--gucci .portfolio__image {
  object-position: center 42% !important;
}

.portfolio--ucam25 .portfolio__image {
  object-position: center 48% !important;
}

.portfolio--the19hole .portfolio__image {
  object-position: center 42% !important;
}

.portfolio--frank .portfolio__image {
  object-position: center 42% !important;
}

.portfolio--dermatologyrocks .portfolio__image {
  object-position: center 42% !important;
}

.portfolio--andrew.portfolio--static .portfolio__cta {
  bottom: var(--portfolio-cta-bottom);
}

.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__header,
.portfolio--stacked.portfolio--open .portfolio__header,
.portfolio--stacked.portfolio--static .portfolio__header {
  top: 33%;
  width: min(1200px, calc(100% - 96px));
  min-height: clamp(176px, 20vh, 212px);
  height: clamp(176px, 20vh, 212px);
  transform: translate(-50%, -50%);
}

.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__title,
.portfolio--stacked.portfolio--open .portfolio__title,
.portfolio--stacked.portfolio--static .portfolio__title {
  min-height: 0;
  height: 100%;
}

.portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__cta,
.portfolio--stacked.portfolio--open .portfolio__cta,
.portfolio--stacked.portfolio--static .portfolio__cta {
  left: 50%;
  bottom: var(--portfolio-cta-bottom);
  transform: translateX(-50%);
}

@media (min-width: 1025px) {

  .portfolio--stacked,
  .portfolio--open,
  .portfolio--static,
  .portfolio--stacked .portfolio__frame,
  .portfolio--open .portfolio__frame,
  .portfolio--static .portfolio__frame {
    min-height: 100svh !important;
    height: 100svh !important;
  }
}

@media (min-width: 1025px) {

  .hero,
  .intro {
    min-height: 100svh;
    height: 100svh;
  }
}

.conversion {
  width: 100%;
  min-height: clamp(480px, 72vh, 810px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(72px, 8vw, 120px) var(--hero-side-pad);
  background: var(--hero-lime);
  color: #1f1f1f;
}

@media (min-width: 1025px) {
  .conversion {
    min-height: 100svh;
  }
}

.conversion__container {
  width: min(1200px, 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  position: relative;
  z-index: 1;
}

.conversion__content {
  width: min(673px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.conversion__title {
  width: min(561px, 100%);
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #1f1f1f;
}

.conversion__title.title-pill,
.conversion__title.title-pill.animate-on-scroll {
  position: relative;
  overflow: visible;
  opacity: 0;
  transform: none !important;
  transform-origin: center bottom;
  clip-path: inset(100% 0 0 0);
  animation: none !important;
  will-change: opacity, transform, clip-path;
}

.conversion__title.title-pill::before {
  content: none;
}

.conversion__title.title-pill::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: min(300px, 62%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 31, 31, 0.46), transparent);
  opacity: 0;
  transform: translate3d(-50%, 0, 0) scaleX(0.08);
  transform-origin: center;
  pointer-events: none;
}

.conversion__title.title-pill.animate-on-scroll.is-visible {
  animation: conversion-title-rise-in 2.45s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.conversion__title.title-pill.animate-on-scroll.is-visible::after {
  animation: conversion-title-trace 1.9s 0.28s cubic-bezier(0.18, 0.86, 0.22, 1) both;
}

.conversion__text {
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 16px);
  line-height: 1.35;
  color: #1f1f1f;
}

.conversion__cta {
  box-sizing: border-box;
  min-width: 163px;
  height: 48px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1f1f1f;
  border-radius: 100px;
  font-family: "Outfit", Arial, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  color: #1f1f1f;
  text-decoration: none;
  transition: all 0.3s ease;
}

.conversion__cta:hover {
  background-color: #1f1f1f;
  color: var(--hero-lime, #d2f583);
}

@keyframes conversion-title-rise-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
    clip-path: inset(100% 0 0 0);
  }

  34% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    clip-path: inset(42% 0 0 0);
  }

  70% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    clip-path: inset(0 0 0 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes conversion-title-trace {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) scaleX(0.08);
  }

  32% {
    opacity: 0.58;
    transform: translate3d(-50%, 0, 0) scaleX(1);
  }

  74% {
    opacity: 0.36;
    transform: translate3d(-50%, 0, 0) scaleX(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {

  .conversion__title.title-pill.animate-on-scroll,
  .conversion__title.title-pill.animate-on-scroll.is-visible,
  .conversion__title.title-pill.animate-on-scroll.is-visible::after {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }

  .conversion__title.title-pill.animate-on-scroll.is-visible::after {
    opacity: 0 !important;
  }
}

.footer {
  --footer-inline-pad: clamp(16px, 6vw, 120px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px var(--footer-inline-pad) 16px;
  gap: 58px;
  background: var(--hero-lime);
  color: #1f1f1f;
}

.footer__top {
  width: min(1200px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 48px;
}

.footer__columns {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 79px);
}

.footer__group {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  min-width: min(220px, 100%);
}

.footer__columns>.footer__group:nth-child(3),
.footer__group--certifications {
  align-items: center;
  flex-wrap: nowrap;
  min-width: max-content;
}

.footer__columns>.footer__group:nth-child(3) .footer__stack,
.footer__group--certifications .footer__stack {
  flex-direction: row;
  align-items: center;
  gap: 0;
}

.footer__columns>.footer__group:nth-child(3) .footer__stack a,
.footer__certification-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footer__label {
  min-width: max-content;
  padding: 6px;
  font-family: "Roboto Mono", monospace;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
  color: #000;
}

.footer__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.footer__link,
.footer__link:visited {
  padding: 6px;
  font-family: "Roboto Mono", monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: color 0.2s ease-in-out;
}

.footer__link:hover,
.footer__link:focus-visible {
  font-weight: 700;
  color: #000;
}

.footer__link::after {
  content: none;
}

.footer__acc-link {
  cursor: pointer;
  font-family: "Outfit", Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 14px !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
  color: #000 !important;
  transition: text-decoration 0.2s ease;
}

.footer__accessibility span.footer__acc-link {
  display: inline-flex;
  align-items: center;
}

.footer__acc-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.footer__accessibility {
  width: min(560px, 100%);
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-family: "Outfit", Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 14px !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
  color: #000 !important;
}

.footer__accessibility svg.footer__acc-link {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  stroke: currentColor;
}

.footer__logo {
  width: 101px;
  height: auto;
  flex: none;
}

.footer__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto !important;
  max-width: 100%;
}

.footer__bottom {
  width: min(1200px, 100%);
  padding: 25px 0 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "accessibility copyright legal";
  align-items: center;
  gap: 24px;
}

.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  height: 1px;
  background: #000;
}

.footer__copyright {
  grid-area: copyright;
  justify-self: center;
  font-family: "Outfit", Arial, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  line-height: 13px;
  text-transform: uppercase;
  color: #000;
}

.footer__accessibility {
  grid-area: accessibility;
  justify-self: start;
}

.footer__legal {
  grid-area: legal;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding: 12px 0;
  /* Removed horizontal padding so last item aligns perfectly flush to the right */
}

.footer__legal a {
  display: inline-flex;
  align-items: center;
  font-family: "Outfit", Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: opacity 0.3s ease;
}

.footer__certification-logo,
.footer__group img[alt="Green Film"] {
  display: block;
  width: auto !important;
  max-width: min(140px, 100%) !important;
  height: 28px !important;
  object-fit: contain;
  filter: brightness(0);
  margin-top: 0 !important;
  margin-left: 0 !important;
  transform: translateY(-6px);
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  opacity: 0.68;
}

.footer__legal a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 1025px) {
  .footer__top {
    flex-wrap: nowrap;
    gap: clamp(40px, 5vw, 80px);
  }

  .footer__columns {
    flex-wrap: nowrap;
    gap: clamp(24px, 3vw, 56px);
  }

  .footer__group {
    min-width: 0;
  }

  .footer__logo-link {
    flex: 0 0 auto;
    align-self: flex-start;
  }
}

.page-legal {
  min-height: 100vh;
  background: #f3f3ec;
  color: #1f1f1f;
}

.legal-page {
  padding-top: var(--header-height);
}

.legal-hero {
  padding: 72px var(--hero-side-pad) 36px;
}

.legal-content {
  padding: 0 var(--hero-side-pad) 120px;
}

.legal-hero__inner,
.legal-content__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.legal-hero__eyebrow {
  margin: 0 0 18px;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #5d6457;
}

.legal-hero__title {
  margin: 0;
  max-width: 860px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(52px, 6vw, 68px);
  line-height: 0.96;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.legal-hero__lead {
  margin: 24px 0 0;
  max-width: 760px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.5;
  font-weight: 400;
  color: #303030;
}

.legal-content__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-note,
.legal-block {
  border: 1px solid rgba(16, 22, 11, 0.14);
  background: #fbfbf7;
}

.legal-note {
  padding: 18px 20px;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  text-transform: uppercase;
  color: #1f1f1f;
}

.legal-block {
  padding: clamp(24px, 2.8vw, 32px);
}

.legal-block h2 {
  margin: 0 0 16px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(24px, 2.6vw, 28px);
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-block p {
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: #2b2b2b;
}

.legal-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-list li {
  font-family: "Outfit", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: #2b2b2b;
}

/* Eliminado */

.legal-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.legal-table__item {
  padding: 16px 18px;
  border: 1px solid rgba(16, 22, 11, 0.12);
  background: #f0f2e8;
}

.legal-table__label {
  display: block;
  margin-bottom: 6px;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
  color: #5d6457;
}

.legal-table__value {
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: #1f1f1f;
}

@media (max-width: 1200px) {
  .hero {
    min-height: 620px;
  }

  .hero__nav--right {
    margin-right: 16px !important;
  }

  .hero__menu {
    gap: 48px;
  }

  .hero__nav,
  .hero__actions {
    width: auto;
  }

  .hero__content {
    padding: 0 40px;
  }

  .intro {
    padding: 80px 40px 0;
  }

  .portfolio {
    padding-left: 40px;
    padding-right: 40px;
  }

  .portfolio__header {
    gap: 24px;
  }

  .portfolio__title {
    width: min(420px, 100%);
    font-size: 42px;
    line-height: 46px;
  }

  .portfolio__filter,
  .portfolio__link {
    width: 160px;
  }

  .conversion,
  .footer {
    padding-left: 40px;
    padding-right: 40px;
  }

  .footer {
    --footer-inline-pad: 40px;
  }

  .footer__top,
  .footer__bottom {
    width: 100%;
  }

  .legal-hero {
    padding-left: 40px;
    padding-right: 40px;
  }

  .legal-content {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 560px;
    height: 100svh;
  }

  .hero__nav--right {
    margin-right: 0 !important;
  }

  .hero__topbar {
    padding: 16px 20px;
    align-items: stretch;
    min-height: 80px;
  }

  .hero__menu {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "nav brand actions";
    gap: 12px;
    align-items: center;
    height: auto;
    position: relative;
  }

  .hero__nav {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    grid-area: nav;
    justify-content: flex-start;
    align-self: center;
  }

  .hero__actions {
    width: 100%;
    min-width: 0;
    margin: 0;
    grid-area: actions;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    align-self: center;
  }

  .hero__nav a,
  .hero__lang,
  .hero__contact {
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
  }

  .hero__nav a,
  .hero__lang {
    padding: 0;
  }

  .hero__contact {
    width: auto;
    min-width: 116px;
    padding: 10px 18px;
  }

  .hero__brand {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    grid-area: brand;
    justify-self: center;
    align-self: center;
  }

  .hero__content {
    padding: 0 20px;
    inset: 80px 0 0 0;
    align-items: stretch !important;
  }

  .hero__frame {
    width: 100%;
    height: 100%;
    min-height: 420px;
    position: relative;
  }

  .hero__eyebrow {
    width: 190px;
    font-size: 13px;
    line-height: 18px;
  }

  .hero__meta {
    min-height: 120px;
    align-items: center;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 42% !important;
    z-index: 100 !important;
    margin: 0 !important;
  }

  .hero__wordmark {
    width: 100%;
    max-width: none;
    max-height: 180px;
    object-fit: contain;
    object-position: center bottom;
  }

  .intro {
    min-height: max(560px, calc(100svh - 80px));
    padding: 48px 20px;
  }

  .intro__container {
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .intro__content {
    max-width: 560px;
  }

  .portfolio {
    min-height: auto;
    padding: 24px 20px;
  }

  .portfolio--open,
  .portfolio--static {
    min-height: calc(100svh - var(--portfolio-header-offset));
    height: calc(100svh - var(--portfolio-header-offset));
  }

  .portfolio--stacked {
    position: sticky;
    top: var(--portfolio-header-offset);
  }

  .portfolio__header {
    gap: 18px;
  }

  .portfolio__filter,
  .portfolio__link {
    font-size: 13px;
    line-height: 16px;
  }

  .portfolio__cta {
    min-width: 0;
    width: auto;
    max-width: calc(100% - 40px);
    padding: 12px 18px;
    font-size: 14px;
    line-height: 18px;
    white-space: normal;
  }

  .portfolio--open .portfolio__frame,
  .portfolio--static .portfolio__frame {
    min-height: max(560px, calc(100svh - 80px));
    height: max(560px, calc(100svh - 80px));
  }

  .portfolio--open .portfolio__header,
  .portfolio--static .portfolio__header {
    width: calc(100% - 40px);
  }

  .portfolio--open .portfolio__cta,
  .portfolio--static .portfolio__cta {
    bottom: 28px;
  }

  .conversion {
    padding: 72px 20px;
  }

  .footer {
    padding: 36px 20px 16px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  :root {
    --hero-side-pad: 24px;
  }

  .hero {
    min-height: 520px;
    height: 520px;
  }

  .hero__topbar {
    padding: 16px 24px;
    height: auto;
    min-height: 80px;
    align-items: center;
  }

  .hero__menu {
    width: 100%;
    gap: 24px;
  }

  .hero__nav {
    width: auto;
    gap: 16px;
  }

  .hero__actions {
    width: auto;
    gap: 14px;
  }

  .hero__brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 36px;
  }

  .hero__frame {
    width: 100%;
  }

  .hero__meta {
    min-height: 66px;
  }

  .hero__eyebrow {
    width: 230px;
    height: auto;
    font-size: 14px;
    line-height: 1.35;
  }

  .hero__arrow {
    top: 22px;
    right: 0;
    width: 62px;
    height: 43px;
  }

  .hero__wordmark {
    width: 100%;
  }

  .intro {
    height: auto;
    padding: 80px 24px 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .intro__container {
    width: 100%;
    position: static;
    left: auto;
    top: auto;
    transform: none;
    height: auto;
    padding: 0;
    place-items: center;
  }

  .intro__content {
    width: 100%;
    height: auto;
    gap: 24px;
    margin: 0 auto;
  }

  .intro__title {
    width: 100%;
    height: auto;
    font-size: 32px;
    line-height: 36px;
  }

  .intro__text {
    width: min(420px, 100%);
    height: auto;
    font-size: 18px;
    line-height: 1.4;
  }

  .portfolio {
    height: auto;
    padding: 72px 24px;
  }

  .portfolio-stack {
    background: #111;
  }

  .portfolio__frame {
    width: 100%;
    height: auto;
    gap: 64px;
    padding: 0;
    min-height: 520px;
  }

  .portfolio__header {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .portfolio__title {
    width: 100%;
    height: auto;
    font-size: 32px;
    line-height: 36px;
  }

  .portfolio__title-line {
    white-space: normal;
  }

  .portfolio__filter,
  .portfolio__link {
    width: auto;
    max-width: 100%;
  }

  .portfolio__cta {
    width: auto;
    max-width: 100%;
  }

  .portfolio__media {
    width: 100%;
    height: 0;
  }

  .portfolio--open .portfolio__media {
    height: 100%;
  }

  .portfolio--static .portfolio__media {
    height: 100%;
  }

  .portfolio--open .portfolio__header {
    width: calc(100% - 48px);
    transform: translate(-50%, -50%);
  }

  .portfolio--static .portfolio__header {
    width: calc(100% - 48px);
    transform: translate(-50%, -50%);
  }

  .portfolio--open .portfolio__cta {
    bottom: 40px;
  }

  .portfolio--static .portfolio__cta {
    bottom: 40px;
  }

  .portfolio--open .portfolio__frame {
    min-height: 520px;
    height: 520px;
  }

  .portfolio--static .portfolio__frame {
    min-height: 520px;
    height: 520px;
  }

  .conversion {
    min-height: auto;
    padding: 80px 24px;
  }

  .conversion__title {
    width: 100%;
    font-size: 32px;
    line-height: 36px;
  }

  .footer {
    --footer-inline-pad: 24px;
    padding: 40px var(--footer-inline-pad) 16px;
    gap: 40px;
  }

  .footer__top,
  .footer__columns,
  .footer__group,
  .footer__bottom {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__columns>.footer__group:nth-child(3),
  .footer__group--certifications {
    min-width: 0;
  }

  .footer__legal {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0 0;
  }

  .legal-hero {
    padding: 56px 24px 28px;
  }

  .legal-content {
    padding: 0 24px 72px;
  }

  .legal-hero__title {
    font-size: 44px;
  }

  .legal-hero__lead {
    font-size: 18px;
  }

  .legal-block {
    padding: 24px;
  }

  .legal-table {
    grid-template-columns: 1fr;
  }

  .footer__logo {
    width: 88px;
  }
}

@media (max-width: 540px) {
  :root {
    --mobile-section-height: 520px;
  }

  .hero__topbar {
    padding: 12px 16px;
    min-height: 80px;
  }

  .hero__menu {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "nav brand actions";
    gap: 8px;
    height: auto;
    align-items: center;
  }

  .hero__nav {
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
    width: 100%;
    align-self: center;
  }

  .hero__actions {
    gap: 6px;
    width: 100%;
    align-self: center;
  }

  .hero__nav a,
  .hero__lang,
  .hero__contact {
    font-size: 12px;
    line-height: 16px;
  }

  .hero__brand {
    width: 84px;
    height: 28px;
    justify-self: center;
  }

  .hero__contact {
    min-width: 84px;
    padding: 9px 12px;
  }

  .hero__lang {
    width: auto;
    padding: 0;
  }

  .hero__eyebrow {
    width: 150px;
    font-size: 11px;
    line-height: 15px;
  }

  .hero__content {
    inset: 80px 0 0 0;
    padding: 0 16px;
    align-items: stretch !important;
  }

  .hero__frame {
    width: 100%;
    height: 100%;
    min-height: 380px;
    justify-content: space-between;
    position: relative;
  }

  .hero__meta {
    min-height: 96px;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 42% !important;
    z-index: 100 !important;
  }

  .hero__arrow {
    width: 58px;
    height: 40px;
    padding: 10px 18px;
  }

  .hero__wordmark {
    max-height: 120px;
    width: 108%;
    margin-left: -4%;
    margin-top: auto;
  }

  .intro {
    min-height: var(--mobile-section-height);
    height: var(--mobile-section-height);
    padding: 40px 16px;
  }

  .intro__content {
    gap: 20px;
  }

  .intro__title,
  .conversion__title {
    width: 100%;
  }

  .intro__text,
  .conversion__text {
    width: 100%;
    font-size: 18px;
    line-height: 1.4;
  }

  .portfolio {
    padding: 16px;
  }

  .portfolio__frame {
    padding: 0;
    gap: 0;
  }

  .portfolio__header {
    gap: 14px;
    justify-content: center;
    align-items: center;
  }

  .portfolio__title {
    font-size: 24px;
    line-height: 28px;
    max-width: 280px;
  }

  .portfolio__filter,
  .portfolio__link {
    font-size: 12px;
    line-height: 15px;
    width: auto;
    height: auto;
  }

  .portfolio__cta {
    max-width: 248px;
    width: 248px;
    font-size: 13px;
    line-height: 16px;
    padding: 10px 14px;
    min-height: 44px;
    white-space: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .portfolio--open,
  .portfolio--static {
    min-height: var(--mobile-section-height);
    height: var(--mobile-section-height);
  }

  .portfolio--open .portfolio__frame,
  .portfolio--static .portfolio__frame {
    min-height: var(--mobile-section-height);
    height: var(--mobile-section-height);
    padding-bottom: 0;
  }

  .portfolio--open .portfolio__header,
  .portfolio--static .portfolio__header {
    width: calc(100% - 32px);
    top: 34%;
    transform: translate(-50%, -50%);
    display: flex;
  }

  .portfolio--open .portfolio__cta,
  .portfolio--static .portfolio__cta {
    bottom: auto;
    left: 50%;
    top: 72%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: inline-flex;
  }

  .portfolio--open .portfolio__media,
  .portfolio--static .portfolio__media {
    width: 100%;
    height: 100%;
  }

  .portfolio--open .portfolio__image,
  .portfolio--open .portfolio__video,
  .portfolio--static .portfolio__image,
  .portfolio--static .portfolio__video {
    object-fit: cover;
    object-position: center;
  }

  .footer {
    --footer-inline-pad: 16px;
    padding: 32px var(--footer-inline-pad) 16px;
  }

  .conversion {
    min-height: var(--mobile-section-height);
    height: var(--mobile-section-height);
    padding: 40px 16px;
  }

  .footer__top,
  .footer__bottom {
    gap: 12px;
  }

  .footer__link,
  .footer__label,
  .footer__legal a,
  .footer__copyright {
    font-size: 14px;
    line-height: 18px;
  }

  .footer__legal {
    gap: 8px;
  }

  .legal-hero,
  .legal-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-hero__title {
    font-size: 32px;
    line-height: 1;
  }

  .legal-hero__lead,
  .legal-block p,
  .legal-list li,
  .legal-table__value {
    font-size: 15px;
  }

  .legal-note,
  .legal-block {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ============================================================
   RESPONSIVE — WIDE SCREENS (1600px+, 1920px+, 4K)
   ============================================================ */
@media (min-width: 1600px) {
  .intro__title {
    font-size: clamp(32px, 2.5vw, 56px);
    max-width: min(900px, 60vw);
  }

  .footer__top {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
  }

  .footer__bottom {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (min-width: 1920px) {
  :root {
    --header-height: 90px;
    --hero-side-pad: calc(((100vw - var(--desktop-reference-width)) / 2) + var(--desktop-reference-side-pad));
  }

  .hero__menu {
    max-width: var(--desktop-reference-hero-inner);
    margin: 0 auto;
    width: min(var(--desktop-reference-hero-inner), 100%);
  }

  .intro__container {
    max-width: 1400px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL LAPTOPS (1024px – 1280px)
   ============================================================ */
@media (min-width: 1025px) and (max-width: 1280px) {
  .footer__columns {
    gap: 32px;
  }
}

/* ============================================================
   RESPONSIVE — TABLET LANDSCAPE (768px – 1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --hero-side-pad: clamp(16px, 5vw, 60px);
  }

  .footer__top {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer__logo-link {
    margin-left: 0 !important;
    margin-top: 16px;
  }

  .footer__columns {
    flex-wrap: wrap;
  }

  .footer__group--certifications {
    min-width: 0;
  }
}

/* --- Accessibility Modes --- */
html.acc-grayscale::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: grayscale(100%);
  -webkit-backdrop-filter: grayscale(100%);
  pointer-events: none;
  z-index: 2147483647;
}

html.acc-largetext {
  --acc-readable-font: 18px;
  --acc-label-font: 15px;
  --acc-button-font: 17px;
  --acc-small-font: 13px;
  text-size-adjust: 115%;
  -webkit-text-size-adjust: 115%;
}

html.acc-largetext,
html.acc-largetext body {
  overflow-x: clip;
}

@supports not (overflow-x: clip) {

  html.acc-largetext,
  html.acc-largetext body {
    overflow-x: hidden;
  }
}

html.acc-largetext body {
  font-size: var(--acc-readable-font);
}

html.acc-largetext :where(a, button, span, p, li, h1, h2, h3, h4, label, input, textarea) {
  overflow-wrap: anywhere;
}

html.acc-largetext :where(.hero__nav a,
  .hero__contact,
  .hero__lang,
  .hero__menu-toggle,
  .hero__mobile-link,
  .hero__mobile-close,
  .portfolio__filter,
  .portfolio__link,
  .portfolio__cta,
  .conversion__cta,
  .production-back,
  .production-next__link,
  .producciones-overview__filter,
  .producciones-overview__filter-toggle,
  .production-card__cta,
  .nos-cta,
  .nos-caps__cta,
  .contact-form__submit,
  .cookie-btn,
  .footer__label,
  .footer__link,
  .footer__acc-link,
  .footer__legal a) {
  height: auto !important;
  min-height: 44px;
  line-height: 1.25 !important;
  white-space: normal !important;
  text-wrap: balance;
}

html.acc-largetext :where(.hero__nav a,
  .hero__contact,
  .hero__lang,
  .hero__menu-toggle,
  .portfolio__filter,
  .portfolio__link,
  .portfolio__cta,
  .conversion__cta,
  .production-back,
  .production-next__link,
  .producciones-overview__filter,
  .producciones-overview__filter-toggle,
  .production-card__cta,
  .nos-cta,
  .nos-caps__cta,
  .contact-form__submit) {
  font-size: var(--acc-button-font) !important;
}

html.acc-largetext :where(.hero__eyebrow,
  .portfolio__filter,
  .portfolio__link,
  .production-meta__label,
  .production-meta__value,
  .production-gallery__eyebrow,
  .producciones-overview__filter,
  .production-card__cta,
  .servicios-hero__eyebrow,
  .servicios-item__num,
  .nos-intro__eyebrow,
  .nos-datos__label,
  .nos-cap-item__num,
  .contact-info__label,
  .legal-hero__eyebrow,
  .legal-note,
  .footer__label,
  .footer__link,
  .footer__acc-link,
  .footer__legal a,
  .footer__copyright) {
  font-size: var(--acc-label-font) !important;
}

html.acc-largetext :where(.intro__text,
  .conversion__text,
  .legal-content p,
  .legal-content li,
  .legal-table__value,
  .production-hero__description,
  .production-next__eyebrow,
  .producciones-overview__lead,
  .servicios-item__content,
  .servicios-item__content p,
  .nos-cap-item__desc,
  .contact-info__value,
  .contact-form__feedback,
  .contact-form__group label,
  .contact-form__group input,
  .contact-form__group textarea,
  .legal-hero__lead) {
  font-size: var(--acc-readable-font) !important;
  line-height: 1.55 !important;
}

html.acc-largetext :where(.intro__title,
  .conversion__title,
  .portfolio__title,
  .production-hero__title,
  .production-next__title,
  .producciones-overview__title,
  .production-card__title,
  .servicios-hero__title,
  .servicios-item__title,
  .servicios-item__text,
  .nos-intro__headline,
  .nos-cap-item__title,
  .contact-hero__title,
  .legal-hero__title) {
  line-height: 1.12 !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

html.acc-largetext :where(.hero__menu, .hero__nav, .hero__actions, .footer__columns, .footer__group, .footer__bottom, .production-meta, .producciones-overview__filters) {
  min-width: 0;
}

html.acc-largetext .hero__contact,
html.acc-largetext .portfolio__cta,
html.acc-largetext .conversion__cta,
html.acc-largetext .nos-cta,
html.acc-largetext .nos-caps__cta {
  max-width: min(100%, calc(100vw - 32px));
  padding-top: 12px;
  padding-bottom: 12px;
}

html.acc-largetext .producciones-overview__filters {
  flex-wrap: wrap;
}

html.acc-largetext .production-card__body,
html.acc-largetext .contact-form__row {
  min-width: 0;
}

html.acc-largetext .producciones-overview__filter {
  min-width: 0;
}

html.acc-largetext .production-card__cta {
  white-space: normal;
  text-align: right;
}

html.acc-largetext .servicios-hero__exaggerated-inner img {
  transform: scale(1) !important;
}

html.acc-largetext .conversion__title .intro__title-line,
html.acc-largetext .servicios-hero__title .intro__title-line,
html.acc-largetext .portfolio__title-line {
  max-width: 100%;
  white-space: normal !important;
}

html.acc-largetext .servicios-item__arrow-wrap {
  width: 32px;
  overflow: hidden;
}

html.acc-largetext .footer__accessibility {
  width: min(720px, 100%);
  gap: 8px 14px;
}

html.acc-largetext .footer__accessibility,
html.acc-largetext .footer__acc-link,
html.acc-largetext .footer__legal a {
  font-size: var(--acc-small-font) !important;
  line-height: 1.35 !important;
}

html.acc-largetext .footer__bottom {
  align-items: center;
}

html.acc-largetext .footer__group--certifications .footer__label {
  min-height: 0;
  line-height: 18px !important;
}

html.acc-largetext .footer__certification-logo,
html.acc-largetext .footer__group img[alt="Green Film"] {
  transform: translateY(-6px);
}

@media (max-width: 1024px) {
  html.acc-largetext {
    --acc-readable-font: 18px;
    --acc-label-font: 14px;
    --acc-button-font: 16px;
    --acc-small-font: 12px;
  }

  html.acc-largetext .hero__menu-toggle {
    width: auto;
    min-width: 84px;
    min-height: 44px;
    height: 44px;
    max-width: calc(100vw - 96px);
    padding: 0 20px;
    white-space: nowrap !important;
    text-wrap: nowrap;
  }

  html.acc-largetext .hero__mobile-link {
    min-height: 56px;
    font-size: 24px !important;
    line-height: 1.12 !important;
  }

  html.acc-largetext .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__header,
  html.acc-largetext .portfolio--stacked.portfolio--open .portfolio__header,
  html.acc-largetext .portfolio--stacked.portfolio--static .portfolio__header {
    width: min(520px, calc(100% - 28px)) !important;
    min-height: 0;
    gap: 14px;
  }

  html.acc-largetext .page-index .portfolio--stacked .portfolio__title {
    max-width: min(460px, calc(100vw - 32px)) !important;
    font-size: 34px !important;
  }

  html.acc-largetext .portfolio--stacked .portfolio__cta,
  html.acc-largetext .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__cta,
  html.acc-largetext .portfolio--stacked.portfolio--open .portfolio__cta,
  html.acc-largetext .portfolio--stacked.portfolio--static .portfolio__cta {
    width: min(340px, calc(100% - 28px)) !important;
    max-width: calc(100% - 28px) !important;
    min-height: 50px;
    padding: 12px 16px;
  }

  html.acc-largetext .footer__bottom {
    grid-template-columns: 1fr;
    grid-template-areas:
      "accessibility"
      "legal"
      "copyright";
    align-items: start;
    gap: 18px;
  }

  html.acc-largetext .footer__accessibility,
  html.acc-largetext .footer__legal {
    width: 100%;
    justify-self: start;
  }
}

@media (max-width: 540px) {
  html.acc-largetext {
    --acc-readable-font: 17px;
    --acc-label-font: 13px;
    --acc-button-font: 14px;
    --acc-small-font: 12px;
  }

  html.acc-largetext .hero__menu-toggle {
    min-width: 84px;
    height: 44px;
    min-height: 44px;
    max-width: calc(100vw - 84px);
    padding: 0 18px;
  }

  html.acc-largetext .hero__mobile-link {
    font-size: 22px !important;
  }

  html.acc-largetext .intro {
    height: auto;
    min-height: max(620px, 100svh);
  }

  html.acc-largetext .intro__title {
    font-size: 28px !important;
  }

  html.acc-largetext .page-index .portfolio--stacked .portfolio__title {
    max-width: min(340px, calc(100vw - 28px)) !important;
    font-size: 26px !important;
  }

  html.acc-largetext .portfolio--stacked .portfolio__filter,
  html.acc-largetext .portfolio--stacked .portfolio__link {
    font-size: 12px !important;
  }

  html.acc-largetext .conversion__title,
  html.acc-largetext .conversion__title--brand {
    font-size: 27px !important;
  }

  html.acc-largetext .footer__group,
  html.acc-largetext .footer__group--certifications {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

html.acc-highcontrast::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: invert(100%) hue-rotate(180deg) contrast(150%);
  -webkit-backdrop-filter: invert(100%) hue-rotate(180deg) contrast(150%);
  pointer-events: none;
  z-index: 2147483647;
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1a1a1a;
  border-top: 1px solid rgba(245, 246, 239, 0.12);
  padding: 20px clamp(16px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#cookie-banner.is-visible {
  transform: translateY(0);
}

#cookie-banner.is-hiding {
  transform: translateY(110%);
}

.cookie-banner__text {
  flex: 1;
  min-width: 260px;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 246, 239, 0.72);
}

.cookie-banner__text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #f5f6ef;
  margin-bottom: 4px;
}

.cookie-banner__text a {
  color: #d2f583;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: #f5f6ef;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  height: 44px;
  border-radius: 100px;
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn--accept {
  background-color: #d2f583;
  color: #1a1a1a;
}

.cookie-btn--accept:hover {
  background-color: #c0e06a;
}

.cookie-btn--reject {
  background-color: transparent;
  color: rgba(245, 246, 239, 0.72);
  border: 1px solid rgba(245, 246, 239, 0.25);
}

.cookie-btn--reject:hover {
  background-color: rgba(245, 246, 239, 0.08);
  color: #f5f6ef;
  border-color: rgba(245, 246, 239, 0.5);
}

@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================================
   RESPONSIVE REFRESH — MOBILE/TABLET NAV + FOOTER
   ============================================================ */

body.menu-open {
  overflow: hidden;
}

.hero__menu-spacer,
.hero__menu-toggle,
.hero__mobile-overlay {
  display: none;
}

.hero__menu-toggle {
  --toggle-size: 48px;
  width: var(--toggle-size);
  height: var(--toggle-size);
  padding: 0;
  border: 1px solid var(--mobile-menu-pill-border);
  border-radius: 999px;
  background: var(--mobile-menu-pill-bg);
  color: var(--hero-lime);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  transition: transform 0.24s ease, background-color 0.24s ease, border-color 0.24s ease;
}

.hero__menu-toggle:hover,
.hero__menu-toggle:focus-visible {
  background: var(--mobile-menu-pill-bg);
  border-color: var(--mobile-menu-pill-border);
  transform: translateY(-1px);
}

.hero__menu-toggle-box {
  width: 18px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__menu-toggle-bar {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.hero__menu-toggle[aria-expanded="true"] .hero__menu-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hero__menu-toggle[aria-expanded="true"] .hero__menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

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

.hero__mobile-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 2000;
  background: #D2F583;
  /* Color Lima Figma */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: circle(0 at calc(100% - 62px) 42px);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.72s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.menu-open .hero__mobile-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: circle(150% at calc(100% - 62px) 42px);
  transition:
    opacity 0.28s ease,
    clip-path 0.78s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}

.hero__mobile-panel {
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-18px) scale(0.985);
  transition:
    opacity 0.36s ease,
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}

body.menu-open .hero__mobile-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Frame 50 inside Overlay - Alineación idéntica al topbar original */
.hero__mobile-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px; /* Sincronizado con la barra principal */
  width: 100%;
  height: 80px;
  flex-shrink: 0;
}

.hero__mobile-header .hero__brand {
  display: flex;
  justify-content: flex-start; /* Alineación idéntica */
  margin: 0;
  width: 44px;
  height: 38px;
  flex-shrink: 0;
}

.hero__mobile-header .hero__brand::after {
  background-image: url("../icon/iconomovil2.png") !important;
  /* Logo Negro */
}

/* El botón de cerrar en el overlay - Mismo tamaño que el toggle normal */
.hero__mobile-close {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 84px;
  height: 44px;
  padding: 0 16px;
  background: var(--mobile-menu-pill-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  /* Igual que el toggle */
  border: none;
  color: #D2F583;
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  margin: 0;
  line-height: normal;
  text-align: center;
  text-indent: -1px;
  /* Misma corrección óptica */
}

.hero__mobile-close::after {
  content: "CERRAR";
}

/* Frame 100 - Enlaces Principales */
.hero__mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 18px 20px 0;
  gap: 14px;
}

.hero__mobile-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500 !important;
  font-size: 38px !important;
  line-height: 42px !important;
  text-align: center;
  letter-spacing: -0.02em;
  color: #1F1F1F;
  text-decoration: none;
  text-transform: none !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(24px);
  transition:
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.42s ease;
}

body.menu-open .hero__mobile-link {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open .hero__mobile-link:nth-child(1) {
  transition-delay: 0.12s;
}

body.menu-open .hero__mobile-link:nth-child(2) {
  transition-delay: 0.18s;
}

body.menu-open .hero__mobile-link:nth-child(3) {
  transition-delay: 0.24s;
}

body.menu-open .hero__mobile-link:nth-child(4) {
  transition-delay: 0.3s;
}

.hero__mobile-link:active {
  transform: scale(0.95);
}

/* Frame 51 - Footer Menú */
.hero__mobile-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  height: 88px;
  width: 100%;
}

.hero__mobile-lang-wrap {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  column-gap: 14px;
  width: min(100%, 375px);
  margin: 0 auto;
  position: relative;
  padding: 0;
}

.hero__mobile-lang-indic {
  display: none;
}

.hero__mobile-lang-item {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  line-height: 1;
  color: #1F1F1F;
  text-decoration: none;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 24px;
  transition: opacity 0.2s ease;
}

.hero__mobile-lang-item::before {
  content: "";
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background-color: #1F1F1F;
  -webkit-mask: url("../icon/image.png") no-repeat center / contain;
  mask: url("../icon/image.png") no-repeat center / contain;
  margin-right: -10px;
  opacity: 1;
  transition: width 0.28s ease, flex-basis 0.28s ease, opacity 0.2s ease;
}

.hero__mobile-lang-sep {
  width: 100%;
  height: 1px;
  background: #1F1F1F;
  opacity: 0.5;
  transition: margin 0.28s ease;
}

.hero__mobile-lang-wrap.is-en .hero__mobile-lang-sep {
  margin-right: 20px;
}

.hero__mobile-lang-item.is-inactive {
  opacity: 0.5;
  gap: 0;
}

.hero__mobile-lang-item.is-inactive::before {
  width: 0;
  flex-basis: 0;
  margin-right: 0;
  opacity: 0;
}

.hero__topbar .nav-active,
.hero__mobile-overlay .nav-active {
  text-decoration: none !important;
}

.hero__mobile-link:hover,
.hero__mobile-link:focus-visible,
.hero__mobile-link.nav-active {
  background: var(--hero-lime);
  color: #1a1a1a;
}

.hero__mobile-link span {
  transform: none !important;
}

.hero__mobile-link::before,
.hero__mobile-link::after {
  content: none !important;
}

.hero__mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.hero__mobile-contact,
.hero__mobile-lang {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: 0 0 auto;
  transition:
    transform 0.2s ease,
    background-color 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease;
}

.hero__mobile-contact {
  border: 1px solid rgba(245, 246, 239, 0.16);
  background: rgba(245, 246, 239, 0.05);
  color: #f5f6ef;
}

.hero__mobile-contact.nav-active,
.hero__mobile-lang.is-active {
  border-color: rgba(210, 245, 131, 0.34);
  background: var(--hero-lime);
  color: #1a1a1a;
}

.hero__mobile-lang {
  min-width: 64px;
  border: 1px solid rgba(245, 246, 239, 0.16);
  background: rgba(245, 246, 239, 0.05);
  color: #f5f6ef;
}

.hero__mobile-lang span {
  display: block;
  transform: none !important;
}

.hero__mobile-lang::before,
.hero__mobile-lang::after {
  content: none !important;
}

@media (max-width: 1024px) {
  :root {
    --header-height: 84px;
  }

  body.has-autohide-topbar {
    --portfolio-header-offset: var(--header-height);
  }

  .hero__topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px !important;
    min-height: 78px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: transparent;
    backdrop-filter: none;
    z-index: 180;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Modo con barra oscura sólida en zonas claras (Frame 50) */
  .hero__topbar--glass {
    background: #3f4240 !important;
    /* Más sólido, menos transparente */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 0 !important;
  }

  .hero__topbar--lime {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 0 !important;
  }

  body.menu-open .hero__topbar {
    background: transparent;
    backdrop-filter: none;
    transform: translateY(0) !important;
  }

  /* El logo se pone negro en las secciones verde lima (Conversion/Footer) sin poner la barra negra */
  .hero__topbar--lime .hero__brand::after {
    background-image: url("../icon/iconomovil2.png") !important;
  }


  .hero__menu {
    width: 100%;
    height: 100%;
    display: contents;
    /* Deja que los hijos se alineen con el flex del padre (topbar) */
  }

  .hero__nav,
  .hero__actions {
    display: none !important;
  }

  .hero__menu-spacer {
    display: none;
  }

  .hero__menu-toggle,
  .hero__mobile-overlay {
    display: block;
  }

  .hero__menu-toggle {
    /* Layout y Alineación */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    /* Dimensiones basadas en Figma */
    min-width: 84px;
    height: 44px;
    padding: 0 24px;
    margin: 0;

    /* Estilo del Contenedor */
    background: var(--mobile-menu-pill-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 100px;
    border: 1px solid var(--mobile-menu-pill-border);

    /* Tipografía corregida */
    color: var(--hero-lime);
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 14px;
    line-height: normal;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
    text-indent: -1px;
    /* Corrección óptica hacia la izquierda */

    /* Interacción */
    cursor: pointer;
    transition: opacity 0.2s ease;
  }

  .hero__menu-toggle:hover {
    opacity: 0.9;
  }

  /* Ocultar las barras del antiguo hamburger para que no se vean como puntos */
  .hero__menu-toggle-box,
  .hero__menu-toggle::after,
  .hero__mobile-close::after {
    display: none !important;
  }

  /* Ajuste para el botón MENÚ en la barra oscura */
  .hero__topbar--glass .hero__menu-toggle {
    background: var(--mobile-menu-pill-bg) !important;
    /* Un poco de contraste pero integrado */
    box-shadow: none;
    border-color: var(--mobile-menu-pill-border) !important;
    color: var(--hero-lime) !important;
    opacity: 1 !important;
  }

  .hero__brand {
    display: flex;
    justify-content: flex-start; /* Forzado a la izquierda total */
    align-items: center;
    width: 44px;
    height: 38px;
    position: relative;
    margin: 0 !important;
    transform: none;
    overflow: visible;
    flex: none;
    order: 0;
    flex-grow: 0;
    opacity: 1 !important;
  }

  .hero__brand-top {
    display: none !important;
  }

  /* Icono Blanco (iconomovil.png) para todos los estados móviles */
  .hero__brand::after {
    content: "";
    display: block;
    width: 44px;
    height: 38px;
    background: url("../icon/iconomovil.png") center center / contain no-repeat;
  }

  /* Ya no necesitamos el override de iconomovil2 */

  .footer {
    --footer-inline-pad: 24px;
    padding: 40px var(--footer-inline-pad) 18px;
    gap: 32px;
  }

  .footer__top {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px 28px;
    align-items: start;
  }

  .footer__columns {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    align-items: start;
  }

  .footer__group {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer__group--certifications {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }

  .footer__logo-link {
    margin-left: 0 !important;
    margin-top: 0 !important;
    align-self: start;
  }

  .footer__logo {
    width: 92px;
  }

  .footer__bottom {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "accessibility accessibility accessibility"
      ". copyright legal";
    gap: 20px 28px;
    align-items: start;
    padding-top: 22px;
  }

  .footer__accessibility {
    grid-area: accessibility;
    width: 100%;
  }

  .footer__copyright {
    grid-area: copyright;
  }

  .footer__legal {
    grid-area: legal;
    justify-self: end;
    justify-content: flex-end;
    padding: 0;
    gap: 10px 18px;
  }
}

@media (max-width: 768px) {
  .hero__topbar {
    padding: 14px 16px;
  }

  .hero__menu {
    grid-template-columns: 88px minmax(0, 1fr) 88px;
    gap: 10px;
  }

  .hero__menu-spacer {
    width: 44px;
    height: 44px;
  }

  .hero__menu-toggle {
    --toggle-size: 44px;
  }

  .hero__brand {
    width: 88px;
  }

  .hero__mobile-overlay {
    padding: 0;
  }

  .hero__mobile-panel {
    padding: 0;
    border-radius: 0;
  }

  .hero__mobile-header .hero__brand {
    width: 88px;
  }

  .hero__mobile-link {
    min-height: 50px;
    padding: 13px 14px;
    font-size: clamp(17px, 5vw, 22px);
    border-radius: 16px;
  }

  .hero__mobile-actions {
    gap: 10px;
  }

  .footer {
    --footer-inline-pad: 16px;
    padding: 20px var(--footer-inline-pad) 18px;
    gap: 32px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__group,
  .footer__group--certifications {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer__group--certifications .footer__stack {
    align-items: flex-start;
  }

  .footer__logo {
    width: 84px;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
    grid-template-areas:
      "accessibility"
      "legal"
      "copyright";
    gap: 16px;
  }

  .footer__accessibility {
    font-size: 10px !important;
    line-height: 1.5;
  }

  .footer__legal {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ============================================================
   RESPONSIVE FIXES — MOBILE/TABLET PORTFOLIO + FOOTER
   ============================================================ */

@media (max-width: 1024px) {

  .hero__topbar,
  .hero__topbar--autohide,
  .hero__topbar--autohide.hero__topbar--revealed {
    transition: none !important;
  }

  .portfolio {
    padding: 0;
    background: #111;
  }

  .portfolio-stack,
  .portfolio__frame {
    background: #111;
  }

  .portfolio--stacked {
    min-height: 100svh; /* Ahora ocupa toda la pantalla de verdad */
    height: 100svh;
    margin-bottom: 0;
  }

  .portfolio-stack>.portfolio--stacked:last-child {
    margin-bottom: 0;
  }

  .portfolio--open,
  .portfolio--static,
  .portfolio--stacked .portfolio__frame,
  .portfolio--open .portfolio__frame,
  .portfolio--static .portfolio__frame {
    min-height: 100svh;
    height: 100svh;
  }

  .portfolio--stacked .portfolio__frame {
    width: 100%;
    padding: 0;
    background: #111;
    color: var(--hero-white);
  }

  .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__header,
  .portfolio--stacked.portfolio--open .portfolio__header,
  .portfolio--stacked.portfolio--static .portfolio__header {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(420px, calc(100% - 40px));
    transform: translate(-50%, -50%);
    z-index: 3;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 16px;
    text-align: center;
  }

  .portfolio--stacked .portfolio__filter,
  .portfolio--stacked .portfolio__link {
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    white-space: normal;
    text-wrap: balance;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
  }

  .portfolio--stacked .portfolio__filter {
    order: 1;
  }

  .portfolio--stacked .portfolio__title {
    order: 2;
    width: 100%;
    min-height: 0;
    max-width: 320px;
  }

  .portfolio--stacked .portfolio__link {
    order: 3;
  }

  .portfolio--stacked.portfolio--open .portfolio__cta,
  .portfolio--stacked.portfolio--static .portfolio__cta {
    position: absolute;
    left: 50%;
    bottom: var(--portfolio-cta-bottom-mobile);
    top: auto;
    transform: translateX(-50%);
    z-index: 500 !important;
    color: var(--hero-white);
    border: 2px solid var(--hero-white);
    background: transparent;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .portfolio--andrew .portfolio__cta {
    bottom: var(--portfolio-cta-bottom-mobile) !important;
  }

  .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__cta {
    opacity: 0;
  }

  .portfolio--stacked .portfolio__filter,
  .portfolio--stacked .portfolio__link {
    color: #d9d9d9;
  }

  .portfolio--stacked .portfolio__title,
  .portfolio--stacked .portfolio__title-line {
    color: var(--hero-white);
  }

  .portfolio--stacked .portfolio__title-line--accent {
    color: var(--hero-lime);
  }

  .portfolio--stacked .portfolio__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: none;
    overflow: hidden;
    background: #000; /* Fondo negro puro */
    transition: opacity 0.6s ease;
    clip-path: none !important; /* Eliminamos posibles recortes */
  }

  .portfolio--stacked .portfolio__image,
  .portfolio--stacked .portfolio__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
  }

  .footer__logo-link {
    align-self: end;
  }
}

@media (max-width: 768px) {

  .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__header,
  .portfolio--stacked.portfolio--open .portfolio__header,
  .portfolio--stacked.portfolio--static .portfolio__header {
    top: 50%;
    width: min(340px, calc(100% - 32px));
    gap: 12px;
  }

  .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__cta,
  .portfolio--stacked.portfolio--open .portfolio__cta,
  .portfolio--stacked.portfolio--static .portfolio__cta {
    width: min(292px, calc(100% - 32px));
    max-width: calc(100% - 32px);
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 16px;
    align-items: end;
  }

  .footer__columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer__group,
  .footer__group--certifications {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 16px;
  }

  .footer__group--certifications {
    gap: 20px;
  }

  .footer__label {
    width: 116px;
    min-width: 116px;
    flex: 0 0 116px;
    padding: 6px 0;
  }

  .footer__stack {
    gap: 8px;
    padding-top: 2px;
  }

  .footer__group--certifications .footer__stack {
    align-items: flex-start;
    padding-top: 0;
    gap: 10px;
  }

  .footer__logo-link {
    margin-left: 8px !important;
    justify-self: end;
    align-self: end;
  }

  .footer__logo {
    width: 76px;
  }
}

@media (max-width: 540px) {

  .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__header,
  .portfolio--stacked.portfolio--open .portfolio__header,
  .portfolio--stacked.portfolio--static .portfolio__header {
    top: 50%;
    width: min(300px, calc(100% - 28px));
  }

  .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__cta,
  .portfolio--stacked.portfolio--open .portfolio__cta,
  .portfolio--stacked.portfolio--static .portfolio__cta {
    width: min(276px, calc(100% - 28px));
    max-width: calc(100% - 28px);
  }

  .footer__top {
    gap: 14px 12px;
  }

  .footer__group,
  .footer__group--certifications {
    gap: 14px;
  }

  .footer__group--certifications {
    gap: 50px;
    /*logo footer greenfilm*/
  }

  .footer__label {
    width: 102px;
    min-width: 102px;
    flex-basis: 102px;
  }

  .footer__logo {
    width: 72px;
  }

  .footer__group--certifications .footer__stack {
    gap: 8px;
  }

  .footer__logo-link {
    margin-left: 10px !important;
  }
}

/* ============================================================
   RESPONSIVE IMAGES — MOBILE/TABLET
   ============================================================ */

@media (max-width: 1024px) {
  .portfolio--stacked .portfolio__media {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    opacity: 1;
    transform: none !important;
    transition:
      opacity 0.55s ease,
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .portfolio--stacked .portfolio__image,
  .portfolio--stacked .portfolio__video,
  .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__image,
  .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__video,
  .portfolio--stacked.portfolio--open .portfolio__image,
  .portfolio--stacked.portfolio--open .portfolio__video,
  .portfolio--stacked.portfolio--static .portfolio__image,
  .portfolio--stacked.portfolio--static .portfolio__video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
  }

  .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__media,
  .portfolio--stacked.portfolio--open .portfolio__media,
  .portfolio--stacked.portfolio--static .portfolio__media {
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: none !important;
  }

  .portfolio--ucam {
    --portfolio-reveal-inset: 0%;
    --portfolio-reveal-opacity: 1;
    --portfolio-image-scale: 1;
  }

  .portfolio--ucam .portfolio__media {
    clip-path: inset(0) !important;
    opacity: 1 !important;
  }
}

@media (max-width: 540px) {
  .portfolio--stacked .portfolio__media {
    padding: 0;
  }
}

/* ============================================================
   RESPONSIVE FOOTER POLISH
   ============================================================ */

@media (max-width: 1024px) {
  .footer__top {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer__logo-link {
    order: -1;
    align-self: flex-start !important;
    justify-self: start !important;
    margin: 0 0 2px !important;
  }

  .footer__logo {
    width: 88px;
  }

  .footer__columns {
    width: 100%;
  }

  .footer__label,
  .footer__link {
    font-size: 15px;
    line-height: 20px;
  }

  .footer__bottom {
    gap: 16px;
  }

  .footer__accessibility,
  .footer__acc-link,
  .footer__legal a {
    font-size: 12px !important;
    line-height: 16px !important;
  }

  .footer__accessibility {
    width: 100%;
    gap: 8px 10px;
  }

  .footer__legal {
    gap: 10px 18px;
  }

  .footer__copyright {
    font-size: 12px;
    line-height: 16px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding-top: 28px;
  }

  .footer__columns {
    gap: 18px;
  }

  .footer__group,
  .footer__group--certifications {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 18px;
  }

  .footer__label {
    width: 132px;
    min-width: 132px;
    flex: 0 0 132px;
    padding: 6px 0;
  }

  .footer__stack {
    gap: 8px;
    padding-top: 5px;
  }

  .footer__group--certifications .footer__stack {
    padding-top: 0;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
    grid-template-areas:
      "accessibility"
      "legal"
      "copyright";
    padding-top: 22px;
  }

  .footer__legal {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
  }

  .footer__accessibility,
  html.acc-largetext .footer__accessibility {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0 0 !important;
    column-gap: 0 !important;
    row-gap: 6px !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  .footer__accessibility::before,
  html.acc-largetext .footer__accessibility::before {
    content: "";
    order: 2;
    flex: 0 0 100%;
    height: 0;
  }

  .footer__accessibility .footer__acc-link,
  html.acc-largetext .footer__accessibility .footer__acc-link {
    flex: 0 0 auto;
    min-height: 0 !important;
    height: auto !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    line-height: 16px !important;
  }

  .footer__accessibility #acc-grayscale,
  .footer__accessibility #acc-largetext,
  .footer__accessibility #acc-highcontrast {
    order: 1;
  }

  .footer__accessibility #acc-grayscale::after,
  .footer__accessibility #acc-largetext::after {
    content: "|";
    display: inline-block;
    margin-left: 3px;
    margin-right: 4px;
    font-size: 11px;
    line-height: 16px;
  }

  .footer__accessibility #acc-reset {
    order: 3;
    flex: 0 0 auto;
    width: 14px !important;
    height: 14px !important;
    margin-top: 0;
    align-self: flex-start;
  }

  .footer__copyright {
    justify-self: center;
  }
}

@media (max-width: 420px) {
  .footer__label {
    width: 126px;
    min-width: 126px;
    flex-basis: 126px;
  }
}

@media (max-width: 380px) {

  .footer__accessibility .footer__acc-link,
  html.acc-largetext .footer__accessibility .footer__acc-link {
    font-size: 10px !important;
  }

  .footer__accessibility #acc-grayscale::after,
  .footer__accessibility #acc-largetext::after {
    margin-left: 2px;
    margin-right: 3px;
    font-size: 10px;
  }
}

/* ============================================================
   RESPONSIVE INTRO + CONVERSION COPY
   ============================================================ */
@media (max-width: 1024px) {
  .page-index .hero__eyebrow {
    width: min(420px, 78vw);
    min-height: auto;
    font-size: clamp(22px, 3.2vw, 34px);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 700;
  }

  .intro {
    min-height: 100svh !important;
    min-height: 100dvh !important;
    height: auto !important;
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .page-index .intro__title-group--desktop {
    display: none;
  }

  .page-index .intro__title-group--mobile {
    display: block;
  }

  .page-index .intro__title {
    max-width: min(760px, 92vw);
    margin-inline: auto;
    font-size: clamp(34px, 5.5vw, 50px);
    line-height: 1.12;
    letter-spacing: 0;
  }
}

@media (max-width: 768px) {
  .page-index .hero__eyebrow {
    width: min(390px, 88vw);
    font-size: clamp(22px, 5.4vw, 30px);
    line-height: 1.09;
  }

  .page-index .intro__title {
    max-width: min(560px, 92vw);
    font-size: clamp(30px, 6.2vw, 38px);
    line-height: 1.14;
  }
}

@media (max-width: 540px) {
  .page-index .hero__eyebrow {
    width: min(360px, 88vw);
    font-size: clamp(21px, 6vw, 26px);
    line-height: 1.1;
  }

  .intro {
    min-height: 100svh !important;
    min-height: 100dvh !important;
    padding: 80px var(--hero-side-pad) !important;
    background: #f5f6ef !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .intro__container {
    width: 100% !important;
    max-width: 800px !important;
    /* Un poco más de aire */
    margin: 0 auto !important;
  }

  .page-index .intro__content {
    width: min(760px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .intro__brand {
    width: 42px;
    /* Más pequeño, tipo sello */
    margin-bottom: 8px;
    opacity: 0.6;
  }

  .intro__title {
    font-size: clamp(22px, 6.8vw, 32px) !important;
    line-height: 1.05 !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    max-width: none !important;
    margin: 0 auto !important;
    text-wrap: balance;
    text-align: center;
  }

  .intro__text {
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: #1a1a1a !important;
    max-width: min(420px, 95%) !important;
    margin: 0 auto !important;
    opacity: 1 !important;
    text-align: center;
  }

  .intro__cta {
    margin-top: 12px;
    min-width: 200px;
    height: 52px;
    border: 1px solid #1a1a1a;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    padding: 0 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .intro__cta:hover {
    background: #1a1a1a;
    color: #f5f6ef;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }

  .page-index .intro__title {
    max-width: min(352px, 100%);
    font-size: clamp(25px, 7.4vw, 31px);
    line-height: 1.18;
  }
}

@media (max-width: 420px) {
  .intro__text {
    width: min(420px, 100%) !important;
  }
}

/* ============================================================
   MOBILE/TABLET FINAL ALIGNMENT POLISH
   ============================================================ */
@media (max-width: 1024px) {

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .portfolio--stacked .portfolio__cta,
  .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__cta,
  .portfolio--stacked.portfolio--open .portfolio__cta,
  .portfolio--stacked.portfolio--static .portfolio__cta {
    position: absolute !important;
    left: 50% !important;
    top: auto !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 72px) !important;
    transform: translate3d(-50%, 0, 0) !important;
    transition:
      opacity 0.2s ease,
      background-color 0.3s ease,
      border-color 0.3s ease,
      color 0.3s ease !important;
    will-change: auto !important;
  }

  .portfolio--stacked:not(.portfolio--open) .portfolio__cta {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .portfolio--stacked.portfolio--open .portfolio__cta {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .page-index .portfolio--stacked .portfolio__header {
    width: min(520px, calc(100% - 32px)) !important;
    gap: 14px;
  }

  .page-index .portfolio--stacked .portfolio__title {
    width: 100% !important;
    max-width: 520px !important;
    font-size: clamp(32px, 5.4vw, 46px) !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
  }

  .page-index .portfolio--stacked .portfolio__title-line {
    line-height: inherit !important;
    white-space: nowrap;
  }

  .conversion {
    padding-left: clamp(10px, 3vw, 28px);
    padding-right: clamp(10px, 3vw, 28px);
  }

  .conversion__container {
    padding-left: 0;
    padding-right: 0;
  }

  .conversion__content {
    width: min(760px, 100%);
  }

  .conversion__title,
  .conversion__title--brand {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 12px !important;
    margin-inline: auto;
    font-size: clamp(22px, 6.8vw, 32px) !important;
    line-height: 1.05;
    text-wrap: balance !important;
    overflow: visible !important;
  }


  .footer__group,
  .footer__group--certifications {
    width: 100%;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 0;
    align-items: start;
  }

  .footer__label {
    width: auto !important;
    min-width: 0 !important;
    flex: none !important;
    padding: 6px 0;
  }

  .footer__stack,
  .footer__group--certifications .footer__stack {
    padding-top: 5px;
    align-items: flex-start;
  }

  .footer__certification-link {
    padding: 6px;
  }

  .footer__certification-logo,
  .footer__group img[alt="Green Film"] {
    height: 24px !important;
    transform: none !important;
  }

  .footer__group--certifications {
    align-items: end !important;
  }

  .footer__group--certifications .footer__label {
    transform: translateY(7px);
  }

  .footer__group--certifications .footer__stack {
    align-self: end;
    padding-top: 0;
    padding-bottom: 0;
  }

  .footer__group--certifications .footer__stack {
    align-items: flex-end;
  }

  .footer__group--certifications .footer__certification-link {
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .page-index .portfolio--stacked .portfolio__header {
    width: min(430px, calc(100% - 28px)) !important;
  }

  .page-index .portfolio--stacked .portfolio__title {
    max-width: 430px !important;
    font-size: clamp(28px, 7.4vw, 38px) !important;
    line-height: 1.02 !important;
  }

  .page-index .portfolio--torre .portfolio__title {
    font-size: clamp(28px, 7.4vw, 38px) !important;
  }

  .page-index .hero__eyebrow {
    width: min(320px, calc(100% - 108px));
    font-size: clamp(19px, 4.8vw, 26px);
  }

  .conversion {
    padding-left: 8px;
    padding-right: 8px;
  }

  .conversion__title,
  .conversion__title--brand {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 8px !important;
    font-size: clamp(22px, 6.8vw, 32px) !important;
    line-height: 1.05 !important;
    text-wrap: balance !important;
    overflow: visible !important;
  }
}

@media (max-width: 540px) {
  .page-index .portfolio--stacked .portfolio__header {
    width: min(390px, calc(100% - 24px)) !important;
  }

  .page-index .portfolio--stacked .portfolio__title {
    max-width: 390px !important;
    font-size: clamp(24px, 7vw, 31px) !important;
    line-height: 1.02 !important;
  }

  .page-index .portfolio--torre .portfolio__title {
    font-size: clamp(24px, 7vw, 31px) !important;
  }

  .portfolio--stacked .portfolio__cta,
  .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__cta,
  .portfolio--stacked.portfolio--open .portfolio__cta,
  .portfolio--stacked.portfolio--static .portfolio__cta {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 56px) !important;
  }



  .page-index .hero__eyebrow {
    width: min(278px, calc(100% - 96px));
    font-size: clamp(17px, 5vw, 22px);
  }

  .conversion__title,
  .conversion__title--brand {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 4px !important;
    font-size: clamp(22px, 6.8vw, 32px) !important;
    overflow: visible !important;
  }



  .footer__group,
  .footer__group--certifications {
    grid-template-columns: 126px minmax(0, 1fr);
    column-gap: 18px;
  }
}

@media (max-width: 380px) {}

@media (max-width: 1024px) {
  .page-index .portfolio-stack {
    --portfolio-mobile-count: 4;
    position: relative;
    height: calc(var(--portfolio-mobile-count) * 100svh);
    min-height: calc(var(--portfolio-mobile-count) * 100svh);
    overflow: visible;
  }

  .page-index .portfolio--stacked,
  .page-index .portfolio--open,
  .page-index .portfolio--static,
  .page-index .portfolio--stacked .portfolio__frame,
  .page-index .portfolio--open .portfolio__frame,
  .page-index .portfolio--static .portfolio__frame {
    min-height: 100svh !important;
    height: 100svh !important;
  }

  .page-index .portfolio--stacked {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    z-index: 1 !important;
    will-change: transform;
  }

  .page-index .portfolio-stack--mobile-active .portfolio--stacked {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
  }

  .page-index .portfolio-stack>.portfolio--stacked:nth-child(1) {
    z-index: 1 !important;
  }

  .page-index .portfolio-stack>.portfolio--stacked:nth-child(2) {
    z-index: 2 !important;
  }

  .page-index .portfolio-stack>.portfolio--stacked:nth-child(3) {
    z-index: 3 !important;
  }

  .page-index .portfolio-stack>.portfolio--stacked:nth-child(4) {
    z-index: 4 !important;
  }

  .page-index .portfolio--FP_San_Antonio .portfolio__header {
    width: min(420px, calc(100% - 36px)) !important;
    gap: 13px !important;
  }

  .page-index .portfolio--stacked .portfolio__media {
    top: -34% !important;
    right: 0 !important;
    bottom: -34% !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 168% !important;
    background: transparent !important;
    opacity: 1 !important;
    clip-path: none !important;
    transition: none !important;
  }

  .page-index .portfolio--stacked .portfolio__video {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important; /* Volvemos a cubrir toda la pantalla */
    object-position: center center !important;
    transform: none !important;
    transform-origin: center center;
  }

  .page-index .portfolio--stacked .portfolio__cta,
  .page-index .portfolio--stacked:not(.portfolio--static):not(.portfolio--open) .portfolio__cta,
  .page-index .portfolio--stacked.portfolio--open .portfolio__cta,
  .page-index .portfolio--stacked.portfolio--static .portfolio__cta,
  .page-index .portfolio--stacked:not(.portfolio--open) .portfolio__cta {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 540px) {
  .page-index .portfolio--stacked .portfolio__media {
    top: -42% !important;
    bottom: -42% !important;
    min-height: 184% !important;
  }

  .page-index .portfolio--stacked .portfolio__video {
    transform: none !important; /* Eliminamos el escalado en móvil pequeño */
  }
}

/* ============================================================
   MOBILE/TABLET FOOTER STACK
   ============================================================ */
@media (max-width: 1024px) {
  .footer {
    --footer-inline-pad: clamp(24px, 8vw, 56px);
    align-items: center;
    padding: 48px var(--footer-inline-pad) 24px;
    gap: 34px;
  }

  .footer__top,
  .footer__bottom {
    width: min(420px, 100%);
    max-width: 420px;
  }

  .footer__top {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 34px;
  }

  .footer__logo-link {
    order: -1;
    align-self: flex-start !important;
    justify-self: start !important;
    margin: 0 0 4px !important;
  }

  .footer__logo {
    width: clamp(108px, 16vw, 128px);
  }

  .footer__columns {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .footer__group,
  .footer__group--certifications {
    width: 100%;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 8px;
    align-items: start !important;
  }

  .footer__group--certifications {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .footer__label {
    width: auto !important;
    min-width: 0 !important;
    flex: none !important;
    padding: 0 !important;
    font-size: 14px;
    line-height: 18px;
  }

  .footer__stack,
  .footer__group--certifications .footer__stack {
    padding: 0 !important;
    gap: 12px;
    align-items: flex-start !important;
  }

  .footer__link,
  .footer__link:visited {
    padding: 0 !important;
    font-size: 14px;
    line-height: 18px;
  }

  .footer__certification-link {
    padding: 0 !important;
  }

  .footer__certification-logo,
  .footer__group img[alt="Green Film"] {
    height: 26px !important;
    transform: none !important;
  }

  .footer__bottom {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0;
  }

  .footer__bottom::before {
    content: none !important;
  }

  .footer__accessibility,
  html.acc-largetext .footer__accessibility {
    order: 1;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.55);
    padding: 18px 0;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 8px !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  .footer__accessibility::before,
  html.acc-largetext .footer__accessibility::before,
  .footer__accessibility #acc-grayscale::after,
  .footer__accessibility #acc-largetext::after {
    content: none !important;
  }

  .footer__accessibility .footer__acc-link,
  html.acc-largetext .footer__accessibility .footer__acc-link {
    display: inline-flex;
    width: max-content;
    min-height: 0 !important;
    height: auto !important;
    margin-left: 0 !important;
    align-self: flex-start !important;
    text-align: left !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    line-height: 14px !important;
  }

  .footer__accessibility #acc-reset {
    width: 14px !important;
    height: 14px !important;
    margin-top: 2px;
    align-self: flex-start;
  }

  .footer__legal {
    order: 2;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.55);
    padding: 18px 0;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 9px;
  }

  .footer__legal a {
    font-size: 11px;
    line-height: 14px;
  }

  .footer__copyright {
    order: 3;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.55);
    padding-top: 16px;
    justify-self: start;
    text-align: left;
    font-size: 11px;
    line-height: 14px;
  }
}

@media (max-width: 540px) {
  .footer {
    --footer-inline-pad: clamp(24px, 11vw, 48px);
    padding-top: 40px;
  }

  .footer__top,
  .footer__bottom {
    width: min(304px, 100%);
    max-width: 304px;
  }

  .footer__logo {
    width: 108px;
  }
}

@media (max-width: 1024px) {
  .page-index .hero__meta {
    top: 62% !important; /* Bajado un poco más */
  }
}

@media (max-width: 540px) {
  .page-index .hero__meta {
    top: 64% !important; /* Bajado un poco más para móvil pequeño */
  }
}

@media (max-width: 1024px) {

  :root {
    --hero-side-pad: 24px !important; /* Definimos el margen estándar para móvil */
  }

  body.page-index,
  body.page-nosotros {
    width: 100%;
    min-width: 0;
    background: #000 !important; /* Forzamos fondo negro total */
  }

  .page-index .hero__topbar,
  .page-index .hero,
  .page-index .intro,
  .page-index .portfolio-stack,
  .page-index .conversion,
  .page-index .footer,
  .page-nosotros .hero__topbar,
  .page-nosotros .hero,
  .page-nosotros .intro,
  .page-nosotros .portfolio-stack,
  .page-nosotros .conversion,
  .page-nosotros .footer {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  .page-index .hero__topbar,
  .page-nosotros .hero__topbar {
    left: 0 !important;
    right: auto !important;
    padding: 0 12px !important; /* El punto justo de separación */
  }
}

/* ============================================================
   MOBILE CONTACT-ALIGNED MARGINS
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --hero-side-pad: clamp(16px, 8.3vw, 160px) !important;
    --mobile-shell-pad: var(--hero-side-pad);
  }

  .hero__topbar,
  .hero__mobile-header,
  .page-index .hero__topbar,
  .page-nosotros .hero__topbar,
  .page-producciones-overview .hero__topbar {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: var(--mobile-shell-pad) !important;
    padding-right: var(--mobile-shell-pad) !important;
  }

  .hero__brand {
    width: 44px !important;
    height: 38px !important;
  }

  .hero__brand::after {
    background-position: -7px center !important;
    background-repeat: no-repeat !important;
    background-size: 44px 38px !important;
  }

  .page-index .hero__content {
    padding-left: var(--mobile-shell-pad) !important;
    padding-right: var(--mobile-shell-pad) !important;
  }

  .page-index .hero__meta {
    top: 59% !important;
  }

  .hero__mobile-close {
    min-width: 84px !important;
    height: 44px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .footer {
    --footer-inline-pad: var(--mobile-shell-pad) !important;
    padding-left: var(--mobile-shell-pad) !important;
    padding-right: var(--mobile-shell-pad) !important;
  }

  .footer__top,
  .footer__bottom {
    width: 100% !important;
    max-width: none !important;
  }

  .footer__accessibility,
  html.acc-largetext .footer__accessibility {
    font-size: 0 !important;
    line-height: 0 !important;
  }

  .footer__accessibility .footer__acc-link,
  html.acc-largetext .footer__accessibility .footer__acc-link {
    font-size: 11px !important;
    line-height: 14px !important;
  }

  .producciones-overview__hero,
  .producciones-overview__grid-inner,
  .production-gallery,
  .production-next,
  .production-media,
  .servicios-hero,
  .servicios-lista,
  .nos-intro,
  .nos-logos,
  .nos-datos,
  .nos-caps,
  .legal-hero,
  .legal-content {
    padding-left: var(--mobile-shell-pad) !important;
    padding-right: var(--mobile-shell-pad) !important;
  }

  .production-hero__inner {
    padding-left: var(--mobile-shell-pad) !important;
    padding-right: var(--mobile-shell-pad) !important;
  }

  .page-index .hero,
  .page-index .intro,
  .page-index .portfolio-stack,
  .page-index .conversion,
  .page-index .footer,
  .page-nosotros .hero,
  .page-nosotros .intro,
  .page-nosotros .portfolio-stack,
  .page-nosotros .conversion,
  .page-nosotros .footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ============================================================
   INDEX HERO MOBILE STRUCTURE
   ============================================================ */
@media (max-width: 768px) {
  .page-index .hero__content {
    inset: var(--header-height) 0 0 0 !important;
    align-items: stretch !important;
  }

  .page-index .hero__frame {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto;
    row-gap: clamp(24px, 6vh, 52px);
    align-content: end;
    padding-top: clamp(18px, 4vh, 34px);
  }

  .page-index .hero__meta {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 14px;
    align-self: end !important;
    margin: 0 0 clamp(24px, 7vh, 54px) !important;
    padding: 0 !important;
  }

  .page-index .hero__eyebrow {
    width: min(320px, calc(100% - 100px)) !important;
    max-width: 100%;
  }

  .page-index .hero__arrow {
    position: static !important;
    inset: auto !important;
    justify-self: end;
    align-self: center;
    flex: none;
  }

  .page-index .hero__wordmark {
    width: 100% !important;
    max-width: none !important;
    max-height: clamp(104px, 24vw, 170px) !important;
    object-position: left bottom !important;
    align-self: end !important;
    justify-self: start !important;
    margin: 0 !important;
  }
}

@media (max-width: 540px) {
  .page-index .hero__frame {
    row-gap: clamp(18px, 5vh, 34px);
    padding-top: clamp(12px, 3vh, 24px);
  }

  .page-index .hero__meta {
    margin-bottom: clamp(22px, 6.5vh, 42px) !important;
  }

  .page-index .hero__eyebrow {
    width: min(280px, calc(100% - 94px)) !important;
    font-size: clamp(17px, 5vw, 23px) !important;
    line-height: 1.12 !important;
  }

  .page-index .hero__wordmark {
    max-height: clamp(108px, 30vw, 142px) !important;
  }
}

@media (max-width: 360px) {
  .page-index .hero__eyebrow {
    width: min(240px, calc(100% - 86px)) !important;
    font-size: clamp(16px, 5vw, 19px) !important;
  }

  .page-index .hero__arrow {
    width: 56px;
    height: 40px;
    padding-left: 18px;
    padding-right: 18px;
  }
}
