/* ==== RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background: linear-gradient(120deg, #0a0f1e, #101b3a);
  overflow-x: hidden;
}

/* ==== NAVBAR ==== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  z-index: 100;
  top: 0;
}

.navbar .logo {
  font-size: 1.8em;
  font-weight: 600;
  color: #00c6ff;
}

.navbar nav {
  display: flex;
  align-items: center;
}

.navbar nav a {
  color: #eee;
  margin: 0 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: #00c6ff;
}

.buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buttons .btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary {
  background: #00c6ff;
  color: #fff;
}

.btn-primary:hover {
  background: #00a0cc;
}

.btn-outline {
  border: 1px solid #00c6ff;
  color: #00c6ff;
}

.btn-outline:hover {
  background: #00c6ff;
  color: #fff;
}

/* ==== HERO ==== */
.hero {
  min-height: 100vh;
  background: url('https://images.unsplash.com/photo-1622630945670-64a73af7b9c3?auto=format&fit=crop&w=1400&q=80') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 120px; /* evita que el nav tape el texto */
}

/* efecto máquina de escribir multilinea */
.typing {
  display: inline-block;
  overflow: hidden;
  border-right: 4px solid #d3eee1;
  font-family: 'Courier New', monospace;
  font-size: 2.5rem;
  color: #00c6ff;
  letter-spacing: 1px;
  line-height: 1.4;
  animation: typing 4s steps(40, end), blink-cursor 0.75s step-end infinite;
  white-space: pre-line; /* permite salto de línea */
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-cursor {
  from, to { border-color: transparent }
  50% { border-color: #d8e3e6; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 20px;
}

.hero p {
  font-size: 1.1em;
  color: #ddd;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  margin: 0 10px;
}

/* ==== STATS ==== */
.stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 80px 20px;
  background: #0f162b;
}

.stat-card {
  text-align: center;
}

.stat-card h3 {
  font-size: 2.5em;
  color: #00c6ff;
}

.stat-card p {
  font-size: 1em;
  color: #ccc;
}

/* ==== FEATURES ==== */
.features {
  padding: 100px 40px;
  background: #141d33;
  text-align: center;
}

.features h2 {
  color: #00c6ff;
  font-size: 2em;
  margin-bottom: 40px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.feature-card {
  background: #0f162b;
  border-radius: 10px;
  padding: 30px;
  width: 300px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 198, 255, 0.2);
}

.feature-card img {
  width: 60px;
  margin-bottom: 15px;
}

.feature-card h3 {
  color: #00c6ff;
  margin-bottom: 10px;
}

/* ==== FOOTER ==== */
footer {
  background: #0a0f1e;
  text-align: center;
  padding: 20px;
  color: #aaa;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 992px) {
  .navbar {
    padding: 15px 25px;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-content {
    max-width: 90%;
  }

  .typing {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  /* Navbar responsive */
  .navbar {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 15px 20px;
  }

  .navbar nav {
    display: none;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
  }

  .buttons .btn {
    width: 80%;
    text-align: center;
  }

  /* Hero responsive */
  .hero {
    padding-top: 160px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .typing {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 80%;
    margin: 0 auto;
  }

  /* Secciones */
  .stats {
    flex-direction: column;
    gap: 40px;
  }

  .features-grid {
    flex-direction: column;
    align-items: center;
  }
}








/* Botón de bandera */
.btn-flag {
  color: white;
  font-size: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-left: 10px;
  display: flex;
  align-items: center;
}

.btn-flag img {
  display: block;
  width: 24px;
  height: 16px;
  object-fit: cover;
  transition: transform 0.2s;
}

.btn-flag:hover img {
  transform: scale(1.2);
}
