:root {
  --primary: #000;
  --secondary: #f9f430;
  --light: #fff;
  --font: 'Poppins', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--primary);
  color: var(--light);
}

/* =========================
   HEADER
========================= */
.main-header {
  background: var(--primary);
  padding: 1rem 2rem;
  border-bottom: 1px solid #222;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--light);
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--secondary);
}

.btn-contact {
  background: var(--secondary);
  color: var(--primary) !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
}

.lang-selector {
  position: relative;
}

.lang-selector .dropdown {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background: #111;
  list-style: none;
  padding: 0.5rem 0;
}

.lang-selector:hover .dropdown {
  display: block;
}

/* =========================
   HERO
========================= */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 4rem 2rem;
  min-height: 80vh;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-img img {
  border-radius: 10px;
  max-width: 100%;
}

/* =========================
   CÓMO LO LOGRAMOS
========================= */
.how {
  padding: 4rem 2rem;
}

.how .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.how h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

/* CARDS */
.how .cards {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;        /* permite que bajen en móviles */
  max-width: 1000px;      /* ancho máximo del grupo de cards */
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.card {
  background: var(--secondary);
  color: var(--primary);
  padding: 2rem;
  border-radius: 10px;
  flex: 1;
  text-align: center;
  min-width: 250px;
  max-width: 300px;
}

/* =========================
   MÉTRICAS
========================= */
.metrics {
  display: flex;
  justify-content: space-around;
  padding: 4rem 2rem;
  background: #111;
  flex-wrap: wrap;
  gap: 2rem;
}

.metric span {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary);
}

/* =========================
   BRANDS
========================= */
.brands {
  padding: 4rem 2rem;
  text-align: center;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.brand {
  background: var(--secondary);
  color: var(--primary);
  padding: 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.05);
}

/* =========================
   FOOTER
========================= */
.main-footer {
  background: var(--primary);
  padding: 3rem 2rem;
  border-top: 1px solid #333;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--secondary);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--light);
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: var(--secondary);
}

.newsletter input {
  padding: 0.5rem;
  border: none;
  border-radius: 5px 0 0 5px;
}

.newsletter button {
  padding: 0.5rem 1rem;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .how .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    max-width: 100%;
  }

  .metrics {
    flex-direction: column;
    align-items: center;
  }
}
