/* =================================================================
   HYTALE DOCUMENTATION - CUSTOM STYLES
   Estética inspirada en el juego Hytale
   ================================================================= */

/* -----------------------------------------------------------------
   VARIABLES DE COLOR - PALETA HYTALE
   ----------------------------------------------------------------- */
:root {
  /* Colores principales de Hytale */
  --hytale-cyan: #00bcd4;
  --hytale-cyan-light: #4dd0e1;
  --hytale-cyan-dark: #00acc1;
  --hytale-green: #66bb6a;
  --hytale-green-light: #81c784;
  --hytale-lime: #cddc39;
  --hytale-orange: #ff9800;
  --hytale-blue: #2196f3;

  /* Sombras y efectos */
  --hytale-shadow: 0 2px 8px rgba(0, 188, 212, 0.15);
  --hytale-shadow-lg: 0 4px 16px rgba(0, 188, 212, 0.2);
  --hytale-glow: 0 0 20px rgba(0, 188, 212, 0.3);

  /* Gradientes */
  --hytale-gradient-primary: linear-gradient(135deg, #00bcd4 0%, #4dd0e1 100%);
  --hytale-gradient-accent: linear-gradient(135deg, #66bb6a 0%, #81c784 100%);
  --hytale-gradient-hero: linear-gradient(135deg, #00bcd4 0%, #2196f3 50%, #66bb6a 100%);
}

/* -----------------------------------------------------------------
   ESQUEMA DE COLOR CLARO - HYTALE LIGHT
   ----------------------------------------------------------------- */
[data-md-color-scheme="hytale-light"] {
  /* Colores primarios */
  --md-primary-fg-color: #00bcd4;
  --md-primary-fg-color--light: #4dd0e1;
  --md-primary-fg-color--dark: #00acc1;
  --md-primary-bg-color: #ffffff;

  /* Colores de acento */
  --md-accent-fg-color: #66bb6a;
  --md-accent-fg-color--transparent: rgba(102, 187, 106, 0.1);
  --md-accent-bg-color: #ffffff;

  /* Fondo y texto */
  --md-default-bg-color: #fafafa;
  --md-default-fg-color: #263238;
  --md-default-fg-color--light: #546e7a;
  --md-default-fg-color--lighter: #78909c;
  --md-default-fg-color--lightest: #b0bec5;

  /* Código */
  --md-code-bg-color: #f5f5f5;
  --md-code-fg-color: #37474f;

  /* Enlaces */
  --md-typeset-a-color: #00acc1;

  /* Botones y elementos interactivos */
  --md-typeset-btn-color: #00bcd4;
}

/* -----------------------------------------------------------------
   ESQUEMA DE COLOR OSCURO - HYTALE DARK
   ----------------------------------------------------------------- */
[data-md-color-scheme="hytale-dark"] {
  /* Colores primarios */
  --md-primary-fg-color: #00bcd4;
  --md-primary-fg-color--light: #4dd0e1;
  --md-primary-fg-color--dark: #00acc1;
  --md-primary-bg-color: #1a1a1a;

  /* Colores de acento */
  --md-accent-fg-color: #66bb6a;
  --md-accent-fg-color--transparent: rgba(102, 187, 106, 0.15);
  --md-accent-bg-color: #1a1a1a;

  /* Fondo y texto - MEJORADO PARA LEGIBILIDAD */
  --md-default-bg-color: #121212;
  --md-default-fg-color: #e0e0e0;
  --md-default-fg-color--light: #b0bec5;
  --md-default-fg-color--lighter: #90a4ae;
  --md-default-fg-color--lightest: #78909c;

  /* Código - MEJORADO */
  --md-code-bg-color: #1e1e1e;
  --md-code-fg-color: #e0e0e0;
  --md-code-hl-color: rgba(0, 188, 212, 0.15);

  /* Enlaces - MÁS VISIBLES */
  --md-typeset-a-color: #4dd0e1;

  /* Tabla de contenidos */
  --md-typeset-table-color: rgba(224, 224, 224, 0.05);

  /* Efecto de brillo en modo oscuro */
  --md-shadow-z1: 0 2px 8px rgba(0, 0, 0, 0.4);
  --md-shadow-z2: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* -----------------------------------------------------------------
   HEADER - BARRA SUPERIOR
   ----------------------------------------------------------------- */
.md-header {
  background: var(--hytale-gradient-primary);
  box-shadow: var(--hytale-shadow-lg);
}

.md-header__title {
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Logo con efecto */
.md-header__button.md-logo {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.md-header__button.md-logo:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(var(--hytale-glow));
}

/* -----------------------------------------------------------------
   NAVEGACIÓN POR PESTAÑAS
   ----------------------------------------------------------------- */
.md-tabs {
  background: linear-gradient(to bottom, rgba(0, 188, 212, 0.1), transparent);
  border-bottom: 2px solid var(--hytale-cyan-light);
}

.md-tabs__link {
  font-weight: 600;
  transition: all 0.3s ease;
}

.md-tabs__link:hover {
  background: rgba(0, 188, 212, 0.1);
  transform: translateY(-2px);
}

.md-tabs__link--active {
  border-bottom: 3px solid var(--hytale-green);
}

/* -----------------------------------------------------------------
   SIDEBAR - NAVEGACIÓN LATERAL
   ----------------------------------------------------------------- */
.md-nav__item--active > .md-nav__link {
  color: var(--hytale-cyan);
  font-weight: 600;
  border-left: 3px solid var(--hytale-green);
  padding-left: calc(1rem - 3px);
}

.md-nav__link:hover {
  background: var(--md-accent-fg-color--transparent);
  border-radius: 4px;
}

/* -----------------------------------------------------------------
   BLOQUES DE CÓDIGO
   ----------------------------------------------------------------- */
.highlight {
  border-radius: 8px;
  border-left: 4px solid var(--hytale-cyan);
  box-shadow: var(--hytale-shadow);
  transition: box-shadow 0.3s ease;
}

.highlight:hover {
  box-shadow: var(--hytale-shadow-lg);
}

/* Botón de copiar código */
.md-clipboard {
  color: var(--hytale-cyan);
  transition: all 0.3s ease;
}

.md-clipboard:hover {
  color: var(--hytale-green);
  transform: scale(1.1);
}

/* Syntax highlighting personalizado */
.highlight .n { color: #00bcd4; } /* Nombres */
.highlight .k { color: #66bb6a; } /* Keywords */
.highlight .s { color: #ff9800; } /* Strings */
.highlight .mi { color: #cddc39; } /* Números */
.highlight .c1 { color: #78909c; font-style: italic; } /* Comentarios */

/* -----------------------------------------------------------------
   ADMONITIONS - CAJAS DE INFORMACIÓN
   ----------------------------------------------------------------- */
.admonition {
  border-radius: 8px;
  box-shadow: var(--hytale-shadow);
  border-left-width: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admonition:hover {
  transform: translateX(4px);
  box-shadow: var(--hytale-shadow-lg);
}

/* Warning - Estilo Hytale */
.admonition.warning {
  border-left-color: var(--hytale-orange);
}

.admonition.warning > .admonition-title {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), transparent);
}

/* Note - Estilo Hytale */
.admonition.note {
  border-left-color: var(--hytale-blue);
}

.admonition.note > .admonition-title {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), transparent);
}

/* Tip - Estilo Hytale */
.admonition.tip {
  border-left-color: var(--hytale-green);
}

.admonition.tip > .admonition-title {
  background: linear-gradient(135deg, rgba(102, 187, 106, 0.1), transparent);
}

/* -----------------------------------------------------------------
   TABLAS
   ----------------------------------------------------------------- */
table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--hytale-shadow);
}

thead {
  background: var(--hytale-gradient-primary);
}

thead th {
  color: white !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

tbody tr:hover {
  background: var(--md-accent-fg-color--transparent);
}

/* -----------------------------------------------------------------
   BOTONES Y ENLACES
   ----------------------------------------------------------------- */
.md-button {
  background: var(--hytale-gradient-primary);
  border-radius: 6px;
  box-shadow: var(--hytale-shadow);
  transition: all 0.3s ease;
  font-weight: 600;
}

.md-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--hytale-shadow-lg);
}

.md-button--primary {
  background: var(--hytale-gradient-accent);
}

/* Enlaces */
a {
  transition: color 0.3s ease;
}

a:hover {
  color: var(--hytale-green);
  text-decoration: underline;
  text-decoration-color: var(--hytale-cyan);
  text-decoration-thickness: 2px;
}

/* -----------------------------------------------------------------
   TÍTULOS
   ----------------------------------------------------------------- */
.md-typeset h1 {
  color: var(--hytale-cyan);
  border-bottom: 3px solid var(--hytale-green);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--hytale-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modo oscuro - Títulos más visibles */
[data-md-color-scheme="hytale-dark"] .md-typeset h1 {
  filter: brightness(1.2);
}

.md-typeset h2 {
  color: var(--hytale-cyan-dark);
  border-left: 4px solid var(--hytale-cyan);
  padding-left: 1rem;
  margin-left: -1rem;
}

[data-md-color-scheme="hytale-dark"] .md-typeset h2 {
  color: #4dd0e1;
}

.md-typeset h3 {
  color: var(--hytale-green);
}

[data-md-color-scheme="hytale-dark"] .md-typeset h3 {
  color: #81c784;
}

/* Texto del cuerpo en modo oscuro */
[data-md-color-scheme="hytale-dark"] .md-typeset p,
[data-md-color-scheme="hytale-dark"] .md-typeset li,
[data-md-color-scheme="hytale-dark"] .md-typeset td {
  color: #e0e0e0;
}

/* Código inline más visible */
[data-md-color-scheme="hytale-dark"] .md-typeset code {
  background: #1e1e1e;
  color: #4dd0e1;
  border-color: #00acc1;
}

/* -----------------------------------------------------------------
   TARJETAS Y CONTENEDORES
   ----------------------------------------------------------------- */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 8px;
}

/* -----------------------------------------------------------------
   BÚSQUEDA
   ----------------------------------------------------------------- */
.md-search__input {
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.md-search__input:focus {
  border-color: var(--hytale-cyan);
  box-shadow: var(--hytale-glow);
}

.md-search-result__item:hover {
  background: var(--md-accent-fg-color--transparent);
}

/* -----------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------- */
.md-footer {
  background: linear-gradient(135deg, #00bcd4 0%, #2196f3 100%);
}

.md-footer__link:hover {
  opacity: 0.8;
}

/* -----------------------------------------------------------------
   SCROLLBAR PERSONALIZADA
   ----------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--md-default-bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--hytale-gradient-primary);
  border-radius: 5px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--hytale-gradient-accent);
}

/* -----------------------------------------------------------------
   ANIMACIONES Y EFECTOS
   ----------------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: var(--hytale-shadow); }
  50% { box-shadow: var(--hytale-glow); }
}

/* Efecto flotante en el logo */
.md-logo {
  animation: float 3s ease-in-out infinite;
}

/* -----------------------------------------------------------------
   MEJORAS RESPONSIVE
   ----------------------------------------------------------------- */
@media screen and (max-width: 76.1875em) {
  .md-nav--primary .md-nav__title {
    background: var(--hytale-gradient-primary);
  }
}

/* -----------------------------------------------------------------
   PÁGINA PRINCIPAL - HERO
   ----------------------------------------------------------------- */
.md-typeset > :first-child {
  margin-top: 0;
}

/* Hero Section con imagen de fondo */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.9), rgba(33, 150, 243, 0.9)),
              url('../assets/images/hero-hytale.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: var(--hytale-shadow-lg);
  overflow: hidden;
}

[data-md-color-scheme="hytale-dark"] .hero-section {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.8), rgba(33, 150, 243, 0.8)),
              url('../assets/images/hero-hytale.jpg');
}

.hero-section h1 {
  color: white !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: none !important;
  -webkit-text-fill-color: white !important;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.3rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin: 0 auto;
}

/* Estilo especial para la primera sección de la página */
.md-content article > h1:first-of-type {
  font-size: 3rem;
  background: var(--hytale-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 2rem 0;
  animation: glow 3s ease-in-out infinite;
}

/* Feature Cards */
.feature-card {
  background: var(--md-default-bg-color);
  border: 2px solid var(--hytale-cyan);
  border-radius: 12px;
  padding: 2rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--hytale-gradient-primary);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hytale-shadow-lg);
  border-color: var(--hytale-green);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--hytale-cyan);
}

/* Grid de features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* -----------------------------------------------------------------
   MERMAID DIAGRAMS
   ----------------------------------------------------------------- */
.mermaid {
  text-align: center;
  border-radius: 8px;
  padding: 1rem;
  background: var(--md-code-bg-color);
  box-shadow: var(--hytale-shadow);
}

/* -----------------------------------------------------------------
   INLINE CODE
   ----------------------------------------------------------------- */
.md-typeset code {
  background: var(--md-code-bg-color);
  border: 1px solid var(--hytale-cyan-light);
  border-radius: 4px;
  padding: 0.1em 0.3em;
  font-weight: 600;
  color: var(--hytale-cyan-dark);
}

/* -----------------------------------------------------------------
   TAGS Y BADGES
   ----------------------------------------------------------------- */
.md-tag {
  background: var(--hytale-gradient-primary);
  border-radius: 4px;
  color: white;
  font-weight: 600;
  box-shadow: var(--hytale-shadow);
}

/* -----------------------------------------------------------------
   MEJORAS DE ACCESIBILIDAD
   ----------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--hytale-cyan);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------
   MEJORAS DE IMPRESIÓN
   ----------------------------------------------------------------- */
@media print {
  .md-header,
  .md-footer,
  .md-sidebar,
  .md-nav,
  .md-search {
    display: none;
  }
}

/* =================================================================
   SECCIÓN DE SERVIDORES - SERVER LISTING
   ================================================================= */

/* Server Stats */
.server-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--hytale-gradient-primary);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: white;
  box-shadow: var(--hytale-shadow-lg);
  transition: transform 0.3s ease;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Grid de servidores */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Server Card */
.server-card {
  background: var(--md-default-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--hytale-shadow-lg);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.server-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.3);
  border-color: var(--hytale-cyan);
}

.server-card.featured {
  border-color: var(--hytale-cyan);
  box-shadow: 0 4px 20px rgba(0, 188, 212, 0.4);
}

.server-banner {
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-badge {
  background: var(--hytale-gradient-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.server-content {
  padding: 1.5rem;
}

.server-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.server-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.server-info {
  flex: 1;
}

.server-name {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: var(--hytale-cyan);
}

.server-ip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.server-ip code {
  flex: 1;
  background: var(--md-code-bg-color);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.copy-ip {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.copy-ip:hover {
  transform: scale(1.2);
}

.server-description {
  color: var(--md-default-fg-color--light);
  line-height: 1.6;
  margin: 1rem 0;
  font-size: 0.95rem;
}

/* Server Tags */
.server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag-rpg { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.tag-pve { background: linear-gradient(135deg, #66bb6a, #81c784); color: white; }
.tag-pvp { background: linear-gradient(135deg, #f093fb, #f5576c); color: white; }
.tag-economy { background: linear-gradient(135deg, #ffd89b, #19547b); color: white; }
.tag-custom { background: linear-gradient(135deg, #4facfe, #00f2fe); color: white; }
.tag-survival { background: linear-gradient(135deg, #43e97b, #38f9d7); color: white; }
.tag-vanilla { background: linear-gradient(135deg, #fa709a, #fee140); color: white; }
.tag-creative { background: linear-gradient(135deg, #a8edea, #fed6e3); color: white; }
.tag-minigames { background: linear-gradient(135deg, #ffecd2, #fcb69f); color: white; }
.tag-competitive { background: linear-gradient(135deg, #ff9a9e, #fecfef); color: white; }
.tag-magic { background: linear-gradient(135deg, #a18cd1, #fbc2eb); color: white; }
.tag-adventure { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); color: white; }
.tag-building { background: linear-gradient(135deg, #fdcbf1, #e6dee9); color: white; }
.tag-contests { background: linear-gradient(135deg, #cfd9df, #e2ebf0); color: white; }
.tag-casual { background: linear-gradient(135deg, #fffeff, #d7fffe); color: #666; }
.tag-roleplay { background: linear-gradient(135deg, #ebc0fd, #d9ded8); color: white; }
.tag-tournaments { background: linear-gradient(135deg, #f77062, #fe5196); color: white; }
.tag-hardcore { background: linear-gradient(135deg, #16222a, #3a6073); color: white; }

.server-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--md-code-bg-color);
  border-radius: 8px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.stat-icon {
  font-size: 1.2rem;
}

.stat-value {
  font-weight: 600;
  color: var(--hytale-cyan);
}

.server-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--hytale-gradient-primary);
  color: white;
  flex: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--hytale-cyan);
  border: 2px solid var(--hytale-cyan);
  flex: 1;
}

.btn-secondary:hover {
  background: var(--hytale-cyan);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
  background: var(--hytale-gradient-primary);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
  color: white;
}

.cta-content h3 {
  color: white !important;
  margin-top: 0;
  font-size: 2rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: white !important;
}

/* Gamemode Grid */
.gamemode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gamemode-card {
  background: var(--md-default-bg-color);
  border: 2px solid var(--hytale-cyan);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.gamemode-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hytale-shadow-lg);
  border-color: var(--hytale-green);
}

.gamemode-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.gamemode-name {
  font-weight: 700;
  color: var(--hytale-cyan);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.gamemode-count {
  font-size: 0.9rem;
  color: var(--md-default-fg-color--light);
}

.footer-note {
  background: var(--md-code-bg-color);
  border-left: 4px solid var(--hytale-cyan);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

/* =================================================================
   FORMULARIO DE REGISTRO
   ================================================================= */

.registration-form {
  background: var(--md-default-bg-color);
  border: 2px solid var(--hytale-cyan);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--hytale-cyan);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--md-default-fg-color--lighter);
  border-radius: 8px;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--hytale-cyan);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-help {
  display: block;
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
  margin-top: 0.3rem;
}

.tags-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.tag-option {
  display: flex;
  align-items: center;
}

.tag-option input[type="checkbox"] {
  margin-right: 0.5rem;
}

.tag-option label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}

.file-upload {
  position: relative;
  margin-top: 0.5rem;
}

.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-upload-label {
  display: block;
  border: 2px dashed var(--hytale-cyan);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  background: var(--md-accent-fg-color--transparent);
  border-color: var(--hytale-green);
}

.upload-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.upload-text {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.upload-specs {
  display: block;
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
}

.image-preview {
  margin-top: 1rem;
  display: none;
}

.image-preview img {
  max-width: 100%;
  border-radius: 8px;
  border: 2px solid var(--hytale-cyan);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.benefit-card {
  background: var(--md-default-bg-color);
  border: 2px solid var(--hytale-cyan);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hytale-shadow-lg);
  border-color: var(--hytale-green);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  color: var(--hytale-cyan);
  margin-top: 0;
}

.support-section {
  background: var(--md-code-bg-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.support-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .servers-grid {
    grid-template-columns: 1fr;
  }

  .server-stats {
    grid-template-columns: 1fr;
  }

  .gamemode-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .server-stats-row {
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
