/* ========================================
   Xx_Nessu_xX - Worlds.com Website
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 85%;
  scrollbar-gutter: stable;
}

:root {
  --background: #1a1a2e;
  --foreground: #F5FF63;
  --card: #16213e;
  --card-foreground: #F5FF63;
  --primary: #F5FF63;
  --primary-foreground: #1a1a2e;
  --secondary: #FC9556;
  --secondary-foreground: #1a1a2e;
  --muted: #0f3460;
  --muted-foreground: #e8d5b7;
  --border: #F5FF63;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Share Tech Mono', normal;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Page Layout */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding-top: 5rem;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--background);
  border-bottom: 4px solid var(--primary);
}

.navbar-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}

.navbar-brand:hover { opacity: 0.8; }

.navbar-brand img {
  width: 40px;
  height: auto;
  image-rendering: pixelated;
}

.navbar-brand-text {
  color: var(--primary);
  font-size: 1.5rem;
  text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.625rem 1rem;
  font-size: 0.95rem;
  color: var(--primary);
  transition: all 0.2s;
  border-radius: 2px;
}

.nav-link:hover {
  background-color: rgba(245, 255, 99, 0.2);
  text-shadow: 0 0 8px var(--primary);
}

.nav-link.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 10px rgba(245, 255, 99, 0.4);
}

.lang-btn {
  margin-left: 1rem;
  padding: 0.6rem;
  font-size: 1.1rem;
  font-family: 'Share Tech Mono', monospace;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: 2px solid var(--secondary);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
  font-weight: bold;
}

.lang-btn:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(245, 255, 99, 0.4);
}

.navbar-gradient {
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary));
}

@media (max-width: 768px) {
  .navbar-inner {
    padding: 0 0.5rem 0 0.75rem;
    gap: 0.5rem;
  }

  /* El logo nunca se encoge */
  .navbar-brand {
    flex-shrink: 0;
  }

  .navbar-brand-text { display: none; }

  /* Los enlaces scrollean horizontalmente */
  .navbar-links {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .navbar-links::-webkit-scrollbar { display: none; } /* Chrome/Safari */

  .nav-link {
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* El botón EN se queda fijo a la derecha, siempre visible */
  .lang-btn {
    position: sticky;
    right: 0;
    padding: 0.5rem;
    font-size: 0.95rem;
    margin-left: 0.4rem;
    flex-shrink: 0;
    box-shadow: -12px 0 12px -4px var(--background);
    z-index: 2;
  }
}

@media (max-width: 640px) {
  .navbar-brand img { width: 32px; }

  .navbar-links { gap: 0.2rem; }

  .nav-link {
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
  }

  .lang-btn {
    padding: 0.4rem;
    font-size: 0.85rem;
    margin-left: 0.3rem;
  }
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--card);
  border-top: 4px solid var(--primary);
  margin-top: auto;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand-name {
  color: var(--primary);
  font-size: 1.25rem;
  text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
}

.footer-brand-subtitle {
  color: var(--secondary);
  font-size: 1.125rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.125rem;
}

.footer-link {
  color: var(--primary);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--secondary); }

.footer-separator { color: var(--secondary); }

.footer-social a {
  color: var(--secondary);
  font-size: 1.125rem;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--primary); }

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(245, 255, 99, 0.3);
  text-align: center;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

/* ========== HERO SECTION ========== */
.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero-logo {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.hero-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(245, 255, 99, 0.2);
  filter: blur(48px);
  z-index: 0;
}

.hero-logo img {
  position: relative;
  z-index: 1;
  width: 500px;
  max-width: 100%;
  height: auto;
}

.glow-text {
  text-shadow: 0 0 10px var(--secondary), 0 0 20px var(--secondary), 0 0 30px var(--secondary);
}

.hero-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3.75rem; }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--secondary);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .hero-subtitle { font-size: 1.5rem; }
}

/* Marquee */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background-color: var(--card);
  border: 2px solid var(--primary);
  padding: 0.5rem 0;
  margin-bottom: 0;
}

.marquee {
  display: inline-block;
  white-space: nowrap;
  font-size: 1.25rem;
  color: var(--secondary);
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ========== SECTION WRAPPER ========== */
.section { max-width: 90rem; margin: 0 auto; padding: 0 1.5rem 4rem; }

/* ========== NEWS / ANNOUNCEMENT SECTION ========== */
.news-section {
  max-width: 72rem;
  margin: 0.75rem auto 0;
  padding: 0 1.5rem 2rem;
}

/* Grid de banners de novedad, apilados en columna */
.news-banners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Banner individual de novedad (tours, mundo nuevo, etc.) */
.news-banner {
  display: flex;
  gap: 1rem;
  background-color: var(--card);
  border: 3px solid var(--secondary);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  height: 100%;
}

.news-banner:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(245, 255, 99, 0.15);
  transform: translateY(-2px);
}

.news-banner-poster,
.news-banner-thumb {
  width: 110px;
  height: 110px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background-color: var(--muted);
}

.news-banner-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.news-banner-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.1rem 0.5rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.news-banner-tag.tag-world {
  background-color: var(--primary);
}

.news-banner-title {
  font-size: 1.05rem;
  color: var(--primary);
  text-shadow: 0 0 6px rgba(245, 255, 99, 0.3);
  line-height: 1.3;
}

.news-banner-desc {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.news-banner-time {
  font-size: 0.8rem;
  color: var(--secondary);
}

.news-banner-time strong { color: var(--primary); }

.news-banner-link-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: auto;
  padding-top: 0.25rem;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px)  { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

/* Cada tarjeta de noticia */
.news-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card);
  border: 3px solid var(--secondary);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.news-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(245, 255, 99, 0.15);
}

.news-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--muted);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  min-height: 160px;
}

.news-card-body {
  padding: 1rem 1.2rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.news-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.1rem 0.45rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

.news-card-title {
  font-size: 1.15rem;
  color: var(--primary);
  text-shadow: 0 0 6px rgba(245, 255, 99, 0.3);
  line-height: 1.3;
}

.news-card-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  flex: 1;
}

.news-card-meta {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-top: auto;
  padding-top: 0.4rem;
}

.news-card-meta strong { color: var(--primary); }

.news-card-hint {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  margin-top: 0.3rem;
}

/* ========== WHAT IS SECTION ========== */
.what-is-section {
  background-color: var(--card);
  padding: 3rem 1rem;
  margin-top: 2rem;
}

.what-is-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.what-is-title {
  font-size: 1.875rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) { .what-is-title { font-size: 2.25rem; } }

.what-is-desc {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}



/* ========== CTA SECTION ========== */
.cta-section {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}

.cta-title {
  font-size: 1.875rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ========== RETRO BUTTONS ========== */
.retro-btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  font-family: 'VT323', monospace;
  color: var(--primary);
  background-color: transparent;
  border: 3px solid var(--primary);
  cursor: pointer;
  transition: all 0.1s;
}

.retro-btn:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 15px var(--primary);
  transform: scale(1.05);
}

.retro-btn.secondary {
  color: var(--secondary);
  border-color: var(--secondary);
}

.retro-btn.secondary:hover {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: 0 0 15px var(--secondary);
}

/* ========== PAGE HEADER ========== */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

@media (min-width: 640px) { .page-title { font-size: 3rem; } }

.page-subtitle {
  font-size: 1.25rem;
  color: var(--secondary);
  max-width: 42rem;
  margin: 0 auto;
}

/* ========== INFO BOX ========== */
.info-box {
  background-color: var(--card);
  border: 2px solid var(--secondary);
  padding: 1.5rem;
  margin-bottom: 3rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.info-box-title {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.info-box ol {
  list-style: none;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.info-box li { margin-bottom: 0.5rem; }

/* ========== WORLDS GRID ========== */
.worlds-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) { .worlds-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .worlds-grid { grid-template-columns: repeat(3, 1fr); } }

.world-card {
  background-color: var(--card);
  border: 3px solid var(--secondary);
  overflow: hidden;
  transition: all 0.2s;
}

.world-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(252, 149, 86, 0.3);
  border-color: var(--primary);
}

.world-card-image {
  width: 100%;
  height: 200px;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 1.25rem;
  border-bottom: 2px solid var(--secondary);
  overflow: hidden;
}

.world-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.world-card-content { padding: 1.5rem; }

.world-card-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.world-card-desc {
  font-size: 1.125rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.copy-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-family: 'VT323', monospace;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.copy-btn:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.copy-btn.copied {
  background-color: #22c55e;
  border-color: #22c55e;
  color: white;
}

/* ========== NOTE SECTION ========== */
.note-section {
  background-color: var(--card);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.note-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.note-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.note-text .highlight { color: var(--primary); }
.note-text .highlight-secondary { color: var(--secondary); }

/* ========== TUTORIALS ========== */
.difficulty-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.legend-color {
  width: 12px;
  height: 12px;
}

.legend-color.beginner { background-color: #4ade80; }
.legend-color.intermediate { background-color: #facc15; }
.legend-color.advanced { background-color: #f87171; }

.tutorials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) { .tutorials-grid { grid-template-columns: repeat(2, 1fr); } }

.tutorial-card {
  background-color: var(--card);
  border: 3px solid var(--secondary);
  padding: 1.5rem;
  transition: all 0.2s;
  display: block;
}

.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(252, 149, 86, 0.3);
  border-color: var(--primary);
}

.tutorial-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tutorial-icon {
  font-size: 2.5rem;
  color: var(--primary);
}

.tutorial-card-body { flex: 1; }

.tutorial-card-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.tutorial-card:hover .tutorial-card-title { text-shadow: 0 0 10px var(--primary); }

.difficulty-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border: 1px solid;
  margin-bottom: 0.5rem;
}

.difficulty-beginner { color: #4ade80; border-color: #4ade80; }
.difficulty-intermediate { color: #facc15; border-color: #facc15; }
.difficulty-advanced { color: #f87171; border-color: #f87171; }

.tutorial-card-desc {
  font-size: 1.125rem;
  color: var(--secondary);
}

.tutorial-card-link {
  margin-top: 1rem;
  text-align: right;
  font-size: 1.125rem;
  color: var(--primary);
}

.tutorial-card:hover .tutorial-card-link { color: var(--secondary); }

/* ========== TOOLS ========== */
.categories-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.category-badge {
  padding: 0.25rem 0.75rem;
  font-size: 1.125rem;
}

.category-essential { background-color: var(--primary); color: var(--primary-foreground); }
.category-avatars { background-color: var(--secondary); color: var(--secondary-foreground); }
.category-modeling { background-color: #3b82f6; color: white; }
.category-textures { background-color: #a855f7; color: white; }
.category-worlds { background-color: #22c55e; color: white; }

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }

.tool-card {
  background-color: var(--card);
  border: 3px solid var(--secondary);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(252, 149, 86, 0.3);
  border-color: var(--primary);
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tool-icon {
  font-size: 1.875rem;
  color: var(--primary);
}

.tool-card-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.tool-card:hover .tool-card-title { text-shadow: 0 0 10px var(--primary); }

.tool-card-desc {
  font-size: 1.125rem;
  color: var(--secondary);
  flex: 1;
}

.tool-card-link {
  margin-top: 1rem;
  text-align: right;
  font-size: 1.125rem;
  color: var(--primary);
}

.tool-card:hover .tool-card-link { color: var(--secondary); }

/* ========== ABOUT ME ========== */
.about-section { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }

.profile-card {
  background-color: var(--card);
  border: 4px solid var(--primary);
  padding: 2rem;
  margin-bottom: 3rem;
}

.profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .profile-content { flex-direction: row; align-items: flex-start; }
}

.profile-avatar { position: relative; }

.avatar-container {
  width: 192px;
  height: 192px;
  border: 4px solid var(--secondary);
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-container img {
  width: 150px;
  height: auto;
  image-rendering: pixelated;
}

.online-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background-color: var(--primary);
  padding: 0.25rem 0.75rem;
  color: var(--primary-foreground);
  font-size: 1.125rem;
}

.profile-info { flex: 1; text-align: center; }
@media (min-width: 768px) { .profile-info { text-align: left; } }

.profile-name {
  font-size: 1.875rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.profile-role {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.profile-details {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.profile-details p { margin-bottom: 0.5rem; }
.profile-details .label { color: var(--primary); }

.bio-section {
  background-color: var(--card);
  border: 2px solid var(--secondary);
  padding: 2rem;
  margin-bottom: 3rem;
}

.bio-title {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.bio-content {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.8;
}

.bio-content p { margin-bottom: 1rem; }

.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) { .stats-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  background-color: var(--card);
  border: 2px solid var(--primary);
  padding: 1rem;
  text-align: center;
}

.stat-card.secondary { border-color: var(--secondary); }
.stat-card .stat-number { font-size: 1.875rem; }
.stat-card .stat-label { font-size: 1.125rem; }

.social-section { text-align: center; }

.social-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.quote-section {
  background-color: var(--card);
  padding: 2rem 1rem;
  margin-top: 2rem;
  text-align: center;
}

.quote-text {
  font-size: 1.5rem;
  color: var(--primary);
  font-style: italic;
}

.quote-author {
  color: var(--secondary);
  margin-top: 0.5rem;
}

/* ========== 404 PAGE ========== */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-size: 8rem;
  color: var(--primary);
  line-height: 1;
}

.error-title {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.5rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.error-suggestion {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.error-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ========== TUTORIAL INDIVIDUAL ========== */
.tutorial-page { max-width: 900px; margin: 0 auto; padding: 0 1rem; }

.tutorial-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--secondary);
}

.tutorial-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.meta-item {
  padding: 0.5rem 1rem;
  background-color: var(--card);
  border: 1px solid var(--primary);
  color: var(--muted-foreground);
}

.tutorial-content h2 {
  font-size: 1.75rem;
  color: var(--primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}

.tutorial-content p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.tutorial-content img {
  max-width: 100%;
  border: 2px solid var(--secondary);
  margin: 1rem 0;
}

.tutorial-content ul, .tutorial-content ol {
  margin: 1rem 0 1rem 2rem;
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

.tutorial-content li { margin-bottom: 0.5rem; }

.code-block {
  background-color: var(--muted);
  border: 2px solid var(--primary);
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.code-block code {
  font-family: 'VT323', monospace;
  font-size: 1.125rem;
  color: var(--primary);
  white-space: pre;
}

.tip-box {
  background-color: var(--card);
  border-left: 4px solid var(--secondary);
  padding: 1rem;
  margin: 1rem 0;
}

.tip-box-title {
  color: var(--secondary);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.tip-box p { margin: 0; }

.tutorial-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--secondary);
}

/* ========== TUTORIAL SECTIONS NAV ========== */

.tutorial-sections-help {
  max-width: 56rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.tutorial-sections-help-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.tutorial-sections-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.section-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.9rem 1.25rem;
  background: transparent;
  color: var(--secondary);
  border: 3px solid var(--secondary);
  border-radius: 2px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  box-shadow: none;
}

.section-btn:hover {
  background: rgba(252, 149, 86, 0.12);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(252, 149, 86, 0.25);
}

.section-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.tutorial-section {
  scroll-margin-top: 120px;
  margin-bottom: 3rem;
}

.tutorial-section-title {
  font-size: 1.75rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  text-align: left;
}

.tutorial-section-text {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

@media (max-width: 640px) {
  .section-btn {
    width: 100%;
    min-width: 0;
  }

  .tutorial-sections-help-text {
    font-size: 1rem;
  }

  .tutorial-section-title {
    font-size: 1.45rem;
  }
}

/* ===== LANGUAGE TOGGLE FIX ===== */

.lang-es { display: inline; }
.lang-en { display: inline; }

.lang-es-block { display: block; }
.lang-en-block { display: block; }

body.lang-en .lang-es { display: none; }
body.lang-en .lang-es-block { display: none; }

body:not(.lang-en) .lang-en { display: none; }
body:not(.lang-en) .lang-en-block { display: none; }

/* ========== ANIMATIONS ========== */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.blink { animation: blink 1s infinite; }

/* =================TUTORIALS=======================*/

.tutorial-content {
  max-width: 980px;
  margin: 0 auto;
}

.tutorial-content .page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem 0 2rem;
  border-bottom: none;
}

.tutorial-content .page-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin: 0;
}

.tutorial-content .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.4rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 255, 99, 0.18);
  color: var(--foreground);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tutorial-content .back-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 255, 99, 0.35);
}

.tutorial-content .tutorial-section {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.6rem 1.5rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, rgba(245, 255, 99, 0.07), transparent 34%);
  border: 1px solid rgba(245, 255, 99, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.tutorial-content .tutorial-section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  opacity: 0.85;
}

.tutorial-content .tutorial-section h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.7rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(245, 255, 99, 0.12);
  color: var(--secondary);
}

.tutorial-content .tutorial-section p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--muted-foreground);
  margin: 0 0 1rem;
}

.tutorial-content .tutorial-section p:last-child {
  margin-bottom: 0;
}

.tutorial-content .tutorial-section strong {
  color: var(--primary);
}

.tutorial-content .tutorial-section ul,
.tutorial-content .tutorial-section ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--muted-foreground);
  font-size: 1.03rem;
  line-height: 1.8;
}

.tutorial-content .tutorial-section li {
  margin-bottom: 0.5rem;
}

.tutorial-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.15rem auto;
  border-radius: 18px;
  border: 2px solid rgba(245, 255, 99, 0.15);
  background: rgba(0, 0, 0, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  object-fit: contain;
}

.tutorial-content figure {
  margin: 1.2rem 0;
}

.tutorial-content .media-card {
  margin: 1.2rem auto;
  padding: 0.9rem;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(245, 255, 99, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.tutorial-content .media-card img {
  margin: 0;
  border: none;
  box-shadow: none;
  border-radius: 14px;
}

.tutorial-content .media-card figcaption {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--secondary);
  text-align: center;
  opacity: 0.9;
}

.tutorial-content .tutorial-media-more-small {
  max-width: 400px;
}

.tutorial-content .tutorial-media-small {
  max-width: 760px;
}

.tutorial-content .tutorial-media-wide {
  max-width: 940px;
}

.tutorial-content .media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 0.5rem;
}

.tutorial-content .comparison-box {
  padding: 1rem;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(245, 255, 99, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  margin: 1rem 0;
}

.tutorial-content .comparison-box img {
  margin: 0;
  border-radius: 16px;
  border: none;
  box-shadow: none;
}

.tutorial-content .list-lines {
  margin: 0.8rem 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(245, 255, 99, 0.1);
  color: var(--muted-foreground);
  line-height: 1.8;
}

.tutorial-content .notice-strong {
  padding: 1rem 1.05rem;
  border-left: 4px solid var(--primary);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 0 16px 16px 0;
  margin-top: 1rem;
}

.tutorial-content .notice-strong p {
  margin: 0;
}

.tutorial-content .callout {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(245, 255, 99, 0.07);
  border: 1px solid rgba(245, 255, 99, 0.16);
  margin: 1rem 0;
}

.tutorial-content .callout p {
  margin-bottom: 0;
}

.tutorial-content .tiny-gap {
  margin-top: 0.6rem;
}

.tutorial-content .footer {
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .tutorial-content .tutorial-section {
    padding: 1.25rem 1rem;
    border-radius: 22px;
  }

  .tutorial-content .media-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-content .page-header {
    padding: 0.75rem 0 1.5rem;
  }

  .tutorial-content .page-title {
    font-size: clamp(1.7rem, 7vw, 2.8rem);
  }
}

@media (max-width: 560px) {
  .tutorial-content .back-link {
    width: 100%;
    justify-content: center;
  }

  .tutorial-content p {
    font-size: 1rem;
  }

  .tutorial-content img {
    border-radius: 14px;
  }

  .tutorial-content .tutorial-section {
    padding: 1rem 0.85rem;
  }
}

.tutorial a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========== GALERÍA - GRID ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  margin-bottom: 1.25rem;
  position: relative;
  background-color: var(--card);
  border: 3px solid var(--secondary);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: block;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(245, 255, 99, 0.25);
}

.gallery-item-media {
  width: 100%;
  line-height: 0;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
  object-fit: cover;
  pointer-events: none;
}

.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.06); }

/* Mini-collage: cuando el álbum tiene varias fotos, la preview se divide en celdas */
.collage-grid {
  display: grid;
  gap: 2px;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.collage-grid img,
.collage-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2 fotos: dos columnas */
.collage-count-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }

/* 3 fotos: una grande a la izquierda, dos apiladas a la derecha */
.collage-count-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.collage-count-3 .collage-cell:first-child { grid-row: 1 / 3; }

/* 4 fotos (o más, con "+N" en la última celda): cuadrícula 2x2 */
.collage-count-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.collage-cell {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.collage-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 26, 46, 0.72);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: bold;
}

.gallery-item-count {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  background-color: var(--background);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 3px;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 26, 46, 0.92) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay-title {
  color: var(--primary);
  font-size: 1.05rem;
  text-shadow: 0 0 8px var(--primary);
}

.gallery-item-tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  background-color: var(--background);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  z-index: 2;
}

.gallery-item-tag.tag-dibujo { border-color: var(--primary); color: var(--primary); }

/* ========== GALERÍA - MODAL / POPUP ========== */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(10, 10, 20, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gallery-modal.open { display: flex; }

.gallery-modal-box {
  background-color: var(--card);
  border: 3px solid var(--primary);
  box-shadow: 0 0 40px rgba(245, 255, 99, 0.3);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .gallery-modal-box {
    flex-direction: row;
    height: 600px;
    max-height: 90vh;
  }
}

.gallery-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--background);
  color: var(--primary);
  border: 2px solid var(--primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.gallery-modal-close:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.gallery-modal-media {
  position: relative;
  width: 100%;
  border-bottom: 2px solid var(--secondary);
  background-color: var(--background);
  flex-shrink: 0;
  max-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .gallery-modal-media {
    width: 60%;
    height: 100%;
    max-height: none;
    border-bottom: none;
    border-right: 2px solid var(--secondary);
  }
}

.gallery-modal-img,
.gallery-modal-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  max-height: 50vh;
}

@media (min-width: 768px) {
  .gallery-modal-img,
  .gallery-modal-video {
    max-height: none;
  }
}

/* Flechas de navegación del popup, estilo Instagram */
.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 26, 46, 0.7);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.gallery-modal-nav:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 12px rgba(245, 255, 99, 0.5);
}

.gallery-modal-nav-prev { left: 0.75rem; }
.gallery-modal-nav-next { right: 0.75rem; }

/* Flechas de sección: cambian de tarjeta/álbum completo, pegadas al borde de
   la pantalla (fuera de la caja del popup). Más grandes y discretas que las
   flechas internas del álbum, para que no se confundan entre sí. */
.gallery-modal-card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  opacity: 0.55;
  transition: all 0.2s;
}

.gallery-modal-card-nav:hover {
  opacity: 1;
  border-color: var(--primary);
  background-color: rgba(26, 26, 46, 0.6);
  box-shadow: 0 0 14px rgba(245, 255, 99, 0.4);
}

.gallery-modal-card-nav-prev { left: 1.25rem; }
.gallery-modal-card-nav-next { right: 1.25rem; }

@media (max-width: 900px) {
  /* En pantallas estrechas la caja del popup ocupa casi todo el ancho,
     así que las flechas de sección se pegan más al borde para no solaparse. */
  .gallery-modal-card-nav-prev { left: 0.35rem; }
  .gallery-modal-card-nav-next { right: 0.35rem; }
  .gallery-modal-card-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }
}

/* Puntos indicadores de posición dentro del álbum */
.gallery-modal-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.4rem;
}

.gallery-modal-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgba(245, 255, 99, 0.35);
  border: 1px solid var(--primary);
  transition: background-color 0.2s;
}

.gallery-modal-dot.active {
  background-color: var(--primary);
  box-shadow: 0 0 6px rgba(245, 255, 99, 0.6);
}

.gallery-modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

@media (min-width: 768px) {
  .gallery-modal-body {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

.gallery-modal-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px var(--primary);
}

.gallery-modal-desc {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.gallery-modal-meta {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--secondary);
}

/* ========== GALERÍA - DESCARGAS (skins) ========== */
.downloads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) { .downloads-grid { grid-template-columns: repeat(2, 1fr); } }

.download-card {
  background-color: var(--card);
  border: 3px solid var(--secondary);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(252, 149, 86, 0.3);
  border-color: var(--primary);
}

.download-card-preview {
  width: 100%;
  height: 200px;
  background-color: var(--muted);
  border-bottom: 2px solid var(--secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.download-card-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.download-card-desc {
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  flex: 1;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  font-family: 'Share Tech Mono', monospace;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.download-btn:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 12px rgba(245, 255, 99, 0.4);
}

/* ========== GALERÍA - ESTADOS DE CARGA ========== */
.gallery-status {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 1.1rem;
  padding: 2rem 1rem;
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .gallery-grid { columns: 1; }
  .gallery-modal-box { max-height: 95vh; }

  .gallery-modal-nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.95rem;
  }

  .gallery-modal-card-nav {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1rem;
    top: auto;
    bottom: 0.5rem;
    transform: none;
  }

  .gallery-modal-card-nav-prev { left: 0.35rem; }
  .gallery-modal-card-nav-next { right: 0.35rem; }
}

/* ========== PROYECTOS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  border: 2px solid var(--border);
  background-color: var(--card);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: 0 0 20px rgba(245, 255, 99, 0.2);
  transform: translateY(-2px);
}

.project-card--wip {
  border-color: var(--secondary);
  opacity: 0.9;
}

.project-card-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--border);
}

.project-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.project-card-preview--placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--muted),
    var(--muted) 10px,
    var(--background) 10px,
    var(--background) 20px
  );
}

.project-placeholder-icon {
  font-size: 2rem;
  color: var(--secondary);
  letter-spacing: 0.1em;
}

.project-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.project-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wip-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  font-family: 'Share Tech Mono', monospace;
}

.project-card-title {
  font-size: 1.15rem;
  color: var(--primary);
  line-height: 1.3;
}

.project-card-desc {
  font-size: 1rem;
  color: var(--muted-foreground);
  flex: 1;
  line-height: 1.5;
}

.project-card-install {
  border: 1px solid rgba(245, 255, 99, 0.2);
  padding: 0.75rem 1rem;
  background-color: rgba(15, 52, 96, 0.4);
}

.project-install-title {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.project-install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-install-steps li {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  padding-left: 1rem;
  position: relative;
}

.project-install-steps li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.project-install-steps code {
  color: var(--secondary);
  font-family: 'Share Tech Mono', monospace;
}

.download-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--secondary);
  color: var(--secondary);
}

.download-btn--disabled:hover {
  background-color: transparent;
  color: var(--secondary);
  box-shadow: none;
}

/* ========== FOOTER SOCIAL ICONS ========== */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-social-link:hover {
  opacity: 0.7;
}

.footer-social-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

/* ========== HERRAMIENTAS - NOTA EXTERNA ========== */
.tools-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--secondary);
  background-color: rgba(252, 149, 86, 0.07);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.tools-notice-icon {
  color: var(--secondary);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tools-notice strong {
  color: var(--secondary);
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== LANG POPUP ========== */
.lang-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lang-popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.lang-popup-box {
  background-color: var(--card);
  border: 4px solid var(--primary);
  padding: 2.5rem;
  text-align: center;
  max-width: 90%;
  width: 500px;
  box-shadow: 0 0 30px rgba(245, 255, 99, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.lang-popup-overlay.show .lang-popup-box {
  transform: translateY(0);
}

/* ========== FLAG ICONS ========== */
.flag-icon {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  object-fit: cover;
}

.flag-icon-large {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}
