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

/* Body: base limpia */
body {
  font-family: "Inter", sans-serif;
  background-color: rgb(155, 167, 113);
  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: #fdffde;
}

/* Header Alls */

header {
  grid-area: header;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  background-color: #fff3d9;
  /* background-color: rgb(189, 188, 130); */

  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: #f6c255ff;

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

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

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

nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff3d9;
  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);
  padding: clamp(0.5rem, 1.5vw, 1rem) clamp(1rem, 3vw, 2rem);

  max-width: 1200px;
  margin: 0 auto;
}

nav li {
  border-bottom: 1px solid #f6c255ff;
}

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

nav a {
  display: block;
  color: #3a2a14ff;

  text-decoration: none;
  /* font-size: clamp(1rem, 2.5vw, 1.1rem);
  padding: clamp(0.75rem, 2vw, 1rem) 0;
  padding: clamp(0.4rem, 1.2vw, 0.6rem) 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;
  width: 100%;
  padding: clamp(1rem, 4vw, 3rem) clamp(0.5rem, 5vw, 4rem);
}

.site-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: rgb(250, 207, 88);
  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;
}

.intro h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #3a2a14ff;
  margin-bottom: 0.75em;
}

.cards-heading {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  margin-top: clamp(2rem, 5vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  color: #3a2a14ff;
  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);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.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 {
  border-top: 1px solid #f6c255ff;

  padding: clamp(1.25rem, 3vw, 1.75rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: #8c5a1fff;
  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 {
  background-color: #fff3d9; /* Ámbar suave */
  padding: 1.5rem 1rem;
  /* margin-top: 3rem; */
  color: #3a2a14;
  font-family: "Inter", sans-serif;
  text-align: center;
}

.footer-brand p {
  font-size: 0.85rem;
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #3a2a14;
}

.footer-secondary {
  margin-bottom: 1rem;
}

.footer-secondary a {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 400;
  color: #3a2a14;
  text-decoration: none;
  margin: 0 0.5rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-secondary a:hover {
  opacity: 1;
  color: #8c5a1f; /* tono oscuro elegante */
}

.footer-legal a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 300;
  color: #3a2a14;
  margin: 0 0.5rem;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-legal a:hover {
  opacity: 1;
  color: #8c5a1f;
}

/* Separación ligera entre secciones */
.footer-secondary,
.footer-legal {
  padding: 0.4rem 0;
}

/* 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%;
  height: 100%;
  padding: clamp(1rem, 4vw, 3rem) clamp(1rem, 7vw, 5rem);
  background-color: #fff;
}

main p {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  line-height: 1.45;
  color: #555;
  margin-bottom: 1em;
}
.article-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: rgb(250, 207, 88);
  line-height: 1.2;
  margin-bottom: 0.75em;
}

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

.article-section ul,
li,
ol {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  line-height: 1.45;
  color: #555;
  margin-bottom: 0.75em;
}
.article-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #3a2a14ff;

  margin-bottom: clamp(1rem, 2.5vw, 1rem);
  line-height: 1.3;
}

.article-section h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: #8c5a1fff;
  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);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  color: #555;

  line-height: 1.7;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

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

.article-section strong {
  font-weight: bold;
  color: #3a2a14ff;
}

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

.article-section--cta {
  border-top: 1px solid #e2e8f0;
  padding-top: 2rem;
  margin-top: 2rem;
}

.course-cta-wrapper {
  margin-top: 1.5rem;
}

.button-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background-color: #3b7c5b;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, transform 0.1s ease,
    box-shadow 0.2s ease;
}

.button-cta:hover {
  background-color: #32684c;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.button-cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.button-cta:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
}
/* Checkout form - alineación vertical */
.article-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
}

.article-label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
}

.article-input {
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
