/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Body: base limpia */
body {
  font-family: "Georgia", serif;
  background-color: #b9ad9d;
  color: #2c2c2c;
  display: flex;
  justify-content: center;
  line-height: 1.6;
}

/* Wrapper: arquitectura principal */
.wrapper {
  width: 100%;
  max-width: 1024px;
  display: grid;
  grid-template-areas:
    "header"
    "hero"
    "main"
    "footer";
  grid-template-rows: auto auto 1fr auto;
  min-height: 100vh;
  background-color: #e6ecf1;
}

/* Header Alls */

header {
  grid-area: header;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  background-color: #07090a;
  color: #e6ecf1;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(0.5rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  height: clamp(2.5rem, 6vw, 4rem);
  width: auto;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

.menu-toggle {
  display: none;
}

.hamburger {
  cursor: pointer;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  color: #f0f4f8;

  user-select: none;
  line-height: 1;
}

.hamburger::before {
  content: "\2630"; /* ☰ */
}

.menu-toggle:checked ~ .header-content .hamburger::before {
  color: #f0f4f8;
  content: "✕";
}

nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #07090a;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.menu-toggle:checked ~ nav {
  max-height: 500px;
}

nav ul {
  list-style: none;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 2rem);
  max-width: 1200px;
  margin: 0 auto;
}

nav li {
  border-bottom: 1px solid rgba(240, 244, 248, 0.08);
}

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

nav a {
  display: block;
  color: #f0f4f8;

  text-decoration: none;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  padding: clamp(0.75rem, 2vw, 1rem) 0;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.7;
}

/* Hero Home */

.lobby-image {
  grid-area: hero;
  width: 100%;
  overflow: hidden;
}

.lobby-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Main Home */

.home-main {
  grid-area: main;
  max-width: 1200px;
  width: 100%;
  padding: clamp(1rem, 4vw, 3rem) clamp(0.5rem, 5vw, 4rem);
}

.site-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: #0a2a48;
  line-height: 1.2;
  margin-bottom: 0.75em;
}

.intro p {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  margin-bottom: 0.75em;
  line-height: 1.45;
  color: #555;
}

.cards-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin-top: clamp(2rem, 5vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  color: #0a2a48;
  font-weight: 600;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-image {
  width: 100%;
  height: auto;
  display: block;
}

.card-content {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: #2c2c2c;
  margin-bottom: clamp(0.5rem, 2vw, 0.75rem);
}

.card p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: #666;
  margin-bottom: clamp(1rem, 2.5vw, 1.25rem);
  flex: 1;
}

.card a {
  display: inline-block;
  color: #0a2a48;
  text-decoration: none;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: color 0.2s;
}

.card a:hover {
  color: #154e7a;
}

/* Footer Alls*/
footer {
  grid-area: footer;
  background-color: #07090a;
  color: #e6ecf1;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;

  padding: 1.25rem 2rem;
  gap: 1.25rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
}

.footer-nav a {
  display: block;
  color: #e6ecf1;
  text-decoration: none;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  padding: clamp(1rem, 2.5vw, 1.5rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.2s;
}

.footer-nav a:last-child {
  border-bottom: none;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.footer-logo {
  width: 100%;
  max-width: clamp(180px, 35vw, 280px);
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-funding {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  line-height: 1.6;
  color: rgba(230, 236, 241, 0.85);
  max-width: 700px;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.2px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
}

.footer-legal a {
  display: block;
  color: #e6ecf1;
  text-decoration: none;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  padding: clamp(0.85rem, 2vw, 1.2rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.2s;
}

.footer-legal a:last-child {
  border-bottom: none;
}

.footer-legal a:hover {
  opacity: 0.7;
}

/* Hero Articulos */

.article-image {
  grid-area: hero;
  width: 100%;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Main Articulos */

.page-main {
  grid-area: main;
  width: 100%;
  padding: clamp(1rem, 4vw, 3rem) clamp(1rem, 7vw, 5rem);
}

.article-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: #0a2a48;
  line-height: 1.2;
  margin-bottom: 0.75em;
}

.article-section {
  margin-bottom: clamp(2.5rem, 4vw, 3rem);
}

.article-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #0a2a48;
  margin-bottom: clamp(1rem, 2.5vw, 1rem);
  line-height: 1.3;
}

.article-section h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: #2c2c2c;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  line-height: 1.4;
}

.article-section p {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.7;
  color: #2c2c2c;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-section strong {
  font-weight: bold;
  color: #0a2a48;
}

.article-section em {
  font-style: italic;
  color: #444;
}

/* Imagenes de Talleres Article */

.content-image {
  width: 100%;
  display: block;
  margin: 0 auto;
  margin: clamp(2rem, 4vw, 3rem) 0;
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}
