@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
  --font-size: .65em; 
  --background-color: #f0f0f0;
  --font-color: black;
  --a-font-color: blue;
}

html {
  transform: scale(0.8);
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    font-family: "Nunito", serif;
    transition: background-color 0.3s, color 0.3s;
    color: var(--font-color);
}

button {
  border: none;
}

#toggle-dark-mode {
  color: var(--font-color);
  background-color: var(--background-color);
  transition: background-color 0.3s, color 0.3s;
  z-index: 2;
}

  .page {
    width: 210mm; /* Ancho de un folio A4 */
    /*background-image: url(/src/assets/background.webp); */
    background-color: (--background-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Simula un borde */
    padding: 0;
    box-sizing: border-box;
    border: 1px solid black;
  }
  
  header, footer {
    text-align: center;
  }

  a {
    text-decoration: none;
    color: var(--a-font-color);
    font-weight: bold;
  }

  a.email {
    color: var(--a-font-color);
  }
  
  main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  

  .header-background {
    position: relative;
    padding: 0;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0.5;
    z-index: 1;
  }

  img {
    -webkit-user-drag: none;
  }

  h1, p {
    position: relative;
    z-index: 1;
  }

  h3, p, ul, li {
    margin-left: 1em;
  }

  .container-img {
    position: relative;
  }

  .profile-picture {
    position: absolute;
    top: -8em;
    left: 50%;
    transform: translateX(-50%);
    width: 22%;
    z-index: 1;
  }

  h1 {
    font-variant: small-caps;
    top: 23px;
    text-align: center;
    margin-bottom: 25px;
  }

  h2 {
    text-align: center;
    font-size: 1.45em;
  }

  hr {
    border: 1px solid rgb(165, 163, 163);
    margin: 0 2em 0 2em; 
  }

  main section {
    text-align: wrap;
    width: 48%;
  }

  p, li {
    font-size: var(--font-size);
  }

  .logo-ecpptv2 {
    margin-left: 2em;
    max-width: 10em;
}

  .coche {
    margin-left: 1em;
    display: inline-block;
    margin-right: 0.5em;
  }

  .coche-line {
    display: flex;
    align-items: center;
  }

  ul {
    margin-left: 0;
    margin-right: 1em;
  }

  footer {
    margin-top: auto; /* Asegura que el footer se quede al final */
  }

  @media print {
    html {
      transform: scale(1);
    }
    .page {
      border: none;
      width: auto;
      height: auto;
      box-shadow: none;
      padding: 0;
      margin: 0;
    }

    .toggle-dark-icon {
      display: none !important;
    }
  }

  @media (max-width: 1024px) and (orientation: portrait) {

    html {
      transform: scale(1);
    }
    .page {
      border: none;
      width: auto;
      height: auto;
      box-shadow: none;
      padding: 0;
      margin: 0;
    }

    body {
      height: 100em;
    }

    .profile-picture {
      top: -170px;
    }

  }

