/* ================================
   HEADER BASE
   ================================ */

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 25px;

  padding: 20px 25px;
  margin-bottom: 40px;

  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.title-website h1 {
  font-family: 'Uncial Antiqua', serif;
  font-size: 2.2rem;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-shadow: 3px 3px 0px #222;
}

.title-website p {
  font-size: 1rem;
  color: var(--text-soft);
}

/* ================================
   NAVEGACIÓN
   ================================ */

.option_nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  padding-right: 20px;
  margin: 0;
}

.option_nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.option_nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: transform 0.3s ease;
}

.option_nav a:hover {
  color: #ffffff;
}

.option_nav a:hover::after {
  transform: scaleX(1);
}

/* ================================
   VARIANTE COMPACTA
   Solo se aplica en la página de poemas
   ================================ */

body.page-poems .site-header {
  padding: 12px 20px;
  margin-bottom: 25px;
  gap: 18px;
}

body.page-poems .logo img {
  width: 55px;
  height: 55px;
}

body.page-poems .title-website h1 {
  font-size: 1.4rem;
  text-shadow: 2px 2px 0px #222;
}

body.page-poems .title-website p {
  font-size: 0.75rem;
}

body.page-poems .option_nav a {
  font-size: 0.95rem;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
  }

  .logo img {
    margin: 0 auto;
  }

  .option_nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  .title-website h1 {
    font-size: 1.6rem;
  }
}