/* Estilos globales - cambiodemando */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  background: #f8f9fa;
  color: #1a1a1a;
  line-height: 1.5;
}

main {
  flex: 1;
  padding-bottom: 2rem;
}

/* Header / Nav */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo:hover {
  color: #333;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hamburguesa: oculto en desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: #f8f9fa;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s;
  }

  body.nav-open .nav-links {
    max-height: 200px;
    opacity: 1;
  }

  .nav-links li {
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
  }

  .site-nav {
    position: relative;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #fff;
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-social-label {
  font-weight: 600;
  color: #444;
}

.footer-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}

.footer-social-list a {
  color: #1a5c97;
  text-decoration: none;
  font-weight: 500;
}

.footer-social-list a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-sep {
  color: #ccc;
}

.footer-copy {
  margin: 0;
  color: #999;
  font-size: 0.8rem;
}
