
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Nunito', sans-serif;

    }

    body {
  color: #fff;
  background: #222;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 64px;

  background: rgba(34, 34, 34, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255,255,255,0);

  display: flex;
  justify-content: center;

  /* 👇 animación de entrada */
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}
header.visible {
  transform: translateY(0);
  opacity: 1;
}

.content {
  width: 100%;
  max-width: 1200px;   /* mismo ancho que header-inner */
  margin: 0 auto;
  padding: 0 24px;     /* mismo padding lateral */
}


.header-inner {
  width: 100%;
  max-width: 1200px;            /* 🔑 ancho editorial */
  padding: 0 24px;
font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-inner {
  opacity: 0;
  transition: opacity 1.6s ease;
}

header.visible .header-inner {
  opacity: 1;
}

.brand {
  font-family: 'Chelsea Market', cursive; /* 🔑 nueva fuente */
  font-weight: 50;                       /* Chelsea no necesita bold */
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.5px;                  /* queda muy bien con esta tipografía */
    text-decoration: none;

}

header,
header a {
  font-family: 'Chelsea Market', cursive;
  font-weight: 400;
  letter-spacing: 0.5px;
}


    nav {
      display: flex;
      align-items: center;
    }

    nav ul {
      list-style: none;
      display: flex;
      gap: 30px;
    }

nav a {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

nav a.active {
  transform: scale(1.1);   /* 🔑 tamaño protagonista */
  color: #fff;
}

nav a:hover {
  color: #fff;                   /* 🔑 blanco al hover */
}

nav a {
  text-decoration: none !important;
  color: #cfcfcf;
}

nav a:visited {
  color: #cfcfcf;
}

nav a:hover {
  color: #fff;
  text-decoration: none;
}

nav a.active {
  color: #fff;
  transform: scale(1.1);
  text-decoration: none;
}

    /* BOTÓN HAMBURGUESA */
    .menu-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
    }

    .menu-toggle span {
  width: 24px;
  height: 2px;
  background: #b5b5b5;           /* gris en reposo */
  display: block;
  transition: 
    transform 0.3s ease,
    opacity 0.3s ease,
    background-color 0.3s ease;  /* 🔑 color animado */
  transform-origin: center;
}

.menu-toggle.open span {
  background: #fff;              /* blanco durante la X */
}

    /* -------- MOBILE -------- */
@media (max-width: 768px) {

  nav ul {
    position: fixed;              /* 🔑 CLAVE */
    top: 64px;                    /* justo debajo del header */
    left: 0;
    width: 100%;

    background: rgba(34, 34, 34, 0.35);  /* 🔑 fondo translúcido */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255,255,255,0.1);

    display: flex;
    flex-direction: column;
    gap: 0;

    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;

    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 999;                 /* 🔑 por encima del contenido */
  }
  nav ul {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav ul li{
    position: relative;
    overflow: hidden; /* 🔑 para que el blur no se salga */
    padding: 0;       /* ahora el padding lo tendrá el <a> */
    border-top: 1px solid rgba(255,255,255,0.08);

    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  /* 🔑 la “capa glass” real */
  nav ul li::before{
    content:"";
    position:absolute;
    inset:0;

    background: rgba(34, 34, 34, 0.45); /* color */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    z-index: 0;
  }

  /* 🔑 el link por encima */
  nav ul li a{
    position: relative;
    z-index: 1;
    display: block;
    padding: 20px;
  }

  nav ul.open li {
    opacity: 1;
    transform: translateY(0);
  }

  nav ul.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

nav ul.open {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

    nav a {
    transform-origin: left center; /* 🔑 crece desde la izquierda */
  }

  .menu-toggle {
    display: flex;
  }
  nav ul li {
  padding: 20px;
  text-align: left;

  background: rgba(34, 34, 34, 0.45); /* 🔑 color con transparencia */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-top: 1px solid rgba(255,255,255,0.08);

  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
  nav ul.open li {
    opacity: 1;
    transform: translateY(0);

  }

  /* DELAYS ESCALONADOS */
  nav ul.open li:nth-child(1) { transition-delay: 0.05s; }
  nav ul.open li:nth-child(2) { transition-delay: 0.1s; }
  nav ul.open li:nth-child(3) { transition-delay: 0.15s; }
  nav ul.open li:nth-child(4) { transition-delay: 0.2s; }
}



nav a.active {
  color: #fff;              /* 🔑 blanco activo */
}

    .menu-toggle span {
      width: 24px;
      height: 2px;
      background: white;
      display: block;
      transition: all 0.3s ease;
      transform-origin: center;
    }

    /* ESTADO ACTIVO */
    .menu-toggle.open span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
      opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

section:not(.hero-video):not(.marquee-section) {
  padding: 100px 24px 100px;
  min-height: 100vh;
}

    html {
  scroll-behavior: smooth;
}


html, body {
  overflow-x: hidden;

}

/*-------------------------------------- HERO VIDEO ----------------------------------------*/

.hero-video{
  position: relative;
  width: 100%;
  margin-top: 64px;
  margin-bottom: 160px;

  aspect-ratio: 16 / 5;
  max-height: calc(80vh - 64px);
  overflow: hidden;

  /* 🔑 empieza MUY curvado */
  clip-path: ellipse(35% 35% at 50% 0%);

  transition: clip-path 1.4s ease;
}

.hero-video.visible{
  /* 🔑 se abre hasta casi recto */
  clip-path: ellipse(200% 100% at 50% 0%);
}

.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;        /* 🔑 CLAVE */
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease; /* ajusta el tiempo a gusto */
}
@media (max-width: 768px) {
  .hero-video {
    height: calc(100dvh - 54px);
    aspect-ratio: 8 / 16;      /* 🔑 CLAVE ABSOLUTA */
  }
}
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.75); /* 🔑 color 222 con transparencia */
  z-index: 2;
}

.hero-video video.visible {
  opacity: 1;
}
/*------------------------------------------- curva --------------------------------------------- */


.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;       /* 🔑 uno encima del otro */
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 15px;                    /* aire entre logo y texto */
  padding: 0 24px;

}


@media (max-width: 768px){
  .hero-video{
    clip-path: ellipse(50% 20% at 50% 0%);
  }

  .hero-video.visible{
    clip-path: ellipse(350% 100% at 50% 0%);
  }
}

@media (max-width: 768px) {
  .hero-video::before {
    bottom: -200px;
    height: 360px;
    width: 140%;
  }
}

/*------------------------------------------- LOGO--------------------------------------------- */

/* LOGO */
.hero-logo {
  mix-blend-mode: screen;
  width: clamp(180px, 35vw, 520px); /* 🔑 responsive real */
  max-width: 80%;
  height: auto;

  opacity: 0;
  transition: opacity 1.4s ease;
}

/* TEXTO */
.hero-content h1 {
  font-family: 'Chelsea Market', cursive;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 100;
  color: #fff;
  letter-spacing: 0.5px;

  opacity: 0;                   /* 🔑 empieza invisible */
  transition: opacity 1.6s ease;
}

/* ESTADOS VISIBLES */
.hero-logo.visible {
  opacity: 0.95;
}

.hero-content h1.visible {
  opacity: 0.95;
}

@media (max-width: 768px) {
  .hero-logo {
    width: clamp(170px, 125vw, 325px);
  }
  .hero-content {
  gap: 10px;       
  }
}


/*-------------------------------------- SCROLL EFECTO VIDEO DESPACIO ----------------------------------------*/
.hero-video video,
.hero-logo,
.hero-content h1 {
  will-change: transform;
}

header,
header * {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE/Edge viejo */
}

#proyectos h1 {
  opacity: 0.2;
  transition: opacity 0.8s ease;
}

#proyectos h1.visible {
  opacity: 1;
}

/*-------------------------------------- MARQUEE FRASE ----------------------------------------*/

.marquee-section{
  padding: 60px 0 10px; /* antes: 80px 0 40px */
  margin-bottom: 100px;
}

.marquee-mask{
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
}

/* fades laterales */
.marquee-mask::before,
.marquee-mask::after{
  content:"";
  position:absolute;
  top:0;
  width:80px;
  height:200%;
  z-index:2;
  pointer-events:none;
}

.marquee-mask::before{
  left:0;
  background: linear-gradient(to right, rgba(34,34,34,1), rgba(34,34,34,0));
}
.marquee-mask::after{
  right:0;
  background: linear-gradient(to left, rgba(34,34,34,1), rgba(34,34,34,0));
}

.marquee-track{
  display:flex;
  width: max-content;
  animation: marquee 85s linear infinite; /* 🔑 MUY lento */
  will-change: transform;
}

.marquee-content{
  display:flex;
  gap:0px;
  padding-right:60px; /* 🔑 evita “costura” al enganchar */
}

.marquee-content span{
  font-family: 'Chelsea Market', cursive;
  font-size: clamp(1.5rem, 1.6vw, 1.2rem);
  white-space: nowrap;
  text-transform: uppercase;   /* 🔑 TODO EN MAYÚSCULAS */

  color: rgba(255,255,255,0.1); /* 🔑 casi fondo */
  letter-spacing: 0.6px;
}

@keyframes marquee{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }

}

@media (max-width: 768px){
  .marquee-content span{
    font-size: 1rem;   /* 🔑 más pequeña en móvil */
    letter-spacing: 0.14em;
  }


.marquee-section{
  margin-bottom: 0px;
  }
}


/*-------------------------------------- ANIMACIÓN ENTRADA PROYECTOS ----------------------------------------*/

.cards-row{
  display: flex;
  justify-content: center;
  gap: 0px;
  margin-top: 100px;

  perspective: 5400px;
}

.project-card{
  width: 250px;
  height: 400px;
  border-radius: 0px;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.08);

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: 'Chelsea Market', cursive;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: #fff;

  transform-style: preserve-3d;

  /* 🔑 estado inicial */
  opacity: 0;
  transform: translateY(0px) rotateY(25deg) translateZ(0px);

  transition:
    transform 1.8s cubic-bezier(.19,1,.22,1),
    opacity 0.8s ease;
}
.project-card{
  opacity: 0;
  transform: translateY(0px) rotateY(25deg) translateZ(-220px);
}

/* 🔑 estado visible */
.cards-row.visible .project-card{
  opacity: 1;
  transform: translateY(0) rotateY(0deg) translateZ(120px);
}
.cards-row.visible .project-card:nth-child(1){
  transition-delay: 0.2s;
}
.cards-row.visible .project-card:nth-child(2){
  transition-delay: 0.5s;
}
.cards-row.visible .project-card:nth-child(3){
  transition-delay: 0.9s;
}
.project-card {
  position: relative;
  overflow: hidden; /* 🔑 recorta el vídeo */
}

/* vídeo dentro de la tarjeta */
.project-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: translateZ(0); /* 🔑 evita glitches 3D */
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(34,34,34,0.35);

  pointer-events: none;
}

@media (max-width: 768px) {

  .cards-row{
    perspective: none; /* opcional: reduce dramatismo 3D en móvil */
    margin-top: 40px;
  }

  .project-card{
    width: 240px;
    height: 250px;          /* 🔑 menos alto */
    transform: translateZ(0); /* evita excesos 3D */
  }

  .cards-row.visible .project-card{
    transform: translateY(0) rotateY(0deg) translateZ(40px);
  }

  .project-card:hover{
    transform:
      translateY(0)
      rotateY(0deg)
      translateZ(60px)
      scale(1.03);
  }
}

/* ---------------- TARJETA PROYECTO ---------------- */

.project-card video {
  filter: none;
  transition: filter 0.6s ease, transform 0.6s ease;
}

/* overlay de texto */
.project-info {
  position: absolute;
  inset: 0;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: #fff;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;

  pointer-events: none;
}

/* capa oscura (invisible en reposo) */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34,34,34,0.55);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
  transition:
    transform 0.8s cubic-bezier(.19,1,.22,1),
    opacity 0.8s ease;
}
.project-card:hover{
  transform:
    translateY(0px)
    rotateY(0deg)
    translateZ(140px)
    scale(1.05);
}


/* ---------------- HOVER ---------------- */

.project-card:hover video {
  filter: grayscale(100%) contrast(1.25) brightness(0.55);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover .project-info {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover video {
  transform: scale(1.1);
}
.project-info {
  transition-delay: 0.15s;
}

/* TEXTO DEL PROYECTO */
.project-info span {
  position: relative;
}

/* subrayado invisible */
.project-info span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;

  width: 100%;
  height: 1px;
  background: #fff;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

/* al hacer hover en la tarjeta */
.project-card:hover .project-info span::after {
  transform: scaleX(1);
}

/* 🔑 DESACTIVAR HOVER EN DISPOSITIVOS SIN HOVER REAL */
@media (hover: none) and (pointer: coarse) {

  .project-card:hover video {
    filter: none;
    transform: none;
  }

  .project-card:hover::before {
    opacity: 0;
  }

  .project-card:hover .project-info {
    opacity: 0;
    transform: translateY(10px);
  }

  .project-info span::after {
    transform: scaleX(0) !important;
  }
}

/* ---------------- VIDEO MODAL ---------------- */

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;

  z-index: 5000;
}

.video-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-content {
  position: relative;
  width: min(90vw, 1000px);
  aspect-ratio: 16 / 9;

  background: #000;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);

  transform: scale(0.92);
  transition: transform 0.4s ease;
}

.video-modal.open .video-modal-content {
  transform: scale(1);
}

.video-modal video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Botón cerrar */
.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;

  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;

  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.video-modal-close:hover {
  opacity: 1;
}

/*-------------------------------------- CARRUSEL INFINITO ----------------------------------------*/

.infinite-carousel{
  margin: 38px auto 0;
  max-width: 780px;   /* 🔑 mismo ancho editorial */
  padding: 0 24px;     /* 🔑 mismo padding lateral */
  overflow: hidden;
  position: relative;
}

.infinite-carousel {
  opacity: 0;
  transform: translateY(20px); /* opcional, da un pelín de aire */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.infinite-carousel.visible {
  opacity: 1;
  transform: translateY(0);
}

.carousel-track{
  display: flex;
  width: max-content;
  animation: carousel-scroll 20s linear infinite; /* 🔑 MUY lento */
  will-change: transform;
}

.carousel-set{
  display: flex;
  gap: 40px;
  padding-right: 40px;
}

.carousel-set img{
  width: 260px;
  height: 80px;
  object-fit: contain; /* 🔑 importante para logos */

  filter: brightness(0) invert(1); /* 🔥 los vuelve blancos */
  opacity: 0.3;

  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

.carousel-set img:hover{
  opacity: 1;
  transform: scale(1.025);
}

/* pausa al hover */
.infinite-carousel:hover .carousel-track{
  /*animation-play-state: paused; */
}

/* fade lateral */
.infinite-carousel::before,
.infinite-carousel::after{
  content:"";
  position:absolute;
  top:0;
  width:120px;
  height:100%;
  z-index:2;
  pointer-events:none;
}

.infinite-carousel::before{
  left:0;
  background: linear-gradient(to right, #222, rgba(34,34,34,0));
}

.infinite-carousel::after{
  right:0;
  background: linear-gradient(to left, #222, rgba(34,34,34,0));
}

@keyframes carousel-scroll{
  0%{
    transform: translateX(0);
  }
  100%{
    transform: translateX(-50%);
  }
}

/* mobile */
@media (max-width: 768px){
  .carousel-set img{
    width: 200px;
    height: 100px;
     opacity: 0.5;
  }

  .carousel-track{
    animation-duration: 25s;
  }
}

/*--------------- IMAGEN NOSOTROS --------------------*/



/* ---------- TEXTO NOSOTROS ---------- */


.nosotros-text{
  max-width: 1200px;          /* 🔑 mismo ancho editorial */
  margin: 40px auto 20px;     /* aire arriba y separación de la imagen */
  padding: 0 24px;

  display: flex;
  flex-direction: column;
  gap: 20px;

}

.nosotros-text p{
    width: 100%;
  max-width: 1200px;  
  margin: 0 auto; 
   padding: 0 24px;         /* 🔑 texto más legible */
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);

  text-align: left;
}

/* mobile */
@media (max-width: 768px){
  .nosotros-text{
    margin: 40px auto 20px;
    padding: 0px;
  }

  .nosotros-text p{
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* --------- BLOQUE DOBLE NOSOTROS --------- */

.nosotros-split{
  width: 100%;
  max-width: 1200px;     /* 🔑 igual que .content */
  margin: 0 auto;
  padding: 0 24px;       /* 🔑 mismo aire lateral */


  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

/* contenedores */
.nosotros-box{
  background: rgba(255,255,255,0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.0);
  border-radius: 0px;
  padding: 20px;
}

/* texto */
.text-box h2{
  font-family: 'Chelsea Market', cursive;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: #fff;
}

.text-box p{
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

/* imagen */
.image-box{
  padding: 0px;
  overflow: hidden;
}

.image-box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 40%;
  margin-top: 16px;
}

/* --------- MOBILE --------- */

@media (max-width: 768px){
  .nosotros-split{
    grid-template-columns: 1fr;
    gap: 0px;
  }

  .nosotros-box{
    padding: 0px;
  }
}


.servicios-list {
  display: flex;
  justify-content: center;   /* 🔑 CLAVE */
  align-items: center;

  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.servicio-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
      font-family: 'Nunito', sans-serif;
  font-weight: 100;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.servicio-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.servicio-btn:hover::after,
.servicio-btn.active::after {
  width: 100%;
}

.servicios-detalle {
  position: relative;
  min-height: 80px; /* ajusta a lo que necesites */
  margin-top: 40px;
}

.servicio-texto {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.4s ease;

  max-width: 1200px;
  padding: 0 24px;

  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}

.servicio-texto.active {
  max-height: 1000px;
  opacity: 1;
}


@media (max-width: 768px) {
  .servicio-texto {
    margin: 16px auto 20px;   /* 🔑 mucho más compacto */
    padding: 0 24px;

    font-size: 0.95rem;
    line-height: 1.6;
  }
}

.video-modal-title {
  position: absolute;
  top: -48px;
  left: 0;

      font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: #fff;
  opacity: 0.85;
}


.servicios-indicadores {
  margin-top: 0px;
  display: flex;
  justify-content: center;
  gap: 58px;
}

/* círculo base */
.indicador {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;

  background: rgba(255,255,255,0);

  transition:
    transform 0.35s cubic-bezier(.19,1,.22,1),
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}



.indicador {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 50px;
}

/* imagen dentro del círculo */
.indicador img {
  width: 35px;
  height: 35px;
  object-fit: contain;



  opacity: 0.65;
  filter: brightness(0) invert(1); /* gris claro */

  transition:
    transform 0.35s cubic-bezier(.19,1,.22,1),
    opacity 0.35s ease,
    filter 0.35s ease;
}

/* estado activo */
.indicador.active img {
  opacity: 1;
  transform: scale(0.8);
opacity: 88%;
  filter: brightness(0.22) saturate(0); /* 🔑 ≈ #222 */
}

/* activo */
.indicador.active {
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 12px rgba(255,255,255,0.55);
}

/* ---------------- SERVICIOS CARDS ---------------- */

/* --- CONTENEDOR --- */
.servicio-cards {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 0px;

  max-width: 1200px;
  margin: 0px auto 0;
  padding: 0 24px;
}

.servicio-cards.active {
  display: grid;
}


/* --- TARJETAS --- */
.servicio-card {
  background: rgba(255,255,255,0.0);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.0);

  padding: 20px;
  text-align: center;

  border-radius: 40px;
max-width: 260px; 
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 10;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);

  opacity: 0;
  transform: translateY(16px) scale(0.98);

  animation: cardIn 0.6s cubic-bezier(.19,1,.22,1) forwards;
}

/* stagger automático */
.servicio-card:nth-child(1) { animation-delay: 0.05s; }
.servicio-card:nth-child(2) { animation-delay: 0.15s; }
.servicio-card:nth-child(3) { animation-delay: 0.25s; }
.servicio-card:nth-child(4) { animation-delay: 0.35s; }


/* keyframes */
@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- TARJETA DETALLE SERVICIO ---------- */

.servicio-card-detalle {
  grid-column: span 2; /* ocupa más aire que las demás */
  text-align: left;

  padding: 28px 32px;

  background: rgba(255,255,255,0.0);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.0);
  border-radius: 28px;

  font-family: 'Nunito', sans-serif;
  letter-spacing: normal;
  text-transform: none;

  opacity: 0;
  transform: translateY(16px) scale(0.98);
  animation: cardIn 0.6s cubic-bezier(.19,1,.22,1) forwards;
}

/* título */
.servicio-card-detalle h3 {
  font-family: 'Nunito', sans-serif;   /* 🔑 LA OTRA FUENTE */
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: #fff;
  margin-bottom: 18px;
  opacity: 0.9;
}

/* lista */
.servicio-card-detalle ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 24px;
}

/* items */
.servicio-card-detalle li {
  position: relative;
  padding-left: 14px;

  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}

/* punto sutil */
.servicio-card-detalle li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;

  color: rgba(255,255,255,0.35);
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .servicio-cards {
    grid-template-columns: 1fr;   /* 🔑 una sola columna */
    justify-items: center;        /* 🔑 centra las tarjetas */
    gap: 20px; 
    margin: 40px auto 0;                   /* separación vertical */
  }

  .servicio-card,
  .servicio-card-detalle {
    max-width: 100%;              /* 🔑 ocupan el ancho disponible */
  }

  .servicio-card-detalle {
    grid-column: auto;            /* 🔑 anula spans */
  }
}

/* ---------- COMPARE VIDEOS ---------- */


/* CONTENEDOR GENERAL */
.vfx-compare {
  max-width: 1100px;
  margin: 0 auto;        /* 🔑 sin negativos */
}
#vfx-compare {
  min-height: auto;
  padding: 24px 24px; /* o incluso menos */
    margin-top: -140px;

}
/* CONTENEDOR COMPARE */
.compare {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 20px;
  user-select: none;
  touch-action: pan-y;
  padding: 0 16px;
}
.compare {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 0 0 1px rgba(0,0,0,0.8) inset,
    0 10px 30px rgba(0,0,0,0.5);
}

/* VÍDEOS */
.compare video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;

}

.compare .base {
  z-index: 1;
}

.compare .overlay {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

/* HANDLE */
.compare .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 0;
  cursor: ew-resize;
  transform: translateX(50%);
}

.compare .handle::after {
  content: "";
  position: absolute;
  top: 93.5%;
  left: 50%;
  width: 26px;
  height: 26px;
  background: #333;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}

@media (max-width: 768px) {
  .compare {
    width: calc(100% - 32px); /* 🔑 margen real */
    margin: 20px auto;
    padding: 0;               /* 🔑 el padding ya no es necesario */
    border-radius: 16px;      /* opcional: un pelín menos agresivo */
  }
  #vfx-compare {
    min-height: auto;
    padding: 24px 24px; /* o incluso menos */
      margin-top: -40px;

  }
}


/* ---------------- AVIÓN CONTACTO ---------------- */

/* estado base: fuera a la IZQUIERDA (entrada) */
.avion-wrapper {
  position: relative;
  z-index: 5;
  opacity: 0;
  transform: translateX(-450%);
  transition:
    transform 1.4s cubic-bezier(.19,1,.22,1),
    opacity 0.8s ease;
}

.avion-wrapper.visible {
  opacity: 0.5;
  transform: translateX(0);
}

.avion-wrapper.exit {
  opacity: 0;
  transform: translateX(450%);
}


.avion-contacto {
  width: 180px;
  max-width: 40vw;

  transform-origin: 50% 60%;
  will-change: transform;
  pointer-events: none;
}

.avion-wrapper.no-trans {
  transition: none !important;
}


/* flotación fluida con overlap real */
@keyframes avionFlotando {
  0% {
    transform: translateY(0) rotate(0deg);
  }


  /* punto alto, rotación ya casi corregida */
  50% {
    transform: translateY(-22px) rotate(0deg);
  }

  
}
.avion-contacto.flotando {
  animation: avionFlotando 7.5s cubic-bezier(.45,0,.55,1) infinite;
  animation-delay: 0.6s;

}


/* mobile */
@media (max-width: 768px) {
  .avion-contacto {
    width: 140px;
    margin-top: 50px;
  }
}

.avion-contacto.flotando {
  animation: avionFlotando 9s ease-in-out infinite;
}

/* ---------------- LÍNEAS DE VELOCIDAD ---------------- */

.speed-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4; /* 🔑 por delante del avión */
}

.speed-lines span {
  position: absolute;
  top: 50%;
  left: -30%;

  width: 320px;
  height: 5px;

  background: linear-gradient(
    to right,
    rgba(255,255,255,0),
    rgba(255,255,255,0.8),
    rgba(255,255,255,0)
  );

  opacity: 0;
  transform: translateY(0);
}

/* animación activa */
.speed-lines span.active {
  animation: speedLine 1.2s ease-out forwards; /* ⏳ el doble */
}
/* trayecto */
@keyframes speedLine {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  100% {
    transform: translateX(-160vw);
    opacity: 0;
  }
}
.speed-lines span {
  left: 130%; /* antes -30% */
}
#contacto .content {
  position: relative; /* 🔑 CLAVE ABSOLUTA */
}

section > .content > h1 {
  opacity: 0.2;
  transition: opacity 0.8s ease;
}

section > .content > h1.visible {
  opacity: 1;
}
.contacto-eje {
  position: relative;
  width: 100%;
  height: 220px;              /* controla la altura del “pasillo” */
  display: flex;
  align-items: center;        /* 🔑 CLAVE: mismo eje vertical */
  justify-content: center;
}

/* ---------------- CONTACTO BOTONES ---------------- */

.contacto-botones {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contacto-btn {
  width: 104px;
  height: 104px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0);

  transition:
    transform 0.35s cubic-bezier(.19,1,.22,1),
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}
.contacto-btn {
  animation: botonFlota 8s ease-in-out infinite;
  will-change: transform;
}

/* icono */
.contacto-btn img {
  width: 90px;
  height: 90px;
  object-fit: contain;

  filter: brightness(0) invert(1);
  opacity: 0.85;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

/* hover */
.contacto-btn:hover {
  transform: scale(1.08);
  background: rgba(255,255,255,0);
}

.contacto-btn:hover img {
  opacity: 1;
  transform: scale(1.05);
}


/* móvil */
@media (max-width: 768px) {
  .contacto-btn {
    width: 100px;
    height: 100px;
  }

  .contacto-btn img {
    width: 80px;
    height: 80px;
  }
  .contacto-botones {
    gap: 0px;

  }
}

/* ---------------- NOSOTROS SCROLL FADE ---------------- */

.nosotros-text,
.nosotros-split {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(.19,1,.22,1);
}

.nosotros-text.visible,
.nosotros-split.visible {
  opacity: 1;
  transform: translateY(0);
}

/* imagen dentro del split (un pelín más lenta) */
.nosotros-split .image-box img {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1.2s ease,
    transform 1.2s cubic-bezier(.19,1,.22,1);
}

.nosotros-split.visible .image-box img {
  opacity: 0.4; /* mantienes tu look */
  transform: translateY(0);
}

#servicios .content {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s ease,
    transform 1s cubic-bezier(.19,1,.22,1);
}

#servicios .content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #111;
  color: rgba(255,255,255,0.8);
  padding: 80px 20px 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-family: 'Chelsea Market', cursive;
  font-size: 24px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.7;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-contact a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: 1200px;
  margin: 50px auto 0;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.5;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* =========================
   FOOTER RESPONSIVE
========================= */

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
#contacto {
  min-height: auto;              /* 🔑 elimina el 100vh */
  padding: 80px 24px 40px;       /* 🔑 menos aire */
}



@keyframes botonFlota {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(var(--x), var(--y));
  }
  100% {
    transform: translate(0, 0);
  }
}

.contacto-btn:nth-child(1) {
  --x: -8px;
  --y: -12px;
  animation-duration: 7.5s;
}

.contacto-btn:nth-child(2) {
  --x: 10px;
  --y: -6px;
  animation-duration: 9s;
}

.contacto-btn:nth-child(3) {
  --x: 6px;
  --y: 10px;
  animation-duration: 8.2s;
}

#nosotros,
#servicios {
  min-height: auto;      /* 🔑 elimina el 100vh */
  padding-top: 20px;     /* antes 100 */
  padding-bottom: 70px; /* antes 100 */
}
/* Offset para navegación con header fijo */
#nosotros,
#servicios,
#vfx-compare {
  scroll-margin-top: 70px; /* header (64px) + aire */
}
