/* =========================
   VARIABLES
========================= */

:root {
  --primary: #01c38e;

  --primary-light: #00d89d;

  --accent: #01c38e;

  --white: #ffffff;

  --bg: #132d46;

  --bg-dark: #1a1e29;

  --text: #ffffff;

  --text-light: #94a3b8;

  --border: rgba(255, 255, 255, 0.08);

  --shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* =========================
   HEADER
========================= */

.header {
  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 20px 8%;

  background: rgba(26, 30, 41, 0.9);

  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  z-index: 999;
}

.logo {
  display: flex;

  align-items: center;

  gap: 12px;

  font-size: 1.2rem;

  font-weight: 700;

  color: var(--primary);
}

.logo img {
  width: 80px;

  height: 80px;

  object-fit: contain;

  border-radius: 100px;

  filter: drop-shadow(0 0 8px rgba(1, 195, 142, 0.35));
}

.navbar {
  display: flex;

  gap: 35px;
}

.navbar a {
  color: #cbd5e1;

  font-size: 0.95rem;

  font-weight: 500;

  transition: 0.3s;
}

.navbar a:hover {
  color: var(--primary-light);
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;

  display: grid;

  grid-template-columns: 1fr 1fr;

  align-items: center;

  padding: 120px 8% 80px;

  gap: 60px;

  background:
    radial-gradient(
      circle at top left,
      rgba(1, 195, 142, 0.15),
      transparent 40%
    ),
    linear-gradient(135deg, #132d46, #1a1e29);
}

.badge {
  display: inline-block;

  padding: 10px 18px;

  border-radius: 50px;

  background: rgba(1, 195, 142, 0.15);

  color: #01c38e;

  border: 1px solid rgba(1, 195, 142, 0.3);

  font-size: 0.85rem;

  font-weight: 600;

  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;

  line-height: 1.1;

  color: white;

  margin-bottom: 25px;
}

.hero p {
  font-size: 1.1rem;

  color: var(--text-light);

  margin-bottom: 35px;

  line-height: 1.8;
}

.btn {
  display: inline-block;

  background: #01c38e;

  color: white;

  box-shadow: 0 0 20px rgba(1, 195, 142, 0.35);

  padding: 15px 28px;

  border-radius: 50px;

  font-weight: 600;

  transition: 0.3s;
}

.btn:hover {
  background: #00d89d;

  transform: translateY(-4px);
}

.hero-image {
  display: flex;

  justify-content: center;
}

.hero-image img {
  max-width: 850px;

  border-radius: 25px;

  box-shadow: 0 0 40px rgba(1, 195, 142, 0.15);
}

/* =========================
   STATS
========================= */

.stats {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;

  padding: 20px 8% 80px;
}

.stat-card {
  text-align: center;

  padding: 30px;

  background: #132d46;

  border: 1px solid rgba(255, 255, 255, 0.05);

  border-radius: 18px;
}

.stat-card h2 {
  font-size: 2rem;

  color: #01c38e;

  margin-bottom: 10px;
}

.stat-card p {
  color: var(--text-light);
}

/* =========================
   PARTNERS
========================= */

.partners {
  padding: 20px 8% 90px;

  text-align: center;

  background: #1a1e29;
}

.partners-title {
  color: var(--text-light);

  display: block;

  margin-bottom: 30px;
}

.partners-logos {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 40px;

  color: rgba(255, 255, 255, 0.35);
}

.partners-logos span {
  color: #94a3b8;

  font-size: 1rem;

  font-weight: 600;

  letter-spacing: 2px;
}

/* =========================
   SECCIONES
========================= */

.section {
  padding: 110px 8%;
}

.bg-light {
  background: #132d46;
}

.section-title {
  text-align: center;

  margin-bottom: 60px;
}

.section-title span {
  color: var(--primary-light);

  font-weight: 600;
}

.section-title h2 {
  margin-top: 15px;

  font-size: 2.5rem;

  color: white;
}

/* =========================
   PROBLEMA
========================= */

.problem-card {
  max-width: 900px;

  margin: auto;

  background: #ffffff;

  color: #1a1e29;

  padding: 40px;

  border-radius: 20px;

  box-shadow: var(--shadow);
}

.problem-card p {
  margin-bottom: 20px;

  line-height: 1.9;

  color: black;
}

/* =========================
   SOLUCIÓN
========================= */

.solution-text {
  text-align: center;

  max-width: 800px;

  margin: 0 auto 50px;

  color: var(--text-light);
}

.solution-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.card {
  background: #ffffff;

  color: #1a1e29;

  padding: 35px;

  border-radius: 20px;

  border: 1px solid var(--border);

  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 15px;

  color: var(--primary);
}

/* =========================
   FUNCIONAMIENTO
========================= */

.steps {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 25px;
}

.step {
  background: #ffffff;

  color: #1a1e29;

  padding: 35px;

  text-align: center;

  border-radius: 20px;
}

.icon {
  font-size: 3rem;

  margin-bottom: 20px;
}

.step h3 {
  color: var(--primary);

  margin-bottom: 10px;
}

/* =========================
   IMPACTO
========================= */

.impact-content {
  text-align: center;

  max-width: 800px;

  margin: auto;

  color: var(--text-light);
}

.impact-grid {
  margin-top: 50px;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
}

.impact-card {
  background: #01c38e;

  color: white;

  box-shadow: 0 0 20px rgba(1, 195, 142, 0.25);

  text-align: center;

  padding: 25px;

  border-radius: 15px;

  font-weight: 600;
}

/* =========================
   TECNOLOGÍAS
========================= */

.tech-grid {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 25px;
}

.tech-card {
  background: #ffffff;

  color: #1a1e29;

  padding: 30px;

  border-radius: 18px;

  border: 1px solid var(--border);

  flex: 0 1 calc(25% - 25px);

  min-width: 250px;
}

.tech-card h3 {
  color: var(--primary);

  margin-bottom: 15px;
}

/* =========================
   GALERÍA
========================= */

.gallery {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 20px;
}

.gallery img {
  border-radius: 20px;

  height: 300px;

  object-fit: cover;

  transition: 0.3s;
}

.gallery img:hover {
  transform: scale(1.02);
}

/* =========================
   VIDEOS
========================= */

.video-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 25px;
}

.video-grid iframe {
  width: 100%;

  height: 350px;

  border: none;

  border-radius: 20px;
}

.video-grid video {
  width: 100%;

  height: 350px;

  object-fit: cover;

  border-radius: 20px;

  background: #000;
}

/* =========================
   EQUIPO
========================= */

.team-box {
  max-width: 800px;

  margin: auto;

  text-align: center;
}

.team-box p {
  margin-bottom: 20px;

  color: var(--text-light);
}

/* =========================
   FOOTER
========================= */

footer {
  background: #132d46;

  border-top: 1px solid rgba(255, 255, 255, 0.05);

  color: white;

  text-align: center;

  padding: 40px;
}

footer h3 {
  margin-bottom: 10px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    display: none;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.3rem;
  }
}

/* =========================
   MENÚ MÓVIL
========================= */

.menu-toggle {
  display: none;

  font-size: 1.8rem;

  cursor: pointer;

  color: var(--primary);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    position: absolute;

    top: 100%;

    left: 0;

    width: 100%;

    background: white;

    flex-direction: column;

    align-items: center;

    padding: 25px 0;

    border-top: 1px solid var(--border);

    display: none;
  }

  .navbar.active {
    display: flex;
  }
}

.carousel {
  position: relative;

  overflow: hidden;

  max-width: 1000px;

  margin: auto;
}

.images-track {
  display: flex;

  transition: transform 0.6s ease;
}

.images-track img {
  min-width: 100%;

  height: 500px;

  object-fit: cover;

  border-radius: 20px;
}

.videos-track {
  display: flex;

  transition: transform 0.6s ease;
}

.videos-track video {
  min-width: 100%;

  height: 500px;

  object-fit: cover;

  border-radius: 20px;

  background: black;
}

.images-prev,
.images-next,
.videos-prev,
.videos-next {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 50px;

  height: 50px;

  border: none;

  border-radius: 50%;

  cursor: pointer;

  z-index: 10;

  background: rgba(0, 0, 0, 0.6);

  color: white;
}

.images-prev,
.videos-prev {
  left: 20px;
}

.images-next,
.videos-next {
  right: 20px;
}
