  @font-face {
    font-family: Montserrat;
    src: url(recursos/Montserrat-VariableFont_wght.ttf);
  }

  :root {
  --identidad1: #1C59E6;
  --identidad2: #E9C4FF;

  --rosa1: #F5E4FF;
  --rosa2: #F9EFFF;
  --rosa3: #FCF6FF;

  --azul1: #6392FF;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    font-family: 'Montserrat';
    text-decoration: none;
  }

  body {
    background-color: #FAF2FF;
  }
  
  header {
    background-color: #fff;
    display: flex;
    padding: 2% 5%;
    justify-content: space-between;
  }
  
  .menu {
    display: none;
  }

  header img {
    width: 18%;
  }

  header div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    text-align: right;
  }

  header p {
    display: block;
    font-weight: 300;
    font-size: 20px;
    color: var(--identidad1);
  }

  header nav a {
    margin-left: 20px;
    font-size: 20px;
    color: #888888;
    font-weight: 700;
  }

  header nav a:hover {
    color: var(--identidad1);
    transition: ease 0.3s;
  }

  footer {
    height: 200px;
    margin-top: 150px;
    background-color: var(--identidad1);
  }

  .fotos {
    height: 55vh;
    background-color: #888888;
  }

  main {
    margin: 50px 20%;
    font-size: 18px;
  }

  main > div {
    margin-bottom: 100px;
  }

  .intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .intro div:nth-of-type(1) {
    display: flex;
    align-items: center;
  }

  h1 {
    font-size: 38px;
    color: var(--identidad1);
    font-weight: 700;
  }

  .intro a {
    font-size: 18px;
    color: #666666;
  }

  .intro a:hover {
    color: var(--identidad1);
  }

  .intro > div:nth-of-type(2) {
    display: flex;
  }

  .intro > div:nth-of-type(2) > div{
    flex-direction: column;
    margin-right: 15px;
    display: flex;
    align-items: flex-start;
  }

  .intro > div:nth-of-type(2) div{
    gap: 15px;
  }

  .intro div:nth-of-type(2) div  div:nth-of-type(2){
    margin-left: 45px;
  }

  .linea {
    width: 150px;
    border-top: 2px solid var(--identidad1);
  }

  .intro > div:nth-of-type(2) p:nth-of-type(1) {
    color: var(--identidad1);
    font-weight: 600;
  }

  .intro > div:nth-of-type(2) p:nth-of-type(2) {
    margin-left: 10px;
  }
  
  .programa {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  h3 {
    font-size: 38px;
    color: var(--identidad1);
    font-weight: 700;
  }

  .titulo a {
    margin-left: 15px;
    font-size: 18px;
    color: #666666;
  }

  .programa > div:nth-of-type(1) {
    display: flex;
    align-items: center;
  }

  .programa img {
    height: 90px;
  }

  .programa > div:nth-of-type(2) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 55%;
  }

  .programa > div:nth-of-type(2) div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  h4 {
    grid-column: 1 / -1;
    font-size: 22px;
    font-weight: 700;
    color: var(--identidad1);
  }

  .programa > div:nth-of-type(2) div p {
    font-size: 16px;
    color: #666666;
    font-weight: 600;
  }
  
  .costos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .costos > div:nth-of-type(1) {
    display: flex;
    align-items: center;
  }

  .tabla {
  display: grid;

  /* Categoría | Inscripción | Costos */
  grid-template-columns: 1.5fr 0.85fr 0.85fr;

  /* 1 encabezado + 9 filas */
  grid-template-rows: repeat(10, auto);

  width: 60%;
  }

  /* Encabezados */
  .costosR1 {
    grid-row: 1;
    background-color: var(--identidad1);
    color: #FAF1FF;
    font-weight: 700;
  }

  /* Opcional: para que el contenido quede centrado */
  .tabla > div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  /* Categorías */
  .categoria {
    grid-row: span 3;
    background-color: var(--azul1);
    color: #fff;
    font-weight: 700;
  }

  .categoria:nth-child(2 of .categoria) {
    background-color: var(--identidad2);
  }

  .tabla > div.categoria {
      align-items: flex-start;
      justify-content: flex-start;
  }

  .temprana, .tardia, .sede {
    font-size: 16px;
    color: #414141;
    font-weight: 600;
  }

  .temprana {
    background-color: var(--rosa1);
    border-right: 2px solid var(--azul1);
  }
  .tardia {
    background: var(--rosa2);
    border-right: 2px solid var(--azul1);
  }
  .sede {
    background: var(--rosa3);
    border-right: 2px solid var(--azul1);
    border-bottom: 2px solid var(--azul1);
  }

  .sede:nth-child(3 of .sede), .sede:nth-child(4 of .sede) {
    border-bottom: none;

  }

  .temprana:nth-child(5 of .temprana), .temprana:nth-child(6 of .temprana) {
    border-top: 2px solid var(--azul1);
  } 

  .costos > p:nth-of-type(1) {
    font-weight: 600;
    color: var(--identidad1);
  }

  .costos > p:nth-of-type(3) span {
    font-weight: 600;
    color: var(--identidad1);
    font-size: 22px;
  }

  .costos > a {
    font-size: 22px;
    background-color: var(--azul1);
    color: var(--rosa2);
    padding: 10px 30px;
    display: inline-block;
    font-weight: 600;
    text-align: center;
  }

  .costos > a:hover {
    background-color: var(--identidad1);
    transition: ease 0.3s;
  }

@media (max-width: 1300px) {

  header {
    height: auto;
    align-items: flex-end;
  }

  header p {
    margin-bottom: 50px;
    font-size: 16px;
  }

  header nav a{
    font-size: 18px;
  }

  main {
    margin: 40px 15%;
  }

  .programa > div:nth-of-type(2) {
    width: 100%;
  }
  .intro > div:nth-of-type(2) div img {
  width: 75px;
  }

  .intro > div:nth-of-type(2) div {
    font-size: 15px;
  }

  .linea {
    width: 100px;
  }

  .titulo h3 {
    font-size: 26px;
  }

  .tabla {
    width: 90%;
  }

}

@media (max-width: 1100px) {

  header nav a {
    font-size: 15px;
    margin-left: 10px;
  }

  header p {
    margin-bottom: 30px;
    font-size: 16px;
  }
  
  .titulo a {
    font-size: 12px;
  }

  .tabla {
    width: 100%;
  }
}

@media (max-width: 900px) {

  header {
    position: relative;
    padding: 3% 5%;
  }

  header > img {
    width: 28%;
  }

  .menu {
    display: block;
    width: 18%;
  }

  header p {
    display: none;
  }

  nav {
      display: none;
      position: absolute;
      top: 100%;
      right: 0;
      background: white;
      padding: 20px 40px 20px 40px;
  }

  header nav a {
    font-size: 20px;
    margin-bottom: 10px;
  }

  nav.active {
        display: flex;
        flex-direction: column;
    }

  .intro > div:nth-of-type(2) {
    display: block;
  }
  .linea {
    border: 0;
    width: 0;
  }

  .intro > div:nth-of-type(2) div {
    flex-direction: row;
    gap: 0;
    margin-bottom: 10px;
    font-size: 18px;
  }

  .intro div:nth-of-type(2) div div:nth-of-type(2) {
    margin-left: 20px;
    margin-top: 25px;
  }

    
  }

  @media (max-width: 600px) {

    nav {
      width: 100%;
      padding: 20px 5% 20px 0px;
    }

    header > img {
      width: 42%;
    }

    main {
      font-size: 16px;
    }

    .programa > div:nth-of-type(2) {
      gap: 10px;
    }

    .programa img {
      height: 50px;
    }

    .programa > div:nth-of-type(2) {
          grid-template-columns: repeat(2, 1fr);
    }

    .programa p {
      font-size: 12px;
    }
    
    .titulo a {
      display: none;
    }

    main > div {
    margin-bottom: 50px;
    }

    .tabla {
      font-size: 16px;
    }

    .tabla > div {
      padding: 5px;
    }

    .temprana, .tardia, .sede {
      font-size: 14px;
    }

  }

  @media (max-width: 420px) {
    header nav a {      
      font-size: 18px;
      margin-bottom: 6px;
    }

    main {
      font-size: 12px;
    }

    .titulo h3 {
      font-size: 22px;
    }

    .intro > div:nth-of-type(2) div img {
        width: 50px;
    }

    .intro div:nth-of-type(2) div div:nth-of-type(2) {
        margin-top: 15px;
        font-size: 16px;
    }

    .tabla {
      font-size: 14px;
    }

    .temprana, .tardia, .sede {
      font-size: 12px;
    }

    .costos > a {
    font-size: 16px;
    }

  }