/* ============================================================
   TIPOGRAFÍA
   ============================================================ */

@font-face {
  font-family: 'MiFuente';
  src: url('fonts/ClearSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'MiFuente';
  src: url('fonts/ClearSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'MiFuente';
  src: url('fonts/ClearSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'MiFuente';
  src: url('fonts/ClearSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'MiFuente';
  src: url('fonts/ClearSans-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}


/* ============================================================
   BICENTENARIO SCM — RESPONSIVE LANDING
   ============================================================ */

:root {
  --blue-dark: #111476;
  --blue: #171cf0;
  --blue-light: #82b9f1;
  --text: #202020;
  --muted: #666;
  --light: #eeeeee;
  --placeholder: #a99072;
  --max-width: 1120px;
}


/* ============================================================
   BASE
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'MiFuente', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}

img,
video {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 64px), var(--max-width));
  margin-inline: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}


/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */

.image-placeholder,
.video-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, #a99072, #c0aa8e);
  color: #fff;
  text-align: center;
}

.image-placeholder span,
.video-placeholder span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #777;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(40px, 8vw, 110px) clamp(100px, 14vw, 220px);
  color: #fff;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, .08),
    rgba(0, 0, 0, 0)
  );
}


/* Logo 200 años */

.anniversary-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: .8;
}

.anniversary-mark img {
  width: clamp(180px, 22vw, 380px);
  height: auto;
  display: block;
}


/* Texto principal */

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.hero-copy span {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 400;
}

.hero-copy strong {
  display: inline-block;
  padding: 14px 28px;
  border: 3px solid currentColor;
  border-radius: 50px;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}


/* ============================================================
   INTRO / HISTORIA
   ============================================================ */

.intro {
  padding: 110px 0;
  color: #fff;

  background:
    linear-gradient(
      110deg,
      #8ab8e8 0%,
      #3135f0 40%,
      #11145e 100%
    );
}

.intro-inner {
  width: min(calc(100% - 64px), var(--max-width));
  margin: auto;

  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.intro-text {
  max-width: 430px;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 700;
}

.history-image {
  aspect-ratio: 1.55;
  background: #c8bda7;
  color: #6d6457;
}


/* ============================================================
   GENERIC WHITE SECTIONS
   ============================================================ */

.section-white {
  background: #fff;
}


/* ============================================================
   LIBRO HISTÓRICO
   ============================================================ */

.books {
  padding: 34px 0 76px;
}

.books h2,
.press h2 {
  max-width: 980px;
  margin: 0 auto 32px;
  text-align: center;

  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
}

.book-grid,
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.book-image {
  aspect-ratio: .78;
  overflow: hidden;
}

.book-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Texto de los libros */

.book-volume {
  margin: 20px 0 5px;
  font-size: 1.2rem;
  font-weight: 700;
}

.book-description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #555;
}


/* Links de los libros */

.book-card a {
  text-decoration: none;
}

.book-link {
  color: inherit;
}

.book-link .book-volume {
  cursor: pointer;
}

.book-link:hover .book-volume {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.book-card .book-image {
  cursor: pointer;
}


/* ============================================================
   VIDEO
   ============================================================ */

.video-section {
  padding: 40px 0 70px;
  background: #ededed;
}

.video-section h2 {
  text-align: center;
  margin-bottom: 36px;
  font-size: clamp(22px, 2.3vw, 31px);
}

.video-container {
  width: min(900px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 7px;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* ============================================================
   PRENSA
   ============================================================ */

.press {
  padding: 55px 0 75px;
}

.press-grid {
  gap: 34px;
}

.press-image {
  aspect-ratio: .82;
  margin-bottom: 12px;
}

.press-card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.press-card p {
  margin: 3px 0 0;
  font-size: 1rem;
  color: #555;
}


/* Links de prensa */

.press-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.press-link:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.press-link .press-image {
  cursor: pointer;
}


/* ============================================================
   SEMINARIO
   ============================================================ */

.seminar {
  padding: 46px 0 64px;
  background: var(--blue-dark);
  color: #fff;
}

.seminar-inner {
  max-width: 780px;
}

.eyebrow {
  margin-bottom: 8px;
  text-align: center;
  font-size: 2rem;
  font-weight: 300;
}

.seminar h2 {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #080a63;

  font-size: clamp(20px, 2.4vw, 30px);
  text-align: center;
}

.date {
  margin-bottom: 32px;
  text-align: center;
  opacity: .8;
  font-size: 1.5rem;
  font-weight: 300;
}

.seminar h3 {
  margin: 0 0 8px 40px;
  text-align: left;
  font-size: 19px;
}

.schedule {
  margin-top: 0;
}


/* HORARIOS */

.schedule-row {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;

  padding: 11px 0;

  border-bottom: 1px solid rgba(255, 255, 255, .4);

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}


/* Hora */

.schedule-row time {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;

  justify-self: end;

  font-weight: 700;
  font-size: 1rem;
  text-align: right;
}


/* Contenido del horario */

.schedule-row > div {
  min-width: 0;
}


/* Descripciones */

.schedule-row p {
  margin: 5px 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.speaker {
  font-weight: 700;
}

.description {
  font-weight: 400;
  font-style: italic;
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  min-height: 55px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding: 0 32px;
  background: #eee;
}

.footer-icons {
  display: flex;
  gap: 14px;
}

.footer-icons a {
  color: #222;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 800px) {

  .container,
  .intro-inner {
    width: min(calc(100% - 40px), var(--max-width));
  }

  .hero {
    min-height: 520px;
  }

  .hero-overlay {
    padding: 40px;
  }

  .intro-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro-text {
    max-width: none;
  }

  .history-image {
    width: 100%;
  }

  .book-grid,
  .press-grid {
    gap: 18px;
  }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 560px) {

  .container,
  .intro-inner {
    width: calc(100% - 32px);
  }


  /* HERO */

  .hero {
    min-height: 440px;
  }

  .hero-overlay {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 34px 24px 42px;
  }

  .anniversary-mark {
    align-items: center;
  }

  .anniversary-mark img {
    width: clamp(170px, 48vw, 240px);
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-copy span {
    font-size: 1.1rem;
  }

  .hero-copy strong {
    font-size: 1.8rem;
    padding: 10px 18px;
  }


  /* INTRO */

  .intro {
    padding: 58px 0;
  }

  .intro-text {
    font-size: 15px;
  }

  .history-image {
    aspect-ratio: 1.25;
  }


  /* LIBROS */

  .books {
    padding: 30px 0 52px;
  }

  .books h2,
  .press h2 {
    font-size: 21px;
  }

  .book-grid,
  .press-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .book-card {
    max-width: 310px;
    margin: auto;
  }


  /* VIDEO */

  .video-section {
    padding: 34px 0 50px;
  }


  /* SEMINARIO */

  .seminar {
    padding: 40px 0 50px;
  }

  .seminar h2 {
    font-size: 19px;
  }

  .schedule-row {
    grid-template-columns: 145px 1fr;
    gap: 18px;
  }

  .schedule-row time {
    justify-self: end;
    text-align: right;
  }


  /* FOOTER */

  .footer {
    min-height: 52px;
    padding: 0 18px;
  }
}