:root {
  --bg-color: #f9f9f9;
  --text-color: #1a1a1a;
  --primary-color: #b58900; /* dorado suave */
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --primary-color: #d4af37; /* dorado metálico clásico */
  --card-bg: #1f1f1f;
  --border-color: #2e2e2e;
}
html {
  transition: background-color 0.4s ease, color 0.3s ease;
}

body {
  transition: background-color 0.4s ease, color 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.main-header {
  background-color: var(--bg-color);
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  padding-bottom: 5px;
}

.nav-menu a:hover {
  border-bottom: 2px solid var(--primary-color);
}

#themeToggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-color);
}

main {
  padding: 40px 30px;
}

section {
  margin-bottom: 60px;
}

h1, h2, h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
}

.audit-card:hover {
  transform: translateY(-4px);
}

.audit-card h3 {
  margin-bottom: 10px;
}

.audit-card a {
  display: inline-block;
  margin-right: 10px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95rem;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: var(--text-color);
  border-top: 1px solid var(--border-color);
}
.hero {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero .highlight {
  color: var(--primary-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-color);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}
.section-services {
  padding: 60px 20px;
  background-color: var(--bg-color);
  text-align: center;
}

.section-services .section-header {
  max-width: 700px;
  margin: 0 auto 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: 8px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px #00000025;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-color);
  font-size: 0.95rem;
}
.section-audits {
  padding: 60px 20px;
  background-color: var(--bg-color);
  text-align: center;
}

.section-audits .section-header {
  max-width: 700px;
  margin: 0 auto 40px;
}

 .section-ranking {
  padding: 60px 20px;
  background-color: var(--bg-color);
  text-align: center;
}

.section-ranking .section-header {
  max-width: 700px;
  margin: 0 auto 40px;
}

.ranking-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rank-card {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: background 0.3s ease;
}

.rank-position {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-right: 20px;
  width: 50px;
  text-align: center;
}

.rank-info h3 {
  margin: 0 0 5px;
  color: var(--primary-color);
}

.rank-info p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--text-color);
}

.rank-info a {
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: none;
}

.rank-info a:hover {
  text-decoration: underline;
}
.section-blog {
  padding: 60px 20px;
  background-color: var(--bg-color);
  text-align: center;
}

.section-blog .section-header {
  max-width: 700px;
  margin: 0 auto 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-post {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  transition: box-shadow 0.2s ease;
}

.blog-post:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.blog-post h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.blog-post .excerpt {
  font-size: 0.95rem;
  margin: 12px 0;
  color: var(--text-color);
}

.blog-post a {
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: none;
}

.blog-post a:hover {
  text-decoration: underline;
}
.section-about {
  padding: 60px 20px;
  background-color: var(--bg-color);
  text-align: center;
}

.section-about .section-header {
  max-width: 700px;
  margin: 0 auto 40px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.about-text {
  text-align: left;
  font-size: 1rem;
  color: var(--text-color);
}

.about-text p {
  margin-bottom: 20px;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin: 0 auto;
}
.main-footer {
  background-color: var(--card-bg);
  color: var(--text-color);
  border-top: 1px solid var(--border-color);
  padding: 25px 20px 10px;
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 180px;
  min-width: 140px;
}

.footer-column h4 {
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 6px;
}

.footer-column ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer-social {
  margin: 15px 0 5px;
  text-align: center;
}

.social-icons a {
  margin: 0 8px;
  font-size: 1.3rem;
  color: var(--primary-color);
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: var(--text-color);
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  padding-top: 5px;
  color: var(--text-color);
}
.logo-img {
  height: 36px;
  max-height: 100%;
  display: block;
  object-fit: contain;
}
 .btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-color);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #ffd700; /* más brillante que el dorado base */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}


.audit-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.audit-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.audit-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.audit-logo img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  background-color: #fff;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.audit-info h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--primary-color);
}

.audit-info p {
  margin: 3px 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-color);
}

.audit-info .btn-primary {
  margin-top: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.audit-info .btn-primary:hover {
  opacity: 0.9;
}
.audits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 30px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.audit-summary {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
  font-size: 0.95rem;
}

.audit-summary a {
  color: var(--primary-color);
  text-decoration: underline;
}
.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 0.95rem;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.ranking-table thead {
  background-color: var(--primary-color);
  color: #fff;
}

.ranking-table th,
.ranking-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.ranking-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.03); /* ligero sombreado para ambos temas */
}

.ranking-table a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}
.primary-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.primary-btn:hover {
  background-color: #a27800; /* ligeramente más oscuro que #b58900 */
  transform: translateY(-2px);
}

.primary-btn:active {
  transform: scale(0.98);
}

.primary-btn i {
  margin-right: 8px;
}
.align-right {
  display: flex;
  justify-content: flex-end;
}
.main-footer {
  background: var(--card-bg);
  color: var(--text-color);
  padding: 30px 20px 10px;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.footer-column h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--primary-color);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 6px;
}

.footer-column ul li a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 12px;
  font-size: 1.2rem;
  flex-wrap: wrap;
}

.footer-social a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}
.two-column-links {
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
  column-gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.two-column-links li {
  break-inside: avoid;
  margin-bottom: 6px;
}

.two-column-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.two-column-links a:hover {
  color: var(--primary-color);
}
.center-column {
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  font-size: 1.2rem;
  flex-wrap: wrap;
}

.footer-social a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary-color);
}
th.asc::after {
  content: " ▲";
  font-size: 0.8em;
  color: var(--primary-color);
}

th.desc::after {
  content: " ▼";
  font-size: 0.8em;
  color: var(--primary-color);
}
.ranking-table tbody tr:nth-child(even) {
  background-color: var(--card-bg); /* Alterna filas */
}
.ranking-table td {
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text-color);
}

.ranking-table td:nth-child(7) { /* Fecha */
  color: var(--primary-color);
  font-weight: 500;
}

.ranking-table td:nth-child(5), 
.ranking-table td:nth-child(6) { /* TVL y Volume */
  font-weight: bold;
  color: #4caf50; /* verde para visibilidad, puedes usar var(--primary-color) */
}
.ranking-table th {
  cursor: pointer;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--primary-color);
  background-color: var(--card-bg);
  text-align: left;
  position: relative;
  transition: color 0.2s ease;
}

.ranking-table th:hover {
  color: #ffd700; /* Color dorado más brillante al pasar el mouse */
}

/* Flechas de orden */
.ranking-table th.asc::after {
  content: " ▲";
  position: absolute;
  right: 8px;
  color: var(--primary-color);
}

.ranking-table th.desc::after {
  content: " ▼";
  position: absolute;
  right: 8px;
  color: var(--primary-color);
}
.marketplace-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 30px;
}

.market-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.market-item:hover {
  transform: translateY(-4px);
}

.market-item h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.market-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.market-item button {
  opacity: 0.6;
  cursor: not-allowed;
}
.audit-title-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1px;     
  margin-top: 1px;        
}

.audit-logo {
  width: 250px;
  height: 250px;
  border-radius: 6px;
  object-fit: contain;
  margin: 0;            
  padding: 0;
}

.audit-header h1 {
  margin: 0;              
  padding: 0;
  font-size: 1.8rem;     
}

.audit-meta {
  margin-top: 1px;        
  margin-bottom: 8px;
  line-height: 1.4;
}
/* Botón hamburguesa oculto en escritorio */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-color);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    z-index: 99;
    border-radius: 6px;
  }

  .nav-menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}
