/* ==========================================================
   CSS MexYoani - Estructurado por secciones y comentado
   ========================================================== */

/* ========== VARIABLES GLOBALES ========== */
:root {
  --color-bg: #0d0d0d;
  --color-dark: #1a1a1a;
  --color-blue: #3b82f6;
  --color-light-blue: #60a5fa;
  --color-white: #ffffff;
  --color-gray: #9ca3af;
  --color-footer: #0b0f34;
  --font-main: 'Inter', sans-serif;
  --color-morado: #0f2c4d;
}

/* ========== ESTILOS GLOBALES ========== */
body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-white);
  line-height: 1.6;
  scroll-behavior: smooth;
  text-align: center;
}

h1 {
  text-align: center;
  font-size: 3.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--color-bg);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border-radius: 2rem;
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
}

.logo {
  height: 120px;
  border-radius: 8%;
  object-fit: contain;
}

.nav-center {
  flex-direction: column;
  text-align: center;
  justify-content: center;
}

.nav-center h1 {
  font-size: 4.2rem;
  font-weight: 900;
  color: var(--color-white);
  text-shadow: 3px 3px 10px rgba(59, 130, 246, 0.5);
  letter-spacing: 1px;
  margin: 0;
}

.nav-center p {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-light-blue);
  margin: 0.5rem 0 0;
  text-shadow: 2px 2px 8px rgba(59, 130, 246, 0.4);
}

.cta-button {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.cta-button:hover {
  background-color: var(--color-light-blue);
  transform: scale(1.05);
}

/* ========== HERO ========== */
.hero {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #0d0d0d, #1a1a1a);
}

.hero h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--color-gray);
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.store {
  background: var(--color-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.store:hover {
  background-color: var(--color-light-blue);
  transform: scale(1.05);
}

.demo-video {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* ========== FUNCIONALIDADES ========== */
.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background-color: var(--color-dark);
  padding: 4rem 2rem;
  text-align: center;
}

.feature {
  max-width: 600px;
  margin: 0 auto;
}

.feature h2 {
  color: var(--color-light-blue);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.feature p {
  color: var(--color-gray);
  font-size: 1.2rem;
  text-align: center;
}

/* ========== GALERÍA EN FILA CON ANIMACIÓN ========== */
.gallery {
  padding: 4rem 2rem;
  background-color: var(--color-dark);
}

.gallery h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--color-white);
}

.screenshot-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  justify-content: center;
  align-items: center;
  scroll-behavior: smooth;
}

.screenshot-row img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 10px;
  animation: float 3s ease-in-out infinite;
  transition: transform 0.3s ease;
  /*box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);*/
}

.screenshot-row img:hover {
  transform: scale(1.05);
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ========== TECNOLOGÍAS ========== */
.technologies {
  background-color: #111827;
  padding: 4rem 2rem;
  text-align: center;
}

.technologies h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-white);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.tech-item {
  background-color: #1f2937;
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 260px;
  text-align: center;
  color: var(--color-gray);
  transition: transform 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px var(--color-blue);
}

.tech-item i,
.tech-icon {
  color: var(--color-blue);
  font-size: 2rem;
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.tech-item h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

/* ========== CTA DESCARGA ========== */
.cta {
  background: var(--color-morado);
  padding: 2rem 2rem;
  text-align: center;
  color: var(--color-white);
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta .store {
  background-color: #ffffff;
  color: var(--color-blue);
}

/* ========== FOOTER OSCURO ========== */
.footer {
  text-align: center;
  padding: 0.5rem 0.5rem;
  background: var(--color-footer);
  color: var(--color-gray);
  font-size: 0.875rem;
  border-top: 1px solid #333;
}

/* ========== ANIMACIONES ========== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.feature,
.gallery,
.cta {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
  .features {
    flex-direction: row;
    justify-content: space-around;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    border-radius: 2rem;
  }
  .nav-left,
  .nav-right {
    flex: 0 0 100%;
    justify-content: center;
  }
  .nav-center {
    flex: 0 0 100%;
  }
  .logo {
    height: 50px;
  }
  .nav-center h1 {
    font-size: 2rem;
  }
  .nav-center p {
    font-size: 1rem;
  }

  .screenshot-row img {
    max-width: 180px;
    border-radius: 6px;
  }

  .screenshot-row {
    gap: 0.1rem;
    padding: 1rem 0.1rem;
  }
}
