/* ══════════════════════════════════════
   VARIABLES
══════════════════════════════════════ */
:root {
  --azul: #0072bb;
  --azul-dark: #005c95;
  --azul-hero: #0a1628;
  --neon: #c8f000;
  --neon-dark: #a8d000;
  --gris-claro: #f5f8fb;
  --blanco: #ffffff;
  --negro: #111;
  --texto: #222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
}

body {
  background: var(--blanco);
  color: var(--texto);
}

html { scroll-behavior: smooth; }

section { padding: 100px 40px; }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  color: var(--azul);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 1px;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #444;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
nav a:hover { color: var(--azul); }

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--azul);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 90vh;
  background:
    linear-gradient(rgba(0, 60, 130, 0.88), rgba(0, 40, 100, 0.92)),
    url("hero-data.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 80px 40px;
}

.hero-label {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.85;
}

.hero h1 {
  font-size: clamp(56px, 10vw, 100px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-sub {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════
   PROMO
══════════════════════════════════════ */
.promo {
  background: var(--azul:);
  padding: 80px 40px;
}

.promo-inner {
  max-width: 900px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.promo-pregunta {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.promo-desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.highlight {
  color: var(--azul);
  font-weight: 700;
}

.codigo {
  display: inline-block;
  background: var(--azul);
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 12px 32px;
  border-radius: 10px;
  border: 3px solid var(--azul-dark);
}

/* Ticket de compra */
.ticket {
  background: white;
  border-radius: 14px;
  padding: 24px 30px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  min-width: 260px;
  font-size: 0.95rem;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: #333;
}

.ticket-row.sub { color: #888; font-size: 0.88rem; }
.ticket-row.descuento { color: #e53935; font-size: 0.88rem; }
.ticket-row.total { font-weight: 800; font-size: 1.1rem; color: #111; }

.ticket-divider {
  height: 1px;
  background: #eee;
  margin: 8px 0;
}

/* ══════════════════════════════════════
   CURSOS – con fondo imagen
══════════════════════════════════════ */
.cursos {
  text-align: center;
  background:
    linear-gradient(rgba(10, 22, 40, 0.82), rgba(10, 22, 40, 0.82)),
    url("cursos.jpg") center/cover no-repeat;
  background-attachment: fixed;
}

.cursos h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 40px;
  color: white;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: white;
  padding: 40px 32px;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #111;
}

.card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}
/* ══════════════════════════════════════
   DISCORD – fondo + card flotante
══════════════════════════════════════ */
.discord-section {
  background:
    linear-gradient(rgba(0, 30, 80, 0.88), rgba(0, 30, 80, 0.88)),
    url("img/bg-discord.jpg") center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 60px;
}

/* Tarjeta flotante centrada */
.discord-float {
  display: flex;
  align-items: center;
  gap: 60px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  padding: 50px 60px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  flex-wrap: wrap;
  justify-content: center;
}

.discord-left h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.discord-left p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}

/* ══════════════════════════════════════
   HERRAMIENTAS – fix con imágenes propias
══════════════════════════════════════ */
.herramientas {
  padding: 80px 40px;
  text-align: center;
  background: white;
}

.herramientas h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 50px;
}

.tools {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

/* Cada tool es una columna centrada */
.tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* La imagen del logo */
.tool img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 16px;
}

/* Texto debajo del logo (ej: "Excel") */
.btn-excel {
  background: var(--azul);
  color: white;
  border: none;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: default;
  margin: 0;
}

/* Botón "Proximamente" debajo del logo */
.btn-prox {
  background: var(--azul);
  color: white;
  border: none;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: default;
  margin: 0;
}
/* ══════════════════════════════════════
   BOTONES
══════════════════════════════════════ */
.btn-neon {
  background: var(--neon);
  color: #111;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 16px;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-neon:hover { background: var(--neon-dark); transform: scale(1.04); }

.btn-blue {
  background: var(--azul);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 16px;
  transition: background 0.2s;
}
.btn-blue:hover { background: var(--azul-dark); }

/* Widget discord */
.discord-widget {
  background: var(--azul);
  color: white;
  border-radius: 12px;
  overflow: hidden;
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(0,114,187,0.3);
}
.widget-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px 10px;
  font-weight: 700; font-size: 0.95rem;
}
.widget-icon {
  background: #1ed760; color: white;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 900;
}
.widget-members { background: #1a5fa0; padding: 14px 20px 18px; }
.widget-count { display: block; font-size: 2.2rem; font-weight: 900; line-height: 1; }
.widget-label { font-size: 0.8rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }

/* newsletter form inline */
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-prox {
  background: var(--azul);
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: default;
  font-weight: 500;
}

/* ══════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════ */
.newsletter {
  background: #0a1628;
  color: white;
  padding: 80px 60px;
}

.newsletter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.newsletter-left h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter-left p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.newsletter-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter input {
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 0.95rem;
  width: 240px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter input:focus { border-color: var(--azul); }

.newsletter-cta {
  text-align: center;
}

.newsletter-cta h3 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--azul);
  margin-bottom: 20px;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  text-align: center;
  padding: 28px;
  background: var(--negro);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* ══════════════════════════════════════
   WHATSAPP
══════════════════════════════════════ */
.whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.3s;
}
.whatsapp:hover { transform: scale(1.1); }
.whatsapp img { width: 34px; }

/* ══════════════════════════════════════
   ANIMACIONES
══════════════════════════════════════ */
.animar {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animar.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    padding: 16px 24px;
    gap: 10px;
  }

  .menu-toggle { display: block; }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 12px;
    padding: 12px 0;
  }
  nav.active { display: flex; }
  nav a { margin-left: 0; }

  .hero h1 { font-size: 52px; }

  .promo-inner { flex-direction: column; align-items: flex-start; }

  .cards { flex-direction: column; align-items: center; }

  .discord { flex-direction: column; text-align: center; padding: 80px 30px; }

  .discord-member-bar { justify-content: center; }

  .tools { gap: 36px; }

  .newsletter-inner { flex-direction: column; }
  .newsletter-right { flex-direction: column; }
  .newsletter input { width: 100%; }

  section { padding: 80px 24px; }
}

/* ══════════════════════════════════════
   HEADER SCROLL
══════════════════════════════════════ */
header.scrolled {
  background: #0a1628;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
header.scrolled .logo { color: white; }
header.scrolled nav a { color: rgba(255,255,255,0.8); }
header.scrolled nav a:hover { color: white; }
header.scrolled .menu-toggle { color: white; }

/* ══════════════════════════════════════
   HERO BOTONES
══════════════════════════════════════ */
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn-neon-hero {
  background: var(--neon);
  color: #111;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-neon-hero:hover { background: var(--neon-dark); transform: scale(1.04); }

.btn-outline-hero {
  background: transparent;
  color: white;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.btn-outline-hero:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ══════════════════════════════════════
   STATS / CONTADOR
══════════════════════════════════════ */
.stats {
  background: #0a1628;
  padding: 70px 40px;
}
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
}
.stat-item {
  text-align: center;
  color: white;
}
.stat-num-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--neon);
  line-height: 1;
}
.stat-plus {
  font-size: 2rem;
  font-weight: 900;
  color: var(--neon);
  margin-bottom: 4px;
}
.stat-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  font-weight: 500;
}

/* ══════════════════════════════════════
   SOBRE MÍ
══════════════════════════════════════ */
.sobre-mi {
  background: var(--gris-claro);
  padding: 100px 40px;
}
.sobre-mi-inner {
  display: flex;
  align-items: center;
  gap: 70px;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
  justify-content: center;
}
.sobre-mi-foto {
  flex-shrink: 0;
}
.sobre-mi-foto img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0,114,187,0.25);
  border: 5px solid white;
}
/* Placeholder si no hay foto */
.sobre-mi-foto img[src="img/gonzalo.jpg"]:not([complete]) {
  background: var(--azul);
}
.sobre-label {
  display: inline-block;
  background: var(--azul);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.sobre-mi-texto h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0a1628;
  margin-bottom: 16px;
}
.sobre-mi-texto p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 12px;
  font-size: 0.97rem;
}
.sobre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tag {
  background: white;
  border: 1.5px solid #dde;
  color: #333;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.sobre-btn { margin-top: 24px; display: inline-block; }

/* ══════════════════════════════════════
   CARD PRECIO
══════════════════════════════════════ */
.card-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.card-precio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 4px;
}
.precio-tachado {
  color: #aaa;
  text-decoration: line-through;
  font-size: 0.88rem;
}
.precio-final {
  color: #2e7d32;
  font-weight: 800;
  font-size: 1.15rem;
}

/* ══════════════════════════════════════
   TESTIMONIOS
══════════════════════════════════════ */
.testimonios {
  background: white;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden;
}
.testimonios h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.testimonios-sub {
  color: #888;
  margin-bottom: 50px;
  font-size: 0.95rem;
}
.testimonios-track-wrapper {
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto 30px;
}
.testimonios-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65,0,0.35,1);
}
.testimonio-card {
  min-width: 100%;
  background: var(--gris-claro);
  border-radius: 20px;
  padding: 40px 48px;
  text-align: left;
  box-sizing: border-box;
}
.testimonio-stars {
  color: #f5a623;
  font-size: 1.2rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonio-card p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 14px;
}
.autor-avatar {
  width: 44px; height: 44px;
  background: var(--azul);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonio-autor strong {
  display: block;
  font-weight: 700;
  color: #111;
}
.testimonio-autor span {
  font-size: 0.82rem;
  color: #888;
}
.testimonios-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.tdot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ccd;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.tdot.active { background: var(--azul); transform: scale(1.3); }

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.faq {
  background: #0a1628;
  padding: 100px 40px;
  color: white;
}
.faq h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
}
.faq-list {
  max-width: 760px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(255,255,255,0.25); }
.faq-pregunta {
  width: 100%;
  background: none;
  border: none;
  color: white;
  padding: 20px 24px;
  font-size: 0.97rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Inter', sans-serif;
}
.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--neon);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-pregunta.open .faq-icon { transform: rotate(45deg); }
.faq-respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-respuesta.open {
  max-height: 200px;
  padding: 0 24px 20px;
}
.faq-respuesta p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   FOOTER ACTUALIZADO
══════════════════════════════════════ */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-link {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-link:hover { opacity: 1; text-decoration: underline; }

/* ══════════════════════════════════════
   RESPONSIVE NUEVAS SECCIONES
══════════════════════════════════════ */
@media (max-width: 768px) {
  .stats-grid { gap: 36px; }
  .stat-number { font-size: 2.6rem; }
  .sobre-mi-inner { flex-direction: column; text-align: center; }
  .sobre-mi-foto img { width: 200px; height: 200px; }
  .sobre-tags { justify-content: center; }
  .testimonio-card { padding: 30px 24px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .faq { padding: 80px 20px; }
}


