:root {
  --bg-color: #ffffff;
  --surface-color: #ffffff;
  --primary-color: #000000;
  --secondary-color: #000000;
  --text-primary: #ffffff;
  --text-dark: #000000;
  --text-secondary: rgba(0, 0, 0, 0.6);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: #ffffff;
  /* Base page color */
  color: var(--text-dark);
}

a {
  text-decoration: none;
}

/* NAVBAR */
.navbar {
  padding: 1.5rem 2rem;
  background-color: transparent;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dark);
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #000000;
  opacity: 0.6;
}

.nav-links .arrow {
  font-size: 0.7rem;
  opacity: 0.6;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-login {
  color: var(--text-dark);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.btn-login:hover {
  background-color: #000000;
  color: #ffffff;
}

.btn-primary-nav {
  background-color: #000000;
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.btn-primary-nav:hover {
  background-color: #ffffff;
  color: #000000;
}

/* HERO BLOCK */
.hero-block {
  position: relative;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 2rem 0 0 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  /* subtle texture/noise and inner glow */
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 25px 25px;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.1);
}

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.badge {
  display: inline-block;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  color: #000000;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-transform: uppercase;
  box-shadow: none;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  display: inline-block;
  background: linear-gradient(135deg, #000000, #333333);
  color: #ffffff;
  padding: 0 1rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: rotate(-2deg);
  margin-top: 0.5rem;
  transition: transform 0.4s ease;
}
.hero-title .highlight:hover {
  transform: rotate(0deg) scale(1.05);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
  opacity: 0.95;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  font-family: var(--font-title);
  font-weight: 600;
  padding: 1.1rem 2rem;
  border-radius: 12px;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-light {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: none;
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  color: #000000;
}

.btn-dark {
  background-color: var(--bg-color);
  color: var(--text-primary);
}

.btn-dark:hover {
  background-color: #1a1f2b;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  align-self: flex-end;
}

.hero-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin-bottom: 0;
  transform-origin: bottom center;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.3));
}

.hero-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

/* VIDEO BLOCK */
.video-block {
  padding: 8rem 0;
  background-color: #ffffff;
}

.video-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.video-text-card {
  background: #ffffff;
  padding: 4rem 6rem 4rem 4rem;
  border-radius: 30px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  color: var(--text-dark);
  box-shadow: none;
  margin-right: -6rem;
  position: relative;
  z-index: 1;
}

.card-title {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.highlight-white {
  background: #000000;
  color: #ffffff;
  padding: 0 0.8rem;
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-2deg);
  margin-top: 0.5rem;
}

.card-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-family: var(--font-body);
  color: var(--text-dark);
}

.video-player-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.showcase-video {
  width: 100%;
  max-width: 380px;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  border: 12px solid #f8f9fa;
  object-fit: cover;
}

.showcase-video-large {
  max-width: 100%; /* Elimina el límite de 380px */
  border-radius: 16px; /* Borde más sutil y moderno */
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.04); /* Borde limpio B/N */
  box-shadow: none;
}

.mt-4 {
  margin-top: 1rem;
}

/* GALLERY BLOCK */
.gallery-block {
  padding: 6rem 0;
  background-color: #ffffff;
}

.gallery-block .container {
  display: block;
}

.title-box {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  padding: 1.5rem 4rem;
  border-radius: 30px;
  width: fit-content;
  margin: 0 auto 3.5rem auto;
  box-shadow: none;
}

.section-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.gallery-masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

.gallery-item {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  transform: translateZ(0);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.gallery-item:hover {
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .gallery-masonry {
    column-count: 1;
  }
  .gallery-item {
    aspect-ratio: 1 / 1;
  }
}

/* LOGOS CAROUSEL */
.logos-block {
  background-color: #000000;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.logos-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.logos-slider::before,
.logos-slider::after {
  background: linear-gradient(to right, #000000 0%, rgba(0, 0, 0, 0) 100%);
  content: "";
  height: 100%;
  position: absolute;
  width: 250px;
  /* Aumentado para cubrir mejor los logos más grandes */
  z-index: 2;
  top: 0;
}

.logos-slider::before {
  left: 0;
}

.logos-slider::after {
  right: 0;
  transform: rotateZ(180deg);
}

.logos-slide-track {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
  align-items: center;
}

.logos-slide-track:hover {
  animation-play-state: paused;
}

.logos-slide-track img {
  width: 420px;
  /* +40% de 300px */
  height: 210px;
  /* +40% de 150px */
  padding: 0 3rem;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.8);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.logos-slide-track img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.15);
}

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

  100% {
    transform: translateX(-50%);
  }
}


/* ANIMATIONS & MICRO-INTERACTIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
.animate-fade-up {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-fade-left {
  animation: fadeLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hover-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

/* CLEANED INLINE STYLES */
.video-block-alt {
  padding-top: 0;
}
.video-container-alt {
  direction: rtl;
  grid-template-columns: 1fr 1.8fr;
}
.video-text-card-alt {
  direction: ltr;
  margin: 0 0 0 -3rem;
  padding: 3rem 2rem 3rem 5rem;
}
.card-title-alt {
  font-size: 2.5rem;
}
.wrapper-ltr {
  direction: ltr;
}

/* RESPONSIVE DESIGN FOR MOBILE */
@media (max-width: 768px) {
  /* Hero */
  .hero-block {
    padding: 2rem 0;
  }
  .container {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 0 1.5rem;
    gap: 2rem;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
  }
  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .hero-image-wrapper {
    align-self: center;
    margin-top: 1rem;
  }
  
  /* Video Block */
  .video-block {
    padding: 4rem 0 !important;
  }
  .video-container {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    gap: 2rem;
  }
  .video-text-card {
    padding: 2.5rem 1.5rem !important;
    margin: 0 !important;
    text-align: center;
  }
  .card-title {
    font-size: 2.2rem !important;
  }
  .showcase-video {
    max-width: 100%;
  }
  
  /* Gallery Title */
  .title-box {
    padding: 1.2rem 2rem;
    width: 100%;
    margin-bottom: 2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  
  /* Logos */
  .logos-slide-track img {
    width: 220px;
    height: 110px;
    padding: 0 1.5rem;
  }
  .logos-slider::before,
  .logos-slider::after {
    width: 60px;
  }
}