@font-face {
  font-family: BlackFont;
  src: url(./resources/Fonts/Lato/Lato-Black.ttf);
}

@font-face {
  font-family: BoldFont;
  src: url(./resources/Fonts/Lato/Lato-Bold.ttf);
}

@font-face {
  font-family: regularFont;
  src: url(./resources/Fonts/Lato/Lato-Regular.ttf);
}

:root {
  --asideWidth: 80mm;
  --titleColor: #001850;
  --darkenColor: #010b22;
}

* {
  letter-spacing: 1.5mm;
  font-family: regularFont;
  padding: 0%;
  margin: 0%;
  box-sizing: border-box;
  font-size: 4mm;
}

h1 {
  font-family: BlackFont;
}

h2 {
  font-family: BoldFont;
}

body {
    display: block !important;  /* Cambia flex por block */
    justify-content: normal !important;
    align-items: normal !important;
    margin: 0 auto;
    background: transparent;
  }
  
  #Page1 {  
  display: grid;
  margin: 0 auto; /* Centrar horizontalmente */
  width: 210mm;
  /* height: 279.4mm; letter */
  /* height: 240mm; A4*/
  height: 240mm;
  grid-template:
    "header header" 45mm
    "aside  main" 1fr
    / var(--asideWidth) 1fr;


  header {
    grid-area: header;
    z-index: -1;
    background-image: url('./images/headerImage10.jpg');
    background-size: cover;
    display: flex;
    

    #ImageProfileContainer {
      width: var(--asideWidth);
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;

      img {
        width: 40mm;
        height: 40mm;
        clip-path: circle(50%);
      }
    }

    #MainDataProfile {
      display: flex;
      flex-flow: column;
      justify-content: center;
      padding: 5px;
      z-index: 1;
    }

    #MainDataProfile>h1 {
      font-size: 10mm;
      color: white;
      font-family: blackFont;
    }

    #MainDataProfile>p {
      font-size: 5mm;
      color: whitesmoke;
      font-family: regularFont;
    }
  }

  aside {
    grid-area: aside;
    background-color: rgb(227, 242, 255);
    padding: 4mm;
  }

  main {
    grid-area: main;
    background-color: white;
    padding: 10mm 0mm 10mm 10mm;
  }

  section {
    opacity: 0.6;
    margin-bottom: 4.5mm;
  }

  section>p,
  li {
    letter-spacing: normal;
    color: var(--titleColor);
  }

  section>p>span {
    letter-spacing: normal;
    color: var(--titleColor);
    font-family: BoldFont
  }

  section>p>a {
    letter-spacing: normal;
  }

  .title {
    margin-bottom: 1mm;
    letter-spacing: 2mm;
    color: var(--titleColor);
    font-size: 5mm;
    transition: color 1s ease, opacity 1s ease;
  }

  .title:hover {
    color: var(--darkenColor);
  }

  .title::after {
    content: '';
    display: block;
    margin-top: 2mm;
    background-color: var(--titleColor);
    width: 20mm;
    height: 1.5mm;
    position: relative;
    top: -1mm;
    border-radius: 0 1mm 1mm 0;
    transition: width 2s ease, color 1s ease, opacity 1s ease;
  }

  section:hover .title::after {
    width: 100%;
    border-radius: 0 1mm 1mm 0;
    background-color: var(--darkenColor);
    opacity: 0.8;
  }

  li {
    margin: 0mm 0mm 1.5mm 0mm;
    padding: 1mm;
    background-color: rgb(232 232 232);
    border-radius: 2mm;
    list-style: none;
    transition: color 1s ease !important;
  }

  li:hover {
    color: blue;
  }
}