:root {
  --bg-dark: #1D212A;
  --bg-light: #11141b;
  --gold: #B08E47;
  --gold-light: #FAE26B;
  --text: #fff;
  --text-muted: #ccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar {
  background-color: var(--bg-dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--gold);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* align to the middle */
  
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--gold);
}

.logo img {
  height: 40px;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--gold);
  cursor: pointer;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.nav-buttons button,
.contact-button {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-buttons button:hover,
.contact-button:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

.hero {
  padding: 4rem 1rem;
  background: linear-gradient(145deg, #1D212A 40%, #0e0f13 100%);
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.hero .highlight {
  color: var(--gold);
}

.hero .store-buttons img {
  height: 60px;
  transition: transform 0.3s ease;
}

.hero .store-buttons img:hover {
  transform: scale(1.05);
}

.hero .image img {
  width: 280px;
  max-width: 100%;
}

.features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 3rem auto;
  flex-wrap: wrap;
}

.feature-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card img {
  height: 100px;
  margin-bottom: 1rem;
}

.feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  fill: var(--gold);
}

.feature-card h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.waitlist {
  padding: 4rem 1rem;
  background-color: var(--bg-light);
  text-align: center;
}

.waitlist h2 {
  font-size: 2rem;
  color: var(--gold);
}

.waitlist h3 {
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 2rem;
}

.waitlist form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.waitlist input {
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  max-width: 300px;
  width: 100%;
}

.waitlist button {
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.waitlist button:hover {
  background: var(--gold-light);
}

.site-footer {
  background: #16191F;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-light);
}

/* Social icons in footer */
.footer-social {
  display:flex;
  gap:0.75rem;
  justify-content:center;
  align-items:center;
  margin-top:0.5rem;
}
.social-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:8px;
  background: rgba(255,255,255,0.01);
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-link svg { width:20px; height:20px; fill: white; transition: fill 0.15s ease; }
.social-link:hover { transform: translateY(-3px); background: rgba(255,255,255,0.03); }
.social-link:hover svg { fill: var(--gold); }

.site-footer .copyright { margin-top:0.6rem; color:var(--text-muted); font-size:0.85rem; }

/* Legal pages: more formal typographic rhythm */
.legal-article {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
  margin-top: 0.5rem;
}
.legal-article h3 {
  color: var(--gold);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}
.legal-article p { margin-bottom: 0.8rem; }
.legal-article ul { margin-left: 1rem; list-style: disc; color: var(--text-muted); }
.legal-article li { margin-bottom: 0.4rem; }

/* Slightly reduce hero size for legal pages for a more formal tone */
.page-hero { padding: 2rem 1rem; background: linear-gradient(180deg, rgba(0,0,0,0.16), transparent); }
.page-hero .hero-text { max-width: 900px; margin: 0 auto; text-align: left; }
.page-hero h1 { font-size: 1.8rem; color: var(--gold); }
.page-hero p { color: var(--text-muted); font-size: 1rem; }

/* Contact form adjustments for legal style */
#contact-form input, #contact-form textarea { background: #0f1317; border: 1px solid rgba(255,255,255,0.04); padding: 0.75rem; color: var(--text); border-radius: 8px; }
#contact-form .cta-button { margin-top: 0.5rem; }

/* Global link color: use brand gold instead of browser default blue */
a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Contact cards */
.contact-cards { display:flex; gap:1rem; margin-top:1rem; flex-wrap:wrap; }
.contact-card { background: rgba(255,255,255,0.02); border-radius:12px; padding:1rem; flex:1 1 220px; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.contact-card h4 { margin:0 0 0.5rem 0; color:var(--gold); }
.contact-card p { color:var(--text-muted); margin:0; }

/* Make mailto and links not show blue in all states */
a:visited, a:active { color: var(--gold); }

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-buttons {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-buttons.active {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.08);
}

/* Animaciones suaves en botones */
button,
.contact-button {
  transition: all 0.3s ease;
}

button:hover,
.contact-button:hover {
  transform: translateY(-2px);
}

/* Form feedback */
#form-message {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Store buttons hover */
.store-buttons img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.store-buttons img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Fondo de partículas */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: linear-gradient(135deg, #0f1014 0%, #1D212A 100%);
}

/* Fondo con capa oscura para contraste */
body::before {
  content: '';
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Botones flotantes con glow */
button, .contact-button {
  position: relative;
  overflow: hidden;
}

button::before,
.contact-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite linear;
  z-index: 0;
}

@keyframes shine {
  0% {
    transform: rotate(45deg) translate(-50%, -50%);
  }
  100% {
    transform: rotate(45deg) translate(50%, 50%);
  }
}

button, .contact-button {
  z-index: 1;
}

/* Animaciones suaves */
.feature-card, .waitlist form {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.025);
}

/* Mejora del formulario */
input:focus {
  outline: 2px solid #FAE26B;
  background: #2a2f3a;
  color: white;
}

.logo_footer {
  gap: 0.5rem;
  height: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-decoration: bold;
  font-weight: bold;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -10;
  top: 0;
  left: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.footer-brand img {
  height: 40px;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-buttons {
    display: none;
    flex-direction: column !important;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    gap: 0.75rem;
  }

  .nav-buttons button {
    width: 100%;
    text-align: center;
  }

  .nav-buttons.active {
    display: flex !important;
  }

  .menu-toggle {
    display: block;
    align-self: flex-end;
    margin-top: -2rem;
    margin-bottom: 1rem;
  }
}

.store-buttons img{
  height:64px;      
  width:auto;       
  object-fit:contain;
  transition:transform .3s ease, filter .3s ease;
}

.store-buttons img:hover{
  transform:scale(1.05);
  filter:brightness(1.1);
}

@media (max-width:480px){
  .store-buttons img{height:56px;}
}

html, body {
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Páginas de contenido: hero compacto, columnas y CTA */
.page-hero {
  padding: 3rem 1rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), transparent);
}
.page-hero .hero-text {
  max-width: 640px;
}
.page-hero h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); margin-bottom: 1rem; }
.cta-button {
  display: inline-block;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  margin-top: 0.5rem;
}
.cta-button:hover { transform: translateY(-3px); background: var(--gold-light); }

.two-column { display:flex; gap:2rem; align-items:flex-start; flex-wrap:wrap; }
.two-column .col { flex:1 1 320px; }

.feature-list { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:1rem; }
.feature-list li { background: rgba(255,255,255,0.02); padding:0.75rem 1rem; border-radius:8px; list-style:none; color:var(--text-muted); }

.testimonial { background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); padding:1.25rem; border-radius:12px; margin:1rem 0; }
.testimonial p { color:var(--text-muted); }
.testimonial .author { margin-top:0.5rem; font-weight:700; color:var(--gold); }

.faq { margin-top:1rem; }
.faq .q { margin-bottom:0.75rem; }
.faq .q summary { cursor:pointer; padding:0.6rem 0.8rem; display:block; background:rgba(255,255,255,0.02); border-radius:8px; }
.faq .q p { padding:0.5rem 0.8rem; color:var(--text-muted); }

.card-link { display:inline-block; margin-top:12px; color:var(--gold); text-decoration:underline; font-weight:700; }

@media (max-width: 768px) {
  .page-hero { flex-direction: column; text-align: center; }
  .feature-list { grid-template-columns: 1fr; }
}

/* Secciones y tarjetas específicas para Clubs */
.section-header { margin: 2rem 0 1rem; text-align: left; }
.section-header h2 { color: var(--gold); font-size: 1.6rem; margin-bottom:0.25rem; }
.section-header p { color: var(--text-muted); margin-bottom:0.75rem; }

.benefits-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:1.25rem; margin-top:1rem; }
.benefit-card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); padding:1rem; border-radius:12px; text-align:left; }
.benefit-card img { width:100%; height:140px; object-fit:cover; border-radius:8px; margin-bottom:0.75rem; }
.benefit-card h3 { color:var(--gold); margin-bottom:0.4rem; }
.benefit-card p { color:var(--text-muted); font-size:0.95rem; }

.case-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:1rem; margin-top:1rem; }
.case-card { background: rgba(255,255,255,0.02); padding:1rem; border-radius:12px; }
.case-card p { color:var(--text-muted); }
.case-card .author { margin-top:0.5rem; font-weight:700; color:var(--gold); }

.faq-grid { margin-top:1rem; display:grid; gap:0.75rem; }
.faq-grid details summary { padding:0.8rem; background:rgba(255,255,255,0.02); border-radius:8px; cursor:pointer; }
.faq-grid details p { padding:0.6rem; color:var(--text-muted); }

@media (max-width: 992px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* Improvements: hero parallax, reveal animations and hover effects */
.hero .image img { max-width: 720px; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }

/* Full-screen hero adjustments */
.hero { /* baseline hero layout (kept minimal) */
  display: block;
  position: relative;
  padding: 3rem 0;
}
.hero .container.hero-content { display:flex; align-items:center; gap:2rem; }
.hero .text { z-index: 3; max-width: 640px; }
.hero .image { flex: 0 0 320px; display:flex; justify-content:center; align-items:center; z-index:2; }
.hero .image img { width: 780px; max-width:100%; height:auto; object-fit:contain; border-radius:12px; }

/* .hero-lateral forces the lateral layout similar to the original design */
.hero-lateral { padding: 3rem 0; }
.hero-lateral::after { display:none; }

/* Hero hide class removed (no automatic hiding) but keep for safe usage */
.hero-hidden { opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 400ms ease, transform 400ms ease; }

.hero-scroll {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.06);
  color:var(--gold);
  cursor:pointer;
  margin-top:1rem;
  transition:transform .25s ease, background .2s ease;
}

/* Remove framing for images that are PNGs with built-in transparency (login portrait) */
.transparent-portrait {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  display: block;
  max-width: 100%;
  height: auto;
}
.hero-scroll:hover{ transform: translateY(-4px); background: rgba(255,255,255,0.06); }

.reveal { opacity:0; transform: translateY(18px) scale(0.995); transition: opacity 600ms cubic-bezier(.2,.9,.3,1), transform 600ms cubic-bezier(.2,.9,.3,1); }
.reveal.visible { opacity:1; transform: translateY(0) scale(1); }

.benefit-card { transform-origin: center; will-change: transform, box-shadow; transition: transform 320ms cubic-bezier(.2,.9,.3,1), box-shadow 320ms ease; }
.benefit-card:hover { transform: translateY(-10px) scale(1.02) rotateX(2deg); box-shadow: 0 18px 40px rgba(0,0,0,0.45); }

/* Slight parallax transform for hero image when .parallax class is applied by JS */
.parallax { transform: translateY(0px); transition: transform 0.15s linear; will-change: transform; }

/* Make CTA section vertically centered max-width */
.cta-section { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.75rem; }


/* Organizers page: snapshot, modules, flow and cases styles */
.panel { padding: 0; }
.panel h2 { margin: 0; padding: 1rem 0; font-size: 1.5rem; color: var(--gold); }
.snapshot { background: rgba(176,142,71,0.04); border-top: 1px solid rgba(176,142,71,0.06); border-bottom: 1px solid rgba(176,142,71,0.03); }
.snapshot-grid { display:flex; gap:1.25rem; justify-content:space-between; align-items:center; padding:1.25rem 0; }
.stat { flex:1 1 0; text-align:center; padding:1rem; border-radius:10px; }
.stat-num { font-size:1.8rem; font-weight:800; color:var(--gold); }
.stat-label { color:var(--text-muted); margin-top:0.35rem; }

.stat-icon { width:48px; height:48px; object-fit:cover; display:block; margin:0 auto 0.5rem; filter:grayscale(20%); border-radius:8px; }

.modules-grid { display:flex; gap:1rem; margin-top:1rem; }
.module-card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); padding:1rem; border-radius:12px; flex:1 1 0; display:flex; gap:0.75rem; align-items:flex-start; }
.module-card .module-icon { width:54px; height:54px; object-fit:cover; border-radius:10px; flex:0 0 54px; }
.module-card h3 { margin:0; color:var(--gold); }
.module-card p { color:var(--text-muted); margin:0; font-size:0.95rem; }

.flow-steps { display: grid; grid-template-columns: 1fr 60px 1fr 60px 1fr; align-items: center; gap: 0; margin-top: 1rem; }
.flow-arrow { width: 40px; height: 40px; stroke: var(--text-muted); stroke-width: 1; fill: none; stroke-dasharray: 24; stroke-dashoffset: 24; opacity: 0; transform: scale(0.9); transition: stroke 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), stroke-dashoffset 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease, transform 0.6s ease; }
.flow-arrow.active { stroke: var(--gold); stroke-dashoffset: 0; opacity: 1; transform: scale(1); animation: pulse 1.5s infinite; }
.step { background: rgba(255,255,255,0.02); padding: 1rem 0.75rem; border-radius: 8px; text-align: center; opacity: 0; transform: translateY(20px); transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), all 0.5s ease; }
.step.active { background: var(--gold); color: var(--bg-dark); box-shadow: 0 4px 12px rgba(176,142,71,0.3); transform: translateY(0) scale(1.02); opacity: 1; }
.step.active .step-num { background: var(--bg-dark); color: var(--gold); }
.step.active .step-body strong { color: var(--bg-dark); }
.step.active .step-body p { color: var(--bg-dark); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.step { background: rgba(255,255,255,0.02); padding: 1.5rem 1rem; border-radius: 12px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.step:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.step-num { width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: var(--bg-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; margin: 0 auto 0.75rem; transition: transform 0.3s ease; }
.step:hover .step-num { transform: scale(1.1); }
.step-body strong { color: var(--gold); display: block; font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-body p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.cases-inline { display:flex; gap:1rem; margin-top:1rem; }
.case-card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); padding:0.85rem; border-radius:12px; flex:1 1 0; display:flex; gap:0.75rem; align-items:center; }
.case-card img { width:64px; height:64px; object-fit:cover; border-radius:8px; flex:0 0 64px; }

.case-icon { width:64px; height:64px; fill:var(--gold); margin-bottom:0.5rem; }
.case-card strong { color:var(--gold); display:block; }
.case-card p { margin:0; color:var(--text-muted); }

.faq-compact details { background: rgba(255,255,255,0.02); padding:0.75rem; border-radius:8px; margin-bottom:0.5rem; }
.faq-compact summary { cursor:pointer; color:var(--gold); font-weight:700; }

@media (max-width: 900px) {
  .snapshot-grid { flex-direction:column; align-items:stretch; }
  .modules-grid { flex-direction:column; }
  .flow-steps { display: flex; flex-direction: column; gap: 1rem; }
  .flow-arrow { display: none; }
  .cases-inline { flex-direction:column; }
}

