/* === Fuente personalizada === */
@font-face {
  font-family: 'MingLiU';
  src: url('https://raw.githubusercontent.com/TheCONDIMENTSoficialxd/torizo-webpage-assets/main/fonts/MingLiU.woff2') format('woff2'),
       url('https://raw.githubusercontent.com/TheCONDIMENTSoficialxd/torizo-webpage-assets/main/fonts/MingLiU.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* === Variables globales === */
:root {
  --max-width: 800px;
  --bg-overlay: rgba(0, 0, 0, 0.85);
  --accent-orange: #ff320a;
  --accent-green: #08b600;
  --accent-yellow: #fad701;
  --accent-blue: #0165d7;
}

/* === Reset básico === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === Body === */
body {
  background-image: url('https://github.com/TheCONDIMENTSoficialxd/torizo-webpage-assets/blob/main/fondo.gif?raw=true');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  font-family: 'MingLiU', Arial, sans-serif;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  min-height: 100vh;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Cajita central === */
.wrap {
  width: min(var(--max-width), 95%);
  margin: 1.5rem auto;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

/* === Títulos y textos con fondo negro === */
.site-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: bold;
  color: var(--accent-yellow);
  margin-bottom: 1rem;
  background: #171717;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
}

.label {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin: 0.5rem 0;
  background: #171717;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  width: fit-content;
}

/* === Textos destacados === */
.accent-orange { color: var(--accent-orange); }
.accent-green { color: var(--accent-green); }

/* === Imágenes/íconos === */
.icon {
  max-width: 100px;
  height: auto;
}

/* === Grilla de Cómics (Disposición Vertical / Scrolling) === */
.comics-grid {
  display: flex;
  flex-direction: column; /* Alineación vertical en columna */
  align-items: center;
  gap: 35px;              /* Separación entre tarjetas */
  padding: 20px 0;
  width: 100%;
}

.comic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 380px); /* Ancho ampliado para destacar las imágenes */
  padding: 16px;
  background-color: #171717;
  border: 2px solid var(--accent-yellow);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  text-decoration: none;
  color: var(--accent-yellow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.comic-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-orange);
  box-shadow: 0 8px 20px rgba(255, 50, 10, 0.5);
}

.comic-card img {
  width: 100%;
  height: 480px; /* Mayor altura para un formato de portada completo */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}

.comic-card span {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* === Lista de enlaces === */
.social-links {
  list-style: none;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links li {
  margin: 1.5rem 0;
}

.social-links li a {
  display: block;
  background-color: #171717;
  color: #fff;
  padding: 0.75rem;
  text-decoration: none;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  width: 250px;
  text-align: center;
}

.social-links li a:hover {
  color: var(--accent-orange);
  transform: scale(1.05);
}

/* === Enlace Volver === */
.nav-links {
  text-align: center;
  margin-top: 20px;
}

.internal-link {
  display: inline-block;
  background-color: #171717;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}

.internal-link:hover {
  color: #ff320a;
  transform: scale(1.05);
}

/* === Link centrado (segunda página) === */
.center-link {
  text-align: center;
}

/* === Responsive === */
@media (max-width: 600px) {
  .icon {
    max-width: 80px;
  }
  .social-links li a {
    font-size: 1rem;
    padding: 0.6rem;
  }
  .comic-card {
    width: 90%;
    padding: 12px;
  }
  .comic-card img {
    height: 360px; /* Adaptación proporcional para móviles */
  }
}