@font-face {
  font-family: "jost-extralight";
  src: url("assets/jost/Jost-Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "space-normal";
  src: url("assets/space-grotesk/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
    font-family: "space-bold";
    src: url("assets/space-grotesk/SpaceGrotesk-SemiBold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
  }

@font-face {
  font-family: "noto-light";
  src: url("assets/noto/notolight.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
    font-family: "noto-condensed-bold";
    src: url("assets/Noto_Sans/static/NotoSans_Condensed-Black.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
  }

  html {
    scroll-behavior: smooth;
  }
  
/* Ocean Public: Estilos base */
body {
  margin: 0;
  font-family: "Helvetica Neue", sans-serif;
  color: #002b5c;
  scroll-behavior: smooth;
  background-color: white;
  transition: background-color 2s ease;
}

header {
  height: auto;
  z-index: 1000;
}

#title {
  padding-bottom: 0;
}

.main-title {
  font-family: "space-normal";
  text-align: left;
  font-weight: 700;
  max-width: clamp(50rem, 37.5rem + 22.2222vw, 75rem);
  font-size: clamp(5.3125rem, 3.98438rem + 2.36111vw, 7.96875rem);
  line-height: 0.889;
  letter-spacing: -0.05em;
  padding: 0 9rem;
  margin: 6rem 0 0 0;
}

#inteligencia-artificial .main-title {
  margin-top: 0;
}

#websites .main-title {
  margin-top: 0;
}

.main-p {
  font-family: "noto-light";
  text-align: left;
  padding: 0 9rem;
  margin: 1rem 0 0 0;
  font-size: 1.3rem;
}

.navegation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 11rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: #ffffff82;
  transition: all 0.3s ease;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
  font-family: "noto-light";
}

.navbar.fixed {
  position: fixed;
  top: 0;
  left: 0;
}

.navbar .logo {
  z-index: 1000;
}

.navbar .logo img {
  height: 70px;
  margin-top: -5px;
}

.nav-links, .nav-links-desk {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a, .nav-links-desk li a{
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #002b5c;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links li a:hover , .nav-links-desk li a:hover{
  color: #00bfff;
  animation: shake 0.4s ease-in-out;
}

.nav-links li a {
    color: #ffffff;
}

/* Shake animation */
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-4px);
  }
  100% {
    transform: translateX(0);
  }
}

.video-transparent {
    width: 35%;
    margin-top: -30px;
}

#chatai {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateY(200%);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
    width: 100%;
    height: 100vh;
    background-color: #ffffff; 
    overflow: hidden;
    box-sizing: border-box;
    border-top: 1px solid #002b5c;
    z-index: 1000;
}


#closeChat {
    position: absolute;
    top: 20px;
    right: 20px;
    border: 1px solid #002b5c;
    padding: 10px;
    cursor: pointer;
    transition: all 0.7s ease;
}

#closeChat:hover {
    background-color: #002b5c;
    color:#ffffff;
}

#chatai.show {
    transform: translateY(30%);
    opacity: 1;
    pointer-events: auto;
  }
  
  #chatai.hidden {
      transform: translateY(200%);
      opacity: 1;
      pointer-events: auto;
  }

.hidden-menu {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-200%);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
    width: 100%;
    height: 100vh;
    background-color: #0b3066; 
    overflow: hidden;
}

.hidden-menu.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.hidden-menu.hidden {
    transform: translateY(-200%);
    opacity: 1;
    pointer-events: auto;
}

.wrapper-hidden-nav {
    display: flex;
    height: 100vh;
  }
  
  .left-box, .right-box {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .right-box {
    align-items: center;
    flex-direction: column;
  }

  .left-box {
    position: relative;
  }
  
  .left-box::after {
    content: "";
    position: absolute;
    top: 20%;
    right: 0;
    width: 1px;
    height: 60%;
    background-color: white;
    transform: translateY(0);
  }
  
  
  /* Asegurar logo centrado */
  .right-box img {
    max-width: 60%;
    height: auto;
  }
  
  /* Animación en cascada */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    pointer-events: auto;
    padding: 0;
    margin: 0;
  }
  
  .nav-links li {
    opacity: 0;
    transform: translateY(-20px);
    animation: none;
    font-family: 'space-bold';
    font-size: 3rem;
  }
  
  .nav-links li:nth-child(1) { animation-delay: 0.1s; }
  .nav-links li:nth-child(2) { animation-delay: 0.2s; }
  .nav-links li:nth-child(3) { animation-delay: 0.3s; }
  .nav-links li:nth-child(4) { animation-delay: 0.4s; }
  
  @keyframes slideFadeIn {
    0% {
      opacity: 0;
      transform: translateY(-20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Línea animada en hover */
  .nav-links li a {
    position: relative;
    overflow: hidden;
  }
  
  .nav-links li a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background-color: #00bfff;
    transition: left 0.3s ease;
  }
  
  .nav-links li a:hover::before {
    left: 0;
  }
  
  .nav-links li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: left 0.3s ease;
  }

  .script {
    color: #ffffff;
    min-height: 25px;
    text-align: center;
  }

  #typewriter {
    font-family: "space-normal", monospace;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid white;
    width: fit-content;
    max-width: 100%;
    animation: blink 0.7s step-end infinite;
    color: white;
  }
  
  @keyframes blink {
    50% {
      border-color: transparent;
    }
  }

  .wrapper-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 470px;
  }
  
  .chat-button {
    color: #fff;
    border: 1px solid #ffffff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 17px;
    margin: 0 20px;
    text-align: center;
    position: relative;
    display: inline-block;
    background-color: transparent;
    overflow: hidden;
    transition: color 0.3s ease;
    z-index: 1;
    box-sizing: border-box;
  }
  
  .chat-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
    animation: none;
    z-index: -1;
  }
  
  .chat-button:hover::before {
    animation: fillButton 0.5s forwards;
  }
  
  .chat-button:hover {
    color: #002b5c;
    border-color: #002b5c;
  }
  
  .chat-button span {
    position: relative;
    z-index: 2;
  }
  
  .button-chat-ex {
    padding: 20px;
    font-size: 17px;
    text-align: center;
    color:#ffffff;
    background-color: #002b5c;
    cursor: pointer;
    position: fixed;
    z-index: 999;
    bottom: 20px;
    right: 20px;
}

.button-chat-static {
  padding: 20px;
  font-size: 17px;
  text-align: center;
  color:#ffffff;
  background-color: #002b5c;
  cursor: pointer;
}

a.button-chat-static {
  text-decoration: none;
}

.wrapper-conversation {
    display: flex;
    flex-direction: column;
    height: 70%;
}

.conversation {
    flex: 0 0 70%;
    overflow-y: auto;
    text-align: left;
}

.text-box {
    flex: 0 0 20%;
}

.text-box textarea {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    font-size: 18px;
}

.button-send-msg {
    flex: 0 0 10%;
    display: flex;
    align-items: center;
    justify-content: end;
}

.button-send-msg button {
    background-color: #002b5c;
    border: 1px solid #ffffff;
    padding: 5px;
    color:#ffffff;
    cursor: pointer;
    transition: all 0.7s ease;
    display: none;
}

.button-send-msg button:hover {
    background-color: #ffffff;
    color:#002b5c;
    border: 1px solid #002b5c;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 16px;
    height: 30px;
  }
  
  .typing-indicator span {
    width: 8px;
    height: 8px;
    background: #aaa;
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
  }
  
  .typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes bounce {
    0%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-8px);
    }
  }
  
  
  /* Keyframes para rellenar de izquierda a derecha */
  @keyframes fillButton {
    0% {
      transform: scaleX(0);
      transform-origin: left;
    }
    100% {
      transform: scaleX(1);
      transform-origin: left;
    }
  }
  
  /* AL SALIR DEL HOVER: activar una animación de salida manualmente con JS */
  .chat-button.unhover::before {
    animation: unfillButton 0.5s forwards;
  }
  
  @keyframes unfillButton {
    0% {
      transform: scaleX(1);
      transform-origin: right;
    }
    100% {
      transform: scaleX(0);
      transform-origin: right;
    }
  }

#hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  margin-top: 106px;
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  background-color: rgba(0, 43, 92, 0.6);
  padding: 2rem;
  border-radius: 12px;
  max-width: 90%;
}

.btn-whatsapp {
  margin-top: 1rem;
  display: inline-block;
  background-color: #25d366;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
}

section {
  padding: 4rem 2rem;
  text-align: center;
  scroll-margin-top: 100px;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

.card {
  background: #f5faff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  font-size: 1.1rem;
}

.testimonios blockquote {
  background: #eef5ff;
  padding: 1.5rem;
  border-left: 5px solid #002b5c;
  margin: 1rem auto;
  max-width: 700px;
  font-style: italic;
  border-radius: 8px;
}

.testimonios footer {
  text-align: right;
  font-weight: bold;
  margin-top: 1rem;
}

footer {
  background: #002b5c;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

/* Hamburguesa animada */
.menu-toggle {
    width: 50px;
    height: 50px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border: none;
    cursor: pointer;
    padding: 15px;
    z-index: 1001;
    display: flex;
    border-radius: 25px;
    border: 1px solid #002b5c;
}

.menu-toggle.open .bar {
    background-color: #002b5c;
}

.menu-toggle .bar {
  height: 2px;
  width: 100%;
  background-color: #002b5c;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -5px);
}

#marketing p, #contacto p {
    text-align: left;
    padding: 0 9rem;
    font-size: 1.2rem;
    line-height: 1.6;
    font-family: "noto-light";
}

.carousel-container {
    width: auto;
    overflow: hidden;
    padding: 20px 9rem;
    box-sizing: border-box;
    margin-top: 50px;
  }

  .carousel-track {
    display: flex;
    gap: 40px;
    will-change: transform;
  }

  .carousel-item img {
    width: 100px;
    height: auto;
    filter: grayscale(100%);
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* Repetimos el contenido para efecto infinito */
  .carousel-track > * {
    flex: 0 0 auto;
  }

  .ia-section {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 4rem;
    padding: 0 9rem;
  }
  
  .ia-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease;
  }
  
  .ia-block.reverse {
    flex-direction: row-reverse;
    transform: translateX(100px);
  }
  
  .ia-block.show {
    opacity: 1;
    transform: translateX(0);
  }
  
  .ia-image {
    width: 40%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }
  
  .ia-text {
    flex: 1;
    text-align: left;
  }
  
  .ia-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: "space-bold";
  }
  
  .ia-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-family: "noto-light";
  }

  /* CONTENEDOR GENERAL */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 4rem;
  padding: 0 9rem;
}

/* CADA ÍTEM DE LA LISTA */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  opacity: 0;
  transform: translateX(-100px);
  transition: all 1s ease;
}

/* ANIMACIÓN DE ENTRADA */
.feature-item.show {
  opacity: 1;
  transform: translateX(0);
}

/* ÍCONOS CON FONT AWESOME */
.feature-item i {
  font-size: 100px;
  color: #002b5c;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* TEXTO A LA DERECHA DEL ICONO */
.feature-text {
  flex: 1;
  text-align: left;
}

.feature-text h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-family: "space-bold";
  color: #002b5c;
}

.feature-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  font-family: "noto-light";
  color: #333;
}

/* CTA AL FINAL */
.cta-web {
  margin-top: 3rem;
  text-align: center;
}


  
  @media (max-width: 768px) {
    .ia-section {
      padding: 0 2rem;
    }
  
    .ia-block {
      flex-direction: column;
      text-align: center;
    }
  
    .ia-block.reverse {
      flex-direction: column;
    }
  
    .ia-image {
      width: 100%;
    }
  
    .ia-text {
      text-align: center;
    }

    .features-grid {
      padding: 0 2rem;
    }
  
    .feature-item {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .feature-item i {
      font-size: 80px;
      width: auto;
      height: auto;
      margin-bottom: 1rem;
    }
  
    .feature-text {
      text-align: center;
    }
  
    .feature-text h3 {
      font-size: 1.6rem;
      margin-top: 0.5rem;
    }
  
    .feature-text p {
      font-size: 1rem;
      line-height: 1.5;
      text-align: left;
    }
  }
  

@media (max-width: 1280px) {
    .main-title {
        font-size: 5rem;
    }
}

@media (max-width: 1024px) {
    .wrapper-video {
        height: 320px;
    }

    #typewriter {
        white-space: inherit;
    }

    .main-title {
        font-size: 4rem;
    }

    .nav-links {
        margin-top: 20px;
    }

    .nav-links li {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {

  .wrapper-hidden-nav {
    flex-direction: column;
    align-items: center;
    margin-top: 160px;
  }

  .left-box {
    width: 70%;
  }

  .left-box::after {
    display: none;
  }

  .right-box {
    display: none;
  }

    .wrapper-video {
        height: 360px;
    }

    .chat-button {
        font-size: 20px;
        padding: 15px;
    }

    #typewriter {
        font-size: 1rem;
        white-space: inherit;
    }

    .video-transparent {
        width: 50%;
    }

    .nav-links-desk {
        display: none;
    }

    .nav-links {
        margin-top: 20px;
    }

    .nav-links li {
        font-size: 2rem;
    }

    .main-title {
        font-size: 3rem;
    }

    .main-title, .main-p, #contacto p {
        padding: 0 1.5rem;
    }

    #marketing p {
        padding: 0 2rem;
    }

    .navbar {
        padding: 1rem 4rem;
    }
}

@media (max-width: 568px) {

    .video-transparent {
        width: 65%;
    }

    .navbar {
        padding: 1rem 4rem;
    }
}

@media (max-width: 480px) {
    .video-transparent {
        width: 82%;
    }

    .main-title, .main-p {
        padding: 0 1rem;
    }

    #marketing p {
        padding: 0 1rem;
    }

    .navbar {
        padding: 1rem 3rem;
    }
}