/* =========================
   Base / Variables / Reset
========================= */
:root {
  --primary-bg: #001c2b;
  --accent-color: #f7931e;
  --hover-color: #00ccff;
  --text-color: #ffffff;
  --font-family: 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--primary-bg);
  color: var(--text-color);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

/* Accesibilidad: foco visible */
a:focus-visible, button:focus-visible {
  outline: 2px dashed var(--hover-color);
  outline-offset: 2px;
}

/* =========================
   Layout: Navbar
========================= */
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #001622;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--accent-color);
}

.logo img { height: 32px; }

.nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap; /* evita desborde en pantallas pequeñas */
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
}

.nav-links a:hover { color: var(--hover-color); }

/* Link activo por accesibilidad/UX */
.nav-links a[aria-current="page"] {
  color: var(--accent-color);
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  margin: 0 auto;
  width: 28px; height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
}

/* =========================
   Botones / CTA
========================= */
.cta-button {
  background-color: var(--accent-color);
  color: #00141f;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.telegram-button {
  display: inline-block;
  background-color: #229ED9;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}
.telegram-button:hover { background-color: #1b88c5; }

.secondary-button {
  display: inline-block;
  background: transparent;
  color: var(--hover-color);
  padding: 12px 20px;
  border-radius: 8px;
  border: 2px solid var(--hover-color);
  font-weight: 700;
  text-decoration: none;
  margin-top: 20px;
  transition: all .25s ease;
}
.secondary-button:hover {
  background: var(--hover-color);
  color: #00141f;
}

/* =========================
   Contenedor / Títulos
========================= */
.container {
  max-width: 900px;
  margin: 80px auto 40px;
  padding: 0 20px;
  text-align: center;
}

h1, h2 {
  margin-top: 0;
  color: var(--accent-color);
  text-align: center;
}

/* =========================
   Cards (home)
========================= */
.highlights { margin-top: 30px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  text-align: left;
}

.card h3 { margin-top: 0; color: #ffe0b3; }

/* =========================
   FAQ
========================= */
.faq details {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  margin: 10px 0;
  padding: 14px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-color);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: #ffd08a; }
.faq details div { margin-top: 10px; color: #eaeaea; }

/* =========================
   Footer + Partner (anti-bloqueadores)
========================= */
footer.footer {
  background-color: #041f2b;
  padding: 20px;
  margin-top: 40px;
  text-align: center;
}

footer.footer img {
  height: 40px;
  margin-bottom: 10px;
}

.footer .partner-cta { margin: 10px 0 6px; color: #eaeaea; }
.footer .partner-link { display: inline-block; margin-top: 4px; }
.footer .partner-logo {
  height: 45px; max-width: 200px;
  transition: transform .25s ease, opacity .25s ease;
  display: block;
}
.footer .partner-logo:hover { transform: scale(1.05); opacity: .9; }

/* =========================
   Equipos Recomendados (responsive)
========================= */
/* Banner cupón */
.coupon-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(34,158,217,0.15), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0 18px;
}
.coupon-text {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0; /* evita overflow */
}
.coupon-text img { height: 34px; flex-shrink: 0; }
.coupon-text h2 { margin: 0 0 4px; color: #ffe0b3; font-size: 1.2rem; }
.coupon-text p { margin: 0; color: #eaeaea; }
.coupon-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
#coupon-code {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
}
#copy-coupon {
  background: var(--accent-color);
  border: none;
  color: #00141f;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
#copy-coupon:hover { filter: brightness(0.95); }

/* Grid productos auto-fit */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  overflow: hidden;
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;   /* proporción estable */
  object-fit: contain;   /* evita deformación */
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
}
.product-card h3 {
  margin: 4px 0 0;
  color: #ffe0b3;
  font-size: 1.05rem;
}
.product-card .desc { margin: 0; color: #eaeaea; }
.product-card .price { margin: 0; color: #cfe8ff; }
.buy-btn {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  background: #229ED9;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
  word-break: keep-all;
}
.buy-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.25); }

.note { margin-top: 10px; color: #eaeaea; }

/* =========================
   Media queries
========================= */
@media (max-width: 900px) {
  /* Navbar móvil */
  .menu-toggle { display: block; }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 10px;
  }
  .nav-links.active { display: flex; }
  .nav-links a, .cta-button { padding: 10px 0; }

  /* Equipos: banner columna única */
  .coupon-banner {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .coupon-copy { justify-self: start; }
}

@media (max-width: 900px) {
  /* Cards del home en 1 columna */
  .cards { grid-template-columns: 1fr; }
  .secondary-button, .telegram-button {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 580px) {
  .coupon-text img { height: 28px; }
  .coupon-text h2 { font-size: 1.05rem; }
  #coupon-code { font-size: 0.95rem; }
  #copy-coupon { width: auto; }
  .buy-btn { width: 100%; }
}
