/* ===== RESETEO SIMPLE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Trebuchet MS", "Verdana", sans-serif;
  font-size: 14px;
  color: #555;
  background-color: #ffeefb;
}

/* Fondo de puntitos pastel */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 20%, transparent 21%),
    radial-gradient(circle, rgba(255,255,255,0.9) 20%, transparent 21%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  background-color: #b9f6ff; /* celestito */
}

/* ===== CONTENEDOR PRINCIPAL ===== */

#page {
  width: 980px;
  margin: 20px auto 40px auto;
  background: #fffdfc;
  border: 6px solid #ffffff;
  outline: 1px solid #ffd7f0;
  box-shadow: 0 0 0 4px #b9f6ff;
}

/* ===== HEADER ===== */

#header {
  background: linear-gradient(to bottom, #fff7ff, #ffe6fb);
  border-bottom: 3px solid #ffd1ec;
  padding: 15px 25px 10px 25px;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo {
  width: 90px;
  height: auto;
  margin-right: 15px;
}

.site-title h1 {
  font-size: 22px;
  color: #ff66a8;
  text-shadow: 1px 1px 0 #ffffff;
}

.site-title p {
  font-size: 12px;
  color: #7ab6c8;
}

/* ===== NAV ===== */

#main-nav {
  margin-top: 10px;
}

#main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

#main-nav a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  text-decoration: none;
  border-radius: 20px;
  border: 2px solid #fff;
  background-color: #ffe98b;
  color: #ff5d9e;
  box-shadow: 0 0 0 2px #ffd1ec;
}

/* Colores distintos por sección (como botoncitos de menú antiguo) */
#main-nav .nav-profile  { background-color: #ffe98b; }
#main-nav .nav-works    { background-color: #bdf7ff; }
#main-nav .nav-gallery  { background-color: #ffe4ff; }
#main-nav .nav-blog     { background-color: #d5ffbf; }
#main-nav .nav-download { background-color: #ffc6dd; }
#main-nav .nav-link     { background-color: #c6e5ff; }
#main-nav .nav-mail     { background-color: #fff4bf; }

#main-nav a:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ===== HERO / INFO ===== */

#hero-box {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 3px dotted #ffd1ec;
  background-color: #fffafc;
}

.hero-main .hero-inner {
  background-color: #ffffff;
  border: 3px solid #ffd1ec;
  box-shadow: 0 0 0 3px #b9f6ff;
  padding: 8px;
  text-align: center;
}

.hero-main img {
  max-width: 100%;
  height: auto;
}

.hero-caption {
  margin-top: 6px;
  font-size: 13px;
  color: #ff86b4;
}

.hero-info h2 {
  font-size: 16px;
  color: #ff6bac;
  margin-bottom: 5px;
}

.hero-info {
  background: #fff;
  border: 3px dashed #ffd1ec;
  padding: 8px;
}

.hero-info .info-inner img {
  width: 100%;
  margin-bottom: 4px;
}

.hero-info p {
  font-size: 12px;
  line-height: 1.4;
}

/* ===== LAYOUT PRINCIPAL ===== */

#content-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  padding: 10px 20px 20px 20px;
}

/* ===== SIDEBAR ===== */

#sidebar .box {
  background: #ffffff;
  border: 3px solid #c7f1ff;
  margin-bottom: 10px;
  padding: 8px;
  position: relative;
}

#sidebar .box h2 {
  font-size: 14px;
  color: #ff6bac;
  margin-bottom: 6px;
  padding-bottom: 3px;
  border-bottom: 2px dotted #ffd1ec;
}

/* Update */

.update-list {
  list-style: none;
  font-size: 12px;
  line-height: 1.4;
}

.update-list .date {
  display: block;
  font-weight: bold;
  color: #7ab6c8;
}

/* Ranking */

.ranking-list {
  padding-left: 18px;
  font-size: 12px;
}

/* Mini box */

.box-mini p {
  font-size: 12px;
  line-height: 1.4;
}

/* ===== MAIN CONTENT ===== */

#main-content .box {
  background: #ffffff;
  border: 3px solid #ffd1ec;
  padding: 10px 12px 12px 12px;
}

#main-content .box h2 {
  font-size: 16px;
  color: #ff6bac;
  margin-bottom: 8px;
  border-bottom: 2px dotted #ffd1ec;
}

/* News */

.news-item {
  border-bottom: 1px dotted #ffd1ec;
  padding: 8px 0;
}

.news-item:last-child {
  border-bottom: none;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.news-header h3 {
  font-size: 14px;
  color: #7ab6c8;
}

.news-date {
  font-size: 11px;
  color: #f2a3c0;
}

.news-item p {
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.5;
}

.news-link {
  font-size: 11px;
  text-decoration: none;
  color: #ff6bac;
}

/* ===== FOOTER ===== */

#footer {
  text-align: center;
  font-size: 11px;
  color: #999;
  padding: 10px;
  border-top: 3px solid #ffd1ec;
  background-color: #fff7ff;
}

/* ===== RESPONSIVE SIMPLE ===== */

@media (max-width: 900px) {
  #page {
    width: 96%;
  }

  #hero-box {
    grid-template-columns: 1fr;
  }

  #content-wrapper {
    grid-template-columns: 1fr;
  }
}