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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: Superclarendon, "Bookman Old Style", "URW Bookman",
    "URW Bookman L", "Georgia Pro", Georgia, serif;
  font-weight: normal;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.7rem;
  color: #2c3e50;
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

header {
  max-width: 800px;
  width: 100%;
  margin: auto;
  background-color: #ffffff;
  padding: 40px 40px 0px 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

main {
  max-width: 800px;
  width: 100%;
  margin: auto;
  background-color: #ffffff;
  padding: 0px 40px 40px 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

footer {
  padding: 30px;
  max-width: 800px;
  width: 100%;
  margin: auto;
  font-size: 0.9rem;
}

/* Encabezados */
h1,
h2,
h3 {
  font-family: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans",
    Arial, sans-serif;
  font-weight: bold;
  line-height: 2.6rem;
  color: #2c3e50;
  margin: 1.5rem 0 1rem;
  border-bottom: 1px solid #ecf0f1;
  padding-bottom: 0.5rem;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Estilos para enlaces */
a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1a5276;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #85c1e9;
  outline-offset: 2px;
}

li {
  display: list-item;
  padding-bottom: 1rem;
}

img {
  margin-top: 10px;
  margin-bottom: 20px;
}

/* Navegación */
.main-nav {
  font-family: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans",
    Arial, sans-serif;
  font-size: 1rem;
  margin-top: 1.5rem;
}

/* Versión desktop */
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

.nav-item {
  flex-shrink: 0;
}

/* Mobile: 2 líneas máximo */
@media (max-width: 480px) {
  .nav-list {
    gap: 0.8rem;
    justify-content: flex-start;
  }

  .nav-item {
    flex: 1 1 45%;
    max-width: 45%;
  }

  .nav-link {
    display: block;
    padding: 0.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    font-size: 0.9em;
  }

  .nav-link::after {
    display: none;
  }
}

.autor-fecha {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-style: italic;
}

/* Botones redes sociales */
.sharing-buttons {
  margin: 2rem 0;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.share-btn {
  background: #f8f9fa;
  border: 1px solid #2c3e50;
  padding: 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: #e0d0b8;
  transform: translateY(-2px);
}

.share-icon {
  width: 24px;
  height: 24px;
  fill: #2c3e50;
}

/* Estilos específicos por red */
.twitter:hover {
  background: #000;
  border-color: #000;
}
.twitter:hover .share-icon {
  fill: #fff;
}

.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}
.facebook:hover .share-icon {
  fill: #fff;
}

.clipboard:hover {
  background: #7a6a5a;
  border-color: #7a6a5a;
}
.clipboard:hover .share-icon {
  fill: #fff;
}

/* Navegación entre artículos */
nav[aria-label="pagination"] {
  font-family: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans",
    Arial, sans-serif;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}
