/* Color Palette: Dark mode, highly premium, glassmorphism */
:root {
  --bg-dark: #070709;
  --bg-card: rgba(255, 255, 255, 0.02);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-muted: #8892b0;
  --accent-red: #E4405F;
  --accent-blue: #00f0ff;
  --gradient-text: linear-gradient(90deg, #ffffff 0%, #a8b2d1 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', 'Inter', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* Navbar Glass */
.navbar-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  background: rgba(7, 7, 9, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: all 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.brand img {
  height: 45px;
  /* Ligeramente más grande para compensar el padding */
  width: 45px;
  background: #ffffff;
  padding: 6px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
  /* Evitar que las palabras se amontonen una encima de otra */
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-btn-desktop {
  background: linear-gradient(135deg, var(--accent-red), #ff758c);
  color: #fff;
  padding: 10px 20px;
  /* Reducido ligeramente */
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 25px rgba(228, 64, 95, 0.3);
}

.nav-btn-desktop:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(228, 64, 95, 0.5);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-epic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.6;
  filter: grayscale(30%) contrast(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(7, 7, 9, 0.3) 0%, rgba(7, 7, 9, 0.9) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 1000px;
  padding: 0 20px;
  z-index: 1;
  animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-blue);
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 30px;
  color: #ffffff !important;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  letter-spacing: -1px;
  -webkit-text-fill-color: initial !important;
  background: none !important;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 45px;
  background: #fff;
  color: #000;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s ease;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
  border-radius: 50px;
  z-index: -1;
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-glow:hover {
  transform: scale(1.05);
}

.btn-glow:hover::after {
  opacity: 0.7;
}

/* Bento Grid Features */
.bento-section {
  padding: 150px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 100px;
}

.section-label {
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 700;
  display: block;
  margin-bottom: 15px;
}

.section-header h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.1;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(350px, auto);
  gap: 25px;
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 35px;
  padding: 45px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(228, 64, 95, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.bento-item:hover::before {
  opacity: 1;
}

/* Grid Placements */
.bento-large {
  grid-column: span 8;
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.5) 0%, rgba(10, 10, 15, 0.8) 100%);
  justify-content: center;
}

.bento-med {
  grid-column: span 4;
}

.bento-wide {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 400px;
  /* Incrementado para dar más espacio al contenido y botón */
}

/* Nested elements */
.bento-large-img {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  height: 120%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(-30px 20px 40px rgba(0, 0, 0, 0.9));
  z-index: 0;
}

.bento-item:hover .bento-large-img {
  transform: translateY(-50%) scale(1.08) translateX(-15px);
}

.bento-content {
  position: relative;
  z-index: 2;
  /* above images */
}

.bento-large .bento-content {
  max-width: 50%;
}

.bento-content h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.bento-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.bento-img-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
  z-index: 0;
}

.bento-item:hover .bento-img-bg {
  transform: scale(1.05);
}

.bento-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(7, 7, 9, 1) 0%, rgba(7, 7, 9, 0.3) 100%);
  z-index: 1;
}

.bento-content-bottom {
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.bento-content-bottom h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* Scrolling Marquee */
.marquee-section {
  padding: 80px 0;
  background: #050507;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  display: flex;
  position: relative;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 20%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(to right, #050507, transparent);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(to left, #050507, transparent);
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  gap: 100px;
  align-items: center;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 30px;
}

.marquee-item img {
  height: 65px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all 0.4s ease;
}

.marquee-item:hover img {
  opacity: 1;
  transform: scale(1.1);
}

.marquee-item span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 5px;
  color: #ffffff !important;
  text-transform: uppercase;
  -webkit-text-stroke: 0px transparent !important;
}

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

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

/* Call to Action */
.cta-epic {
  padding: 150px 5%;
  text-align: center;
  position: relative;
}

.cta-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 100px 40px;
  border-radius: 40px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(228, 64, 95, 0.15) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  animation: pulse 8s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.5;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

.cta-box h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 25px;
  font-weight: 800;
  line-height: 1.1;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.3rem;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer modern */
.footer-modern {
  border-top: 1px solid var(--border-glass);
  padding: 100px 5% 40px;
  background: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand img {
  background: #ffffff;
  padding: 10px 15px;
  border-radius: 12px;
  /* Redondeado elegante para logo rectangular */
  margin-bottom: 5px;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 25px;
  max-width: 350px;
  font-size: 1.05rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #fff;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 15px;
  font-size: 0.95rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1200px) {
  .bento-large {
    grid-column: span 12;
  }

  .bento-med {
    grid-column: span 6;
  }

  .bento-large-img {
    height: 100%;
    right: 0;
  }
}

@media (max-width: 1150px) {
  .navbar-modern {
    padding: 0 15px;
  }

  .brand-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7, 7, 9, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    z-index: 1000;
    padding: 20px;
    animation: fadeInMenu 0.4s ease forwards;
  }

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

  .nav-links a {
    font-size: 1.3rem;
    color: #fff;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-btn-desktop {
    display: none;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }

  .bento-wide {
    flex-direction: column;
    height: auto;
    align-items: flex-start;
    gap: 30px;
  }
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large,
  .bento-med,
  .bento-wide {
    grid-column: span 1;
  }

  .bento-large-img {
    position: relative;
    height: 250px;
    transform: none;
    top: auto;
    right: auto;
    margin-top: 30px;
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.5));
  }

  .bento-item:hover .bento-large-img {
    transform: none;
  }

  .bento-large .bento-content {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

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

  .nav-btn {
    display: none;
  }
}