body {
      font-family: "Segoe UI", Arial, sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f2f4f7;
      color: #333;
    }

    nav {
      background-color: #004d80;
      color: #fff;
      padding: 10px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
    }

    .nav-title {
      font-size: 1.2em;
      font-weight: bold;
    }

    .nav-links a {
      color: #fff;
      text-decoration: none;
      margin: 0 10px;
      font-weight: 500;
    }

    .nav-links a:hover {
      text-decoration: underline;
    }

    .cv-container {
      max-width: 900px;
      margin: 30px auto;
      background: #fff;
      padding: 25px;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 3px solid #004d80;
      padding-bottom: 15px;
      margin-bottom: 20px;
      gap: 20px;
      flex-wrap: nowrap; /* Fuerza alineación horizontal */
    }

    .header-info {
      flex: 1 1 70%;
    }

    .header-info h1 {
      color: #004d80;
      margin: 0;
      font-size: 1.8em;
    }

    .header-info p {
      margin: 4px 0;
    }

    .header-photo {
      flex: 0 0 auto;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .photo {
      width: 120px;
      height: 120px;
      border-radius: 10px;
      border: 2px solid #004d80;
      object-fit: cover;
    }

    .section {
      margin-top: 25px;
    }

    h2 {
      color: #004d80;
      border-bottom: 1px solid #004d80;
      padding-bottom: 4px;
      margin-bottom: 10px;
    }

    .lista {
      margin-left: 20px;
    }

    a {
      color: #004d80;
    }

    .btn-pdf {
      display: inline-block;
      background-color: #004d80;
      color: #fff;
      padding: 8px 14px;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 600;
      float: right;
      margin-top: 15px;
      cursor: pointer;
    }

    .btn-pdf:hover {
      background-color: #006bb3;
    }

    @media (max-width: 700px) {
      .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      .photo {
        width: 140px;
        height: 140px;
        margin-top: 10px;
      }
    }

    @media print {
      nav, .btn-pdf {
        display: none;
      }
      body {
        background: white;
      }
      .cv-container {
        box-shadow: none;
        margin: 0;
      }
      .header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
      }
      .header-photo {
        margin-left: 20px;
      }
      .photo {
        width: 100px;
        height: 100px;
      }
    }