.nav {
  background-color: #0000;
  padding-bottom: 3.5rem;
  position: absolute;
  inset: 0% 0% auto;
  border-bottom: 1px solid #ffffff33;
}

.main-wrapper.home {
  background-color: #ffffff;
}

.header-component-grid {
  padding-top: 10%;
}

.section-home-intro {
  padding-bottom: 1.5rem !important;
}

.heading-style-h3 {
  font-size: 3.3rem;
  font-family: Prompt-ExtraBold;
}

.heading-style-h1 {
  font-size: 7rem !important;
}

p {
  font-family: Prompt-regular;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: Prompt-ExtraBold;
}

.service-heading {
  font-family: Prompt-Black;
}

/** CURSOR PERSONALIZADO */
.custom-cursor-section {
  cursor: none;
  /* Oculta el cursor normal en esta sección */
  position: relative;
  padding: 20px;
  background-color: #f5f5f5;
}

/* Estilo del cursor personalizado */
#cursor-personalizado {
  position: fixed;
  width: 60px;
  height: 65px;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.2s ease;
  opacity: 0;
  transform-origin: center center;
  display: none;
}

/* Efecto de zoom out al pasar por texto */
#cursor-personalizado.invertido {
  mix-blend-mode: luminosity !important;
  transform: scale(1.6);
}

section:not(.custom-cursor-section) {
  cursor: default;
}

.texto-efecto {
  padding: 5px;
  transition: background-color 0.2s ease;
}

.texto-efecto:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#youtube-iframe {
  position: relative;
  z-index: 10;
  /* Asegúrate que está por encima de otros elementos */
  width: 100%;
  aspect-ratio: 16/9;
  /* Mantiene proporción del video */
  transform-origin: center center;
  will-change: transform;
  /* Optimiza rendimiento de animaciones */
}

.section-hello {
  z-index: 10;
  background-color: #fff;
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
  padding-top: 100px;
  align-content: center;
}

.scrolling-text-wrapper {
  justify-content: space-around;
  align-items: center;
  display: flex;
}

.titfijohello {
  width: 100%;
  text-align: center;
  padding-top: 250px;
  padding-bottom: 200px;
}

.fixvideohello {
  justify-self: center;
  width: 100%;
  padding-top: 80px;
  position: relative;
}

.marquee-container {
  width: 100%;
  padding: 10px 0;
}

.marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee span {
  font-size: 12rem;
  margin-right: 50px;
  margin-left: 50px;
  font-weight: 100;
}

.horizontal-line-ng {
  display: inline-block;
  vertical-align: top;
  width: 260px;
  height: 5px;
  margin-left: 10px;
  margin-right: 10px;
  background-color: rgb(0, 0, 0);
}

.horizontal-line-bl {
  display: inline-block;
  vertical-align: top;
  width: 260px;
  height: 5px;
  margin-left: 10px;
  margin-right: 10px;
  background-color: rgb(255, 255, 255);
}

.clbl {
  color: #ffffff;
}

.video-container {
  width: 100%;
  height: 56.25vw;
  max-height: 720px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 34vh;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.about-image-agency {
  width: 45rem;
  height: 25rem;
  position: relative;
  overflow: hidden;
}

.fiximgtxagency {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  margin-top: 50px;
}

.reveal-overlay {
  background-color: #ffffff;
}

.section-works {
  z-index: 10;
  background-color: #fff;
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
  padding-top: 100px;
  align-content: center;
  min-height: 35vh;
}

.container-works {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-top: -140px;
  min-height: 100vh;
}

.card-work {
  flex: 1 1 calc(25% - 2rem);
  min-width: 250px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-work:nth-child(1) {
  animation-delay: 0.2s;
}

.card-work:nth-child(2) {
  animation-delay: 0.4s;
}

.card-work:nth-child(3) {
  animation-delay: 0.6s;
}

.card-work:nth-child(4) {
  animation-delay: 0.8s;
}

.card-work .black-line {
  width: 100%;
  height: 2px;
  background-color: #000;
  margin-bottom: 5px;
}

.card-work .title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
}

.card-work img {
  height: 400px;
  display: block;
  margin-bottom: 0.8rem;
  border: 1px solid #ddd;
  object-fit: cover;
}

.card-work .subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.8rem;
}

.card-work .description {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.card-work .date {
  font-size: 0.85rem;
  font-style: italic;
  color: #999;
}

.rotated-text {
  position: absolute;
  bottom: 1rem;
  left: 100px;
  transform: rotate(-90deg);
  transform-origin: left bottom;
  /* punto de rotación en la esquina inferior izquierda */
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  padding: 0.5rem;
}

.imgwork-dos-mt {
  margin-top: 10%;
}

.imgwork-tres-mt {
  margin-top: -55px;
}

.imgwork-cuatro-mt {
  margin-top: 85px;
}

.section-clients {
  z-index: 10;
  background-color: #fff;
  position: relative;
  overflow: hidden;
  padding-bottom: 140px;
  padding-top: 140px;
  align-content: center;
}

/* ====== Estilos nuevos para la sección de logos ====== */
.logos-section-cp {
      margin-top: 5rem;
    margin-bottom: 4rem;
}

.logos-container-cp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

.logos-container-cp img {
  width: 100px;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
}

.titlfixbrans {
  width: 100%;
  text-align: center;
  padding-top: 50px;
}

.videos-container-brans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: end;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
  justify-content: space-around;
}

.max-wd120 {
  max-width: 120%;
  filter: grayscale(1);
}

.boton-ver-equipo {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid #ffffff2e;
  color: #000000;
  text-decoration: none;
  font-size: 22px;
  letter-spacing: 0.5px;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  align-self: flex-end;
  background-color: #fdd428;
}

.boton-ver-equipo .texto-boton {
  display: inline-block;
  transition: transform 0.9s ease;
  position: relative;
}

.flex-center {
  font-family: Prompt-Regular !important;
}

.boton-ver-equipo:hover .texto-boton {
  transform: translateX(105%);
  opacity: 0;
}

.boton-ver-equipo .texto-boton-alternativo {
  position: absolute;
  left: 1.5rem;
  transform: translateX(-105%);
  opacity: 0;
  transition: transform 0.9s ease, opacity 0.3s ease;
}

.boton-ver-equipo:hover .texto-boton-alternativo {
  transform: translateX(0);
  opacity: 1;
}

.boton-ver-equipo .flecha {
  margin-left: 0.5rem;
  transition: transform 0.5s ease;
}

.boton-ver-equipo:hover {
  background-color: rgba(38, 38, 38, 30%);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  color: rgb(255, 230, 0)
}

.boton-ver-equipo:hover .flecha {
  transform: translateX(5px);
  color: rgb(255, 230, 0)
}

.boton-ver-equipo::before {
  content: '';
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(252, 216, 13, 0.2), transparent);
  transition: left .8s ease;
}

.boton-ver-equipo:hover::before {
  left: 100%;
}

.textoyboton {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/** INICIO BRANDS */
.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.video-card {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  /* animación de entrada */
  opacity: 0;
}


@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  background: #fdd428;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform .2s;
}

.play-btn:hover {
  transform: scale(1.1);
}

.play-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 20px solid #fff;
}

.video-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #101010;
  padding: 10px;
}

.video-footer button {
  background: #222;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.video-footer img {
  max-height: 90px;
  width: auto;
}

.btn-brands {
  border: 0px !important;
  margin-top: auto !important;
}

/** LASTWORK BARAJA */
.scroll-text-item {
  z-index: 99;
}

.work-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.work-header {
  position: sticky;
  top: 50px;
  width: 100%;
  text-align: center;
  z-index: 100;
  transition: opacity 0.5s ease;
  padding: 2rem 0;
}

.work-header h1 {
  font-size: 4rem;
  font-weight: bold;
  letter-spacing: 5px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.cards-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
}

/* Estilos para las tarjetas individuales */
.card-work {
  position: absolute;
  opacity: 0;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.card-work.initial-state {
  top: -18%;
  left: 50%;
  transform: translate(-50%, 0) scale(0.5) !important;
  opacity: 0.7 !important;
  z-index: 90;
  width: 10%;
}

/* Posiciones finales ajustadas según la imagen de referencia */
/* EVENT MARKETING - izquierda */
.card-work.final-state-1 {
  width: 22%;
  top: 280px;
  left: 15%;
  transform: translate(0, 0) scale(1);
  opacity: 1;
  z-index: 5;
}

/* BRANDING - centro-izquierda */
.card-work.final-state-2 {
  width: 22%;
  top: 200px;
  left: 40%;
  transform: translate(0, 0) scale(1);
  opacity: 1;
  z-index: 5;
}

/* VIDEO PRODUCTION - centro-derecha */
.card-work.final-state-3 {
  width: 22%;
  top: 300px;
  left: 65%;
  transform: translate(0, 0) scale(1);
  opacity: 1;
  z-index: 5;
}

/* DIGITAL MARKETING - derecha */
.card-work.final-state-4 {
  width: 22%;
  top: 198px;
  left: 90%;
  transform: translate(0, 0) scale(1);
  opacity: 1;
  z-index: 5;
}

/* Línea negra que se anima de izquierda a derecha */
.black-line {
  height: 2px;
  background-color: black;
  width: 0;
  margin-bottom: 10px;
  transition: width 0.8s ease-out 0.2s;
}

.final-state-1 .black-line,
.final-state-2 .black-line,
.final-state-3 .black-line,
.final-state-4 .black-line {
  width: 100%;
}

/* Animación del título */
.title {
  font-weight: bold;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease 0.6s;
  text-transform: uppercase;
  padding: 5px 0;
}

.final-state-1 .title,
.final-state-2 .title,
.final-state-3 .title,
.final-state-4 .title {
  opacity: 1;
  transform: translateY(0);
}

/* Elementos de texto del contenido */
.subtitle {
  font-weight: bold;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease 0.8s;
}

.description {
  font-size: 0.85rem;
  margin-top: 5px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease 0.9s;
}

.date {
  font-size: 0.75rem;
  margin-top: 10px;
  color: #666;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease 1s;
}

.final-state-1 .subtitle,
.final-state-2 .subtitle,
.final-state-3 .subtitle,
.final-state-4 .subtitle,
.final-state-1 .description,
.final-state-2 .description,
.final-state-3 .description,
.final-state-4 .description,
.final-state-1 .date,
.final-state-2 .date,
.final-state-3 .date,
.final-state-4 .date {
  opacity: 1;
  transform: translateY(0);
}

/* Línea inferior que se anima de derecha a izquierda */
.bottom-line {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 2px;
  background-color: black;
  width: 0;
  transition: width 2s ease-out;
}

.bottom-line.active {
  width: 100%;
}

/* Líneas al lado del texto "LATEST WORK" */
.line-separator {
  display: inline-block;
  width: 80px;
  height: 2px;
  background-color: #000;
  vertical-align: middle;
}

.card-work.final-state-1 {
  left: 0%;
}

.card-work.final-state-2 {
  left: 26%;
}

.card-work.final-state-3 {
  left: 52%;
}

.card-work.final-state-4 {
  left: 78%;
}

/* Estilos específicos para la sección moreProyects, con namespacing para evitar conflictos */
.mp-section-container {
    position: relative;
    height: auto;
}

.section-mp {
    z-index: 10;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
    padding-top: 100px;
    align-content: center;
    min-height: 100vh;
}

.mp-section-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mp-hg {
    min-height: 100vh;
    /* Cambio: min-height en lugar de height fija */
    width: 100%;
    position: relative;
}

.mp-images-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.mp-service-item {
    position: absolute;
    transition: all 1s cubic-bezier(0.57, -0.12, 0.96, 1.13);
    transform-origin: center;
    opacity: 0.9;
    width: 290px;
    max-width: 35vw;
    will-change: transform, opacity, top, left, right, bottom;
}

.mp-service-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.mp-service-label {
    font-size: 20px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap;
    position: absolute;
    display: inline;
    color: #333;
    font-weight: bold;
    z-index: 10;
}

/* Estados iniciales - Desktop */
.mp-service-item:nth-child(1) {
    top: 14%;
    left: 34%;
    transform: scale(0.65) rotate(319deg) scale(1.4);
    z-index: 1;
}

.mp-service-item:nth-child(2) {
    top: 30%;
    right: 35%;
    transform: scale(0.65) rotate(5deg) scale(.6);
    z-index: 3;
}

.mp-service-item:nth-child(3) {
    bottom: 30%;
    left: 35%;
    transform: scale(0.65) rotate(13deg) scale(.58);
    z-index: 2;
}

.mp-service-item:nth-child(4) {
    bottom: 40%;
    right: 25%;
    transform: scale(0.65) rotate(12deg) scale(1.22);
    z-index: 4;
}

/* Estados activos */
.mp-service-item.mp-active {
    opacity: 1;
}

/* Estados de transición - Desktop */
.mp-service-item:nth-child(1) {
    top: 14%;
    left: 34%;
    transform: scale(0.65) rotate(104deg) scale(1.4);
    z-index: 1;
}

.mp-service-item:nth-child(2) {
    top: 30%;
    right: 35%;
    transform: scale(0.65) rotate(340deg) scale(.6);
    z-index: 3;
}

.mp-service-item:nth-child(3) {
    bottom: 30%;
    left: 35%;
    transform: scale(0.65) rotate(13deg) scale(.58);
    z-index: 2;
}

.mp-service-item:nth-child(4) {
    bottom: 40%;
    right: 25%;
    transform: scale(0.65) rotate(12deg) scale(1.22);
    z-index: 4;
}

.mp-service-item.mp-transition-state:nth-child(1) {
    top: 35%;
    left: 32%;
    transform: scale(0.75) rotate(47deg);
}

.mp-service-item.mp-transition-state:nth-child(2) {
    top: 30%;
    right: 32%;
    transform: scale(0.75) rotate(345deg);
}

.mp-service-item.mp-transition-state:nth-child(3) {
    bottom: 35%;
    left: 32%;
    transform: scale(0.75) rotate(37deg);
}

.mp-service-item.mp-transition-state:nth-child(4) {
    bottom: 35%;
    right: 32%;
    transform: scale(0.75) rotate(1deg);
}

/* Estados finales - Desktop */
.mp-service-item.mp-final-state:nth-child(1) {
    top: 45%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-150%, -50%) scale(0.9) rotate(0);
    z-index: 5;
}

.mp-service-item.mp-final-state:nth-child(2) {
    top: 34%;
    right: auto;
    bottom: auto;
    left: 35%;
    transform: translate(50%, -50%) scale(0.9) rotate(0);
    z-index: 7;
}

.mp-service-item.mp-final-state:nth-child(3) {
    top: auto;
    bottom: 32%;
    left: 72%;
    right: auto;
    transform: translate(-180%, 50%) scale(0.9) rotate(0);
    z-index: 6;
}

.mp-service-item.mp-final-state:nth-child(4) {
    top: auto;
    bottom: 40%;
    right: auto;
    left: 52%;
    transform: translate(45%, 50%) scale(0.9) rotate(0);
    z-index: 8;
}

.mp-service-item.mp-final-state .mp-service-label {
    opacity: 1;
}

/* Posicionamiento de labels - Desktop */
.mp-service-item:nth-child(1) .mp-service-label {
    right: auto;
    top: -6%;
    left: -28%;
    transform: translateY(-50%);
}

.mp-service-item:nth-child(2) .mp-service-label {
    top: 30%;
    right: auto;
    bottom: auto;
    left: 110%;
    transform: translateY(-50%);
}

.mp-service-item:nth-child(3) .mp-service-label {
    bottom: 10%;
    right: auto;
    left: -210px;
    transform: translateY(-50%);
}

.mp-service-item:nth-child(4) .mp-service-label {
    top: 106%;
    left: auto;
    right: -44%;
    transform: translateY(-50%);
}
/* FIN Estilos MOREPROJECTS */
.project-container {
  height: 560vh;
}

/* Estilos para formulario */
.cto-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.cto-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cto-visible {
  opacity: 1;
  transform: translateY(0);
}

.cto-hidden {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Columna de imagen */
.cto-image-column {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cto-image {
  max-width: 160%;
  height: auto;
  transition: transform 0.5s ease;
}

.cto-image:hover {
  transform: scale(1.03);
}

.cto-image-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.cto-image-text svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Columna de formulario */
.cto-form-column {
  flex: 1;
  min-width: 300px;
  padding: 40px;
  z-index: 99;
}

.cto-form-title {
  font-size: 22px;
  margin-bottom: 30px;
  color: #333;
  font-weight: 600;
}

.cto-form-group {
  margin-bottom: 20px;
}

.cto-form-label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
  font-weight: 600;
}

.cto-form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.cto-form-input:focus {
  border-color: #ffcc00;
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.2);
  outline: none;
}

.cto-form-row {
  display: flex;
  gap: 15px;
}

.cto-form-row .cto-form-group {
  flex: 1;
}

.cto-submit-btn {
  background-color: #ffcc00;
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.cto-submit-btn:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Pie de página y redes sociales */
.cto-footer {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  gap: 15px;
}

.cto-social-btn {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cto-social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.cto-social-btn.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.cto-social-btn.linkedin:hover {
  background-color: #0077B5;
}

.cto-social-btn:hover svg path {
  fill: #fff;
}

.paddingmapa {
  padding-top: 15%;
}
.paddingmpll{
  padding: 100px 0 100px 0;
}
.typewriter {
  overflow: hidden;
  border-right: 0.15em solid rgb(49, 49, 49);
  white-space: nowrap;
  animation: typing 4.5s steps(40, end), blink 0.95s step-end infinite;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: rgb(65, 64, 64)
  }
}

.image-wrapper-ct {
  width: 130%;
  height: 80vh;
  position: relative;
  overflow: hidden;
}

/** INICIO TEXTO CONTACTO - TEAM */
.txt-cto-section {
  background-color: #000;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: 'Playfair Display', serif;
  text-align: center;
  flex-direction: column;
}

.txt-cto-content {
  max-width: 900px;
  line-height: 1.1;
}

.txt-cto-line-1 {
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 600;
  font-style: italic;
  margin-bottom: -0.5rem;
  letter-spacing: -0.02em;
}

.txt-cto-line-2 {
  display: flex;
  justify-content: center;
  gap: 1.933rem;
  margin-bottom: -1.7rem;
  margin-top: -3.533rem;
  align-content: space-around;
  align-items: center;
  flex-direction: row;
}

.juntos {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-stroke: 1.33px white;
  -webkit-text-stroke: 1.33px white;
  color: transparent;
  margin-left: -50px;
}

.parenthesis-text {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
  margin-top: 25px;
}

.txt-cto-line-3 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  font-style: normal;
  margin-top: 0.0rem;
  letter-spacing: 0.02em;
}

.comencemos {
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

@media (max-width: 768px) {
  .nav-content-grid {
                padding: 1rem;
                grid-template-columns: 1fr auto;
                align-items: center;
            }
             .nav {
                padding-top: 1px;
                padding-bottom: 1px;
          }

            .nav-menu2 {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
            }

            .mobile-menu {
                display: none;
            }
            .mobile-menu.active {
                display: block;
        }
        .logo-wrapper {
    position: relative;
        }
  .txt-cto-section {
    min-height: 60vh;
  }

  .txt-cto-section {
    padding: 1rem 0.5rem;
  }

  .txt-cto-line-2 {
    flex-direction: column;
    gap: 0.5rem;
  }
.logos-section-cp {
    margin-top: 5rem;
    margin-bottom: 1rem;
}
  .parenthesis-text {
    order: -1;
    margin-bottom: 0.5rem;
    margin-top: 54px;
    margin-left: 180px;
  }

  .juntos {
    margin-left: -140px;
    margin-top: -80px;
  }
}

@media (max-width: 480px) {
  .txt-cto-content {
    line-height: 1.05;
  }

  .txt-cto-line-1 {
    margin-bottom: -0.8rem;
  }

  .txt-cto-line-2 {
    margin-bottom: -0.5rem;
  }

  .juntos {
    text-stroke: .73px white;
    -webkit-text-stroke: .73px white;
  }
}

/** CSS - RESPONSIVE*/
/**@media (max-width: 1059px) and (min-width: 768px){
  }*/

@media (max-width: 1059px) {

  .card-work.final-state-1,
  .card-work.final-state-2,
  .card-work.final-state-3,
  .card-work.final-state-4 {
    width: 50%;
  }

  .card-work.final-state-1 {
    left: -3%;
    top: 150px;
  }

  .card-work.final-state-2 {
    left: 52%;
    top: 150px;
  }

  .card-work.final-state-3 {
    left: -3%;
    top: 745px;
  }

  .card-work.final-state-4 {
    left: 52%;
    top: 745px;
  }

  .rotated-text {
    display: none;
  }

  .lw-mt-card {
    margin-top: auto;
  }
}
/* Tablet - 768px a 1024px */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .mp-service-item {
        width: 250px;
        max-width: 30vw;
    }
}

@media (max-width: 1024px) {

  .card-work.final-state-1,
  .card-work.final-state-2,
  .card-work.final-state-3,
  .card-work.final-state-4 {
    width: 50%;
  }

  .card-work.final-state-1 {
    left: -3%;
    top: 210px;
  }

  .card-work.final-state-2 {
    left: 52%;
    top: 210px;
  }

  .card-work.final-state-3 {
    left: -3%;
    top: 845px;
  }

  .card-work.final-state-4 {
    left: 52%;
    top: 845px;
  }

  .lw-mt-card {
    margin-top: 170px;
  }

  .rotated-text {
    display: none;
  }
}

@media (max-width: 1039px) and (min-width: 768px) {
  .fiximgtxagency {
    display: flex;
    flex-direction: column-reverse;
  }

  .max-width-small {
    max-width: 30rem
  }

  .image-block {
    margin-left: 0px !important;
    height: auto;
  }

}

@media screen and (max-width: 991px) {
  .custom-cursor-section {
    padding: 0;
  }

  .titfijohello {
    padding-bottom: 80px;
  }

  .service-title-sticky {
    position: sticky !important;
  }

  .cover-image {
    height: 70%;
  }

  .lw-mt-card {
    margin-top: auto;
  }
}

/* Mobile - hasta 768px */
@media screen and (max-width: 768px) {
    .section-mp {
        padding-bottom: 60px;
        padding-top: 60px;
    }

    .mp-section-container {
        min-height: auto;
        padding: 10px;
        align-items: flex-start;
    }

    .mp-hg {
        min-height: auto;
        height: auto;
        margin-top: 140px;
        margin-bottom: -150px;
    }

    .mp-images-container {
        position: static;
        min-height: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1px;
        padding: 20px 0;
    }

    /* MOBILE: Layout vertical con posicionamiento relativo */
    .mp-service-item {
        position: relative !important;
    }

    .mp-service-item img {
       width: 136vw;
        max-width: 140vw;
        height: auto;
    }

    .mp-service-label {
        position: static !important;
        /* Cambio crítico */
        opacity: 1 !important;
        margin-bottom: 10px;
        display: block;
        text-align: center;
        /*transform: none !important;*/
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    .mp-service-item:nth-child(1) {
    margin-top: -50%;
    left: 34%;
    transform: scale(0.6) rotate(50deg);
    z-index: 1;
}

    .mp-service-item.mp-final-state:nth-child(1) {
        left: -19%;
        top: 0%;
        margin-top: 100px;
        transform: scale(0.8) rotate(0);
    }

    .mp-service-item.mp-final-state:nth-child(2) {
        top: 249%;
        left: -19%;
        transform: translate(0, -10%) scale(0.8) rotate(0);
    }
    .mp-service-item.mp-transition-state:nth-child(1) {
    transform: scale(0.75) rotate(38deg);
}

    .mp-service-item.mp-final-state:nth-child(3) {
        left: -19%;
        transform: scale(0.8) rotate(0);
        transform: translate(0, -20%) scale(0.8) rotate(0);
    }

.mp-service-item.mp-final-state:nth-child(4) {
        left: -19%;
        margin-left: -8px;
        transform: translate(0, -30%) scale(0.8) rotate(0);
        z-index: 8;
}

    /* Labels en móvil */
    .mp-service-item:nth-child(1) .mp-service-label,
    .mp-service-item:nth-child(2) .mp-service-label,
    .mp-service-item:nth-child(3) .mp-service-label,
    .mp-service-item:nth-child(4) .mp-service-label {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        /*transform: none !important;*/
        text-align: left;
        margin-bottom: 10px;
        opacity: 1 !important;
        margin-left: 15%;
    }

    .scroll-text {
        font-size: 2.5rem;
    }

    .rotated-text {
        position: static;
        /*transform: none;*/
        text-align: center;
        margin-top: 40px;
        font-size: 16px;
    }
    .paddingmpll {
    padding: 0px 0 100px 0;
}
}

@media screen and (max-width: 767px) {
.cover-image {
    position: relative;
}
  .rotated-text {
    display: none;
  }

  .scroll-text {
    font-size: 6rem !important;
  }

  .horizontal-line-ng {
    width: 115px !important;
  }

  .marquee span {
    font-size: 4rem !important;
  }

  .horizontal-line-bl {
    width: 115px !important;
  }

  .paddingmapa {
    padding-top: 75%;
  }
  .section-works {
    padding-top: 100px;
    overflow: visible;
    min-height: 270vh;
  }
    .container-works {
    margin-top: -12px !important;
    height: auto;
    min-height: auto;
    padding-bottom: 50px;
  }
  .work-section {
        height: auto;
    min-height: auto;
  }
  .cards-container {
    height: auto;
    min-height: auto;
    position: static;
  }
  
  .card-work.initial-state {
    top: -22%;
    transform: translate(-50%, 0) scale(0.4) !important;
    margin-top: -70%;
  }
  .card-work.final-state-1,
  .card-work.final-state-2,
  .card-work.final-state-3,
  .card-work.final-state-4 {
    width: 100%;
    left: auto;
    transform: translateX(-50%) scale(1);
    position: relative;
    top: auto;
    padding-top: 40px;
  }
  .cto-image {
    max-width: 170%;
  }

  .aliniacionimgtx-footer {
    text-align: center;
  }

  .max-width-small {
    max-width: 100%;
    margin-bottom: 50px;
  }

  .footer-iconos {
    display: flex;
    flex-direction: column;
    place-self: end;
  }

  .margenimgeq-picci {
    margin-bottom: 50px;
  }

  .image-wrapper-ct {
    width: 100%;
    height: 100%;
  }

  .max-wd120 {
    max-width: 100%;
  }

  .w-layout-grid-footer {
    display: block;
  }

  .card-work.final-state-1,
  .card-work.final-state-2,
  .card-work.final-state-3,
  .card-work.final-state-4 {
    width: 44%;
  }

  .card-work.final-state-1 {
    left: 1.33%;
  }

  .card-work.final-state-3 {
    left: 1.33%;
  }

  .lw-mt-card {
    margin-top: auto;
  }

  .bottom-line {
    height: 1px;
    transition: width 4s ease-out;
  }

  .project-component {
    height: 90vh;
  }

  .project-info {
    font-size: 24px;
    font-weight: 700;
  }
}

@media (max-width: 576px) {
  .fiximgtxagency {
    padding-bottom: 50px;
  }
  .work-header h1 {
    font-size: 2rem;
  }

  .card-work.final-state-1,
  .card-work.final-state-2,
  .card-work.final-state-3,
  .card-work.final-state-4 {
    width: 100%;
    left: auto;
    transform: translateX(-50%) scale(1);
  }


  .card-work img {
    height: auto;
    width: 100%;
  }

  .lw-mt-card {
    margin-top: auto;
  }
}

@media (max-width: 500px) {
  .play-btn::after {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #000;
  }
}

@media (max-width: 490px) {

  .lw-mt-card {
    margin-top: auto;
  }
}

/* Mobile pequeño - hasta 480px */
@media screen and (max-width: 480px) {
    .mp-service-item {
        max-width: 300px !important;
    }

    .scroll-text {
        font-size: 2rem;
    }

    .section-mp {
        padding-bottom: 0px;
        padding-top: 40px;
    }
}

@media (max-width: 480px) {

  .paddingmapa {
    padding-top: 55%;
  }

  .lw-mt-card {
    margin-top: auto;
  }
}

@media screen and (max-width: 479px) {
  .video-container {
    height: 57.25vw;
  }

  .videos-container-brans {
    grid-template-columns: repeat(1, 2fr);
  }

  .lw-mt-card {
    margin-top: auto;
  }
}

@media (max-width: 530px) {

  .lw-mt-card {
    margin-top: auto;
  }
}

@media (max-width: 440px) {

  .lw-mt-card {
    margin-top: auto;
  }
}

@media (max-width: 390px) {

  .lw-mt-card {
    margin-top: auto;
  }
}

@media (max-width: 375px) {


  .lw-mt-card {
    margin-top: auto;
  }
}

@media (max-width: 360px) {
  .lw-mt-card {
    margin-top: auto;
  }
}

/* =================================
           CLASES GLOBALES DE ANIMACIÓN
        ================================= */

/* Animaciones de slide */
.slide-left {
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.29, 0.59, 0.15, 1.02);
}

.rotate-vertical {
  transform: translateX(-50px);
}

.slide-left.animate {
  opacity: 1;

}

.rotate-vertical.animate {
  transform: rotate(-90deg);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-down {
  opacity: 0;
  transform: translateY(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-down.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Animaciones de escala e imágenes */
.scale-in {
  opacity: 0;
  transform: scale(0.566);
  /*transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);*/
  transition: all .9s cubic-bezier(0.69, 0.42, 0.6, 1.2);
}

.scale-in.animate {
  opacity: 1;
  transform: scale(1);
}

.scale-rotate {
  opacity: 0;
  transform: scale(0.3) rotate(-15deg);
  transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scale-rotate.animate {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Animaciones de fade */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-in.animate {
  opacity: 1;
}

.fade-in-slow {
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.fade-in-slow.animate {
  opacity: 1;
}

/* Máquina de escribir global */
.typewriter {
  /* El contenedor debe tener esta clase */
}

.typewriter-char {
  /*opacity: 0;*/
  display: inline-block;
  animation: none;
}

@keyframes typewriter-animation {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modificadores de velocidad */
.anim-fast {
  transition-duration: 0.4s !important;
}

.anim-slow {
  transition-duration: 1.5s !important;
}

.anim-extra-slow {
  transition-duration: 2.5s !important;
}

/* Modificadores de delay */
.delay-1 {
  animation-delay: 0.2s;
  transition-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
  transition-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
  transition-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
  transition-delay: 0.8s;
}

.delay-5 {
  animation-delay: 1s;
  transition-delay: 1s;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.content-container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

.side-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: #333;
  font-size: 1.2rem;
  font-weight: 500;
  border: 3px solid #ff4444;
  padding: 2rem 1rem;
  background: white;
  border-radius: 8px;
}

.main-content {
  text-align: center;
  color: white;
}

.main-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.word {
  display: inline-block;
  margin: 0.2rem;
  color: #000000;
}

.word.highlight {
  color: #242424;
  font-style: italic;
  font-weight: 300;
}

.image-container {
  text-align: center;
}

.main-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.text-content {
  font-size: 1.1rem;
  line-height: 1.6;
}

.text-content p {
  margin-bottom: 1.5rem;
}

.demo-section {
  min-height: 100vh;
  padding: 4rem 2rem;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.demo-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.demo-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.demo-card h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.demo-card p {
  color: #666;
  line-height: 1.6;
}

.spacer {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #666;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .content-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .side-text {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    padding: 1rem 2rem;
  }

  .main-title {
    font-size: 2.5rem;
  }
}
