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

body {
  overflow-x: hidden;
  background-color: #000;
  font-family: 'Space Grotesk', sans-serif;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.navbar {
  max-width: 1200px;
  margin: 20px auto 0 auto; 
  padding: 15px 35px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  animation: slideDownFade 0.8s ease-out forwards;
  border-radius: 40px;
}



.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: center; 
  max-width: 1900px;
  margin: 0 auto;
  width: 100%;
}


.logo {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-right: 375px;
}

.logo img {
  height: 35px;   
  width: auto;    
  display: block; 
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
}

.nav-links a {
  color: white;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #8dcaba;
}

.arrow {
  font-size: 12px;
  margin-left: 5px;
}

.portfolio-btn a {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 2px solid #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  margin-left: 20%;
}




/*HERO*/


.hero {
  padding: 80px 40px;
  background-color: #000;
  color: white;
  margin-top: 100px;
  position: relative  ;
}

.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 30%;
  width: 690px;
  height: 550px;
  background: radial-gradient(
    ellipse at center,
    rgba(141, 202, 186, 0.4) 0%,
    transparent 90%
  );
  animation: flareMove 8s infinite ease-in-out, deformShape 6s infinite ease-in-out;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  border-radius: 70% 30% 80% 20% / 30% 80% 20% 70%;
  transform: translate(-50%, -50%) scale(1);
}

@keyframes flareMove {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(calc(-60% - 15px), calc(-50% + 15px)) scale(1.3);
    opacity: 0.7;
  }
}

@keyframes deformShape {
  0%, 100% {
    border-radius: 70% 30% 80% 20% / 30% 80% 20% 70%;
  }
  25% {
    border-radius: 40% 70% 20% 90% / 80% 20% 90% 40%;
  }
  50% {
    border-radius: 85% 15% 70% 30% / 10% 90% 30% 80%;
  }
  75% {
    border-radius: 50% 50% 90% 10% / 60% 40% 80% 20%;
  }
}




.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.4s forwards;
}


.hero-text p {
  font-size: 25px;
  margin-bottom: 40px;

  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.7s forwards;
}

.hero-text .highlight {
  color: #8dcaba;
  font-weight: 800;
}

.hero-buttons {
  display: flex;
  align-items: center; 
  gap: 20px;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 1s forwards;
}

.social-icons {
  display: flex;
  gap: 15px;
  align-items: center; 
}

.social-icons a {
  color: #726b6b  ;
  font-size: 22px; 
  transition: color 0.3s ease;
  transition: all 0.3s ease;
  text-shadow: 0 0 4px rgba(141, 202, 186, 0.5); 
}

.social-icons a:hover {
  color: #8dcaba;
  text-shadow:
    0 0 8px rgba(141, 202, 186, 0.8),
    0 0 12px rgba(141, 202, 186, 0.6),
    0 0 16px rgba(141, 202, 186, 0.4);
}


.btn {
  padding: 14px 26px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(90deg, #8dcaba, #288a91);
  color: black;
  border: 2px solid white;
  width: 150px;
  text-align: center;
}



.hero-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  row-gap: 30px; 
  justify-content: center;
  margin-top: 10px;
}

.hero-images img {
  width: 125px;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.2s ease-out;
  will-change: transform;
  position: relative; 
}

.hero-images video{
  width: 125px;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.2s ease-out;
  will-change: transform;
  position: relative; 
  top: 20px; 
}

.hero-images img:nth-child(5) {
  top: 20px; 
}



.wave-divider {
  line-height: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.wave-divider img {
  display: block;
  width: 100%;
  height: auto;
}


/*NEXA*/ 

.nexa-section {
  background-color: #1a1a1a;
  padding-bottom: 200px;
  padding-top: 100px;
  color: white;
}


.nexa-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left; 
}

.nexa-section h2 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 10px;
  font-family: 'Play', sans-serif;
  font-weight: 900
}

.nexa-highlight {
  display: inline-block;
  font-weight: 900;         
  font-size: 80px;          
  line-height: 1.1;
  background: linear-gradient(90deg, #c9ff00, #00fff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nexa-section p {
  font-size: 20px;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 40px;
}

.nexa-link {
  color: #8dcaba;
  font-weight: 700;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}




/* SERVICES SECTION */
.services-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 85vh;
  padding: 6rem 6%;
  background: linear-gradient(to right, #ffffff 60%, #f7fcff 100%);
  flex-wrap: nowrap;
  gap: 2rem;
  overflow: hidden; 
}

/* TEXTO DE LA SECCIÓN */
.services-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.services-text h2 {
  font-size: 5.5rem;
  line-height: 1.1;
  font-family: 'Play', sans-serif;
  font-weight: 900;
}

.services-text h2 span {
  display: block;
}

.services-text p {
  margin: 1.5rem 0;
  font-size: 1.4rem;
  color: #333;
}

.learn-btn {
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

/* WRAPPER CON LIMITACIÓN DE ANCHO */
.cards-carousel-wrapper {
  flex: 2;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

/* CARRUSEL FUNCIONAL */
.cards-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0 6% 1rem 6%;
  max-width: 100%;
}

.cards-carousel::-webkit-scrollbar {
  display: none;
}

/* TARJETA INDIVIDUAL */
.card {
  background-color: transparent;
  border-radius: 1.5rem;
  width: 480px;
  height: 480px;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
}


/* FLECHAS */
.carousel-arrows {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  padding-left: 1%;
}

.arrow-btn {
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.arrow-btn:hover {
  background-color: #8dcaba;
  color: #fff;
}


.curved-edge {
  --c: 70px; 
  height: 100%;
  aspect-ratio: auto;
  mask: radial-gradient(60% var(--c) at 50% var(--c), #0000 calc(100% - 2px), #000) 0 calc(-1 * var(--c));
}

.fondo-services {
  background: linear-gradient(to bottom, #1a1a1a 0%, white 100%);
} 




.highlight-wrapper {
  background-color: white;
  width: 100%;
  padding: 95px;
}

.highlight-section {
  display: flex;
  max-width: 1150px;
  margin: 0 auto;
  font-family: sans-serif;
}
.left-box {
  background-color: #f3f2ea;
  padding: 60px;
  border-top-left-radius: 100px;
  flex: 1;
}

.left-box h2 {
  font-family: 'Play', sans-serif;
  font-weight: 900;
  font-size: 70px;
  line-height: 1.1;       
  letter-spacing: -5px;   
}

.right-box {
  background-color: #000;
  color: #fff;
  padding: 60px;
  border-bottom-right-radius: 100px;
  flex: 0.9;
  transform: scale(1.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;
  justify-content: center;  
  align-items: center;     
}

.right-box p {
  font-size: 1.6rem;
  line-height: 1.5  ;
  margin-bottom: 30px;
}






.site-footer {
  background-color: #000;
  color: #fff;
  padding: 3rem 0;
  font-family: sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-about h3,
.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 70px;        
  width: auto;        
  display: block;
  margin-top: 1.5rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-left: 170px; 
}

.footer-section ul {
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: #8dcaba;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-socials a i {
  font-size: 20px;
  color: white;
  transition: color 0.3s ease;
}

.footer-socials a:hover i {
  color: #8dcaba;
}

.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

@media (max-height:600px){
  .hero{
      margin-top: 10px;
  }

  .services-section {
    padding: 5rem 5%;
    min-height: 75vh; 
    gap: 1.5rem;
  }

  .services-text h2 {
    font-size: 4.8rem; 
  }

  .services-text p {
    font-size: 1.3rem;  
  }

  .learn-btn {
    padding: 0.65rem 1.3rem;
    font-size: 0.95rem;
  }

  .card {
    width: 420px;  
    height: 420px;
  }

  .highlight-wrapper {
    padding: 60px;
  }

  .highlight-section {
    max-width: 1000px;
    gap: 1.5rem;
  }

  .left-box,
  .right-box {
    padding: 40px;
    border-radius: 60px;
  }

  .left-box h2 {
    font-size: 50px;
    letter-spacing: -3px;
  }

  .right-box p {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .right-box {
    transform: scale(1.03); 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  }

}

/* Responsive Layout */
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}


@media (max-width: 768px) {

   .hamburger {
    display: block;
    font-size: 28px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }


  .navbar {
    left: 0;
    padding: 10px 20px;
    border-radius: 0;
  }

   .navbar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .logo {
    margin-right: 0;
    font-size: 24px;
    order: 1;
  }

  .portfolio-btn{
    display: none;
  }

  

  .contact-btn {
    display: none;
  }


  .hero {
    padding: 60px 20px;
    margin-top: 50px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .hero-text p {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-images {
    column-gap: 15px;
    row-gap: 20px;
    top: 0 !important;
  }

  .hero-images img{
    width: 100px;
    height: 192px;
  }

  .hero-images video{
    width: 100px;
    height: 192px;
  }

  .nexa-section {
    padding-top: 80px;
    padding-bottom: 130px;
  }

  .nexa-section h2 {
    font-size: 32px;
    margin-left: 15px;
  }

  .nexa-section p{
    margin-left: 15px;
  }

  .nexa-highlight {
    font-size: 50px;
  }

  .nexa-link{
    margin-left: 15px;

  }

  .services-section {
    flex-direction: column;
    padding: 4rem 5%;
  }

  .services-text h2 {
    font-size: 2.8rem;
    text-align: center;
  }

  .services-text p {
    display: none;
  }
  
  .learn-btn{
    display: none;
  }

  .cards-carousel {
    max-height:450px ;
  }

  .cards-carousel img {
    width: 330px;
    height: 380px;
  }

  .arrow-btn {
  margin-top: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  }

  .carousel-arrows {
    margin-top: 0.1rem;    
    padding-left: 0;       
  }

  .curved-edge {
    --c: 0; 
    mask: none; 
  }

  .highlight-section {
    flex-direction: column;
    align-items: center;
  }

  .right-box {
    display: none;
  }

  .left-box {
    width: 100%;
    padding: 30px 20px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px; 
  }

  .left-box h2 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -1px;
    }

  .highlight-wrapper {
    padding: 40px 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    padding-left: 0;
  }
}