/* Colores y separación general: empieza a personalizar por acá. */
:root {
  --background: #fff;
  --text: #111;
  --border: #888;
  --surface: #f2f2f2;
  --space: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Reserva el ancho de la barra incluso cuando la página es corta. */
html { overflow-y: scroll; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--background);
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }

button, .button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
}

button:not(:disabled), summary { cursor: pointer; }
button:disabled { color: #666; border-color: var(--border); }

input, textarea, select {
  display: block;
  width: 100%;
  margin: 8px 0 16px;
  padding: 10px;
  border: 1px solid var(--border);
}

:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
.skip { position: absolute; top: -100px; padding: 12px; background: white; }
.skip:focus { top: 8px; }

/* Encabezado y navegación. */
.site-header {
  width: calc(100% - 32px);
  max-width: 1360px;
  margin: 32px auto 0;
  padding: 16px 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.brand { font-size: 24px; font-weight: bold; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.logo-placeholder { width: 40px; height: 40px; border: 1px dashed var(--border); background: var(--background); }
.account-link { margin-left: auto; display: flex; align-items: center; gap: 12px; font-weight: bold; text-decoration: none; }
.account-link svg { width: 24px; height: 24px; fill: #222; }

.site-header nav, .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.site-header nav a { font-weight: bold; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Bloques compartidos por todas las pantallas. */
main {
  width: calc(100% - 32px);
  max-width: 1360px;
  margin: 0 auto;
  flex: 1;
  padding: 48px 24px;
}

h1 { font-size: 36px; line-height: 1.2; }
h2 { font-size: 22px; }
.box { padding: var(--space); border: 1px solid var(--border); }

.hero {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero > p:first-child { margin: 0 0 16px; }
.ip-row { display: flex; align-items: center; gap: 16px; max-width: 100%; }
.ip-row h1 { margin: 0; font-size: 44px; font-weight: bold; }
#copy-ip { padding: 10px; width: 44px; height: 44px; flex-shrink: 0; background: transparent; }
#copy-ip svg { width: 22px; height: 22px; fill: none; stroke: #333; stroke-width: 2; }
.hero .actions { margin-top: 32px; gap: 16px; }
.hero .button { width: 192px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: bold; text-decoration: none; }
.discord-icon { width: 24px; height: 24px; object-fit: contain; filter: grayscale(1); }
#copy-status { min-height: 24px; margin: 16px 0 0; }

/* El inicio continúa debajo de la primera pantalla. */
.hero { min-height: calc(100vh - 200px); }
.server-summary { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 32px; font-size: 14px; }
.home-block { padding: 64px 0; border-top: 1px solid var(--border); }
.home-block h2 { font-size: 28px; margin-top: 0; }
.home-block h3 { font-size: 20px; }
.block-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.community-block { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.community-block .placeholder { min-height: 240px; display: flex; align-items: center; justify-content: center; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space);
}

.stack { display: grid; gap: var(--space); }
.section-gap { margin-top: var(--space); }
.placeholder { border: 1px dashed var(--border); padding: 32px; text-align: center; }
summary { font-weight: bold; }

footer {
  width: calc(100% - 32px);
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
footer h2 { margin: 0 0 16px; font-size: 16px; }
footer p { margin: 12px 0; }
footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
footer nav h2 { margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }

/* En pantallas chicas, las cajas se apilan. */
@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  .site-header { width: calc(100% - 24px); margin-top: 16px; padding: 16px; gap: 24px; }
  .site-header nav { order: 3; width: 100%; gap: 24px; }
  main { width: calc(100% - 24px); padding: 32px 16px; }
  .hero { min-height: 400px; }
  .community-block { grid-template-columns: 1fr; gap: 24px; }
  .home-block { padding: 40px 0; }
  .block-heading { align-items: flex-start; flex-direction: column; }
  .ip-row { gap: 8px; }
  .ip-row h1 { font-size: clamp(20px, 5vw, 40px); }
  footer { width: calc(100% - 24px); padding: 24px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}




