:root {
    --bg-color: #222222;
    --card-bg: #2B2B2B;
    --text-color: #FFF;
    --subtext-color: #C5C5C5;
    --accent-color: #5865f2;
    --hover-accent: #4752c4;
    --link-color: #e0e0e0;
    --header-height: 70px;
    --transition: 0.3s;
    --footer-color: #0F0F0F;
  }

  * {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  }
  
  body.light {
    --bg-color: #ffffff;
    --card-bg: #f9f9f9;
    --text-color: #202124;
    --subtext-color: #505050;
    --link-color: #202124;
    --footer-color: #444444;
  }
  
  * { margin: 0; padding: 0; box-sizing: border-box; }
  
  body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    margin: 0;
  }
  
  .page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
  }
  
  a { color: var(--link-color); text-decoration: none; transition: color var(--transition); }
  a:hover { color: var(--accent-color); }
  
  /* Enhanced nav styling */
  header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background: var(--card-bg); box-shadow: 0 2px 8px rgba(0,0,0,0.5); z-index: 100; display: flex; align-items: center; }
  
  .main-nav { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px; }
  .nav-links { display: flex; gap: 24px; }
  .left-section { display: flex; align-items: center; gap: 24px; }
  #logo { height: 40px; /* ajusta según tu preferencia */ width: auto; margin-right: 20px; /* si quieres separación del texto */ }
  .nav-item { position: relative; padding: 8px 12px; border-radius: 4px; font-weight: 500; transition: background var(--transition), color var(--transition); }
  .nav-item:hover { background: rgba(88,101,242,0.2); color: #fff; }
  .nav-item.active::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); width: 50%; height: 3px; background: var(--accent-color); border-radius: 2px; }
  .right-section { display: flex; align-items: center; gap: 16px; }
  .btn.premium { padding: 8px 16px; background: var(--accent-color); color: #fff; border-radius: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.3); transition: background var(--transition), transform var(--transition); }
  .btn.premium:hover { background: var(--hover-accent); transform: translateY(-2px); }
  .hamburger { display: none; font-size: 1.5rem; cursor: pointer; }
  main { padding-top: calc(var(--header-height) + 20px); }
  .nav-links.nav-open { display: flex; }
  .btn-outline { padding: 12px 24px; background: transparent; color: var(--text-color); border: 1px solid var(--text-color); border-radius: 4px; cursor: pointer; transition: background var(--transition), color var(--transition); }
  .btn-outline:hover { background: var(--accent-color); color: #fff; }


h1 {
    margin: 0;
}

section {
    max-width: 800px;
    margin: 20px auto;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@font-face {
    font-family: "CopenhagenGrotesk";
    src: url("../fonts/CopenhagenGrotesk.woff");
}

@font-face {
    font-family: "GgSans";
    src: url("../fonts/ggsans-Normal.woff");
}

h2 { margin-top: 10px; font-family: CopenhagenGrotesk; color: var(--subtext-color); }
p { color: #666; font-family: GgSans; color: var(--text-color); margin-bottom: 10px }


.main-content {
    flex: 1; /* Esto permite que el contenido principal crezca para ocupar todo el espacio disponible */
}

  /* Footer */
  footer { background: var(footer-color); color: var(--subtext-color); padding: 40px 20px; }
  .footer-cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
  .footer-col h4 { color: var(--text-color); margin-bottom: 10px; }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 8px; }
  .footer-bottom { text-align: center; margin-top: 20px; font-size: 0.9rem; }
  .footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Añade más estilos según sea necesario */

#loadingContainer { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: rgba(0, 0, 0, 0.5); position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; }
#loadingImage { width: 100px;  height: 100px; animation: rotar 2s linear infinite; }

@keyframes rotar {
    0% {
        transform: rotate(0deg); /* Empieza desde 0 grados */
    }
    100% {
        transform: rotate(360deg); /* Gira 360 grados */
    }
}