/* EcoNac.mx - Estilos Modernos y Minimalistas */

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
  background: #fff;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 30px;
  transition: padding 0.3s ease;
}

/* Tipografía */
h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-top: 35px;
  margin-bottom: 18px;
  line-height: 1.4;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #444;
  margin-top: 28px;
  margin-bottom: 14px;
  line-height: 1.4;
}

p {
  margin-bottom: 18px;
  text-align: justify;
  color: #444;
}

/* Enlaces */
a {
  color: #0066cc;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

a:hover {
  color: #0052a3;
}

a:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* Header */
header {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 30px;
  margin-bottom: 40px;
}

/* Disclaimer Principal */
.disclaimer {
  background-color: #f8f8f8;
  border-left: 4px solid #666;
  padding: 20px 24px;
  margin: 30px 0;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.disclaimer strong {
  color: #333;
  font-weight: 700;
}

/* Sección Intro */
.intro {
  background-color: #fafafa;
  padding: 28px 32px;
  margin: 35px 0;
  border-radius: 8px;
  border: 1px solid #efefef;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.intro h2 {
  margin-top: 0;
  font-size: 1.375rem;
  color: #222;
}

/* Contenido Principal */
.content {
  margin: 35px 0;
}

/* Lista de Artículos */
.article-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.article-list li {
  margin-bottom: 16px;
  background-color: #fafafa;
  border-left: 3px solid #0066cc;
  border-radius: 4px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.article-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 3px 8px rgba(0, 102, 204, 0.15);
  background-color: #f5f9ff;
}

.article-list li a {
  display: block;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1.0625rem;
  color: #0066cc;
  line-height: 1.5;
}

.article-list li a:hover {
  color: #0052a3;
}

/* Navegación */
nav {
  margin: 35px 0;
  padding: 18px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

nav a:hover {
  background-color: #f0f0f0;
}

/* Artículo */
article {
  margin: 30px 0;
}

article p:first-of-type {
  font-size: 1.0625rem;
  color: #333;
}

/* Footer */
footer {
  font-size: 0.875rem;
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
  color: #666;
}

footer p {
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #777;
}

footer .footer-disclaimer {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #666;
  padding: 22px 26px;
  margin: 25px 0;
  font-size: 0.875rem;
  color: #555;
  text-align: left;
  border-radius: 6px;
  line-height: 1.7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

footer nav {
  border: none;
  padding: 15px 0;
  margin: 20px 0;
  justify-content: center;
}

footer nav a {
  color: #0066cc;
  margin: 0 12px;
  padding: 6px 10px;
}

footer nav a:hover {
  background-color: #f0f0f0;
}

/* Responsive Design - Tablets */
@media (max-width: 768px) {
  body {
    padding: 30px 25px;
  }

  h1 {
    font-size: 1.625rem;
  }

  h2 {
    font-size: 1.375rem;
    margin-top: 30px;
  }

  h3 {
    font-size: 1.125rem;
  }

  .intro {
    padding: 24px 26px;
  }

  .article-list li {
    margin-bottom: 14px;
  }

  .article-list li a {
    padding: 14px 18px;
    font-size: 1rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  footer .footer-disclaimer {
    padding: 20px 22px;
    font-size: 0.8125rem;
  }
}

/* Responsive Design - Móviles */
@media (max-width: 480px) {
  body {
    padding: 20px 18px;
    font-size: 0.9375rem;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  h2 {
    font-size: 1.25rem;
    margin-top: 25px;
    margin-bottom: 14px;
  }

  h3 {
    font-size: 1.0625rem;
  }

  .disclaimer {
    padding: 16px 18px;
    font-size: 0.875rem;
    margin: 25px 0;
  }

  .intro {
    padding: 20px 22px;
    margin: 28px 0;
  }

  .article-list li {
    margin-bottom: 12px;
  }

  .article-list li a {
    padding: 13px 16px;
    font-size: 0.9375rem;
  }

  .article-list li:hover {
    transform: translateX(2px);
  }

  nav {
    margin: 28px 0;
    padding: 14px 0;
    gap: 10px;
  }

  nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 12px;
  }

  footer {
    margin-top: 50px;
    padding-top: 25px;
  }

  footer .footer-disclaimer {
    padding: 18px 20px;
    font-size: 0.8125rem;
  }

  footer nav {
    flex-direction: column;
    gap: 8px;
  }

  footer nav a {
    display: block;
    margin: 4px 0;
  }
}

/* Muy Pequeños - Extra Small */
@media (max-width: 360px) {
  body {
    padding: 16px 14px;
  }

  h1 {
    font-size: 1.375rem;
  }

  h2 {
    font-size: 1.125rem;
  }

  .article-list li a {
    font-size: 0.875rem;
    padding: 12px 14px;
  }
}

/* Accesibilidad y Mejoras */
*:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

::selection {
  background-color: #d6e9ff;
  color: #222;
}

/* Print Styles */
@media print {
  body {
    max-width: 100%;
    padding: 0;
    color: #000;
  }

  a {
    text-decoration: underline;
    color: #000;
  }

  .disclaimer,
  .footer-disclaimer {
    border: 1px solid #000;
    background: #fff;
  }

  nav,
  footer nav {
    display: none;
  }
}
