:root {
  --bg: #111A19;
  --card: #284139;
  --text: #F0D794;
  --muted: #809076;
  --brand: #BB6830;
  --brand-alt: #F0D794;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0 0 18px;
}

p {
  margin: 0 0 14px;
  font-weight: 300;
}

/* Header y navegación */

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  animation: fadeInDown 0.6s ease-out;
}

header.site-header .brand {
  margin: 0;
  font-size: 1px;
  line-height: 0;
}

.brand {
  margin: 0;
  padding: 0;
}

.logo img {
  display: block;
}

.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.site-nav a:focus,
.site-nav a:hover,
.site-nav a.activo {
  background: var(--card);
  transform: translateY(-1px);
}

/* Banner */

#banner {
  background: url('../assets/images/banner.jpg') center/cover no-repeat;
  padding: 120px 0;
  position: relative;
}

#banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 26, 25, 0.35), rgba(17, 26, 25, 0.85));
}

#banner .banner-inner {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

.slogan {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.sub {
  color: var(--muted);
  margin: 0 0 20px;
  font-weight: 300;
}

.btn.cta {
  display: inline-block;
  background: var(--brand);
  color: #1a100b;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  border: 0;
}

.btn.cta:hover {
  background: var(--brand-alt);
  color: #0d0f0e;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(187, 104, 48, 0.35);
}

/* Bloques de contenido */

.content-block {
  padding: 72px 0;
  animation: fadeInUp 0.7s ease-out;
}

.content-block.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.content-block h2 {
  font-size: 28px;
}

.content-block h3 {
  font-size: 22px;
}

.grid.two-cols {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.grid.two-cols figure {
  margin: 0;
  background: var(--card);
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.grid.two-cols figcaption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

/* Texto sobre mí */

.texto-sobre {
  max-width: 800px;
  margin-top: 8px;
}

/* Pastillas */

.pills {
  padding: 72px 0;
  animation: fadeInUp 0.7s ease-out;
}

.pills h2 {
  margin-bottom: 16px;
}

.pill-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.pill h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.pill p {
  margin: 0;
  color: var(--muted);
}

/* Ads */

.ads {
  padding: 72px 0;
  animation: fadeInUp 0.7s ease-out;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ad {
  background: var(--card);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

/* Formulario de contacto */

.form-contacto {
  background: rgba(40, 65, 57, 0.85);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
}

.form-contacto .campo {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-contacto label {
  font-size: 14px;
  font-weight: 500;
}

.form-contacto input,
.form-contacto select,
.form-contacto textarea {
  border-radius: 10px;
  border: 1px solid rgba(240, 215, 148, 0.25);
  background: #111A19;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}

.form-contacto textarea {
  resize: vertical;
}

.form-contacto input:focus,
.form-contacto select:focus,
.form-contacto textarea:focus {
  outline: 2px solid var(--brand-alt);
  outline-offset: 1px;
}

/* Footer */

.site-footer {
  background: #0b0f13;
  padding: 40px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.social ul {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.social img {
  width: 28px;
  height: 28px;
  filter: grayscale(20%);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.social a:hover img {
  filter: grayscale(0%);
  transform: translateY(-1px);
}

.authors {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  text-align: left;
  gap: 16px;
}


.author-list {
  list-style: none;
  margin: 0 !important;
  padding: 0!important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  display: flex;
  flex-direction: row;
  align-items: center;

  justify-content: flex-start; 
  width: fit-content; 
  gap: 16px;
}

.author-list figure {
  margin: 0 !important;
  padding: 0 !important;
}
.author-list img {
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.course dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 0;
}

.course dt {
  font-weight: 600;
}

.course dd {
  margin: 0;
}

.legal {
  color: var(--muted);
  margin-top: 16px;
  font-size: 13px;
}

/* Accesibilidad */

:focus-visible {
  outline: 3px solid var(--brand-alt);
  outline-offset: 2px;
}

/* Animaciones */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
