@import url("https://fonts.cdnfonts.com/css/nexa-bold");
@import url("https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap");

:root {
  --purple: #7971e5;
  --purple-light: #b9b6f0;
  --yellow: #ffe561;
  --gray: #e8e8e8;
  --dark: #171717;
  --white: #ffffff;
  --font-family: "Nexa", sans-serif;
  --alt-font: "Amiri", serif;
  --radius: 12px;
  --drop-shadow: 4px 4px 0px var(--dark);
  --border: solid 2px var(--dark);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--white);
  box-sizing: border-box;
}

.purple-bg {
  background-color: var(--purple);
  color: var(--white);
}

.purple-bg span {
  color: var(--yellow);
  font-family: var(--alt-font);
  font-style: italic;
  font-weight: normal;
}

.yellow-bg {
  background-color: var(--yellow);
  color: var(--dark);
}

.dark-bg {
  background-color: var(--dark);
  color: var(--white);
}

.light-purple-bg {
  background-color: var(--purple-light);
  color: var(--dark);
}

.gray-bg {
  background-color: var(--gray);
  color: var(--dark);
}

#hero {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-decor {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
}

.hero-container {
  max-width: 1200px;
  width: calc(100% - 8rem);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  padding: 4rem;
}

.hero-container p {
  font-size: 1.4rem;
  font-weight: bold;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0;
}

p,
li {
  font-size: 1.25rem;
  margin: 0;
}

h1 span {
  font-size: 2rem;
}

.navbar {
  position: sticky;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--drop-shadow);
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  gap: 1.75rem;
  margin-right: 4rem;
}

nav a {
  text-decoration: none;
  color: var(--white);
  font-family: var(--alt-font);
  font-style: italic;
  font-size: 1.25rem;
  transition: 300ms;
  &:hover {
    color: var(--yellow);
    transition: 300ms;
  }
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: calc(100vw / 12);
  height: auto;
}

.navbar .mobile-menu {
  display: none;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
}

.menu-bg {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
}

#orientacion,
#protocolo,
#recientes,
#eventos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin: 0;
}

#orientacion,
#protocolo,
#eventos h2, #recientes h2 {
  text-align: center;
}

#eventos p {
  max-width: 700px;
  text-align: center;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 0.5rem;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: bold;
  transition: 300ms;
  box-shadow: var(--drop-shadow);
  border: var(--border);
  font-size: 1.25rem;
  font-family: var(--font-family);
}

.btn img {
  width: 1.25rem;
  height: auto;
  margin-bottom: 0.25rem;
}

.btn.purple-bg:hover {
  background-color: var(--dark);
  transition: 300ms;
  box-shadow: 4px 4px 0px var(--purple);
  border: solid 2px var(--purple);
}

.two-col {
  display: flex;
  flex-direction: row;
  max-width: 100%;
}

.column {
  flex: 1;
  display: flex;
  flex-flow: column;
  justify-content: center;
  padding: 4rem;
  gap: 1rem;
  position: relative;
}

.left {
  align-items: flex-end;
}

.right {
  align-items: flex-start;
}

.left > *,
.right > * {
  max-width: 560px;
  width: 100%;
}
.center {
  align-items: center;
  text-align: center;
}

.icon-title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--drop-shadow);
  cursor: pointer;
  transition: 300ms;
  &:hover {
    transition: 300ms;
    background-color: var(--purple);
  }
}

.icon-sm {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--yellow);
  border-radius: var(--radius);
  cursor: pointer;
  transition: 300ms;
  &:hover {
    transition: 300ms;
    background-color: var(--purple);
  }
}

.icon-title h2 {
  margin-top: 0.5rem;
}

.video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.5rem;
  z-index: 2;
}

iframe {
  border-radius: var(--radius);
  border: var(--border);
  box-shadow: var(--drop-shadow);
  width: 95%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.play {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--purple);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--drop-shadow);
  padding: 1rem;
  cursor: pointer;
  transition: 300ms;
  &:hover {
    background-color: var(--dark);
    transition: 300ms;
    box-shadow: 4px 4px 0px var(--yellow);
    border: solid 2px var(--yellow);
  }
}

.play img {
  width: 2rem;
  height: auto;
}

.video-decor {
  position: absolute;
  top: 0;
  right: -8vw;
  width: 100%;
  height: 95%;
  z-index: 1;
}

.btn-container {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.mechanisms-bg {
  background-image: url("https://21624600.fs1.hubspotusercontent-na1.net/hubfs/21624600/raw_assets/public/cegi/assets/mechanisms.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex: 1;
  min-height: 600px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}

.simple-card {
  width: calc(100% - 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.5rem;
  gap: 1rem;
  border-radius: var(--radius);
}

h4 {
  margin: 0;
  font-size: 1.25rem;
}

ol {
  margin: 0;
}

ol li {
  margin-bottom: 1rem;
}

.image {
  width: 60%;
  min-width: 350px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--drop-shadow);
  border: var(--border);
}

.quote {
  font-family: var(--alt-font);
  font-style: italic;
  font-size: 1.5rem;
}

.events-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: calc(100% - 4rem);
  flex-wrap: wrap;
}

.event-card {
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.5rem;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--drop-shadow);
  background-color: var(--white);
  gap: 1rem;
  align-self: stretch;
}

.event-card p {
  font-size: 1rem;
  text-align: left;
}

.card-tag {
  border-radius: 999px;
  border: var(--border);
  padding: 0.3rem 0.5rem 0.12rem;
  font-weight: bold;
}

.fullwidth {
  width: calc(100% - 3rem);
}

.card-cover {
  width: calc(100% - 4px);
  height: auto;
  aspect-ratio: 7 / 5;
  border-radius: var(--radius);
  border: var(--border);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.badge {
  min-width: 250px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  aspect-ratio: 1 / 1;
  height: auto;
  background-image: url("https://21624600.fs1.hubspotusercontent-na1.net/hubfs/21624600/raw_assets/public/cegi/assets/badge.svg");
  background-size: contain;
  color: var(--white);
}

.badge h4 {
  font-family: var(--alt-font);
  font-style: italic;
  font-size: 4.25rem !important;
  line-height: 100%;
  text-align: center;
}

.badge p {
  font-size: 2.5rem !important;
  font-family: var(--alt-font);
  line-height: 100%;
}

.autowidth {
  width: fit-content;
}

.report {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 1.5rem;
}

footer {
  padding: 4rem;
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: flex-end;
}

footer img {
  width: auto;
  height: 5rem;
  margin-left: auto;
  margin-right: 2rem;
}

.icon img {
  width: 2rem;
  height: auto;
}

.icon-sm img {
  width: 1rem !important;
  height: auto !important;
}

#orientacion .icon-title, #mecanismos .icon-title, #protoclo .icon-title, #eventos .icon-title   { margin-bottom: 0; }

.event-card .icon-title, .simple-card .icon-title { gap: 0.5rem; margin-bottom: 0; }
.event-card .icon-sm { border: var(--border); }

@media (max-width: 1200px) {
  .hero-decor {
    right: -12vw;
  }
}

@media (max-width: 1080px) {
  #hero {
    min-height: 450px;
  }

  .hero-decor {
    right: -8vw;
  }
}

@media (max-width: 990px) {
  .hero-decor {
    right: -8vw;
  }

  .hero-container p {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  h1 span {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  p,
  li {
    font-size: 1.15rem;
  }

  .grid-cards {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 880px) {
  #hero {
    min-height: 300px;
  }
  
  .hero-decor {
    right: -12vw;
  }
  
  .hero-container a, .hero-container p {
    font-size: 1.15rem;
  }
  
  .logo img {
    width: calc(100vw / 6);
  }

  .two-col {
    flex-direction: column;
  }

  #mecanismos {
    flex-direction: column-reverse;
  }

  .left {
    align-items: center;
  }

  .right {
    align-items: center;
  }

  .left > *,
  .right > * {
    max-width: 600px;
    width: 100%;
  }
  
  .navbar .desktop-nav {
    display: none;
  }

  .navbar .mobile-menu {
    display: flex;
    background-color: transparent;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 99px;
    margin-right: 2rem;
    cursor: pointer;
  }

  .vertical-menu {
    position: absolute;
    right: 0;
    height: 100vh;
    width: calc(100% - 4rem);
    padding: 2rem;
  }

  .vertical-menu nav ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
  }

  .close-button {
    display: flex;
    background-color: transparent;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 99px;
    cursor: pointer;
    color: var(--white);
    font-family: var(--alt-font);
    font-size: 1.5rem;
    gap: 0.5rem;
  }
}

@media (max-width: 760px) {
  .hero-decor {
    transform: rotate(270deg);
    right: -4vw;
    height: 80%;
  }
  
  footer img {
  height: 4rem;
    margin: 0;
}
}

@media (max-width: 660px) {
  .hero-container {
    gap: 1.25rem;
    padding: 2rem;
    width: calc(100% - 4rem);
  }
  .hero-container p {
    font-size: 1.15rem;
  }
  
  

  .navbar .mobile-menu {
    margin-right: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h1 span {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .logo img {
    width: calc(100vw / 4);
  }

  #orientacion,
  #protocolo,
  #recientes,
  #eventos {
    padding: 4rem 2rem;
  }

  .column {
    padding: 4rem 2rem;
  }
}

@media (max-width: 615px) {
.hero-decor {
    right: -12vw;
  }
}
@media (max-width: 570px) {
  .hero-decor {
    display: none;
  }
  #hero {
    min-height: 250px;
  }

  .play img {
    width: 1.5rem;
  }
}

@media (max-width: 500px) {


  .btn {
    font-size: 1.15rem;
    padding: 0.75rem 1.15rem 0.5rem;
  }

  .badge h4 {
    font-size: 3rem !important;
  }

  .badge p {
    font-size: 2rem !important;
  }
  
  .hero-container a, .hero-container p {
    font-size: 1rem;
  }
}

@media (max-width: 440px) {

.hero-container h1, .hero-container a, .hero-container  p {
    width: 100%; !important}
  
  p,
  li {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h1 span {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 340px) {

}